Documentation
¶
Overview ¶
Package compute provides access to the Compute Engine API.
For product documentation, see: https://cloud.google.com/compute/
Library status ¶
These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any 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/compute/v1" ... ctx := context.Background() computeService, err := compute.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use google.golang.org/api/option.WithScopes:
computeService, err := compute.NewService(ctx, option.WithScopes(compute.DevstorageReadWriteScope))
To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:
computeService, err := compute.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) computeService, err := compute.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See google.golang.org/api/option.ClientOption for details on options.
Index ¶
- Constants
- type AWSV4Signature
- type AcceleratorConfig
- type AcceleratorType
- type AcceleratorTypeAggregatedList
- type AcceleratorTypeAggregatedListWarning
- type AcceleratorTypeAggregatedListWarningData
- type AcceleratorTypeList
- type AcceleratorTypeListWarning
- type AcceleratorTypeListWarningData
- type AcceleratorTypesAggregatedListCall
- func (c *AcceleratorTypesAggregatedListCall) Context(ctx context.Context) *AcceleratorTypesAggregatedListCall
- func (c *AcceleratorTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*AcceleratorTypeAggregatedList, error)
- func (c *AcceleratorTypesAggregatedListCall) Fields(s ...googleapi.Field) *AcceleratorTypesAggregatedListCall
- func (c *AcceleratorTypesAggregatedListCall) Filter(filter string) *AcceleratorTypesAggregatedListCall
- func (c *AcceleratorTypesAggregatedListCall) Header() http.Header
- func (c *AcceleratorTypesAggregatedListCall) IfNoneMatch(entityTag string) *AcceleratorTypesAggregatedListCall
- func (c *AcceleratorTypesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *AcceleratorTypesAggregatedListCall
- func (c *AcceleratorTypesAggregatedListCall) MaxResults(maxResults int64) *AcceleratorTypesAggregatedListCall
- func (c *AcceleratorTypesAggregatedListCall) OrderBy(orderBy string) *AcceleratorTypesAggregatedListCall
- func (c *AcceleratorTypesAggregatedListCall) PageToken(pageToken string) *AcceleratorTypesAggregatedListCall
- func (c *AcceleratorTypesAggregatedListCall) Pages(ctx context.Context, f func(*AcceleratorTypeAggregatedList) error) error
- func (c *AcceleratorTypesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AcceleratorTypesAggregatedListCall
- func (c *AcceleratorTypesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *AcceleratorTypesAggregatedListCall
- type AcceleratorTypesGetCall
- func (c *AcceleratorTypesGetCall) Context(ctx context.Context) *AcceleratorTypesGetCall
- func (c *AcceleratorTypesGetCall) Do(opts ...googleapi.CallOption) (*AcceleratorType, error)
- func (c *AcceleratorTypesGetCall) Fields(s ...googleapi.Field) *AcceleratorTypesGetCall
- func (c *AcceleratorTypesGetCall) Header() http.Header
- func (c *AcceleratorTypesGetCall) IfNoneMatch(entityTag string) *AcceleratorTypesGetCall
- type AcceleratorTypesListCall
- func (c *AcceleratorTypesListCall) Context(ctx context.Context) *AcceleratorTypesListCall
- func (c *AcceleratorTypesListCall) Do(opts ...googleapi.CallOption) (*AcceleratorTypeList, error)
- func (c *AcceleratorTypesListCall) Fields(s ...googleapi.Field) *AcceleratorTypesListCall
- func (c *AcceleratorTypesListCall) Filter(filter string) *AcceleratorTypesListCall
- func (c *AcceleratorTypesListCall) Header() http.Header
- func (c *AcceleratorTypesListCall) IfNoneMatch(entityTag string) *AcceleratorTypesListCall
- func (c *AcceleratorTypesListCall) MaxResults(maxResults int64) *AcceleratorTypesListCall
- func (c *AcceleratorTypesListCall) OrderBy(orderBy string) *AcceleratorTypesListCall
- func (c *AcceleratorTypesListCall) PageToken(pageToken string) *AcceleratorTypesListCall
- func (c *AcceleratorTypesListCall) Pages(ctx context.Context, f func(*AcceleratorTypeList) error) error
- func (c *AcceleratorTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AcceleratorTypesListCall
- type AcceleratorTypesScopedList
- type AcceleratorTypesScopedListWarning
- type AcceleratorTypesScopedListWarningData
- type AcceleratorTypesService
- func (r *AcceleratorTypesService) AggregatedList(project string) *AcceleratorTypesAggregatedListCall
- func (r *AcceleratorTypesService) Get(project string, zone string, acceleratorType string) *AcceleratorTypesGetCall
- func (r *AcceleratorTypesService) List(project string, zone string) *AcceleratorTypesListCall
- type AccessConfig
- type Address
- type AddressAggregatedList
- type AddressAggregatedListWarning
- type AddressAggregatedListWarningData
- type AddressList
- type AddressListWarning
- type AddressListWarningData
- type AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) Context(ctx context.Context) *AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) Do(opts ...googleapi.CallOption) (*AddressAggregatedList, error)
- func (c *AddressesAggregatedListCall) Fields(s ...googleapi.Field) *AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) Filter(filter string) *AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) Header() http.Header
- func (c *AddressesAggregatedListCall) IfNoneMatch(entityTag string) *AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) MaxResults(maxResults int64) *AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) OrderBy(orderBy string) *AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) PageToken(pageToken string) *AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) Pages(ctx context.Context, f func(*AddressAggregatedList) error) error
- func (c *AddressesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *AddressesAggregatedListCall
- type AddressesDeleteCall
- func (c *AddressesDeleteCall) Context(ctx context.Context) *AddressesDeleteCall
- func (c *AddressesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *AddressesDeleteCall) Fields(s ...googleapi.Field) *AddressesDeleteCall
- func (c *AddressesDeleteCall) Header() http.Header
- func (c *AddressesDeleteCall) RequestId(requestId string) *AddressesDeleteCall
- type AddressesGetCall
- func (c *AddressesGetCall) Context(ctx context.Context) *AddressesGetCall
- func (c *AddressesGetCall) Do(opts ...googleapi.CallOption) (*Address, error)
- func (c *AddressesGetCall) Fields(s ...googleapi.Field) *AddressesGetCall
- func (c *AddressesGetCall) Header() http.Header
- func (c *AddressesGetCall) IfNoneMatch(entityTag string) *AddressesGetCall
- type AddressesInsertCall
- func (c *AddressesInsertCall) Context(ctx context.Context) *AddressesInsertCall
- func (c *AddressesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *AddressesInsertCall) Fields(s ...googleapi.Field) *AddressesInsertCall
- func (c *AddressesInsertCall) Header() http.Header
- func (c *AddressesInsertCall) RequestId(requestId string) *AddressesInsertCall
- type AddressesListCall
- func (c *AddressesListCall) Context(ctx context.Context) *AddressesListCall
- func (c *AddressesListCall) Do(opts ...googleapi.CallOption) (*AddressList, error)
- func (c *AddressesListCall) Fields(s ...googleapi.Field) *AddressesListCall
- func (c *AddressesListCall) Filter(filter string) *AddressesListCall
- func (c *AddressesListCall) Header() http.Header
- func (c *AddressesListCall) IfNoneMatch(entityTag string) *AddressesListCall
- func (c *AddressesListCall) MaxResults(maxResults int64) *AddressesListCall
- func (c *AddressesListCall) OrderBy(orderBy string) *AddressesListCall
- func (c *AddressesListCall) PageToken(pageToken string) *AddressesListCall
- func (c *AddressesListCall) Pages(ctx context.Context, f func(*AddressList) error) error
- func (c *AddressesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AddressesListCall
- type AddressesMoveCall
- func (c *AddressesMoveCall) Context(ctx context.Context) *AddressesMoveCall
- func (c *AddressesMoveCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *AddressesMoveCall) Fields(s ...googleapi.Field) *AddressesMoveCall
- func (c *AddressesMoveCall) Header() http.Header
- func (c *AddressesMoveCall) RequestId(requestId string) *AddressesMoveCall
- type AddressesScopedList
- type AddressesScopedListWarning
- type AddressesScopedListWarningData
- type AddressesService
- func (r *AddressesService) AggregatedList(project string) *AddressesAggregatedListCall
- func (r *AddressesService) Delete(project string, region string, address string) *AddressesDeleteCall
- func (r *AddressesService) Get(project string, region string, address string) *AddressesGetCall
- func (r *AddressesService) Insert(project string, region string, address *Address) *AddressesInsertCall
- func (r *AddressesService) List(project string, region string) *AddressesListCall
- func (r *AddressesService) Move(project string, region string, address string, ...) *AddressesMoveCall
- func (r *AddressesService) SetLabels(project string, region string, resource string, ...) *AddressesSetLabelsCall
- type AddressesSetLabelsCall
- func (c *AddressesSetLabelsCall) Context(ctx context.Context) *AddressesSetLabelsCall
- func (c *AddressesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *AddressesSetLabelsCall) Fields(s ...googleapi.Field) *AddressesSetLabelsCall
- func (c *AddressesSetLabelsCall) Header() http.Header
- func (c *AddressesSetLabelsCall) RequestId(requestId string) *AddressesSetLabelsCall
- type AdvancedMachineFeatures
- type AliasIpRange
- type AllocationAggregateReservation
- type AllocationAggregateReservationReservedResourceInfo
- type AllocationAggregateReservationReservedResourceInfoAccelerator
- type AllocationResourceStatus
- type AllocationResourceStatusSpecificSKUAllocation
- type AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
- type AllocationSpecificSKUAllocationReservedInstanceProperties
- type AllocationSpecificSKUReservation
- type AttachedDisk
- type AttachedDiskInitializeParams
- type AuditConfig
- type AuditLogConfig
- type Autoscaler
- type AutoscalerAggregatedList
- type AutoscalerAggregatedListWarning
- type AutoscalerAggregatedListWarningData
- type AutoscalerList
- type AutoscalerListWarning
- type AutoscalerListWarningData
- type AutoscalerStatusDetails
- type AutoscalersAggregatedListCall
- func (c *AutoscalersAggregatedListCall) Context(ctx context.Context) *AutoscalersAggregatedListCall
- func (c *AutoscalersAggregatedListCall) Do(opts ...googleapi.CallOption) (*AutoscalerAggregatedList, error)
- func (c *AutoscalersAggregatedListCall) Fields(s ...googleapi.Field) *AutoscalersAggregatedListCall
- func (c *AutoscalersAggregatedListCall) Filter(filter string) *AutoscalersAggregatedListCall
- func (c *AutoscalersAggregatedListCall) Header() http.Header
- func (c *AutoscalersAggregatedListCall) IfNoneMatch(entityTag string) *AutoscalersAggregatedListCall
- func (c *AutoscalersAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *AutoscalersAggregatedListCall
- func (c *AutoscalersAggregatedListCall) MaxResults(maxResults int64) *AutoscalersAggregatedListCall
- func (c *AutoscalersAggregatedListCall) OrderBy(orderBy string) *AutoscalersAggregatedListCall
- func (c *AutoscalersAggregatedListCall) PageToken(pageToken string) *AutoscalersAggregatedListCall
- func (c *AutoscalersAggregatedListCall) Pages(ctx context.Context, f func(*AutoscalerAggregatedList) error) error
- func (c *AutoscalersAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AutoscalersAggregatedListCall
- func (c *AutoscalersAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *AutoscalersAggregatedListCall
- type AutoscalersDeleteCall
- func (c *AutoscalersDeleteCall) Context(ctx context.Context) *AutoscalersDeleteCall
- func (c *AutoscalersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *AutoscalersDeleteCall) Fields(s ...googleapi.Field) *AutoscalersDeleteCall
- func (c *AutoscalersDeleteCall) Header() http.Header
- func (c *AutoscalersDeleteCall) RequestId(requestId string) *AutoscalersDeleteCall
- type AutoscalersGetCall
- func (c *AutoscalersGetCall) Context(ctx context.Context) *AutoscalersGetCall
- func (c *AutoscalersGetCall) Do(opts ...googleapi.CallOption) (*Autoscaler, error)
- func (c *AutoscalersGetCall) Fields(s ...googleapi.Field) *AutoscalersGetCall
- func (c *AutoscalersGetCall) Header() http.Header
- func (c *AutoscalersGetCall) IfNoneMatch(entityTag string) *AutoscalersGetCall
- type AutoscalersInsertCall
- func (c *AutoscalersInsertCall) Context(ctx context.Context) *AutoscalersInsertCall
- func (c *AutoscalersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *AutoscalersInsertCall) Fields(s ...googleapi.Field) *AutoscalersInsertCall
- func (c *AutoscalersInsertCall) Header() http.Header
- func (c *AutoscalersInsertCall) RequestId(requestId string) *AutoscalersInsertCall
- type AutoscalersListCall
- func (c *AutoscalersListCall) Context(ctx context.Context) *AutoscalersListCall
- func (c *AutoscalersListCall) Do(opts ...googleapi.CallOption) (*AutoscalerList, error)
- func (c *AutoscalersListCall) Fields(s ...googleapi.Field) *AutoscalersListCall
- func (c *AutoscalersListCall) Filter(filter string) *AutoscalersListCall
- func (c *AutoscalersListCall) Header() http.Header
- func (c *AutoscalersListCall) IfNoneMatch(entityTag string) *AutoscalersListCall
- func (c *AutoscalersListCall) MaxResults(maxResults int64) *AutoscalersListCall
- func (c *AutoscalersListCall) OrderBy(orderBy string) *AutoscalersListCall
- func (c *AutoscalersListCall) PageToken(pageToken string) *AutoscalersListCall
- func (c *AutoscalersListCall) Pages(ctx context.Context, f func(*AutoscalerList) error) error
- func (c *AutoscalersListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AutoscalersListCall
- type AutoscalersPatchCall
- func (c *AutoscalersPatchCall) Autoscaler(autoscaler string) *AutoscalersPatchCall
- func (c *AutoscalersPatchCall) Context(ctx context.Context) *AutoscalersPatchCall
- func (c *AutoscalersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *AutoscalersPatchCall) Fields(s ...googleapi.Field) *AutoscalersPatchCall
- func (c *AutoscalersPatchCall) Header() http.Header
- func (c *AutoscalersPatchCall) RequestId(requestId string) *AutoscalersPatchCall
- type AutoscalersScopedList
- type AutoscalersScopedListWarning
- type AutoscalersScopedListWarningData
- type AutoscalersService
- func (r *AutoscalersService) AggregatedList(project string) *AutoscalersAggregatedListCall
- func (r *AutoscalersService) Delete(project string, zone string, autoscaler string) *AutoscalersDeleteCall
- func (r *AutoscalersService) Get(project string, zone string, autoscaler string) *AutoscalersGetCall
- func (r *AutoscalersService) Insert(project string, zone string, autoscaler *Autoscaler) *AutoscalersInsertCall
- func (r *AutoscalersService) List(project string, zone string) *AutoscalersListCall
- func (r *AutoscalersService) Patch(project string, zone string, autoscaler *Autoscaler) *AutoscalersPatchCall
- func (r *AutoscalersService) Update(project string, zone string, autoscaler *Autoscaler) *AutoscalersUpdateCall
- type AutoscalersUpdateCall
- func (c *AutoscalersUpdateCall) Autoscaler(autoscaler string) *AutoscalersUpdateCall
- func (c *AutoscalersUpdateCall) Context(ctx context.Context) *AutoscalersUpdateCall
- func (c *AutoscalersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *AutoscalersUpdateCall) Fields(s ...googleapi.Field) *AutoscalersUpdateCall
- func (c *AutoscalersUpdateCall) Header() http.Header
- func (c *AutoscalersUpdateCall) RequestId(requestId string) *AutoscalersUpdateCall
- type AutoscalingPolicy
- type AutoscalingPolicyCpuUtilization
- type AutoscalingPolicyCustomMetricUtilization
- type AutoscalingPolicyLoadBalancingUtilization
- type AutoscalingPolicyScaleInControl
- type AutoscalingPolicyScalingSchedule
- type Backend
- type BackendBucket
- type BackendBucketCdnPolicy
- type BackendBucketCdnPolicyBypassCacheOnRequestHeader
- type BackendBucketCdnPolicyCacheKeyPolicy
- type BackendBucketCdnPolicyNegativeCachingPolicy
- type BackendBucketList
- type BackendBucketListWarning
- type BackendBucketListWarningData
- type BackendBucketUsedBy
- type BackendBucketsAddSignedUrlKeyCall
- func (c *BackendBucketsAddSignedUrlKeyCall) Context(ctx context.Context) *BackendBucketsAddSignedUrlKeyCall
- func (c *BackendBucketsAddSignedUrlKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *BackendBucketsAddSignedUrlKeyCall) Fields(s ...googleapi.Field) *BackendBucketsAddSignedUrlKeyCall
- func (c *BackendBucketsAddSignedUrlKeyCall) Header() http.Header
- func (c *BackendBucketsAddSignedUrlKeyCall) RequestId(requestId string) *BackendBucketsAddSignedUrlKeyCall
- type BackendBucketsDeleteCall
- func (c *BackendBucketsDeleteCall) Context(ctx context.Context) *BackendBucketsDeleteCall
- func (c *BackendBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *BackendBucketsDeleteCall) Fields(s ...googleapi.Field) *BackendBucketsDeleteCall
- func (c *BackendBucketsDeleteCall) Header() http.Header
- func (c *BackendBucketsDeleteCall) RequestId(requestId string) *BackendBucketsDeleteCall
- type BackendBucketsDeleteSignedUrlKeyCall
- func (c *BackendBucketsDeleteSignedUrlKeyCall) Context(ctx context.Context) *BackendBucketsDeleteSignedUrlKeyCall
- func (c *BackendBucketsDeleteSignedUrlKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *BackendBucketsDeleteSignedUrlKeyCall) Fields(s ...googleapi.Field) *BackendBucketsDeleteSignedUrlKeyCall
- func (c *BackendBucketsDeleteSignedUrlKeyCall) Header() http.Header
- func (c *BackendBucketsDeleteSignedUrlKeyCall) RequestId(requestId string) *BackendBucketsDeleteSignedUrlKeyCall
- type BackendBucketsGetCall
- func (c *BackendBucketsGetCall) Context(ctx context.Context) *BackendBucketsGetCall
- func (c *BackendBucketsGetCall) Do(opts ...googleapi.CallOption) (*BackendBucket, error)
- func (c *BackendBucketsGetCall) Fields(s ...googleapi.Field) *BackendBucketsGetCall
- func (c *BackendBucketsGetCall) Header() http.Header
- func (c *BackendBucketsGetCall) IfNoneMatch(entityTag string) *BackendBucketsGetCall
- type BackendBucketsGetIamPolicyCall
- func (c *BackendBucketsGetIamPolicyCall) Context(ctx context.Context) *BackendBucketsGetIamPolicyCall
- func (c *BackendBucketsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *BackendBucketsGetIamPolicyCall) Fields(s ...googleapi.Field) *BackendBucketsGetIamPolicyCall
- func (c *BackendBucketsGetIamPolicyCall) Header() http.Header
- func (c *BackendBucketsGetIamPolicyCall) IfNoneMatch(entityTag string) *BackendBucketsGetIamPolicyCall
- func (c *BackendBucketsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *BackendBucketsGetIamPolicyCall
- type BackendBucketsInsertCall
- func (c *BackendBucketsInsertCall) Context(ctx context.Context) *BackendBucketsInsertCall
- func (c *BackendBucketsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *BackendBucketsInsertCall) Fields(s ...googleapi.Field) *BackendBucketsInsertCall
- func (c *BackendBucketsInsertCall) Header() http.Header
- func (c *BackendBucketsInsertCall) RequestId(requestId string) *BackendBucketsInsertCall
- type BackendBucketsListCall
- func (c *BackendBucketsListCall) Context(ctx context.Context) *BackendBucketsListCall
- func (c *BackendBucketsListCall) Do(opts ...googleapi.CallOption) (*BackendBucketList, error)
- func (c *BackendBucketsListCall) Fields(s ...googleapi.Field) *BackendBucketsListCall
- func (c *BackendBucketsListCall) Filter(filter string) *BackendBucketsListCall
- func (c *BackendBucketsListCall) Header() http.Header
- func (c *BackendBucketsListCall) IfNoneMatch(entityTag string) *BackendBucketsListCall
- func (c *BackendBucketsListCall) MaxResults(maxResults int64) *BackendBucketsListCall
- func (c *BackendBucketsListCall) OrderBy(orderBy string) *BackendBucketsListCall
- func (c *BackendBucketsListCall) PageToken(pageToken string) *BackendBucketsListCall
- func (c *BackendBucketsListCall) Pages(ctx context.Context, f func(*BackendBucketList) error) error
- func (c *BackendBucketsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *BackendBucketsListCall
- type BackendBucketsPatchCall
- func (c *BackendBucketsPatchCall) Context(ctx context.Context) *BackendBucketsPatchCall
- func (c *BackendBucketsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *BackendBucketsPatchCall) Fields(s ...googleapi.Field) *BackendBucketsPatchCall
- func (c *BackendBucketsPatchCall) Header() http.Header
- func (c *BackendBucketsPatchCall) RequestId(requestId string) *BackendBucketsPatchCall
- type BackendBucketsService
- func (r *BackendBucketsService) AddSignedUrlKey(project string, backendBucket string, signedurlkey *SignedUrlKey) *BackendBucketsAddSignedUrlKeyCall
- func (r *BackendBucketsService) Delete(project string, backendBucket string) *BackendBucketsDeleteCall
- func (r *BackendBucketsService) DeleteSignedUrlKey(project string, backendBucket string, keyName string) *BackendBucketsDeleteSignedUrlKeyCall
- func (r *BackendBucketsService) Get(project string, backendBucket string) *BackendBucketsGetCall
- func (r *BackendBucketsService) GetIamPolicy(project string, resource string) *BackendBucketsGetIamPolicyCall
- func (r *BackendBucketsService) Insert(project string, backendbucket *BackendBucket) *BackendBucketsInsertCall
- func (r *BackendBucketsService) List(project string) *BackendBucketsListCall
- func (r *BackendBucketsService) Patch(project string, backendBucket string, backendbucket *BackendBucket) *BackendBucketsPatchCall
- func (r *BackendBucketsService) SetEdgeSecurityPolicy(project string, backendBucket string, ...) *BackendBucketsSetEdgeSecurityPolicyCall
- func (r *BackendBucketsService) SetIamPolicy(project string, resource string, ...) *BackendBucketsSetIamPolicyCall
- func (r *BackendBucketsService) TestIamPermissions(project string, resource string, ...) *BackendBucketsTestIamPermissionsCall
- func (r *BackendBucketsService) Update(project string, backendBucket string, backendbucket *BackendBucket) *BackendBucketsUpdateCall
- type BackendBucketsSetEdgeSecurityPolicyCall
- func (c *BackendBucketsSetEdgeSecurityPolicyCall) Context(ctx context.Context) *BackendBucketsSetEdgeSecurityPolicyCall
- func (c *BackendBucketsSetEdgeSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *BackendBucketsSetEdgeSecurityPolicyCall) Fields(s ...googleapi.Field) *BackendBucketsSetEdgeSecurityPolicyCall
- func (c *BackendBucketsSetEdgeSecurityPolicyCall) Header() http.Header
- func (c *BackendBucketsSetEdgeSecurityPolicyCall) RequestId(requestId string) *BackendBucketsSetEdgeSecurityPolicyCall
- type BackendBucketsSetIamPolicyCall
- func (c *BackendBucketsSetIamPolicyCall) Context(ctx context.Context) *BackendBucketsSetIamPolicyCall
- func (c *BackendBucketsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *BackendBucketsSetIamPolicyCall) Fields(s ...googleapi.Field) *BackendBucketsSetIamPolicyCall
- func (c *BackendBucketsSetIamPolicyCall) Header() http.Header
- type BackendBucketsTestIamPermissionsCall
- func (c *BackendBucketsTestIamPermissionsCall) Context(ctx context.Context) *BackendBucketsTestIamPermissionsCall
- func (c *BackendBucketsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *BackendBucketsTestIamPermissionsCall) Fields(s ...googleapi.Field) *BackendBucketsTestIamPermissionsCall
- func (c *BackendBucketsTestIamPermissionsCall) Header() http.Header
- type BackendBucketsUpdateCall
- func (c *BackendBucketsUpdateCall) Context(ctx context.Context) *BackendBucketsUpdateCall
- func (c *BackendBucketsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *BackendBucketsUpdateCall) Fields(s ...googleapi.Field) *BackendBucketsUpdateCall
- func (c *BackendBucketsUpdateCall) Header() http.Header
- func (c *BackendBucketsUpdateCall) RequestId(requestId string) *BackendBucketsUpdateCall
- type BackendService
- type BackendServiceAggregatedList
- type BackendServiceAggregatedListWarning
- type BackendServiceAggregatedListWarningData
- type BackendServiceCdnPolicy
- type BackendServiceCdnPolicyBypassCacheOnRequestHeader
- type BackendServiceCdnPolicyNegativeCachingPolicy
- type BackendServiceConnectionTrackingPolicy
- type BackendServiceFailoverPolicy
- type BackendServiceGroupHealth
- type BackendServiceIAP
- type BackendServiceList
- type BackendServiceListUsable
- type BackendServiceListUsableWarning
- type BackendServiceListUsableWarningData
- type BackendServiceListWarning
- type BackendServiceListWarningData
- type BackendServiceLocalityLoadBalancingPolicyConfig
- type BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
- type BackendServiceLocalityLoadBalancingPolicyConfigPolicy
- type BackendServiceLogConfig
- type BackendServiceReference
- type BackendServiceUsedBy
- type BackendServicesAddSignedUrlKeyCall
- func (c *BackendServicesAddSignedUrlKeyCall) Context(ctx context.Context) *BackendServicesAddSignedUrlKeyCall
- func (c *BackendServicesAddSignedUrlKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *BackendServicesAddSignedUrlKeyCall) Fields(s ...googleapi.Field) *BackendServicesAddSignedUrlKeyCall
- func (c *BackendServicesAddSignedUrlKeyCall) Header() http.Header
- func (c *BackendServicesAddSignedUrlKeyCall) RequestId(requestId string) *BackendServicesAddSignedUrlKeyCall
- type BackendServicesAggregatedListCall
- func (c *BackendServicesAggregatedListCall) Context(ctx context.Context) *BackendServicesAggregatedListCall
- func (c *BackendServicesAggregatedListCall) Do(opts ...googleapi.CallOption) (*BackendServiceAggregatedList, error)
- func (c *BackendServicesAggregatedListCall) Fields(s ...googleapi.Field) *BackendServicesAggregatedListCall
- func (c *BackendServicesAggregatedListCall) Filter(filter string) *BackendServicesAggregatedListCall
- func (c *BackendServicesAggregatedListCall) Header() http.Header
- func (c *BackendServicesAggregatedListCall) IfNoneMatch(entityTag string) *BackendServicesAggregatedListCall
- func (c *BackendServicesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *BackendServicesAggregatedListCall
- func (c *BackendServicesAggregatedListCall) MaxResults(maxResults int64) *BackendServicesAggregatedListCall
- func (c *BackendServicesAggregatedListCall) OrderBy(orderBy string) *BackendServicesAggregatedListCall
- func (c *BackendServicesAggregatedListCall) PageToken(pageToken string) *BackendServicesAggregatedListCall
- func (c *BackendServicesAggregatedListCall) Pages(ctx context.Context, f func(*BackendServiceAggregatedList) error) error
- func (c *BackendServicesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *BackendServicesAggregatedListCall
- func (c *BackendServicesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *BackendServicesAggregatedListCall
- type BackendServicesDeleteCall
- func (c *BackendServicesDeleteCall) Context(ctx context.Context) *BackendServicesDeleteCall
- func (c *BackendServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *BackendServicesDeleteCall) Fields(s ...googleapi.Field) *BackendServicesDeleteCall
- func (c *BackendServicesDeleteCall) Header() http.Header
- func (c *BackendServicesDeleteCall) RequestId(requestId string) *BackendServicesDeleteCall
- type BackendServicesDeleteSignedUrlKeyCall
- func (c *BackendServicesDeleteSignedUrlKeyCall) Context(ctx context.Context) *BackendServicesDeleteSignedUrlKeyCall
- func (c *BackendServicesDeleteSignedUrlKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *BackendServicesDeleteSignedUrlKeyCall) Fields(s ...googleapi.Field) *BackendServicesDeleteSignedUrlKeyCall
- func (c *BackendServicesDeleteSignedUrlKeyCall) Header() http.Header
- func (c *BackendServicesDeleteSignedUrlKeyCall) RequestId(requestId string) *BackendServicesDeleteSignedUrlKeyCall
- type BackendServicesGetCall
- func (c *BackendServicesGetCall) Context(ctx context.Context) *BackendServicesGetCall
- func (c *BackendServicesGetCall) Do(opts ...googleapi.CallOption) (*BackendService, error)
- func (c *BackendServicesGetCall) Fields(s ...googleapi.Field) *BackendServicesGetCall
- func (c *BackendServicesGetCall) Header() http.Header
- func (c *BackendServicesGetCall) IfNoneMatch(entityTag string) *BackendServicesGetCall
- type BackendServicesGetHealthCall
- func (c *BackendServicesGetHealthCall) Context(ctx context.Context) *BackendServicesGetHealthCall
- func (c *BackendServicesGetHealthCall) Do(opts ...googleapi.CallOption) (*BackendServiceGroupHealth, error)
- func (c *BackendServicesGetHealthCall) Fields(s ...googleapi.Field) *BackendServicesGetHealthCall
- func (c *BackendServicesGetHealthCall) Header() http.Header
- type BackendServicesGetIamPolicyCall
- func (c *BackendServicesGetIamPolicyCall) Context(ctx context.Context) *BackendServicesGetIamPolicyCall
- func (c *BackendServicesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *BackendServicesGetIamPolicyCall) Fields(s ...googleapi.Field) *BackendServicesGetIamPolicyCall
- func (c *BackendServicesGetIamPolicyCall) Header() http.Header
- func (c *BackendServicesGetIamPolicyCall) IfNoneMatch(entityTag string) *BackendServicesGetIamPolicyCall
- func (c *BackendServicesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *BackendServicesGetIamPolicyCall
- type BackendServicesInsertCall
- func (c *BackendServicesInsertCall) Context(ctx context.Context) *BackendServicesInsertCall
- func (c *BackendServicesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *BackendServicesInsertCall) Fields(s ...googleapi.Field) *BackendServicesInsertCall
- func (c *BackendServicesInsertCall) Header() http.Header
- func (c *BackendServicesInsertCall) RequestId(requestId string) *BackendServicesInsertCall
- type BackendServicesListCall
- func (c *BackendServicesListCall) Context(ctx context.Context) *BackendServicesListCall
- func (c *BackendServicesListCall) Do(opts ...googleapi.CallOption) (*BackendServiceList, error)
- func (c *BackendServicesListCall) Fields(s ...googleapi.Field) *BackendServicesListCall
- func (c *BackendServicesListCall) Filter(filter string) *BackendServicesListCall
- func (c *BackendServicesListCall) Header() http.Header
- func (c *BackendServicesListCall) IfNoneMatch(entityTag string) *BackendServicesListCall
- func (c *BackendServicesListCall) MaxResults(maxResults int64) *BackendServicesListCall
- func (c *BackendServicesListCall) OrderBy(orderBy string) *BackendServicesListCall
- func (c *BackendServicesListCall) PageToken(pageToken string) *BackendServicesListCall
- func (c *BackendServicesListCall) Pages(ctx context.Context, f func(*BackendServiceList) error) error
- func (c *BackendServicesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *BackendServicesListCall
- type BackendServicesListUsableCall
- func (c *BackendServicesListUsableCall) Context(ctx context.Context) *BackendServicesListUsableCall
- func (c *BackendServicesListUsableCall) Do(opts ...googleapi.CallOption) (*BackendServiceListUsable, error)
- func (c *BackendServicesListUsableCall) Fields(s ...googleapi.Field) *BackendServicesListUsableCall
- func (c *BackendServicesListUsableCall) Filter(filter string) *BackendServicesListUsableCall
- func (c *BackendServicesListUsableCall) Header() http.Header
- func (c *BackendServicesListUsableCall) IfNoneMatch(entityTag string) *BackendServicesListUsableCall
- func (c *BackendServicesListUsableCall) MaxResults(maxResults int64) *BackendServicesListUsableCall
- func (c *BackendServicesListUsableCall) OrderBy(orderBy string) *BackendServicesListUsableCall
- func (c *BackendServicesListUsableCall) PageToken(pageToken string) *BackendServicesListUsableCall
- func (c *BackendServicesListUsableCall) Pages(ctx context.Context, f func(*BackendServiceListUsable) error) error
- func (c *BackendServicesListUsableCall) ReturnPartialSuccess(returnPartialSuccess bool) *BackendServicesListUsableCall
- type BackendServicesPatchCall
- func (c *BackendServicesPatchCall) Context(ctx context.Context) *BackendServicesPatchCall
- func (c *BackendServicesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *BackendServicesPatchCall) Fields(s ...googleapi.Field) *BackendServicesPatchCall
- func (c *BackendServicesPatchCall) Header() http.Header
- func (c *BackendServicesPatchCall) RequestId(requestId string) *BackendServicesPatchCall
- type BackendServicesScopedList
- type BackendServicesScopedListWarning
- type BackendServicesScopedListWarningData
- type BackendServicesService
- func (r *BackendServicesService) AddSignedUrlKey(project string, backendService string, signedurlkey *SignedUrlKey) *BackendServicesAddSignedUrlKeyCall
- func (r *BackendServicesService) AggregatedList(project string) *BackendServicesAggregatedListCall
- func (r *BackendServicesService) Delete(project string, backendService string) *BackendServicesDeleteCall
- func (r *BackendServicesService) DeleteSignedUrlKey(project string, backendService string, keyName string) *BackendServicesDeleteSignedUrlKeyCall
- func (r *BackendServicesService) Get(project string, backendService string) *BackendServicesGetCall
- func (r *BackendServicesService) GetHealth(project string, backendService string, ...) *BackendServicesGetHealthCall
- func (r *BackendServicesService) GetIamPolicy(project string, resource string) *BackendServicesGetIamPolicyCall
- func (r *BackendServicesService) Insert(project string, backendservice *BackendService) *BackendServicesInsertCall
- func (r *BackendServicesService) List(project string) *BackendServicesListCall
- func (r *BackendServicesService) ListUsable(project string) *BackendServicesListUsableCall
- func (r *BackendServicesService) Patch(project string, backendService string, backendservice *BackendService) *BackendServicesPatchCall
- func (r *BackendServicesService) SetEdgeSecurityPolicy(project string, backendService string, ...) *BackendServicesSetEdgeSecurityPolicyCall
- func (r *BackendServicesService) SetIamPolicy(project string, resource string, ...) *BackendServicesSetIamPolicyCall
- func (r *BackendServicesService) SetSecurityPolicy(project string, backendService string, ...) *BackendServicesSetSecurityPolicyCall
- func (r *BackendServicesService) TestIamPermissions(project string, resource string, ...) *BackendServicesTestIamPermissionsCall
- func (r *BackendServicesService) Update(project string, backendService string, backendservice *BackendService) *BackendServicesUpdateCall
- type BackendServicesSetEdgeSecurityPolicyCall
- func (c *BackendServicesSetEdgeSecurityPolicyCall) Context(ctx context.Context) *BackendServicesSetEdgeSecurityPolicyCall
- func (c *BackendServicesSetEdgeSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *BackendServicesSetEdgeSecurityPolicyCall) Fields(s ...googleapi.Field) *BackendServicesSetEdgeSecurityPolicyCall
- func (c *BackendServicesSetEdgeSecurityPolicyCall) Header() http.Header
- func (c *BackendServicesSetEdgeSecurityPolicyCall) RequestId(requestId string) *BackendServicesSetEdgeSecurityPolicyCall
- type BackendServicesSetIamPolicyCall
- func (c *BackendServicesSetIamPolicyCall) Context(ctx context.Context) *BackendServicesSetIamPolicyCall
- func (c *BackendServicesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *BackendServicesSetIamPolicyCall) Fields(s ...googleapi.Field) *BackendServicesSetIamPolicyCall
- func (c *BackendServicesSetIamPolicyCall) Header() http.Header
- type BackendServicesSetSecurityPolicyCall
- func (c *BackendServicesSetSecurityPolicyCall) Context(ctx context.Context) *BackendServicesSetSecurityPolicyCall
- func (c *BackendServicesSetSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *BackendServicesSetSecurityPolicyCall) Fields(s ...googleapi.Field) *BackendServicesSetSecurityPolicyCall
- func (c *BackendServicesSetSecurityPolicyCall) Header() http.Header
- func (c *BackendServicesSetSecurityPolicyCall) RequestId(requestId string) *BackendServicesSetSecurityPolicyCall
- type BackendServicesTestIamPermissionsCall
- func (c *BackendServicesTestIamPermissionsCall) Context(ctx context.Context) *BackendServicesTestIamPermissionsCall
- func (c *BackendServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *BackendServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *BackendServicesTestIamPermissionsCall
- func (c *BackendServicesTestIamPermissionsCall) Header() http.Header
- type BackendServicesUpdateCall
- func (c *BackendServicesUpdateCall) Context(ctx context.Context) *BackendServicesUpdateCall
- func (c *BackendServicesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *BackendServicesUpdateCall) Fields(s ...googleapi.Field) *BackendServicesUpdateCall
- func (c *BackendServicesUpdateCall) Header() http.Header
- func (c *BackendServicesUpdateCall) RequestId(requestId string) *BackendServicesUpdateCall
- type BfdPacket
- type BfdStatus
- type BfdStatusPacketCounts
- type Binding
- type BulkInsertDiskResource
- type BulkInsertInstanceResource
- type BulkInsertInstanceResourcePerInstanceProperties
- type BulkInsertOperationStatus
- type CacheInvalidationRule
- type CacheKeyPolicy
- type CircuitBreakers
- type Commitment
- type CommitmentAggregatedList
- type CommitmentAggregatedListWarning
- type CommitmentAggregatedListWarningData
- type CommitmentList
- type CommitmentListWarning
- type CommitmentListWarningData
- type CommitmentsScopedList
- type CommitmentsScopedListWarning
- type CommitmentsScopedListWarningData
- type Condition
- type ConfidentialInstanceConfig
- type ConnectionDraining
- type ConsistentHashLoadBalancerSettings
- type ConsistentHashLoadBalancerSettingsHttpCookie
- type CorsPolicy
- type CustomErrorResponsePolicy
- type CustomErrorResponsePolicyCustomErrorResponseRule
- type CustomerEncryptionKey
- type CustomerEncryptionKeyProtectedDisk
- type DeprecationStatus
- type Disk
- type DiskAggregatedList
- type DiskAggregatedListWarning
- type DiskAggregatedListWarningData
- type DiskAsyncReplication
- type DiskAsyncReplicationList
- type DiskInstantiationConfig
- type DiskList
- type DiskListWarning
- type DiskListWarningData
- type DiskMoveRequest
- type DiskParams
- type DiskResourceStatus
- type DiskResourceStatusAsyncReplicationStatus
- type DiskType
- type DiskTypeAggregatedList
- type DiskTypeAggregatedListWarning
- type DiskTypeAggregatedListWarningData
- type DiskTypeList
- type DiskTypeListWarning
- type DiskTypeListWarningData
- type DiskTypesAggregatedListCall
- func (c *DiskTypesAggregatedListCall) Context(ctx context.Context) *DiskTypesAggregatedListCall
- func (c *DiskTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*DiskTypeAggregatedList, error)
- func (c *DiskTypesAggregatedListCall) Fields(s ...googleapi.Field) *DiskTypesAggregatedListCall
- func (c *DiskTypesAggregatedListCall) Filter(filter string) *DiskTypesAggregatedListCall
- func (c *DiskTypesAggregatedListCall) Header() http.Header
- func (c *DiskTypesAggregatedListCall) IfNoneMatch(entityTag string) *DiskTypesAggregatedListCall
- func (c *DiskTypesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *DiskTypesAggregatedListCall
- func (c *DiskTypesAggregatedListCall) MaxResults(maxResults int64) *DiskTypesAggregatedListCall
- func (c *DiskTypesAggregatedListCall) OrderBy(orderBy string) *DiskTypesAggregatedListCall
- func (c *DiskTypesAggregatedListCall) PageToken(pageToken string) *DiskTypesAggregatedListCall
- func (c *DiskTypesAggregatedListCall) Pages(ctx context.Context, f func(*DiskTypeAggregatedList) error) error
- func (c *DiskTypesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DiskTypesAggregatedListCall
- func (c *DiskTypesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *DiskTypesAggregatedListCall
- type DiskTypesGetCall
- func (c *DiskTypesGetCall) Context(ctx context.Context) *DiskTypesGetCall
- func (c *DiskTypesGetCall) Do(opts ...googleapi.CallOption) (*DiskType, error)
- func (c *DiskTypesGetCall) Fields(s ...googleapi.Field) *DiskTypesGetCall
- func (c *DiskTypesGetCall) Header() http.Header
- func (c *DiskTypesGetCall) IfNoneMatch(entityTag string) *DiskTypesGetCall
- type DiskTypesListCall
- func (c *DiskTypesListCall) Context(ctx context.Context) *DiskTypesListCall
- func (c *DiskTypesListCall) Do(opts ...googleapi.CallOption) (*DiskTypeList, error)
- func (c *DiskTypesListCall) Fields(s ...googleapi.Field) *DiskTypesListCall
- func (c *DiskTypesListCall) Filter(filter string) *DiskTypesListCall
- func (c *DiskTypesListCall) Header() http.Header
- func (c *DiskTypesListCall) IfNoneMatch(entityTag string) *DiskTypesListCall
- func (c *DiskTypesListCall) MaxResults(maxResults int64) *DiskTypesListCall
- func (c *DiskTypesListCall) OrderBy(orderBy string) *DiskTypesListCall
- func (c *DiskTypesListCall) PageToken(pageToken string) *DiskTypesListCall
- func (c *DiskTypesListCall) Pages(ctx context.Context, f func(*DiskTypeList) error) error
- func (c *DiskTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DiskTypesListCall
- type DiskTypesScopedList
- type DiskTypesScopedListWarning
- type DiskTypesScopedListWarningData
- type DiskTypesService
- type DisksAddResourcePoliciesCall
- func (c *DisksAddResourcePoliciesCall) Context(ctx context.Context) *DisksAddResourcePoliciesCall
- func (c *DisksAddResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *DisksAddResourcePoliciesCall) Fields(s ...googleapi.Field) *DisksAddResourcePoliciesCall
- func (c *DisksAddResourcePoliciesCall) Header() http.Header
- func (c *DisksAddResourcePoliciesCall) RequestId(requestId string) *DisksAddResourcePoliciesCall
- type DisksAddResourcePoliciesRequest
- type DisksAggregatedListCall
- func (c *DisksAggregatedListCall) Context(ctx context.Context) *DisksAggregatedListCall
- func (c *DisksAggregatedListCall) Do(opts ...googleapi.CallOption) (*DiskAggregatedList, error)
- func (c *DisksAggregatedListCall) Fields(s ...googleapi.Field) *DisksAggregatedListCall
- func (c *DisksAggregatedListCall) Filter(filter string) *DisksAggregatedListCall
- func (c *DisksAggregatedListCall) Header() http.Header
- func (c *DisksAggregatedListCall) IfNoneMatch(entityTag string) *DisksAggregatedListCall
- func (c *DisksAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *DisksAggregatedListCall
- func (c *DisksAggregatedListCall) MaxResults(maxResults int64) *DisksAggregatedListCall
- func (c *DisksAggregatedListCall) OrderBy(orderBy string) *DisksAggregatedListCall
- func (c *DisksAggregatedListCall) PageToken(pageToken string) *DisksAggregatedListCall
- func (c *DisksAggregatedListCall) Pages(ctx context.Context, f func(*DiskAggregatedList) error) error
- func (c *DisksAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DisksAggregatedListCall
- func (c *DisksAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *DisksAggregatedListCall
- type DisksBulkInsertCall
- func (c *DisksBulkInsertCall) Context(ctx context.Context) *DisksBulkInsertCall
- func (c *DisksBulkInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *DisksBulkInsertCall) Fields(s ...googleapi.Field) *DisksBulkInsertCall
- func (c *DisksBulkInsertCall) Header() http.Header
- func (c *DisksBulkInsertCall) RequestId(requestId string) *DisksBulkInsertCall
- type DisksCreateSnapshotCall
- func (c *DisksCreateSnapshotCall) Context(ctx context.Context) *DisksCreateSnapshotCall
- func (c *DisksCreateSnapshotCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *DisksCreateSnapshotCall) Fields(s ...googleapi.Field) *DisksCreateSnapshotCall
- func (c *DisksCreateSnapshotCall) GuestFlush(guestFlush bool) *DisksCreateSnapshotCall
- func (c *DisksCreateSnapshotCall) Header() http.Header
- func (c *DisksCreateSnapshotCall) RequestId(requestId string) *DisksCreateSnapshotCall
- type DisksDeleteCall
- func (c *DisksDeleteCall) Context(ctx context.Context) *DisksDeleteCall
- func (c *DisksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *DisksDeleteCall) Fields(s ...googleapi.Field) *DisksDeleteCall
- func (c *DisksDeleteCall) Header() http.Header
- func (c *DisksDeleteCall) RequestId(requestId string) *DisksDeleteCall
- type DisksGetCall
- func (c *DisksGetCall) Context(ctx context.Context) *DisksGetCall
- func (c *DisksGetCall) Do(opts ...googleapi.CallOption) (*Disk, error)
- func (c *DisksGetCall) Fields(s ...googleapi.Field) *DisksGetCall
- func (c *DisksGetCall) Header() http.Header
- func (c *DisksGetCall) IfNoneMatch(entityTag string) *DisksGetCall
- type DisksGetIamPolicyCall
- func (c *DisksGetIamPolicyCall) Context(ctx context.Context) *DisksGetIamPolicyCall
- func (c *DisksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *DisksGetIamPolicyCall) Fields(s ...googleapi.Field) *DisksGetIamPolicyCall
- func (c *DisksGetIamPolicyCall) Header() http.Header
- func (c *DisksGetIamPolicyCall) IfNoneMatch(entityTag string) *DisksGetIamPolicyCall
- func (c *DisksGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *DisksGetIamPolicyCall
- type DisksInsertCall
- func (c *DisksInsertCall) Context(ctx context.Context) *DisksInsertCall
- func (c *DisksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *DisksInsertCall) Fields(s ...googleapi.Field) *DisksInsertCall
- func (c *DisksInsertCall) Header() http.Header
- func (c *DisksInsertCall) RequestId(requestId string) *DisksInsertCall
- func (c *DisksInsertCall) SourceImage(sourceImage string) *DisksInsertCall
- type DisksListCall
- func (c *DisksListCall) Context(ctx context.Context) *DisksListCall
- func (c *DisksListCall) Do(opts ...googleapi.CallOption) (*DiskList, error)
- func (c *DisksListCall) Fields(s ...googleapi.Field) *DisksListCall
- func (c *DisksListCall) Filter(filter string) *DisksListCall
- func (c *DisksListCall) Header() http.Header
- func (c *DisksListCall) IfNoneMatch(entityTag string) *DisksListCall
- func (c *DisksListCall) MaxResults(maxResults int64) *DisksListCall
- func (c *DisksListCall) OrderBy(orderBy string) *DisksListCall
- func (c *DisksListCall) PageToken(pageToken string) *DisksListCall
- func (c *DisksListCall) Pages(ctx context.Context, f func(*DiskList) error) error
- func (c *DisksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DisksListCall
- type DisksRemoveResourcePoliciesCall
- func (c *DisksRemoveResourcePoliciesCall) Context(ctx context.Context) *DisksRemoveResourcePoliciesCall
- func (c *DisksRemoveResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *DisksRemoveResourcePoliciesCall) Fields(s ...googleapi.Field) *DisksRemoveResourcePoliciesCall
- func (c *DisksRemoveResourcePoliciesCall) Header() http.Header
- func (c *DisksRemoveResourcePoliciesCall) RequestId(requestId string) *DisksRemoveResourcePoliciesCall
- type DisksRemoveResourcePoliciesRequest
- type DisksResizeCall
- func (c *DisksResizeCall) Context(ctx context.Context) *DisksResizeCall
- func (c *DisksResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *DisksResizeCall) Fields(s ...googleapi.Field) *DisksResizeCall
- func (c *DisksResizeCall) Header() http.Header
- func (c *DisksResizeCall) RequestId(requestId string) *DisksResizeCall
- type DisksResizeRequest
- type DisksScopedList
- type DisksScopedListWarning
- type DisksScopedListWarningData
- type DisksService
- func (r *DisksService) AddResourcePolicies(project string, zone string, disk string, ...) *DisksAddResourcePoliciesCall
- func (r *DisksService) AggregatedList(project string) *DisksAggregatedListCall
- func (r *DisksService) BulkInsert(project string, zone string, bulkinsertdiskresource *BulkInsertDiskResource) *DisksBulkInsertCall
- func (r *DisksService) CreateSnapshot(project string, zone string, disk string, snapshot *Snapshot) *DisksCreateSnapshotCall
- func (r *DisksService) Delete(project string, zone string, disk string) *DisksDeleteCall
- func (r *DisksService) Get(project string, zone string, disk string) *DisksGetCall
- func (r *DisksService) GetIamPolicy(project string, zone string, resource string) *DisksGetIamPolicyCall
- func (r *DisksService) Insert(project string, zone string, disk *Disk) *DisksInsertCall
- func (r *DisksService) List(project string, zone string) *DisksListCall
- func (r *DisksService) RemoveResourcePolicies(project string, zone string, disk string, ...) *DisksRemoveResourcePoliciesCall
- func (r *DisksService) Resize(project string, zone string, disk string, ...) *DisksResizeCall
- func (r *DisksService) SetIamPolicy(project string, zone string, resource string, ...) *DisksSetIamPolicyCall
- func (r *DisksService) SetLabels(project string, zone string, resource string, ...) *DisksSetLabelsCall
- func (r *DisksService) StartAsyncReplication(project string, zone string, disk string, ...) *DisksStartAsyncReplicationCall
- func (r *DisksService) StopAsyncReplication(project string, zone string, disk string) *DisksStopAsyncReplicationCall
- func (r *DisksService) StopGroupAsyncReplication(project string, zone string, ...) *DisksStopGroupAsyncReplicationCall
- func (r *DisksService) TestIamPermissions(project string, zone string, resource string, ...) *DisksTestIamPermissionsCall
- func (r *DisksService) Update(project string, zone string, disk string, disk2 *Disk) *DisksUpdateCall
- type DisksSetIamPolicyCall
- func (c *DisksSetIamPolicyCall) Context(ctx context.Context) *DisksSetIamPolicyCall
- func (c *DisksSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *DisksSetIamPolicyCall) Fields(s ...googleapi.Field) *DisksSetIamPolicyCall
- func (c *DisksSetIamPolicyCall) Header() http.Header
- type DisksSetLabelsCall
- func (c *DisksSetLabelsCall) Context(ctx context.Context) *DisksSetLabelsCall
- func (c *DisksSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *DisksSetLabelsCall) Fields(s ...googleapi.Field) *DisksSetLabelsCall
- func (c *DisksSetLabelsCall) Header() http.Header
- func (c *DisksSetLabelsCall) RequestId(requestId string) *DisksSetLabelsCall
- type DisksStartAsyncReplicationCall
- func (c *DisksStartAsyncReplicationCall) Context(ctx context.Context) *DisksStartAsyncReplicationCall
- func (c *DisksStartAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *DisksStartAsyncReplicationCall) Fields(s ...googleapi.Field) *DisksStartAsyncReplicationCall
- func (c *DisksStartAsyncReplicationCall) Header() http.Header
- func (c *DisksStartAsyncReplicationCall) RequestId(requestId string) *DisksStartAsyncReplicationCall
- type DisksStartAsyncReplicationRequest
- type DisksStopAsyncReplicationCall
- func (c *DisksStopAsyncReplicationCall) Context(ctx context.Context) *DisksStopAsyncReplicationCall
- func (c *DisksStopAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *DisksStopAsyncReplicationCall) Fields(s ...googleapi.Field) *DisksStopAsyncReplicationCall
- func (c *DisksStopAsyncReplicationCall) Header() http.Header
- func (c *DisksStopAsyncReplicationCall) RequestId(requestId string) *DisksStopAsyncReplicationCall
- type DisksStopGroupAsyncReplicationCall
- func (c *DisksStopGroupAsyncReplicationCall) Context(ctx context.Context) *DisksStopGroupAsyncReplicationCall
- func (c *DisksStopGroupAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *DisksStopGroupAsyncReplicationCall) Fields(s ...googleapi.Field) *DisksStopGroupAsyncReplicationCall
- func (c *DisksStopGroupAsyncReplicationCall) Header() http.Header
- func (c *DisksStopGroupAsyncReplicationCall) RequestId(requestId string) *DisksStopGroupAsyncReplicationCall
- type DisksStopGroupAsyncReplicationResource
- type DisksTestIamPermissionsCall
- func (c *DisksTestIamPermissionsCall) Context(ctx context.Context) *DisksTestIamPermissionsCall
- func (c *DisksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *DisksTestIamPermissionsCall) Fields(s ...googleapi.Field) *DisksTestIamPermissionsCall
- func (c *DisksTestIamPermissionsCall) Header() http.Header
- type DisksUpdateCall
- func (c *DisksUpdateCall) Context(ctx context.Context) *DisksUpdateCall
- func (c *DisksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *DisksUpdateCall) Fields(s ...googleapi.Field) *DisksUpdateCall
- func (c *DisksUpdateCall) Header() http.Header
- func (c *DisksUpdateCall) Paths(paths ...string) *DisksUpdateCall
- func (c *DisksUpdateCall) RequestId(requestId string) *DisksUpdateCall
- func (c *DisksUpdateCall) UpdateMask(updateMask string) *DisksUpdateCall
- type DisplayDevice
- type DistributionPolicy
- type DistributionPolicyZoneConfiguration
- type Duration
- type ErrorInfo
- type ExchangedPeeringRoute
- type ExchangedPeeringRoutesList
- type ExchangedPeeringRoutesListWarning
- type ExchangedPeeringRoutesListWarningData
- type Expr
- type ExternalVpnGateway
- type ExternalVpnGatewayInterface
- type ExternalVpnGatewayList
- type ExternalVpnGatewayListWarning
- type ExternalVpnGatewayListWarningData
- type ExternalVpnGatewaysDeleteCall
- func (c *ExternalVpnGatewaysDeleteCall) Context(ctx context.Context) *ExternalVpnGatewaysDeleteCall
- func (c *ExternalVpnGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ExternalVpnGatewaysDeleteCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysDeleteCall
- func (c *ExternalVpnGatewaysDeleteCall) Header() http.Header
- func (c *ExternalVpnGatewaysDeleteCall) RequestId(requestId string) *ExternalVpnGatewaysDeleteCall
- type ExternalVpnGatewaysGetCall
- func (c *ExternalVpnGatewaysGetCall) Context(ctx context.Context) *ExternalVpnGatewaysGetCall
- func (c *ExternalVpnGatewaysGetCall) Do(opts ...googleapi.CallOption) (*ExternalVpnGateway, error)
- func (c *ExternalVpnGatewaysGetCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysGetCall
- func (c *ExternalVpnGatewaysGetCall) Header() http.Header
- func (c *ExternalVpnGatewaysGetCall) IfNoneMatch(entityTag string) *ExternalVpnGatewaysGetCall
- type ExternalVpnGatewaysInsertCall
- func (c *ExternalVpnGatewaysInsertCall) Context(ctx context.Context) *ExternalVpnGatewaysInsertCall
- func (c *ExternalVpnGatewaysInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ExternalVpnGatewaysInsertCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysInsertCall
- func (c *ExternalVpnGatewaysInsertCall) Header() http.Header
- func (c *ExternalVpnGatewaysInsertCall) RequestId(requestId string) *ExternalVpnGatewaysInsertCall
- type ExternalVpnGatewaysListCall
- func (c *ExternalVpnGatewaysListCall) Context(ctx context.Context) *ExternalVpnGatewaysListCall
- func (c *ExternalVpnGatewaysListCall) Do(opts ...googleapi.CallOption) (*ExternalVpnGatewayList, error)
- func (c *ExternalVpnGatewaysListCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysListCall
- func (c *ExternalVpnGatewaysListCall) Filter(filter string) *ExternalVpnGatewaysListCall
- func (c *ExternalVpnGatewaysListCall) Header() http.Header
- func (c *ExternalVpnGatewaysListCall) IfNoneMatch(entityTag string) *ExternalVpnGatewaysListCall
- func (c *ExternalVpnGatewaysListCall) MaxResults(maxResults int64) *ExternalVpnGatewaysListCall
- func (c *ExternalVpnGatewaysListCall) OrderBy(orderBy string) *ExternalVpnGatewaysListCall
- func (c *ExternalVpnGatewaysListCall) PageToken(pageToken string) *ExternalVpnGatewaysListCall
- func (c *ExternalVpnGatewaysListCall) Pages(ctx context.Context, f func(*ExternalVpnGatewayList) error) error
- func (c *ExternalVpnGatewaysListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ExternalVpnGatewaysListCall
- type ExternalVpnGatewaysService
- func (r *ExternalVpnGatewaysService) Delete(project string, externalVpnGateway string) *ExternalVpnGatewaysDeleteCall
- func (r *ExternalVpnGatewaysService) Get(project string, externalVpnGateway string) *ExternalVpnGatewaysGetCall
- func (r *ExternalVpnGatewaysService) Insert(project string, externalvpngateway *ExternalVpnGateway) *ExternalVpnGatewaysInsertCall
- func (r *ExternalVpnGatewaysService) List(project string) *ExternalVpnGatewaysListCall
- func (r *ExternalVpnGatewaysService) SetLabels(project string, resource string, ...) *ExternalVpnGatewaysSetLabelsCall
- func (r *ExternalVpnGatewaysService) TestIamPermissions(project string, resource string, ...) *ExternalVpnGatewaysTestIamPermissionsCall
- type ExternalVpnGatewaysSetLabelsCall
- func (c *ExternalVpnGatewaysSetLabelsCall) Context(ctx context.Context) *ExternalVpnGatewaysSetLabelsCall
- func (c *ExternalVpnGatewaysSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ExternalVpnGatewaysSetLabelsCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysSetLabelsCall
- func (c *ExternalVpnGatewaysSetLabelsCall) Header() http.Header
- type ExternalVpnGatewaysTestIamPermissionsCall
- func (c *ExternalVpnGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ExternalVpnGatewaysTestIamPermissionsCall
- func (c *ExternalVpnGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *ExternalVpnGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysTestIamPermissionsCall
- func (c *ExternalVpnGatewaysTestIamPermissionsCall) Header() http.Header
- type FileContentBuffer
- type Firewall
- type FirewallAllowed
- type FirewallDenied
- type FirewallList
- type FirewallListWarning
- type FirewallListWarningData
- type FirewallLogConfig
- type FirewallPoliciesAddAssociationCall
- func (c *FirewallPoliciesAddAssociationCall) Context(ctx context.Context) *FirewallPoliciesAddAssociationCall
- func (c *FirewallPoliciesAddAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FirewallPoliciesAddAssociationCall) Fields(s ...googleapi.Field) *FirewallPoliciesAddAssociationCall
- func (c *FirewallPoliciesAddAssociationCall) Header() http.Header
- func (c *FirewallPoliciesAddAssociationCall) ReplaceExistingAssociation(replaceExistingAssociation bool) *FirewallPoliciesAddAssociationCall
- func (c *FirewallPoliciesAddAssociationCall) RequestId(requestId string) *FirewallPoliciesAddAssociationCall
- type FirewallPoliciesAddRuleCall
- func (c *FirewallPoliciesAddRuleCall) Context(ctx context.Context) *FirewallPoliciesAddRuleCall
- func (c *FirewallPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FirewallPoliciesAddRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesAddRuleCall
- func (c *FirewallPoliciesAddRuleCall) Header() http.Header
- func (c *FirewallPoliciesAddRuleCall) RequestId(requestId string) *FirewallPoliciesAddRuleCall
- type FirewallPoliciesCloneRulesCall
- func (c *FirewallPoliciesCloneRulesCall) Context(ctx context.Context) *FirewallPoliciesCloneRulesCall
- func (c *FirewallPoliciesCloneRulesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FirewallPoliciesCloneRulesCall) Fields(s ...googleapi.Field) *FirewallPoliciesCloneRulesCall
- func (c *FirewallPoliciesCloneRulesCall) Header() http.Header
- func (c *FirewallPoliciesCloneRulesCall) RequestId(requestId string) *FirewallPoliciesCloneRulesCall
- func (c *FirewallPoliciesCloneRulesCall) SourceFirewallPolicy(sourceFirewallPolicy string) *FirewallPoliciesCloneRulesCall
- type FirewallPoliciesDeleteCall
- func (c *FirewallPoliciesDeleteCall) Context(ctx context.Context) *FirewallPoliciesDeleteCall
- func (c *FirewallPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FirewallPoliciesDeleteCall) Fields(s ...googleapi.Field) *FirewallPoliciesDeleteCall
- func (c *FirewallPoliciesDeleteCall) Header() http.Header
- func (c *FirewallPoliciesDeleteCall) RequestId(requestId string) *FirewallPoliciesDeleteCall
- type FirewallPoliciesGetAssociationCall
- func (c *FirewallPoliciesGetAssociationCall) Context(ctx context.Context) *FirewallPoliciesGetAssociationCall
- func (c *FirewallPoliciesGetAssociationCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyAssociation, error)
- func (c *FirewallPoliciesGetAssociationCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetAssociationCall
- func (c *FirewallPoliciesGetAssociationCall) Header() http.Header
- func (c *FirewallPoliciesGetAssociationCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetAssociationCall
- func (c *FirewallPoliciesGetAssociationCall) Name(name string) *FirewallPoliciesGetAssociationCall
- type FirewallPoliciesGetCall
- func (c *FirewallPoliciesGetCall) Context(ctx context.Context) *FirewallPoliciesGetCall
- func (c *FirewallPoliciesGetCall) Do(opts ...googleapi.CallOption) (*FirewallPolicy, error)
- func (c *FirewallPoliciesGetCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetCall
- func (c *FirewallPoliciesGetCall) Header() http.Header
- func (c *FirewallPoliciesGetCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetCall
- type FirewallPoliciesGetIamPolicyCall
- func (c *FirewallPoliciesGetIamPolicyCall) Context(ctx context.Context) *FirewallPoliciesGetIamPolicyCall
- func (c *FirewallPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *FirewallPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetIamPolicyCall
- func (c *FirewallPoliciesGetIamPolicyCall) Header() http.Header
- func (c *FirewallPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetIamPolicyCall
- func (c *FirewallPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *FirewallPoliciesGetIamPolicyCall
- type FirewallPoliciesGetRuleCall
- func (c *FirewallPoliciesGetRuleCall) Context(ctx context.Context) *FirewallPoliciesGetRuleCall
- func (c *FirewallPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyRule, error)
- func (c *FirewallPoliciesGetRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetRuleCall
- func (c *FirewallPoliciesGetRuleCall) Header() http.Header
- func (c *FirewallPoliciesGetRuleCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetRuleCall
- func (c *FirewallPoliciesGetRuleCall) Priority(priority int64) *FirewallPoliciesGetRuleCall
- type FirewallPoliciesInsertCall
- func (c *FirewallPoliciesInsertCall) Context(ctx context.Context) *FirewallPoliciesInsertCall
- func (c *FirewallPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FirewallPoliciesInsertCall) Fields(s ...googleapi.Field) *FirewallPoliciesInsertCall
- func (c *FirewallPoliciesInsertCall) Header() http.Header
- func (c *FirewallPoliciesInsertCall) ParentId(parentId string) *FirewallPoliciesInsertCall
- func (c *FirewallPoliciesInsertCall) RequestId(requestId string) *FirewallPoliciesInsertCall
- type FirewallPoliciesListAssociationsCall
- func (c *FirewallPoliciesListAssociationsCall) Context(ctx context.Context) *FirewallPoliciesListAssociationsCall
- func (c *FirewallPoliciesListAssociationsCall) Do(opts ...googleapi.CallOption) (*FirewallPoliciesListAssociationsResponse, error)
- func (c *FirewallPoliciesListAssociationsCall) Fields(s ...googleapi.Field) *FirewallPoliciesListAssociationsCall
- func (c *FirewallPoliciesListAssociationsCall) Header() http.Header
- func (c *FirewallPoliciesListAssociationsCall) IfNoneMatch(entityTag string) *FirewallPoliciesListAssociationsCall
- func (c *FirewallPoliciesListAssociationsCall) TargetResource(targetResource string) *FirewallPoliciesListAssociationsCall
- type FirewallPoliciesListAssociationsResponse
- type FirewallPoliciesListCall
- func (c *FirewallPoliciesListCall) Context(ctx context.Context) *FirewallPoliciesListCall
- func (c *FirewallPoliciesListCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyList, error)
- func (c *FirewallPoliciesListCall) Fields(s ...googleapi.Field) *FirewallPoliciesListCall
- func (c *FirewallPoliciesListCall) Filter(filter string) *FirewallPoliciesListCall
- func (c *FirewallPoliciesListCall) Header() http.Header
- func (c *FirewallPoliciesListCall) IfNoneMatch(entityTag string) *FirewallPoliciesListCall
- func (c *FirewallPoliciesListCall) MaxResults(maxResults int64) *FirewallPoliciesListCall
- func (c *FirewallPoliciesListCall) OrderBy(orderBy string) *FirewallPoliciesListCall
- func (c *FirewallPoliciesListCall) PageToken(pageToken string) *FirewallPoliciesListCall
- func (c *FirewallPoliciesListCall) Pages(ctx context.Context, f func(*FirewallPolicyList) error) error
- func (c *FirewallPoliciesListCall) ParentId(parentId string) *FirewallPoliciesListCall
- func (c *FirewallPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *FirewallPoliciesListCall
- type FirewallPoliciesMoveCall
- func (c *FirewallPoliciesMoveCall) Context(ctx context.Context) *FirewallPoliciesMoveCall
- func (c *FirewallPoliciesMoveCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FirewallPoliciesMoveCall) Fields(s ...googleapi.Field) *FirewallPoliciesMoveCall
- func (c *FirewallPoliciesMoveCall) Header() http.Header
- func (c *FirewallPoliciesMoveCall) ParentId(parentId string) *FirewallPoliciesMoveCall
- func (c *FirewallPoliciesMoveCall) RequestId(requestId string) *FirewallPoliciesMoveCall
- type FirewallPoliciesPatchCall
- func (c *FirewallPoliciesPatchCall) Context(ctx context.Context) *FirewallPoliciesPatchCall
- func (c *FirewallPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FirewallPoliciesPatchCall) Fields(s ...googleapi.Field) *FirewallPoliciesPatchCall
- func (c *FirewallPoliciesPatchCall) Header() http.Header
- func (c *FirewallPoliciesPatchCall) RequestId(requestId string) *FirewallPoliciesPatchCall
- type FirewallPoliciesPatchRuleCall
- func (c *FirewallPoliciesPatchRuleCall) Context(ctx context.Context) *FirewallPoliciesPatchRuleCall
- func (c *FirewallPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FirewallPoliciesPatchRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesPatchRuleCall
- func (c *FirewallPoliciesPatchRuleCall) Header() http.Header
- func (c *FirewallPoliciesPatchRuleCall) Priority(priority int64) *FirewallPoliciesPatchRuleCall
- func (c *FirewallPoliciesPatchRuleCall) RequestId(requestId string) *FirewallPoliciesPatchRuleCall
- type FirewallPoliciesRemoveAssociationCall
- func (c *FirewallPoliciesRemoveAssociationCall) Context(ctx context.Context) *FirewallPoliciesRemoveAssociationCall
- func (c *FirewallPoliciesRemoveAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FirewallPoliciesRemoveAssociationCall) Fields(s ...googleapi.Field) *FirewallPoliciesRemoveAssociationCall
- func (c *FirewallPoliciesRemoveAssociationCall) Header() http.Header
- func (c *FirewallPoliciesRemoveAssociationCall) Name(name string) *FirewallPoliciesRemoveAssociationCall
- func (c *FirewallPoliciesRemoveAssociationCall) RequestId(requestId string) *FirewallPoliciesRemoveAssociationCall
- type FirewallPoliciesRemoveRuleCall
- func (c *FirewallPoliciesRemoveRuleCall) Context(ctx context.Context) *FirewallPoliciesRemoveRuleCall
- func (c *FirewallPoliciesRemoveRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FirewallPoliciesRemoveRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesRemoveRuleCall
- func (c *FirewallPoliciesRemoveRuleCall) Header() http.Header
- func (c *FirewallPoliciesRemoveRuleCall) Priority(priority int64) *FirewallPoliciesRemoveRuleCall
- func (c *FirewallPoliciesRemoveRuleCall) RequestId(requestId string) *FirewallPoliciesRemoveRuleCall
- type FirewallPoliciesService
- func (r *FirewallPoliciesService) AddAssociation(firewallPolicy string, firewallpolicyassociation *FirewallPolicyAssociation) *FirewallPoliciesAddAssociationCall
- func (r *FirewallPoliciesService) AddRule(firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *FirewallPoliciesAddRuleCall
- func (r *FirewallPoliciesService) CloneRules(firewallPolicy string) *FirewallPoliciesCloneRulesCall
- func (r *FirewallPoliciesService) Delete(firewallPolicy string) *FirewallPoliciesDeleteCall
- func (r *FirewallPoliciesService) Get(firewallPolicy string) *FirewallPoliciesGetCall
- func (r *FirewallPoliciesService) GetAssociation(firewallPolicy string) *FirewallPoliciesGetAssociationCall
- func (r *FirewallPoliciesService) GetIamPolicy(resource string) *FirewallPoliciesGetIamPolicyCall
- func (r *FirewallPoliciesService) GetRule(firewallPolicy string) *FirewallPoliciesGetRuleCall
- func (r *FirewallPoliciesService) Insert(firewallpolicy *FirewallPolicy) *FirewallPoliciesInsertCall
- func (r *FirewallPoliciesService) List() *FirewallPoliciesListCall
- func (r *FirewallPoliciesService) ListAssociations() *FirewallPoliciesListAssociationsCall
- func (r *FirewallPoliciesService) Move(firewallPolicy string) *FirewallPoliciesMoveCall
- func (r *FirewallPoliciesService) Patch(firewallPolicy string, firewallpolicy *FirewallPolicy) *FirewallPoliciesPatchCall
- func (r *FirewallPoliciesService) PatchRule(firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *FirewallPoliciesPatchRuleCall
- func (r *FirewallPoliciesService) RemoveAssociation(firewallPolicy string) *FirewallPoliciesRemoveAssociationCall
- func (r *FirewallPoliciesService) RemoveRule(firewallPolicy string) *FirewallPoliciesRemoveRuleCall
- func (r *FirewallPoliciesService) SetIamPolicy(resource string, ...) *FirewallPoliciesSetIamPolicyCall
- func (r *FirewallPoliciesService) TestIamPermissions(resource string, testpermissionsrequest *TestPermissionsRequest) *FirewallPoliciesTestIamPermissionsCall
- type FirewallPoliciesSetIamPolicyCall
- func (c *FirewallPoliciesSetIamPolicyCall) Context(ctx context.Context) *FirewallPoliciesSetIamPolicyCall
- func (c *FirewallPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *FirewallPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *FirewallPoliciesSetIamPolicyCall
- func (c *FirewallPoliciesSetIamPolicyCall) Header() http.Header
- type FirewallPoliciesTestIamPermissionsCall
- func (c *FirewallPoliciesTestIamPermissionsCall) Context(ctx context.Context) *FirewallPoliciesTestIamPermissionsCall
- func (c *FirewallPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *FirewallPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *FirewallPoliciesTestIamPermissionsCall
- func (c *FirewallPoliciesTestIamPermissionsCall) Header() http.Header
- type FirewallPolicy
- type FirewallPolicyAssociation
- type FirewallPolicyList
- type FirewallPolicyListWarning
- type FirewallPolicyListWarningData
- type FirewallPolicyRule
- type FirewallPolicyRuleMatcher
- type FirewallPolicyRuleMatcherLayer4Config
- type FirewallPolicyRuleSecureTag
- type FirewallsDeleteCall
- func (c *FirewallsDeleteCall) Context(ctx context.Context) *FirewallsDeleteCall
- func (c *FirewallsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FirewallsDeleteCall) Fields(s ...googleapi.Field) *FirewallsDeleteCall
- func (c *FirewallsDeleteCall) Header() http.Header
- func (c *FirewallsDeleteCall) RequestId(requestId string) *FirewallsDeleteCall
- type FirewallsGetCall
- func (c *FirewallsGetCall) Context(ctx context.Context) *FirewallsGetCall
- func (c *FirewallsGetCall) Do(opts ...googleapi.CallOption) (*Firewall, error)
- func (c *FirewallsGetCall) Fields(s ...googleapi.Field) *FirewallsGetCall
- func (c *FirewallsGetCall) Header() http.Header
- func (c *FirewallsGetCall) IfNoneMatch(entityTag string) *FirewallsGetCall
- type FirewallsInsertCall
- func (c *FirewallsInsertCall) Context(ctx context.Context) *FirewallsInsertCall
- func (c *FirewallsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FirewallsInsertCall) Fields(s ...googleapi.Field) *FirewallsInsertCall
- func (c *FirewallsInsertCall) Header() http.Header
- func (c *FirewallsInsertCall) RequestId(requestId string) *FirewallsInsertCall
- type FirewallsListCall
- func (c *FirewallsListCall) Context(ctx context.Context) *FirewallsListCall
- func (c *FirewallsListCall) Do(opts ...googleapi.CallOption) (*FirewallList, error)
- func (c *FirewallsListCall) Fields(s ...googleapi.Field) *FirewallsListCall
- func (c *FirewallsListCall) Filter(filter string) *FirewallsListCall
- func (c *FirewallsListCall) Header() http.Header
- func (c *FirewallsListCall) IfNoneMatch(entityTag string) *FirewallsListCall
- func (c *FirewallsListCall) MaxResults(maxResults int64) *FirewallsListCall
- func (c *FirewallsListCall) OrderBy(orderBy string) *FirewallsListCall
- func (c *FirewallsListCall) PageToken(pageToken string) *FirewallsListCall
- func (c *FirewallsListCall) Pages(ctx context.Context, f func(*FirewallList) error) error
- func (c *FirewallsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *FirewallsListCall
- type FirewallsPatchCall
- func (c *FirewallsPatchCall) Context(ctx context.Context) *FirewallsPatchCall
- func (c *FirewallsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FirewallsPatchCall) Fields(s ...googleapi.Field) *FirewallsPatchCall
- func (c *FirewallsPatchCall) Header() http.Header
- func (c *FirewallsPatchCall) RequestId(requestId string) *FirewallsPatchCall
- type FirewallsService
- func (r *FirewallsService) Delete(project string, firewall string) *FirewallsDeleteCall
- func (r *FirewallsService) Get(project string, firewall string) *FirewallsGetCall
- func (r *FirewallsService) Insert(project string, firewall *Firewall) *FirewallsInsertCall
- func (r *FirewallsService) List(project string) *FirewallsListCall
- func (r *FirewallsService) Patch(project string, firewall string, firewall2 *Firewall) *FirewallsPatchCall
- func (r *FirewallsService) Update(project string, firewall string, firewall2 *Firewall) *FirewallsUpdateCall
- type FirewallsUpdateCall
- func (c *FirewallsUpdateCall) Context(ctx context.Context) *FirewallsUpdateCall
- func (c *FirewallsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FirewallsUpdateCall) Fields(s ...googleapi.Field) *FirewallsUpdateCall
- func (c *FirewallsUpdateCall) Header() http.Header
- func (c *FirewallsUpdateCall) RequestId(requestId string) *FirewallsUpdateCall
- type FixedOrPercent
- type ForwardingRule
- type ForwardingRuleAggregatedList
- type ForwardingRuleAggregatedListWarning
- type ForwardingRuleAggregatedListWarningData
- type ForwardingRuleList
- type ForwardingRuleListWarning
- type ForwardingRuleListWarningData
- type ForwardingRuleReference
- type ForwardingRuleServiceDirectoryRegistration
- type ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) Context(ctx context.Context) *ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) Do(opts ...googleapi.CallOption) (*ForwardingRuleAggregatedList, error)
- func (c *ForwardingRulesAggregatedListCall) Fields(s ...googleapi.Field) *ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) Filter(filter string) *ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) Header() http.Header
- func (c *ForwardingRulesAggregatedListCall) IfNoneMatch(entityTag string) *ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) MaxResults(maxResults int64) *ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) OrderBy(orderBy string) *ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) PageToken(pageToken string) *ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) Pages(ctx context.Context, f func(*ForwardingRuleAggregatedList) error) error
- func (c *ForwardingRulesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *ForwardingRulesAggregatedListCall
- type ForwardingRulesDeleteCall
- func (c *ForwardingRulesDeleteCall) Context(ctx context.Context) *ForwardingRulesDeleteCall
- func (c *ForwardingRulesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ForwardingRulesDeleteCall) Fields(s ...googleapi.Field) *ForwardingRulesDeleteCall
- func (c *ForwardingRulesDeleteCall) Header() http.Header
- func (c *ForwardingRulesDeleteCall) RequestId(requestId string) *ForwardingRulesDeleteCall
- type ForwardingRulesGetCall
- func (c *ForwardingRulesGetCall) Context(ctx context.Context) *ForwardingRulesGetCall
- func (c *ForwardingRulesGetCall) Do(opts ...googleapi.CallOption) (*ForwardingRule, error)
- func (c *ForwardingRulesGetCall) Fields(s ...googleapi.Field) *ForwardingRulesGetCall
- func (c *ForwardingRulesGetCall) Header() http.Header
- func (c *ForwardingRulesGetCall) IfNoneMatch(entityTag string) *ForwardingRulesGetCall
- type ForwardingRulesInsertCall
- func (c *ForwardingRulesInsertCall) Context(ctx context.Context) *ForwardingRulesInsertCall
- func (c *ForwardingRulesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ForwardingRulesInsertCall) Fields(s ...googleapi.Field) *ForwardingRulesInsertCall
- func (c *ForwardingRulesInsertCall) Header() http.Header
- func (c *ForwardingRulesInsertCall) RequestId(requestId string) *ForwardingRulesInsertCall
- type ForwardingRulesListCall
- func (c *ForwardingRulesListCall) Context(ctx context.Context) *ForwardingRulesListCall
- func (c *ForwardingRulesListCall) Do(opts ...googleapi.CallOption) (*ForwardingRuleList, error)
- func (c *ForwardingRulesListCall) Fields(s ...googleapi.Field) *ForwardingRulesListCall
- func (c *ForwardingRulesListCall) Filter(filter string) *ForwardingRulesListCall
- func (c *ForwardingRulesListCall) Header() http.Header
- func (c *ForwardingRulesListCall) IfNoneMatch(entityTag string) *ForwardingRulesListCall
- func (c *ForwardingRulesListCall) MaxResults(maxResults int64) *ForwardingRulesListCall
- func (c *ForwardingRulesListCall) OrderBy(orderBy string) *ForwardingRulesListCall
- func (c *ForwardingRulesListCall) PageToken(pageToken string) *ForwardingRulesListCall
- func (c *ForwardingRulesListCall) Pages(ctx context.Context, f func(*ForwardingRuleList) error) error
- func (c *ForwardingRulesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ForwardingRulesListCall
- type ForwardingRulesPatchCall
- func (c *ForwardingRulesPatchCall) Context(ctx context.Context) *ForwardingRulesPatchCall
- func (c *ForwardingRulesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ForwardingRulesPatchCall) Fields(s ...googleapi.Field) *ForwardingRulesPatchCall
- func (c *ForwardingRulesPatchCall) Header() http.Header
- func (c *ForwardingRulesPatchCall) RequestId(requestId string) *ForwardingRulesPatchCall
- type ForwardingRulesScopedList
- type ForwardingRulesScopedListWarning
- type ForwardingRulesScopedListWarningData
- type ForwardingRulesService
- func (r *ForwardingRulesService) AggregatedList(project string) *ForwardingRulesAggregatedListCall
- func (r *ForwardingRulesService) Delete(project string, region string, forwardingRule string) *ForwardingRulesDeleteCall
- func (r *ForwardingRulesService) Get(project string, region string, forwardingRule string) *ForwardingRulesGetCall
- func (r *ForwardingRulesService) Insert(project string, region string, forwardingrule *ForwardingRule) *ForwardingRulesInsertCall
- func (r *ForwardingRulesService) List(project string, region string) *ForwardingRulesListCall
- func (r *ForwardingRulesService) Patch(project string, region string, forwardingRule string, ...) *ForwardingRulesPatchCall
- func (r *ForwardingRulesService) SetLabels(project string, region string, resource string, ...) *ForwardingRulesSetLabelsCall
- func (r *ForwardingRulesService) SetTarget(project string, region string, forwardingRule string, ...) *ForwardingRulesSetTargetCall
- type ForwardingRulesSetLabelsCall
- func (c *ForwardingRulesSetLabelsCall) Context(ctx context.Context) *ForwardingRulesSetLabelsCall
- func (c *ForwardingRulesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ForwardingRulesSetLabelsCall) Fields(s ...googleapi.Field) *ForwardingRulesSetLabelsCall
- func (c *ForwardingRulesSetLabelsCall) Header() http.Header
- func (c *ForwardingRulesSetLabelsCall) RequestId(requestId string) *ForwardingRulesSetLabelsCall
- type ForwardingRulesSetTargetCall
- func (c *ForwardingRulesSetTargetCall) Context(ctx context.Context) *ForwardingRulesSetTargetCall
- func (c *ForwardingRulesSetTargetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ForwardingRulesSetTargetCall) Fields(s ...googleapi.Field) *ForwardingRulesSetTargetCall
- func (c *ForwardingRulesSetTargetCall) Header() http.Header
- func (c *ForwardingRulesSetTargetCall) RequestId(requestId string) *ForwardingRulesSetTargetCall
- type FutureReservation
- type FutureReservationSpecificSKUProperties
- type FutureReservationStatus
- type FutureReservationStatusExistingMatchingUsageInfo
- type FutureReservationStatusLastKnownGoodState
- type FutureReservationStatusLastKnownGoodStateFutureReservationSpecs
- type FutureReservationStatusSpecificSKUProperties
- type FutureReservationTimeWindow
- type FutureReservationsAggregatedListCall
- func (c *FutureReservationsAggregatedListCall) Context(ctx context.Context) *FutureReservationsAggregatedListCall
- func (c *FutureReservationsAggregatedListCall) Do(opts ...googleapi.CallOption) (*FutureReservationsAggregatedListResponse, error)
- func (c *FutureReservationsAggregatedListCall) Fields(s ...googleapi.Field) *FutureReservationsAggregatedListCall
- func (c *FutureReservationsAggregatedListCall) Filter(filter string) *FutureReservationsAggregatedListCall
- func (c *FutureReservationsAggregatedListCall) Header() http.Header
- func (c *FutureReservationsAggregatedListCall) IfNoneMatch(entityTag string) *FutureReservationsAggregatedListCall
- func (c *FutureReservationsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *FutureReservationsAggregatedListCall
- func (c *FutureReservationsAggregatedListCall) MaxResults(maxResults int64) *FutureReservationsAggregatedListCall
- func (c *FutureReservationsAggregatedListCall) OrderBy(orderBy string) *FutureReservationsAggregatedListCall
- func (c *FutureReservationsAggregatedListCall) PageToken(pageToken string) *FutureReservationsAggregatedListCall
- func (c *FutureReservationsAggregatedListCall) Pages(ctx context.Context, f func(*FutureReservationsAggregatedListResponse) error) error
- func (c *FutureReservationsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *FutureReservationsAggregatedListCall
- func (c *FutureReservationsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *FutureReservationsAggregatedListCall
- type FutureReservationsAggregatedListResponse
- type FutureReservationsAggregatedListResponseWarning
- type FutureReservationsAggregatedListResponseWarningData
- type FutureReservationsCancelCall
- func (c *FutureReservationsCancelCall) Context(ctx context.Context) *FutureReservationsCancelCall
- func (c *FutureReservationsCancelCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FutureReservationsCancelCall) Fields(s ...googleapi.Field) *FutureReservationsCancelCall
- func (c *FutureReservationsCancelCall) Header() http.Header
- func (c *FutureReservationsCancelCall) RequestId(requestId string) *FutureReservationsCancelCall
- type FutureReservationsDeleteCall
- func (c *FutureReservationsDeleteCall) Context(ctx context.Context) *FutureReservationsDeleteCall
- func (c *FutureReservationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FutureReservationsDeleteCall) Fields(s ...googleapi.Field) *FutureReservationsDeleteCall
- func (c *FutureReservationsDeleteCall) Header() http.Header
- func (c *FutureReservationsDeleteCall) RequestId(requestId string) *FutureReservationsDeleteCall
- type FutureReservationsGetCall
- func (c *FutureReservationsGetCall) Context(ctx context.Context) *FutureReservationsGetCall
- func (c *FutureReservationsGetCall) Do(opts ...googleapi.CallOption) (*FutureReservation, error)
- func (c *FutureReservationsGetCall) Fields(s ...googleapi.Field) *FutureReservationsGetCall
- func (c *FutureReservationsGetCall) Header() http.Header
- func (c *FutureReservationsGetCall) IfNoneMatch(entityTag string) *FutureReservationsGetCall
- type FutureReservationsInsertCall
- func (c *FutureReservationsInsertCall) Context(ctx context.Context) *FutureReservationsInsertCall
- func (c *FutureReservationsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FutureReservationsInsertCall) Fields(s ...googleapi.Field) *FutureReservationsInsertCall
- func (c *FutureReservationsInsertCall) Header() http.Header
- func (c *FutureReservationsInsertCall) RequestId(requestId string) *FutureReservationsInsertCall
- type FutureReservationsListCall
- func (c *FutureReservationsListCall) Context(ctx context.Context) *FutureReservationsListCall
- func (c *FutureReservationsListCall) Do(opts ...googleapi.CallOption) (*FutureReservationsListResponse, error)
- func (c *FutureReservationsListCall) Fields(s ...googleapi.Field) *FutureReservationsListCall
- func (c *FutureReservationsListCall) Filter(filter string) *FutureReservationsListCall
- func (c *FutureReservationsListCall) Header() http.Header
- func (c *FutureReservationsListCall) IfNoneMatch(entityTag string) *FutureReservationsListCall
- func (c *FutureReservationsListCall) MaxResults(maxResults int64) *FutureReservationsListCall
- func (c *FutureReservationsListCall) OrderBy(orderBy string) *FutureReservationsListCall
- func (c *FutureReservationsListCall) PageToken(pageToken string) *FutureReservationsListCall
- func (c *FutureReservationsListCall) Pages(ctx context.Context, f func(*FutureReservationsListResponse) error) error
- func (c *FutureReservationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *FutureReservationsListCall
- type FutureReservationsListResponse
- type FutureReservationsListResponseWarning
- type FutureReservationsListResponseWarningData
- type FutureReservationsScopedList
- type FutureReservationsScopedListWarning
- type FutureReservationsScopedListWarningData
- type FutureReservationsService
- func (r *FutureReservationsService) AggregatedList(project string) *FutureReservationsAggregatedListCall
- func (r *FutureReservationsService) Cancel(project string, zone string, futureReservation string) *FutureReservationsCancelCall
- func (r *FutureReservationsService) Delete(project string, zone string, futureReservation string) *FutureReservationsDeleteCall
- func (r *FutureReservationsService) Get(project string, zone string, futureReservation string) *FutureReservationsGetCall
- func (r *FutureReservationsService) Insert(project string, zone string, futurereservation *FutureReservation) *FutureReservationsInsertCall
- func (r *FutureReservationsService) List(project string, zone string) *FutureReservationsListCall
- func (r *FutureReservationsService) Update(project string, zone string, futureReservation string, ...) *FutureReservationsUpdateCall
- type FutureReservationsUpdateCall
- func (c *FutureReservationsUpdateCall) Context(ctx context.Context) *FutureReservationsUpdateCall
- func (c *FutureReservationsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FutureReservationsUpdateCall) Fields(s ...googleapi.Field) *FutureReservationsUpdateCall
- func (c *FutureReservationsUpdateCall) Header() http.Header
- func (c *FutureReservationsUpdateCall) RequestId(requestId string) *FutureReservationsUpdateCall
- func (c *FutureReservationsUpdateCall) UpdateMask(updateMask string) *FutureReservationsUpdateCall
- type GRPCHealthCheck
- type GlobalAddressesDeleteCall
- func (c *GlobalAddressesDeleteCall) Context(ctx context.Context) *GlobalAddressesDeleteCall
- func (c *GlobalAddressesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalAddressesDeleteCall) Fields(s ...googleapi.Field) *GlobalAddressesDeleteCall
- func (c *GlobalAddressesDeleteCall) Header() http.Header
- func (c *GlobalAddressesDeleteCall) RequestId(requestId string) *GlobalAddressesDeleteCall
- type GlobalAddressesGetCall
- func (c *GlobalAddressesGetCall) Context(ctx context.Context) *GlobalAddressesGetCall
- func (c *GlobalAddressesGetCall) Do(opts ...googleapi.CallOption) (*Address, error)
- func (c *GlobalAddressesGetCall) Fields(s ...googleapi.Field) *GlobalAddressesGetCall
- func (c *GlobalAddressesGetCall) Header() http.Header
- func (c *GlobalAddressesGetCall) IfNoneMatch(entityTag string) *GlobalAddressesGetCall
- type GlobalAddressesInsertCall
- func (c *GlobalAddressesInsertCall) Context(ctx context.Context) *GlobalAddressesInsertCall
- func (c *GlobalAddressesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalAddressesInsertCall) Fields(s ...googleapi.Field) *GlobalAddressesInsertCall
- func (c *GlobalAddressesInsertCall) Header() http.Header
- func (c *GlobalAddressesInsertCall) RequestId(requestId string) *GlobalAddressesInsertCall
- type GlobalAddressesListCall
- func (c *GlobalAddressesListCall) Context(ctx context.Context) *GlobalAddressesListCall
- func (c *GlobalAddressesListCall) Do(opts ...googleapi.CallOption) (*AddressList, error)
- func (c *GlobalAddressesListCall) Fields(s ...googleapi.Field) *GlobalAddressesListCall
- func (c *GlobalAddressesListCall) Filter(filter string) *GlobalAddressesListCall
- func (c *GlobalAddressesListCall) Header() http.Header
- func (c *GlobalAddressesListCall) IfNoneMatch(entityTag string) *GlobalAddressesListCall
- func (c *GlobalAddressesListCall) MaxResults(maxResults int64) *GlobalAddressesListCall
- func (c *GlobalAddressesListCall) OrderBy(orderBy string) *GlobalAddressesListCall
- func (c *GlobalAddressesListCall) PageToken(pageToken string) *GlobalAddressesListCall
- func (c *GlobalAddressesListCall) Pages(ctx context.Context, f func(*AddressList) error) error
- func (c *GlobalAddressesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalAddressesListCall
- type GlobalAddressesMoveCall
- func (c *GlobalAddressesMoveCall) Context(ctx context.Context) *GlobalAddressesMoveCall
- func (c *GlobalAddressesMoveCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalAddressesMoveCall) Fields(s ...googleapi.Field) *GlobalAddressesMoveCall
- func (c *GlobalAddressesMoveCall) Header() http.Header
- func (c *GlobalAddressesMoveCall) RequestId(requestId string) *GlobalAddressesMoveCall
- type GlobalAddressesMoveRequest
- type GlobalAddressesService
- func (r *GlobalAddressesService) Delete(project string, address string) *GlobalAddressesDeleteCall
- func (r *GlobalAddressesService) Get(project string, address string) *GlobalAddressesGetCall
- func (r *GlobalAddressesService) Insert(project string, address *Address) *GlobalAddressesInsertCall
- func (r *GlobalAddressesService) List(project string) *GlobalAddressesListCall
- func (r *GlobalAddressesService) Move(project string, address string, ...) *GlobalAddressesMoveCall
- func (r *GlobalAddressesService) SetLabels(project string, resource string, ...) *GlobalAddressesSetLabelsCall
- type GlobalAddressesSetLabelsCall
- func (c *GlobalAddressesSetLabelsCall) Context(ctx context.Context) *GlobalAddressesSetLabelsCall
- func (c *GlobalAddressesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalAddressesSetLabelsCall) Fields(s ...googleapi.Field) *GlobalAddressesSetLabelsCall
- func (c *GlobalAddressesSetLabelsCall) Header() http.Header
- type GlobalForwardingRulesDeleteCall
- func (c *GlobalForwardingRulesDeleteCall) Context(ctx context.Context) *GlobalForwardingRulesDeleteCall
- func (c *GlobalForwardingRulesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalForwardingRulesDeleteCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesDeleteCall
- func (c *GlobalForwardingRulesDeleteCall) Header() http.Header
- func (c *GlobalForwardingRulesDeleteCall) RequestId(requestId string) *GlobalForwardingRulesDeleteCall
- type GlobalForwardingRulesGetCall
- func (c *GlobalForwardingRulesGetCall) Context(ctx context.Context) *GlobalForwardingRulesGetCall
- func (c *GlobalForwardingRulesGetCall) Do(opts ...googleapi.CallOption) (*ForwardingRule, error)
- func (c *GlobalForwardingRulesGetCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesGetCall
- func (c *GlobalForwardingRulesGetCall) Header() http.Header
- func (c *GlobalForwardingRulesGetCall) IfNoneMatch(entityTag string) *GlobalForwardingRulesGetCall
- type GlobalForwardingRulesInsertCall
- func (c *GlobalForwardingRulesInsertCall) Context(ctx context.Context) *GlobalForwardingRulesInsertCall
- func (c *GlobalForwardingRulesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalForwardingRulesInsertCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesInsertCall
- func (c *GlobalForwardingRulesInsertCall) Header() http.Header
- func (c *GlobalForwardingRulesInsertCall) RequestId(requestId string) *GlobalForwardingRulesInsertCall
- type GlobalForwardingRulesListCall
- func (c *GlobalForwardingRulesListCall) Context(ctx context.Context) *GlobalForwardingRulesListCall
- func (c *GlobalForwardingRulesListCall) Do(opts ...googleapi.CallOption) (*ForwardingRuleList, error)
- func (c *GlobalForwardingRulesListCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesListCall
- func (c *GlobalForwardingRulesListCall) Filter(filter string) *GlobalForwardingRulesListCall
- func (c *GlobalForwardingRulesListCall) Header() http.Header
- func (c *GlobalForwardingRulesListCall) IfNoneMatch(entityTag string) *GlobalForwardingRulesListCall
- func (c *GlobalForwardingRulesListCall) MaxResults(maxResults int64) *GlobalForwardingRulesListCall
- func (c *GlobalForwardingRulesListCall) OrderBy(orderBy string) *GlobalForwardingRulesListCall
- func (c *GlobalForwardingRulesListCall) PageToken(pageToken string) *GlobalForwardingRulesListCall
- func (c *GlobalForwardingRulesListCall) Pages(ctx context.Context, f func(*ForwardingRuleList) error) error
- func (c *GlobalForwardingRulesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalForwardingRulesListCall
- type GlobalForwardingRulesPatchCall
- func (c *GlobalForwardingRulesPatchCall) Context(ctx context.Context) *GlobalForwardingRulesPatchCall
- func (c *GlobalForwardingRulesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalForwardingRulesPatchCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesPatchCall
- func (c *GlobalForwardingRulesPatchCall) Header() http.Header
- func (c *GlobalForwardingRulesPatchCall) RequestId(requestId string) *GlobalForwardingRulesPatchCall
- type GlobalForwardingRulesService
- func (r *GlobalForwardingRulesService) Delete(project string, forwardingRule string) *GlobalForwardingRulesDeleteCall
- func (r *GlobalForwardingRulesService) Get(project string, forwardingRule string) *GlobalForwardingRulesGetCall
- func (r *GlobalForwardingRulesService) Insert(project string, forwardingrule *ForwardingRule) *GlobalForwardingRulesInsertCall
- func (r *GlobalForwardingRulesService) List(project string) *GlobalForwardingRulesListCall
- func (r *GlobalForwardingRulesService) Patch(project string, forwardingRule string, forwardingrule *ForwardingRule) *GlobalForwardingRulesPatchCall
- func (r *GlobalForwardingRulesService) SetLabels(project string, resource string, ...) *GlobalForwardingRulesSetLabelsCall
- func (r *GlobalForwardingRulesService) SetTarget(project string, forwardingRule string, targetreference *TargetReference) *GlobalForwardingRulesSetTargetCall
- type GlobalForwardingRulesSetLabelsCall
- func (c *GlobalForwardingRulesSetLabelsCall) Context(ctx context.Context) *GlobalForwardingRulesSetLabelsCall
- func (c *GlobalForwardingRulesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalForwardingRulesSetLabelsCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesSetLabelsCall
- func (c *GlobalForwardingRulesSetLabelsCall) Header() http.Header
- type GlobalForwardingRulesSetTargetCall
- func (c *GlobalForwardingRulesSetTargetCall) Context(ctx context.Context) *GlobalForwardingRulesSetTargetCall
- func (c *GlobalForwardingRulesSetTargetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalForwardingRulesSetTargetCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesSetTargetCall
- func (c *GlobalForwardingRulesSetTargetCall) Header() http.Header
- func (c *GlobalForwardingRulesSetTargetCall) RequestId(requestId string) *GlobalForwardingRulesSetTargetCall
- type GlobalNetworkEndpointGroupsAttachEndpointsRequest
- type GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall
- func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall
- func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Fields(s ...googleapi.Field) *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall
- func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Header() http.Header
- func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) RequestId(requestId string) *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall
- type GlobalNetworkEndpointGroupsDeleteCall
- func (c *GlobalNetworkEndpointGroupsDeleteCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsDeleteCall
- func (c *GlobalNetworkEndpointGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalNetworkEndpointGroupsDeleteCall) Fields(s ...googleapi.Field) *GlobalNetworkEndpointGroupsDeleteCall
- func (c *GlobalNetworkEndpointGroupsDeleteCall) Header() http.Header
- func (c *GlobalNetworkEndpointGroupsDeleteCall) RequestId(requestId string) *GlobalNetworkEndpointGroupsDeleteCall
- type GlobalNetworkEndpointGroupsDetachEndpointsRequest
- type GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall
- func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall
- func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Fields(s ...googleapi.Field) *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall
- func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Header() http.Header
- func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) RequestId(requestId string) *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall
- type GlobalNetworkEndpointGroupsGetCall
- func (c *GlobalNetworkEndpointGroupsGetCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsGetCall
- func (c *GlobalNetworkEndpointGroupsGetCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroup, error)
- func (c *GlobalNetworkEndpointGroupsGetCall) Fields(s ...googleapi.Field) *GlobalNetworkEndpointGroupsGetCall
- func (c *GlobalNetworkEndpointGroupsGetCall) Header() http.Header
- func (c *GlobalNetworkEndpointGroupsGetCall) IfNoneMatch(entityTag string) *GlobalNetworkEndpointGroupsGetCall
- type GlobalNetworkEndpointGroupsInsertCall
- func (c *GlobalNetworkEndpointGroupsInsertCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsInsertCall
- func (c *GlobalNetworkEndpointGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalNetworkEndpointGroupsInsertCall) Fields(s ...googleapi.Field) *GlobalNetworkEndpointGroupsInsertCall
- func (c *GlobalNetworkEndpointGroupsInsertCall) Header() http.Header
- func (c *GlobalNetworkEndpointGroupsInsertCall) RequestId(requestId string) *GlobalNetworkEndpointGroupsInsertCall
- type GlobalNetworkEndpointGroupsListCall
- func (c *GlobalNetworkEndpointGroupsListCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsListCall
- func (c *GlobalNetworkEndpointGroupsListCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupList, error)
- func (c *GlobalNetworkEndpointGroupsListCall) Fields(s ...googleapi.Field) *GlobalNetworkEndpointGroupsListCall
- func (c *GlobalNetworkEndpointGroupsListCall) Filter(filter string) *GlobalNetworkEndpointGroupsListCall
- func (c *GlobalNetworkEndpointGroupsListCall) Header() http.Header
- func (c *GlobalNetworkEndpointGroupsListCall) IfNoneMatch(entityTag string) *GlobalNetworkEndpointGroupsListCall
- func (c *GlobalNetworkEndpointGroupsListCall) MaxResults(maxResults int64) *GlobalNetworkEndpointGroupsListCall
- func (c *GlobalNetworkEndpointGroupsListCall) OrderBy(orderBy string) *GlobalNetworkEndpointGroupsListCall
- func (c *GlobalNetworkEndpointGroupsListCall) PageToken(pageToken string) *GlobalNetworkEndpointGroupsListCall
- func (c *GlobalNetworkEndpointGroupsListCall) Pages(ctx context.Context, f func(*NetworkEndpointGroupList) error) error
- func (c *GlobalNetworkEndpointGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalNetworkEndpointGroupsListCall
- type GlobalNetworkEndpointGroupsListNetworkEndpointsCall
- func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
- func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupsListNetworkEndpoints, error)
- func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Fields(s ...googleapi.Field) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
- func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Filter(filter string) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
- func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Header() http.Header
- func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) MaxResults(maxResults int64) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
- func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) OrderBy(orderBy string) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
- func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) PageToken(pageToken string) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
- func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Pages(ctx context.Context, f func(*NetworkEndpointGroupsListNetworkEndpoints) error) error
- func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
- type GlobalNetworkEndpointGroupsService
- func (r *GlobalNetworkEndpointGroupsService) AttachNetworkEndpoints(project string, networkEndpointGroup string, ...) *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall
- func (r *GlobalNetworkEndpointGroupsService) Delete(project string, networkEndpointGroup string) *GlobalNetworkEndpointGroupsDeleteCall
- func (r *GlobalNetworkEndpointGroupsService) DetachNetworkEndpoints(project string, networkEndpointGroup string, ...) *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall
- func (r *GlobalNetworkEndpointGroupsService) Get(project string, networkEndpointGroup string) *GlobalNetworkEndpointGroupsGetCall
- func (r *GlobalNetworkEndpointGroupsService) Insert(project string, networkendpointgroup *NetworkEndpointGroup) *GlobalNetworkEndpointGroupsInsertCall
- func (r *GlobalNetworkEndpointGroupsService) List(project string) *GlobalNetworkEndpointGroupsListCall
- func (r *GlobalNetworkEndpointGroupsService) ListNetworkEndpoints(project string, networkEndpointGroup string) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
- type GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) Context(ctx context.Context) *GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) Do(opts ...googleapi.CallOption) (*OperationAggregatedList, error)
- func (c *GlobalOperationsAggregatedListCall) Fields(s ...googleapi.Field) *GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) Filter(filter string) *GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) Header() http.Header
- func (c *GlobalOperationsAggregatedListCall) IfNoneMatch(entityTag string) *GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) MaxResults(maxResults int64) *GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) OrderBy(orderBy string) *GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) PageToken(pageToken string) *GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) Pages(ctx context.Context, f func(*OperationAggregatedList) error) error
- func (c *GlobalOperationsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *GlobalOperationsAggregatedListCall
- type GlobalOperationsDeleteCall
- func (c *GlobalOperationsDeleteCall) Context(ctx context.Context) *GlobalOperationsDeleteCall
- func (c *GlobalOperationsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *GlobalOperationsDeleteCall) Fields(s ...googleapi.Field) *GlobalOperationsDeleteCall
- func (c *GlobalOperationsDeleteCall) Header() http.Header
- type GlobalOperationsGetCall
- func (c *GlobalOperationsGetCall) Context(ctx context.Context) *GlobalOperationsGetCall
- func (c *GlobalOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalOperationsGetCall) Fields(s ...googleapi.Field) *GlobalOperationsGetCall
- func (c *GlobalOperationsGetCall) Header() http.Header
- func (c *GlobalOperationsGetCall) IfNoneMatch(entityTag string) *GlobalOperationsGetCall
- type GlobalOperationsListCall
- func (c *GlobalOperationsListCall) Context(ctx context.Context) *GlobalOperationsListCall
- func (c *GlobalOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList, error)
- func (c *GlobalOperationsListCall) Fields(s ...googleapi.Field) *GlobalOperationsListCall
- func (c *GlobalOperationsListCall) Filter(filter string) *GlobalOperationsListCall
- func (c *GlobalOperationsListCall) Header() http.Header
- func (c *GlobalOperationsListCall) IfNoneMatch(entityTag string) *GlobalOperationsListCall
- func (c *GlobalOperationsListCall) MaxResults(maxResults int64) *GlobalOperationsListCall
- func (c *GlobalOperationsListCall) OrderBy(orderBy string) *GlobalOperationsListCall
- func (c *GlobalOperationsListCall) PageToken(pageToken string) *GlobalOperationsListCall
- func (c *GlobalOperationsListCall) Pages(ctx context.Context, f func(*OperationList) error) error
- func (c *GlobalOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalOperationsListCall
- type GlobalOperationsService
- func (r *GlobalOperationsService) AggregatedList(project string) *GlobalOperationsAggregatedListCall
- func (r *GlobalOperationsService) Delete(project string, operationid string) *GlobalOperationsDeleteCall
- func (r *GlobalOperationsService) Get(project string, operationid string) *GlobalOperationsGetCall
- func (r *GlobalOperationsService) List(project string) *GlobalOperationsListCall
- func (r *GlobalOperationsService) Wait(project string, operationid string) *GlobalOperationsWaitCall
- type GlobalOperationsWaitCall
- func (c *GlobalOperationsWaitCall) Context(ctx context.Context) *GlobalOperationsWaitCall
- func (c *GlobalOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalOperationsWaitCall) Fields(s ...googleapi.Field) *GlobalOperationsWaitCall
- func (c *GlobalOperationsWaitCall) Header() http.Header
- type GlobalOrganizationOperationsDeleteCall
- func (c *GlobalOrganizationOperationsDeleteCall) Context(ctx context.Context) *GlobalOrganizationOperationsDeleteCall
- func (c *GlobalOrganizationOperationsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *GlobalOrganizationOperationsDeleteCall) Fields(s ...googleapi.Field) *GlobalOrganizationOperationsDeleteCall
- func (c *GlobalOrganizationOperationsDeleteCall) Header() http.Header
- func (c *GlobalOrganizationOperationsDeleteCall) ParentId(parentId string) *GlobalOrganizationOperationsDeleteCall
- type GlobalOrganizationOperationsGetCall
- func (c *GlobalOrganizationOperationsGetCall) Context(ctx context.Context) *GlobalOrganizationOperationsGetCall
- func (c *GlobalOrganizationOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalOrganizationOperationsGetCall) Fields(s ...googleapi.Field) *GlobalOrganizationOperationsGetCall
- func (c *GlobalOrganizationOperationsGetCall) Header() http.Header
- func (c *GlobalOrganizationOperationsGetCall) IfNoneMatch(entityTag string) *GlobalOrganizationOperationsGetCall
- func (c *GlobalOrganizationOperationsGetCall) ParentId(parentId string) *GlobalOrganizationOperationsGetCall
- type GlobalOrganizationOperationsListCall
- func (c *GlobalOrganizationOperationsListCall) Context(ctx context.Context) *GlobalOrganizationOperationsListCall
- func (c *GlobalOrganizationOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList, error)
- func (c *GlobalOrganizationOperationsListCall) Fields(s ...googleapi.Field) *GlobalOrganizationOperationsListCall
- func (c *GlobalOrganizationOperationsListCall) Filter(filter string) *GlobalOrganizationOperationsListCall
- func (c *GlobalOrganizationOperationsListCall) Header() http.Header
- func (c *GlobalOrganizationOperationsListCall) IfNoneMatch(entityTag string) *GlobalOrganizationOperationsListCall
- func (c *GlobalOrganizationOperationsListCall) MaxResults(maxResults int64) *GlobalOrganizationOperationsListCall
- func (c *GlobalOrganizationOperationsListCall) OrderBy(orderBy string) *GlobalOrganizationOperationsListCall
- func (c *GlobalOrganizationOperationsListCall) PageToken(pageToken string) *GlobalOrganizationOperationsListCall
- func (c *GlobalOrganizationOperationsListCall) Pages(ctx context.Context, f func(*OperationList) error) error
- func (c *GlobalOrganizationOperationsListCall) ParentId(parentId string) *GlobalOrganizationOperationsListCall
- func (c *GlobalOrganizationOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalOrganizationOperationsListCall
- type GlobalOrganizationOperationsService
- func (r *GlobalOrganizationOperationsService) Delete(operationid string) *GlobalOrganizationOperationsDeleteCall
- func (r *GlobalOrganizationOperationsService) Get(operationid string) *GlobalOrganizationOperationsGetCall
- func (r *GlobalOrganizationOperationsService) List() *GlobalOrganizationOperationsListCall
- type GlobalOrganizationSetPolicyRequest
- type GlobalPublicDelegatedPrefixesDeleteCall
- func (c *GlobalPublicDelegatedPrefixesDeleteCall) Context(ctx context.Context) *GlobalPublicDelegatedPrefixesDeleteCall
- func (c *GlobalPublicDelegatedPrefixesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalPublicDelegatedPrefixesDeleteCall) Fields(s ...googleapi.Field) *GlobalPublicDelegatedPrefixesDeleteCall
- func (c *GlobalPublicDelegatedPrefixesDeleteCall) Header() http.Header
- func (c *GlobalPublicDelegatedPrefixesDeleteCall) RequestId(requestId string) *GlobalPublicDelegatedPrefixesDeleteCall
- type GlobalPublicDelegatedPrefixesGetCall
- func (c *GlobalPublicDelegatedPrefixesGetCall) Context(ctx context.Context) *GlobalPublicDelegatedPrefixesGetCall
- func (c *GlobalPublicDelegatedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefix, error)
- func (c *GlobalPublicDelegatedPrefixesGetCall) Fields(s ...googleapi.Field) *GlobalPublicDelegatedPrefixesGetCall
- func (c *GlobalPublicDelegatedPrefixesGetCall) Header() http.Header
- func (c *GlobalPublicDelegatedPrefixesGetCall) IfNoneMatch(entityTag string) *GlobalPublicDelegatedPrefixesGetCall
- type GlobalPublicDelegatedPrefixesInsertCall
- func (c *GlobalPublicDelegatedPrefixesInsertCall) Context(ctx context.Context) *GlobalPublicDelegatedPrefixesInsertCall
- func (c *GlobalPublicDelegatedPrefixesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalPublicDelegatedPrefixesInsertCall) Fields(s ...googleapi.Field) *GlobalPublicDelegatedPrefixesInsertCall
- func (c *GlobalPublicDelegatedPrefixesInsertCall) Header() http.Header
- func (c *GlobalPublicDelegatedPrefixesInsertCall) RequestId(requestId string) *GlobalPublicDelegatedPrefixesInsertCall
- type GlobalPublicDelegatedPrefixesListCall
- func (c *GlobalPublicDelegatedPrefixesListCall) Context(ctx context.Context) *GlobalPublicDelegatedPrefixesListCall
- func (c *GlobalPublicDelegatedPrefixesListCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefixList, error)
- func (c *GlobalPublicDelegatedPrefixesListCall) Fields(s ...googleapi.Field) *GlobalPublicDelegatedPrefixesListCall
- func (c *GlobalPublicDelegatedPrefixesListCall) Filter(filter string) *GlobalPublicDelegatedPrefixesListCall
- func (c *GlobalPublicDelegatedPrefixesListCall) Header() http.Header
- func (c *GlobalPublicDelegatedPrefixesListCall) IfNoneMatch(entityTag string) *GlobalPublicDelegatedPrefixesListCall
- func (c *GlobalPublicDelegatedPrefixesListCall) MaxResults(maxResults int64) *GlobalPublicDelegatedPrefixesListCall
- func (c *GlobalPublicDelegatedPrefixesListCall) OrderBy(orderBy string) *GlobalPublicDelegatedPrefixesListCall
- func (c *GlobalPublicDelegatedPrefixesListCall) PageToken(pageToken string) *GlobalPublicDelegatedPrefixesListCall
- func (c *GlobalPublicDelegatedPrefixesListCall) Pages(ctx context.Context, f func(*PublicDelegatedPrefixList) error) error
- func (c *GlobalPublicDelegatedPrefixesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalPublicDelegatedPrefixesListCall
- type GlobalPublicDelegatedPrefixesPatchCall
- func (c *GlobalPublicDelegatedPrefixesPatchCall) Context(ctx context.Context) *GlobalPublicDelegatedPrefixesPatchCall
- func (c *GlobalPublicDelegatedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalPublicDelegatedPrefixesPatchCall) Fields(s ...googleapi.Field) *GlobalPublicDelegatedPrefixesPatchCall
- func (c *GlobalPublicDelegatedPrefixesPatchCall) Header() http.Header
- func (c *GlobalPublicDelegatedPrefixesPatchCall) RequestId(requestId string) *GlobalPublicDelegatedPrefixesPatchCall
- type GlobalPublicDelegatedPrefixesService
- func (r *GlobalPublicDelegatedPrefixesService) Delete(project string, publicDelegatedPrefix string) *GlobalPublicDelegatedPrefixesDeleteCall
- func (r *GlobalPublicDelegatedPrefixesService) Get(project string, publicDelegatedPrefix string) *GlobalPublicDelegatedPrefixesGetCall
- func (r *GlobalPublicDelegatedPrefixesService) Insert(project string, publicdelegatedprefix *PublicDelegatedPrefix) *GlobalPublicDelegatedPrefixesInsertCall
- func (r *GlobalPublicDelegatedPrefixesService) List(project string) *GlobalPublicDelegatedPrefixesListCall
- func (r *GlobalPublicDelegatedPrefixesService) Patch(project string, publicDelegatedPrefix string, ...) *GlobalPublicDelegatedPrefixesPatchCall
- type GlobalSetLabelsRequest
- type GlobalSetPolicyRequest
- type GuestAttributes
- type GuestAttributesEntry
- type GuestAttributesValue
- type GuestOsFeature
- type HTTP2HealthCheck
- type HTTPHealthCheck
- type HTTPSHealthCheck
- type HealthCheck
- type HealthCheckList
- type HealthCheckListWarning
- type HealthCheckListWarningData
- type HealthCheckLogConfig
- type HealthCheckReference
- type HealthCheckService
- type HealthCheckServiceReference
- type HealthCheckServicesList
- type HealthCheckServicesListWarning
- type HealthCheckServicesListWarningData
- type HealthChecksAggregatedList
- type HealthChecksAggregatedListCall
- func (c *HealthChecksAggregatedListCall) Context(ctx context.Context) *HealthChecksAggregatedListCall
- func (c *HealthChecksAggregatedListCall) Do(opts ...googleapi.CallOption) (*HealthChecksAggregatedList, error)
- func (c *HealthChecksAggregatedListCall) Fields(s ...googleapi.Field) *HealthChecksAggregatedListCall
- func (c *HealthChecksAggregatedListCall) Filter(filter string) *HealthChecksAggregatedListCall
- func (c *HealthChecksAggregatedListCall) Header() http.Header
- func (c *HealthChecksAggregatedListCall) IfNoneMatch(entityTag string) *HealthChecksAggregatedListCall
- func (c *HealthChecksAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *HealthChecksAggregatedListCall
- func (c *HealthChecksAggregatedListCall) MaxResults(maxResults int64) *HealthChecksAggregatedListCall
- func (c *HealthChecksAggregatedListCall) OrderBy(orderBy string) *HealthChecksAggregatedListCall
- func (c *HealthChecksAggregatedListCall) PageToken(pageToken string) *HealthChecksAggregatedListCall
- func (c *HealthChecksAggregatedListCall) Pages(ctx context.Context, f func(*HealthChecksAggregatedList) error) error
- func (c *HealthChecksAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *HealthChecksAggregatedListCall
- func (c *HealthChecksAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *HealthChecksAggregatedListCall
- type HealthChecksAggregatedListWarning
- type HealthChecksAggregatedListWarningData
- type HealthChecksDeleteCall
- func (c *HealthChecksDeleteCall) Context(ctx context.Context) *HealthChecksDeleteCall
- func (c *HealthChecksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *HealthChecksDeleteCall) Fields(s ...googleapi.Field) *HealthChecksDeleteCall
- func (c *HealthChecksDeleteCall) Header() http.Header
- func (c *HealthChecksDeleteCall) RequestId(requestId string) *HealthChecksDeleteCall
- type HealthChecksGetCall
- func (c *HealthChecksGetCall) Context(ctx context.Context) *HealthChecksGetCall
- func (c *HealthChecksGetCall) Do(opts ...googleapi.CallOption) (*HealthCheck, error)
- func (c *HealthChecksGetCall) Fields(s ...googleapi.Field) *HealthChecksGetCall
- func (c *HealthChecksGetCall) Header() http.Header
- func (c *HealthChecksGetCall) IfNoneMatch(entityTag string) *HealthChecksGetCall
- type HealthChecksInsertCall
- func (c *HealthChecksInsertCall) Context(ctx context.Context) *HealthChecksInsertCall
- func (c *HealthChecksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *HealthChecksInsertCall) Fields(s ...googleapi.Field) *HealthChecksInsertCall
- func (c *HealthChecksInsertCall) Header() http.Header
- func (c *HealthChecksInsertCall) RequestId(requestId string) *HealthChecksInsertCall
- type HealthChecksListCall
- func (c *HealthChecksListCall) Context(ctx context.Context) *HealthChecksListCall
- func (c *HealthChecksListCall) Do(opts ...googleapi.CallOption) (*HealthCheckList, error)
- func (c *HealthChecksListCall) Fields(s ...googleapi.Field) *HealthChecksListCall
- func (c *HealthChecksListCall) Filter(filter string) *HealthChecksListCall
- func (c *HealthChecksListCall) Header() http.Header
- func (c *HealthChecksListCall) IfNoneMatch(entityTag string) *HealthChecksListCall
- func (c *HealthChecksListCall) MaxResults(maxResults int64) *HealthChecksListCall
- func (c *HealthChecksListCall) OrderBy(orderBy string) *HealthChecksListCall
- func (c *HealthChecksListCall) PageToken(pageToken string) *HealthChecksListCall
- func (c *HealthChecksListCall) Pages(ctx context.Context, f func(*HealthCheckList) error) error
- func (c *HealthChecksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *HealthChecksListCall
- type HealthChecksPatchCall
- func (c *HealthChecksPatchCall) Context(ctx context.Context) *HealthChecksPatchCall
- func (c *HealthChecksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *HealthChecksPatchCall) Fields(s ...googleapi.Field) *HealthChecksPatchCall
- func (c *HealthChecksPatchCall) Header() http.Header
- func (c *HealthChecksPatchCall) RequestId(requestId string) *HealthChecksPatchCall
- type HealthChecksScopedList
- type HealthChecksScopedListWarning
- type HealthChecksScopedListWarningData
- type HealthChecksService
- func (r *HealthChecksService) AggregatedList(project string) *HealthChecksAggregatedListCall
- func (r *HealthChecksService) Delete(project string, healthCheck string) *HealthChecksDeleteCall
- func (r *HealthChecksService) Get(project string, healthCheck string) *HealthChecksGetCall
- func (r *HealthChecksService) Insert(project string, healthcheck *HealthCheck) *HealthChecksInsertCall
- func (r *HealthChecksService) List(project string) *HealthChecksListCall
- func (r *HealthChecksService) Patch(project string, healthCheck string, healthcheck *HealthCheck) *HealthChecksPatchCall
- func (r *HealthChecksService) Update(project string, healthCheck string, healthcheck *HealthCheck) *HealthChecksUpdateCall
- type HealthChecksUpdateCall
- func (c *HealthChecksUpdateCall) Context(ctx context.Context) *HealthChecksUpdateCall
- func (c *HealthChecksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *HealthChecksUpdateCall) Fields(s ...googleapi.Field) *HealthChecksUpdateCall
- func (c *HealthChecksUpdateCall) Header() http.Header
- func (c *HealthChecksUpdateCall) RequestId(requestId string) *HealthChecksUpdateCall
- type HealthStatus
- type HealthStatusForNetworkEndpoint
- type Help
- type HelpLink
- type HostRule
- type HttpFaultAbort
- type HttpFaultDelay
- type HttpFaultInjection
- type HttpHeaderAction
- type HttpHeaderMatch
- type HttpHeaderOption
- type HttpHealthCheck
- type HttpHealthCheckList
- type HttpHealthCheckListWarning
- type HttpHealthCheckListWarningData
- type HttpHealthChecksDeleteCall
- func (c *HttpHealthChecksDeleteCall) Context(ctx context.Context) *HttpHealthChecksDeleteCall
- func (c *HttpHealthChecksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *HttpHealthChecksDeleteCall) Fields(s ...googleapi.Field) *HttpHealthChecksDeleteCall
- func (c *HttpHealthChecksDeleteCall) Header() http.Header
- func (c *HttpHealthChecksDeleteCall) RequestId(requestId string) *HttpHealthChecksDeleteCall
- type HttpHealthChecksGetCall
- func (c *HttpHealthChecksGetCall) Context(ctx context.Context) *HttpHealthChecksGetCall
- func (c *HttpHealthChecksGetCall) Do(opts ...googleapi.CallOption) (*HttpHealthCheck, error)
- func (c *HttpHealthChecksGetCall) Fields(s ...googleapi.Field) *HttpHealthChecksGetCall
- func (c *HttpHealthChecksGetCall) Header() http.Header
- func (c *HttpHealthChecksGetCall) IfNoneMatch(entityTag string) *HttpHealthChecksGetCall
- type HttpHealthChecksInsertCall
- func (c *HttpHealthChecksInsertCall) Context(ctx context.Context) *HttpHealthChecksInsertCall
- func (c *HttpHealthChecksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *HttpHealthChecksInsertCall) Fields(s ...googleapi.Field) *HttpHealthChecksInsertCall
- func (c *HttpHealthChecksInsertCall) Header() http.Header
- func (c *HttpHealthChecksInsertCall) RequestId(requestId string) *HttpHealthChecksInsertCall
- type HttpHealthChecksListCall
- func (c *HttpHealthChecksListCall) Context(ctx context.Context) *HttpHealthChecksListCall
- func (c *HttpHealthChecksListCall) Do(opts ...googleapi.CallOption) (*HttpHealthCheckList, error)
- func (c *HttpHealthChecksListCall) Fields(s ...googleapi.Field) *HttpHealthChecksListCall
- func (c *HttpHealthChecksListCall) Filter(filter string) *HttpHealthChecksListCall
- func (c *HttpHealthChecksListCall) Header() http.Header
- func (c *HttpHealthChecksListCall) IfNoneMatch(entityTag string) *HttpHealthChecksListCall
- func (c *HttpHealthChecksListCall) MaxResults(maxResults int64) *HttpHealthChecksListCall
- func (c *HttpHealthChecksListCall) OrderBy(orderBy string) *HttpHealthChecksListCall
- func (c *HttpHealthChecksListCall) PageToken(pageToken string) *HttpHealthChecksListCall
- func (c *HttpHealthChecksListCall) Pages(ctx context.Context, f func(*HttpHealthCheckList) error) error
- func (c *HttpHealthChecksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *HttpHealthChecksListCall
- type HttpHealthChecksPatchCall
- func (c *HttpHealthChecksPatchCall) Context(ctx context.Context) *HttpHealthChecksPatchCall
- func (c *HttpHealthChecksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *HttpHealthChecksPatchCall) Fields(s ...googleapi.Field) *HttpHealthChecksPatchCall
- func (c *HttpHealthChecksPatchCall) Header() http.Header
- func (c *HttpHealthChecksPatchCall) RequestId(requestId string) *HttpHealthChecksPatchCall
- type HttpHealthChecksService
- func (r *HttpHealthChecksService) Delete(project string, httpHealthCheck string) *HttpHealthChecksDeleteCall
- func (r *HttpHealthChecksService) Get(project string, httpHealthCheck string) *HttpHealthChecksGetCall
- func (r *HttpHealthChecksService) Insert(project string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksInsertCall
- func (r *HttpHealthChecksService) List(project string) *HttpHealthChecksListCall
- func (r *HttpHealthChecksService) Patch(project string, httpHealthCheck string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksPatchCall
- func (r *HttpHealthChecksService) Update(project string, httpHealthCheck string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksUpdateCall
- type HttpHealthChecksUpdateCall
- func (c *HttpHealthChecksUpdateCall) Context(ctx context.Context) *HttpHealthChecksUpdateCall
- func (c *HttpHealthChecksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *HttpHealthChecksUpdateCall) Fields(s ...googleapi.Field) *HttpHealthChecksUpdateCall
- func (c *HttpHealthChecksUpdateCall) Header() http.Header
- func (c *HttpHealthChecksUpdateCall) RequestId(requestId string) *HttpHealthChecksUpdateCall
- type HttpQueryParameterMatch
- type HttpRedirectAction
- type HttpRetryPolicy
- type HttpRouteAction
- type HttpRouteRule
- type HttpRouteRuleMatch
- type HttpsHealthCheck
- type HttpsHealthCheckList
- type HttpsHealthCheckListWarning
- type HttpsHealthCheckListWarningData
- type HttpsHealthChecksDeleteCall
- func (c *HttpsHealthChecksDeleteCall) Context(ctx context.Context) *HttpsHealthChecksDeleteCall
- func (c *HttpsHealthChecksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *HttpsHealthChecksDeleteCall) Fields(s ...googleapi.Field) *HttpsHealthChecksDeleteCall
- func (c *HttpsHealthChecksDeleteCall) Header() http.Header
- func (c *HttpsHealthChecksDeleteCall) RequestId(requestId string) *HttpsHealthChecksDeleteCall
- type HttpsHealthChecksGetCall
- func (c *HttpsHealthChecksGetCall) Context(ctx context.Context) *HttpsHealthChecksGetCall
- func (c *HttpsHealthChecksGetCall) Do(opts ...googleapi.CallOption) (*HttpsHealthCheck, error)
- func (c *HttpsHealthChecksGetCall) Fields(s ...googleapi.Field) *HttpsHealthChecksGetCall
- func (c *HttpsHealthChecksGetCall) Header() http.Header
- func (c *HttpsHealthChecksGetCall) IfNoneMatch(entityTag string) *HttpsHealthChecksGetCall
- type HttpsHealthChecksInsertCall
- func (c *HttpsHealthChecksInsertCall) Context(ctx context.Context) *HttpsHealthChecksInsertCall
- func (c *HttpsHealthChecksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *HttpsHealthChecksInsertCall) Fields(s ...googleapi.Field) *HttpsHealthChecksInsertCall
- func (c *HttpsHealthChecksInsertCall) Header() http.Header
- func (c *HttpsHealthChecksInsertCall) RequestId(requestId string) *HttpsHealthChecksInsertCall
- type HttpsHealthChecksListCall
- func (c *HttpsHealthChecksListCall) Context(ctx context.Context) *HttpsHealthChecksListCall
- func (c *HttpsHealthChecksListCall) Do(opts ...googleapi.CallOption) (*HttpsHealthCheckList, error)
- func (c *HttpsHealthChecksListCall) Fields(s ...googleapi.Field) *HttpsHealthChecksListCall
- func (c *HttpsHealthChecksListCall) Filter(filter string) *HttpsHealthChecksListCall
- func (c *HttpsHealthChecksListCall) Header() http.Header
- func (c *HttpsHealthChecksListCall) IfNoneMatch(entityTag string) *HttpsHealthChecksListCall
- func (c *HttpsHealthChecksListCall) MaxResults(maxResults int64) *HttpsHealthChecksListCall
- func (c *HttpsHealthChecksListCall) OrderBy(orderBy string) *HttpsHealthChecksListCall
- func (c *HttpsHealthChecksListCall) PageToken(pageToken string) *HttpsHealthChecksListCall
- func (c *HttpsHealthChecksListCall) Pages(ctx context.Context, f func(*HttpsHealthCheckList) error) error
- func (c *HttpsHealthChecksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *HttpsHealthChecksListCall
- type HttpsHealthChecksPatchCall
- func (c *HttpsHealthChecksPatchCall) Context(ctx context.Context) *HttpsHealthChecksPatchCall
- func (c *HttpsHealthChecksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *HttpsHealthChecksPatchCall) Fields(s ...googleapi.Field) *HttpsHealthChecksPatchCall
- func (c *HttpsHealthChecksPatchCall) Header() http.Header
- func (c *HttpsHealthChecksPatchCall) RequestId(requestId string) *HttpsHealthChecksPatchCall
- type HttpsHealthChecksService
- func (r *HttpsHealthChecksService) Delete(project string, httpsHealthCheck string) *HttpsHealthChecksDeleteCall
- func (r *HttpsHealthChecksService) Get(project string, httpsHealthCheck string) *HttpsHealthChecksGetCall
- func (r *HttpsHealthChecksService) Insert(project string, httpshealthcheck *HttpsHealthCheck) *HttpsHealthChecksInsertCall
- func (r *HttpsHealthChecksService) List(project string) *HttpsHealthChecksListCall
- func (r *HttpsHealthChecksService) Patch(project string, httpsHealthCheck string, httpshealthcheck *HttpsHealthCheck) *HttpsHealthChecksPatchCall
- func (r *HttpsHealthChecksService) Update(project string, httpsHealthCheck string, httpshealthcheck *HttpsHealthCheck) *HttpsHealthChecksUpdateCall
- type HttpsHealthChecksUpdateCall
- func (c *HttpsHealthChecksUpdateCall) Context(ctx context.Context) *HttpsHealthChecksUpdateCall
- func (c *HttpsHealthChecksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *HttpsHealthChecksUpdateCall) Fields(s ...googleapi.Field) *HttpsHealthChecksUpdateCall
- func (c *HttpsHealthChecksUpdateCall) Header() http.Header
- func (c *HttpsHealthChecksUpdateCall) RequestId(requestId string) *HttpsHealthChecksUpdateCall
- type Image
- type ImageFamilyView
- type ImageFamilyViewsGetCall
- func (c *ImageFamilyViewsGetCall) Context(ctx context.Context) *ImageFamilyViewsGetCall
- func (c *ImageFamilyViewsGetCall) Do(opts ...googleapi.CallOption) (*ImageFamilyView, error)
- func (c *ImageFamilyViewsGetCall) Fields(s ...googleapi.Field) *ImageFamilyViewsGetCall
- func (c *ImageFamilyViewsGetCall) Header() http.Header
- func (c *ImageFamilyViewsGetCall) IfNoneMatch(entityTag string) *ImageFamilyViewsGetCall
- type ImageFamilyViewsService
- type ImageList
- type ImageListWarning
- type ImageListWarningData
- type ImageRawDisk
- type ImagesDeleteCall
- func (c *ImagesDeleteCall) Context(ctx context.Context) *ImagesDeleteCall
- func (c *ImagesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ImagesDeleteCall) Fields(s ...googleapi.Field) *ImagesDeleteCall
- func (c *ImagesDeleteCall) Header() http.Header
- func (c *ImagesDeleteCall) RequestId(requestId string) *ImagesDeleteCall
- type ImagesDeprecateCall
- func (c *ImagesDeprecateCall) Context(ctx context.Context) *ImagesDeprecateCall
- func (c *ImagesDeprecateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ImagesDeprecateCall) Fields(s ...googleapi.Field) *ImagesDeprecateCall
- func (c *ImagesDeprecateCall) Header() http.Header
- func (c *ImagesDeprecateCall) RequestId(requestId string) *ImagesDeprecateCall
- type ImagesGetCall
- func (c *ImagesGetCall) Context(ctx context.Context) *ImagesGetCall
- func (c *ImagesGetCall) Do(opts ...googleapi.CallOption) (*Image, error)
- func (c *ImagesGetCall) Fields(s ...googleapi.Field) *ImagesGetCall
- func (c *ImagesGetCall) Header() http.Header
- func (c *ImagesGetCall) IfNoneMatch(entityTag string) *ImagesGetCall
- type ImagesGetFromFamilyCall
- func (c *ImagesGetFromFamilyCall) Context(ctx context.Context) *ImagesGetFromFamilyCall
- func (c *ImagesGetFromFamilyCall) Do(opts ...googleapi.CallOption) (*Image, error)
- func (c *ImagesGetFromFamilyCall) Fields(s ...googleapi.Field) *ImagesGetFromFamilyCall
- func (c *ImagesGetFromFamilyCall) Header() http.Header
- func (c *ImagesGetFromFamilyCall) IfNoneMatch(entityTag string) *ImagesGetFromFamilyCall
- type ImagesGetIamPolicyCall
- func (c *ImagesGetIamPolicyCall) Context(ctx context.Context) *ImagesGetIamPolicyCall
- func (c *ImagesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ImagesGetIamPolicyCall) Fields(s ...googleapi.Field) *ImagesGetIamPolicyCall
- func (c *ImagesGetIamPolicyCall) Header() http.Header
- func (c *ImagesGetIamPolicyCall) IfNoneMatch(entityTag string) *ImagesGetIamPolicyCall
- func (c *ImagesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ImagesGetIamPolicyCall
- type ImagesInsertCall
- func (c *ImagesInsertCall) Context(ctx context.Context) *ImagesInsertCall
- func (c *ImagesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ImagesInsertCall) Fields(s ...googleapi.Field) *ImagesInsertCall
- func (c *ImagesInsertCall) ForceCreate(forceCreate bool) *ImagesInsertCall
- func (c *ImagesInsertCall) Header() http.Header
- func (c *ImagesInsertCall) RequestId(requestId string) *ImagesInsertCall
- type ImagesListCall
- func (c *ImagesListCall) Context(ctx context.Context) *ImagesListCall
- func (c *ImagesListCall) Do(opts ...googleapi.CallOption) (*ImageList, error)
- func (c *ImagesListCall) Fields(s ...googleapi.Field) *ImagesListCall
- func (c *ImagesListCall) Filter(filter string) *ImagesListCall
- func (c *ImagesListCall) Header() http.Header
- func (c *ImagesListCall) IfNoneMatch(entityTag string) *ImagesListCall
- func (c *ImagesListCall) MaxResults(maxResults int64) *ImagesListCall
- func (c *ImagesListCall) OrderBy(orderBy string) *ImagesListCall
- func (c *ImagesListCall) PageToken(pageToken string) *ImagesListCall
- func (c *ImagesListCall) Pages(ctx context.Context, f func(*ImageList) error) error
- func (c *ImagesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ImagesListCall
- type ImagesPatchCall
- func (c *ImagesPatchCall) Context(ctx context.Context) *ImagesPatchCall
- func (c *ImagesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ImagesPatchCall) Fields(s ...googleapi.Field) *ImagesPatchCall
- func (c *ImagesPatchCall) Header() http.Header
- func (c *ImagesPatchCall) RequestId(requestId string) *ImagesPatchCall
- type ImagesService
- func (r *ImagesService) Delete(project string, image string) *ImagesDeleteCall
- func (r *ImagesService) Deprecate(project string, image string, deprecationstatus *DeprecationStatus) *ImagesDeprecateCall
- func (r *ImagesService) Get(project string, image string) *ImagesGetCall
- func (r *ImagesService) GetFromFamily(project string, family string) *ImagesGetFromFamilyCall
- func (r *ImagesService) GetIamPolicy(project string, resource string) *ImagesGetIamPolicyCall
- func (r *ImagesService) Insert(project string, image *Image) *ImagesInsertCall
- func (r *ImagesService) List(project string) *ImagesListCall
- func (r *ImagesService) Patch(project string, image string, image2 *Image) *ImagesPatchCall
- func (r *ImagesService) SetIamPolicy(project string, resource string, ...) *ImagesSetIamPolicyCall
- func (r *ImagesService) SetLabels(project string, resource string, ...) *ImagesSetLabelsCall
- func (r *ImagesService) TestIamPermissions(project string, resource string, ...) *ImagesTestIamPermissionsCall
- type ImagesSetIamPolicyCall
- func (c *ImagesSetIamPolicyCall) Context(ctx context.Context) *ImagesSetIamPolicyCall
- func (c *ImagesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ImagesSetIamPolicyCall) Fields(s ...googleapi.Field) *ImagesSetIamPolicyCall
- func (c *ImagesSetIamPolicyCall) Header() http.Header
- type ImagesSetLabelsCall
- type ImagesTestIamPermissionsCall
- func (c *ImagesTestIamPermissionsCall) Context(ctx context.Context) *ImagesTestIamPermissionsCall
- func (c *ImagesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *ImagesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ImagesTestIamPermissionsCall
- func (c *ImagesTestIamPermissionsCall) Header() http.Header
- type InitialStateConfig
- type Instance
- type InstanceAggregatedList
- type InstanceAggregatedListWarning
- type InstanceAggregatedListWarningData
- type InstanceConsumptionData
- type InstanceConsumptionInfo
- type InstanceGroup
- type InstanceGroupAggregatedList
- type InstanceGroupAggregatedListWarning
- type InstanceGroupAggregatedListWarningData
- type InstanceGroupList
- type InstanceGroupListWarning
- type InstanceGroupListWarningData
- type InstanceGroupManager
- type InstanceGroupManagerActionsSummary
- type InstanceGroupManagerAggregatedList
- type InstanceGroupManagerAggregatedListWarning
- type InstanceGroupManagerAggregatedListWarningData
- type InstanceGroupManagerAllInstancesConfig
- type InstanceGroupManagerAutoHealingPolicy
- type InstanceGroupManagerInstanceLifecyclePolicy
- type InstanceGroupManagerList
- type InstanceGroupManagerListWarning
- type InstanceGroupManagerListWarningData
- type InstanceGroupManagerResizeRequest
- type InstanceGroupManagerResizeRequestStatus
- type InstanceGroupManagerResizeRequestStatusError
- type InstanceGroupManagerResizeRequestStatusErrorErrors
- type InstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails
- type InstanceGroupManagerResizeRequestStatusLastAttempt
- type InstanceGroupManagerResizeRequestStatusLastAttemptError
- type InstanceGroupManagerResizeRequestStatusLastAttemptErrorErrors
- type InstanceGroupManagerResizeRequestStatusLastAttemptErrorErrorsErrorDetails
- type InstanceGroupManagerResizeRequestsCancelCall
- func (c *InstanceGroupManagerResizeRequestsCancelCall) Context(ctx context.Context) *InstanceGroupManagerResizeRequestsCancelCall
- func (c *InstanceGroupManagerResizeRequestsCancelCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagerResizeRequestsCancelCall) Fields(s ...googleapi.Field) *InstanceGroupManagerResizeRequestsCancelCall
- func (c *InstanceGroupManagerResizeRequestsCancelCall) Header() http.Header
- func (c *InstanceGroupManagerResizeRequestsCancelCall) RequestId(requestId string) *InstanceGroupManagerResizeRequestsCancelCall
- type InstanceGroupManagerResizeRequestsDeleteCall
- func (c *InstanceGroupManagerResizeRequestsDeleteCall) Context(ctx context.Context) *InstanceGroupManagerResizeRequestsDeleteCall
- func (c *InstanceGroupManagerResizeRequestsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagerResizeRequestsDeleteCall) Fields(s ...googleapi.Field) *InstanceGroupManagerResizeRequestsDeleteCall
- func (c *InstanceGroupManagerResizeRequestsDeleteCall) Header() http.Header
- func (c *InstanceGroupManagerResizeRequestsDeleteCall) RequestId(requestId string) *InstanceGroupManagerResizeRequestsDeleteCall
- type InstanceGroupManagerResizeRequestsGetCall
- func (c *InstanceGroupManagerResizeRequestsGetCall) Context(ctx context.Context) *InstanceGroupManagerResizeRequestsGetCall
- func (c *InstanceGroupManagerResizeRequestsGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagerResizeRequest, error)
- func (c *InstanceGroupManagerResizeRequestsGetCall) Fields(s ...googleapi.Field) *InstanceGroupManagerResizeRequestsGetCall
- func (c *InstanceGroupManagerResizeRequestsGetCall) Header() http.Header
- func (c *InstanceGroupManagerResizeRequestsGetCall) IfNoneMatch(entityTag string) *InstanceGroupManagerResizeRequestsGetCall
- type InstanceGroupManagerResizeRequestsInsertCall
- func (c *InstanceGroupManagerResizeRequestsInsertCall) Context(ctx context.Context) *InstanceGroupManagerResizeRequestsInsertCall
- func (c *InstanceGroupManagerResizeRequestsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagerResizeRequestsInsertCall) Fields(s ...googleapi.Field) *InstanceGroupManagerResizeRequestsInsertCall
- func (c *InstanceGroupManagerResizeRequestsInsertCall) Header() http.Header
- func (c *InstanceGroupManagerResizeRequestsInsertCall) RequestId(requestId string) *InstanceGroupManagerResizeRequestsInsertCall
- type InstanceGroupManagerResizeRequestsListCall
- func (c *InstanceGroupManagerResizeRequestsListCall) Context(ctx context.Context) *InstanceGroupManagerResizeRequestsListCall
- func (c *InstanceGroupManagerResizeRequestsListCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagerResizeRequestsListResponse, error)
- func (c *InstanceGroupManagerResizeRequestsListCall) Fields(s ...googleapi.Field) *InstanceGroupManagerResizeRequestsListCall
- func (c *InstanceGroupManagerResizeRequestsListCall) Filter(filter string) *InstanceGroupManagerResizeRequestsListCall
- func (c *InstanceGroupManagerResizeRequestsListCall) Header() http.Header
- func (c *InstanceGroupManagerResizeRequestsListCall) IfNoneMatch(entityTag string) *InstanceGroupManagerResizeRequestsListCall
- func (c *InstanceGroupManagerResizeRequestsListCall) MaxResults(maxResults int64) *InstanceGroupManagerResizeRequestsListCall
- func (c *InstanceGroupManagerResizeRequestsListCall) OrderBy(orderBy string) *InstanceGroupManagerResizeRequestsListCall
- func (c *InstanceGroupManagerResizeRequestsListCall) PageToken(pageToken string) *InstanceGroupManagerResizeRequestsListCall
- func (c *InstanceGroupManagerResizeRequestsListCall) Pages(ctx context.Context, ...) error
- func (c *InstanceGroupManagerResizeRequestsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupManagerResizeRequestsListCall
- type InstanceGroupManagerResizeRequestsListResponse
- type InstanceGroupManagerResizeRequestsListResponseWarning
- type InstanceGroupManagerResizeRequestsListResponseWarningData
- type InstanceGroupManagerResizeRequestsService
- func (r *InstanceGroupManagerResizeRequestsService) Cancel(project string, zone string, instanceGroupManager string, resizeRequest string) *InstanceGroupManagerResizeRequestsCancelCall
- func (r *InstanceGroupManagerResizeRequestsService) Delete(project string, zone string, instanceGroupManager string, resizeRequest string) *InstanceGroupManagerResizeRequestsDeleteCall
- func (r *InstanceGroupManagerResizeRequestsService) Get(project string, zone string, instanceGroupManager string, resizeRequest string) *InstanceGroupManagerResizeRequestsGetCall
- func (r *InstanceGroupManagerResizeRequestsService) Insert(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagerResizeRequestsInsertCall
- func (r *InstanceGroupManagerResizeRequestsService) List(project string, zone string, instanceGroupManager string) *InstanceGroupManagerResizeRequestsListCall
- type InstanceGroupManagerStatus
- type InstanceGroupManagerStatusAllInstancesConfig
- type InstanceGroupManagerStatusStateful
- type InstanceGroupManagerStatusStatefulPerInstanceConfigs
- type InstanceGroupManagerStatusVersionTarget
- type InstanceGroupManagerUpdatePolicy
- type InstanceGroupManagerVersion
- type InstanceGroupManagersAbandonInstancesCall
- func (c *InstanceGroupManagersAbandonInstancesCall) Context(ctx context.Context) *InstanceGroupManagersAbandonInstancesCall
- func (c *InstanceGroupManagersAbandonInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersAbandonInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersAbandonInstancesCall
- func (c *InstanceGroupManagersAbandonInstancesCall) Header() http.Header
- func (c *InstanceGroupManagersAbandonInstancesCall) RequestId(requestId string) *InstanceGroupManagersAbandonInstancesCall
- type InstanceGroupManagersAbandonInstancesRequest
- type InstanceGroupManagersAggregatedListCall
- func (c *InstanceGroupManagersAggregatedListCall) Context(ctx context.Context) *InstanceGroupManagersAggregatedListCall
- func (c *InstanceGroupManagersAggregatedListCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagerAggregatedList, error)
- func (c *InstanceGroupManagersAggregatedListCall) Fields(s ...googleapi.Field) *InstanceGroupManagersAggregatedListCall
- func (c *InstanceGroupManagersAggregatedListCall) Filter(filter string) *InstanceGroupManagersAggregatedListCall
- func (c *InstanceGroupManagersAggregatedListCall) Header() http.Header
- func (c *InstanceGroupManagersAggregatedListCall) IfNoneMatch(entityTag string) *InstanceGroupManagersAggregatedListCall
- func (c *InstanceGroupManagersAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *InstanceGroupManagersAggregatedListCall
- func (c *InstanceGroupManagersAggregatedListCall) MaxResults(maxResults int64) *InstanceGroupManagersAggregatedListCall
- func (c *InstanceGroupManagersAggregatedListCall) OrderBy(orderBy string) *InstanceGroupManagersAggregatedListCall
- func (c *InstanceGroupManagersAggregatedListCall) PageToken(pageToken string) *InstanceGroupManagersAggregatedListCall
- func (c *InstanceGroupManagersAggregatedListCall) Pages(ctx context.Context, f func(*InstanceGroupManagerAggregatedList) error) error
- func (c *InstanceGroupManagersAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupManagersAggregatedListCall
- func (c *InstanceGroupManagersAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *InstanceGroupManagersAggregatedListCall
- type InstanceGroupManagersApplyUpdatesRequest
- type InstanceGroupManagersApplyUpdatesToInstancesCall
- func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) Context(ctx context.Context) *InstanceGroupManagersApplyUpdatesToInstancesCall
- func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersApplyUpdatesToInstancesCall
- func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) Header() http.Header
- type InstanceGroupManagersCreateInstancesCall
- func (c *InstanceGroupManagersCreateInstancesCall) Context(ctx context.Context) *InstanceGroupManagersCreateInstancesCall
- func (c *InstanceGroupManagersCreateInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersCreateInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersCreateInstancesCall
- func (c *InstanceGroupManagersCreateInstancesCall) Header() http.Header
- func (c *InstanceGroupManagersCreateInstancesCall) RequestId(requestId string) *InstanceGroupManagersCreateInstancesCall
- type InstanceGroupManagersCreateInstancesRequest
- type InstanceGroupManagersDeleteCall
- func (c *InstanceGroupManagersDeleteCall) Context(ctx context.Context) *InstanceGroupManagersDeleteCall
- func (c *InstanceGroupManagersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersDeleteCall) Fields(s ...googleapi.Field) *InstanceGroupManagersDeleteCall
- func (c *InstanceGroupManagersDeleteCall) Header() http.Header
- func (c *InstanceGroupManagersDeleteCall) RequestId(requestId string) *InstanceGroupManagersDeleteCall
- type InstanceGroupManagersDeleteInstancesCall
- func (c *InstanceGroupManagersDeleteInstancesCall) Context(ctx context.Context) *InstanceGroupManagersDeleteInstancesCall
- func (c *InstanceGroupManagersDeleteInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersDeleteInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersDeleteInstancesCall
- func (c *InstanceGroupManagersDeleteInstancesCall) Header() http.Header
- func (c *InstanceGroupManagersDeleteInstancesCall) RequestId(requestId string) *InstanceGroupManagersDeleteInstancesCall
- type InstanceGroupManagersDeleteInstancesRequest
- type InstanceGroupManagersDeletePerInstanceConfigsCall
- func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) Context(ctx context.Context) *InstanceGroupManagersDeletePerInstanceConfigsCall
- func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersDeletePerInstanceConfigsCall
- func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) Header() http.Header
- type InstanceGroupManagersDeletePerInstanceConfigsReq
- type InstanceGroupManagersGetCall
- func (c *InstanceGroupManagersGetCall) Context(ctx context.Context) *InstanceGroupManagersGetCall
- func (c *InstanceGroupManagersGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManager, error)
- func (c *InstanceGroupManagersGetCall) Fields(s ...googleapi.Field) *InstanceGroupManagersGetCall
- func (c *InstanceGroupManagersGetCall) Header() http.Header
- func (c *InstanceGroupManagersGetCall) IfNoneMatch(entityTag string) *InstanceGroupManagersGetCall
- type InstanceGroupManagersInsertCall
- func (c *InstanceGroupManagersInsertCall) Context(ctx context.Context) *InstanceGroupManagersInsertCall
- func (c *InstanceGroupManagersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersInsertCall) Fields(s ...googleapi.Field) *InstanceGroupManagersInsertCall
- func (c *InstanceGroupManagersInsertCall) Header() http.Header
- func (c *InstanceGroupManagersInsertCall) RequestId(requestId string) *InstanceGroupManagersInsertCall
- type InstanceGroupManagersListCall
- func (c *InstanceGroupManagersListCall) Context(ctx context.Context) *InstanceGroupManagersListCall
- func (c *InstanceGroupManagersListCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagerList, error)
- func (c *InstanceGroupManagersListCall) Fields(s ...googleapi.Field) *InstanceGroupManagersListCall
- func (c *InstanceGroupManagersListCall) Filter(filter string) *InstanceGroupManagersListCall
- func (c *InstanceGroupManagersListCall) Header() http.Header
- func (c *InstanceGroupManagersListCall) IfNoneMatch(entityTag string) *InstanceGroupManagersListCall
- func (c *InstanceGroupManagersListCall) MaxResults(maxResults int64) *InstanceGroupManagersListCall
- func (c *InstanceGroupManagersListCall) OrderBy(orderBy string) *InstanceGroupManagersListCall
- func (c *InstanceGroupManagersListCall) PageToken(pageToken string) *InstanceGroupManagersListCall
- func (c *InstanceGroupManagersListCall) Pages(ctx context.Context, f func(*InstanceGroupManagerList) error) error
- func (c *InstanceGroupManagersListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupManagersListCall
- type InstanceGroupManagersListErrorsCall
- func (c *InstanceGroupManagersListErrorsCall) Context(ctx context.Context) *InstanceGroupManagersListErrorsCall
- func (c *InstanceGroupManagersListErrorsCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagersListErrorsResponse, error)
- func (c *InstanceGroupManagersListErrorsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersListErrorsCall
- func (c *InstanceGroupManagersListErrorsCall) Filter(filter string) *InstanceGroupManagersListErrorsCall
- func (c *InstanceGroupManagersListErrorsCall) Header() http.Header
- func (c *InstanceGroupManagersListErrorsCall) IfNoneMatch(entityTag string) *InstanceGroupManagersListErrorsCall
- func (c *InstanceGroupManagersListErrorsCall) MaxResults(maxResults int64) *InstanceGroupManagersListErrorsCall
- func (c *InstanceGroupManagersListErrorsCall) OrderBy(orderBy string) *InstanceGroupManagersListErrorsCall
- func (c *InstanceGroupManagersListErrorsCall) PageToken(pageToken string) *InstanceGroupManagersListErrorsCall
- func (c *InstanceGroupManagersListErrorsCall) Pages(ctx context.Context, f func(*InstanceGroupManagersListErrorsResponse) error) error
- func (c *InstanceGroupManagersListErrorsCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupManagersListErrorsCall
- type InstanceGroupManagersListErrorsResponse
- type InstanceGroupManagersListManagedInstancesCall
- func (c *InstanceGroupManagersListManagedInstancesCall) Context(ctx context.Context) *InstanceGroupManagersListManagedInstancesCall
- func (c *InstanceGroupManagersListManagedInstancesCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagersListManagedInstancesResponse, error)
- func (c *InstanceGroupManagersListManagedInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersListManagedInstancesCall
- func (c *InstanceGroupManagersListManagedInstancesCall) Filter(filter string) *InstanceGroupManagersListManagedInstancesCall
- func (c *InstanceGroupManagersListManagedInstancesCall) Header() http.Header
- func (c *InstanceGroupManagersListManagedInstancesCall) MaxResults(maxResults int64) *InstanceGroupManagersListManagedInstancesCall
- func (c *InstanceGroupManagersListManagedInstancesCall) OrderBy(orderBy string) *InstanceGroupManagersListManagedInstancesCall
- func (c *InstanceGroupManagersListManagedInstancesCall) PageToken(pageToken string) *InstanceGroupManagersListManagedInstancesCall
- func (c *InstanceGroupManagersListManagedInstancesCall) Pages(ctx context.Context, ...) error
- func (c *InstanceGroupManagersListManagedInstancesCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupManagersListManagedInstancesCall
- type InstanceGroupManagersListManagedInstancesResponse
- type InstanceGroupManagersListPerInstanceConfigsCall
- func (c *InstanceGroupManagersListPerInstanceConfigsCall) Context(ctx context.Context) *InstanceGroupManagersListPerInstanceConfigsCall
- func (c *InstanceGroupManagersListPerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagersListPerInstanceConfigsResp, error)
- func (c *InstanceGroupManagersListPerInstanceConfigsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersListPerInstanceConfigsCall
- func (c *InstanceGroupManagersListPerInstanceConfigsCall) Filter(filter string) *InstanceGroupManagersListPerInstanceConfigsCall
- func (c *InstanceGroupManagersListPerInstanceConfigsCall) Header() http.Header
- func (c *InstanceGroupManagersListPerInstanceConfigsCall) MaxResults(maxResults int64) *InstanceGroupManagersListPerInstanceConfigsCall
- func (c *InstanceGroupManagersListPerInstanceConfigsCall) OrderBy(orderBy string) *InstanceGroupManagersListPerInstanceConfigsCall
- func (c *InstanceGroupManagersListPerInstanceConfigsCall) PageToken(pageToken string) *InstanceGroupManagersListPerInstanceConfigsCall
- func (c *InstanceGroupManagersListPerInstanceConfigsCall) Pages(ctx context.Context, ...) error
- func (c *InstanceGroupManagersListPerInstanceConfigsCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupManagersListPerInstanceConfigsCall
- type InstanceGroupManagersListPerInstanceConfigsResp
- type InstanceGroupManagersListPerInstanceConfigsRespWarning
- type InstanceGroupManagersListPerInstanceConfigsRespWarningData
- type InstanceGroupManagersPatchCall
- func (c *InstanceGroupManagersPatchCall) Context(ctx context.Context) *InstanceGroupManagersPatchCall
- func (c *InstanceGroupManagersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersPatchCall) Fields(s ...googleapi.Field) *InstanceGroupManagersPatchCall
- func (c *InstanceGroupManagersPatchCall) Header() http.Header
- func (c *InstanceGroupManagersPatchCall) RequestId(requestId string) *InstanceGroupManagersPatchCall
- type InstanceGroupManagersPatchPerInstanceConfigsCall
- func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) Context(ctx context.Context) *InstanceGroupManagersPatchPerInstanceConfigsCall
- func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersPatchPerInstanceConfigsCall
- func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) Header() http.Header
- func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) RequestId(requestId string) *InstanceGroupManagersPatchPerInstanceConfigsCall
- type InstanceGroupManagersPatchPerInstanceConfigsReq
- type InstanceGroupManagersRecreateInstancesCall
- func (c *InstanceGroupManagersRecreateInstancesCall) Context(ctx context.Context) *InstanceGroupManagersRecreateInstancesCall
- func (c *InstanceGroupManagersRecreateInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersRecreateInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersRecreateInstancesCall
- func (c *InstanceGroupManagersRecreateInstancesCall) Header() http.Header
- func (c *InstanceGroupManagersRecreateInstancesCall) RequestId(requestId string) *InstanceGroupManagersRecreateInstancesCall
- type InstanceGroupManagersRecreateInstancesRequest
- type InstanceGroupManagersResizeCall
- func (c *InstanceGroupManagersResizeCall) Context(ctx context.Context) *InstanceGroupManagersResizeCall
- func (c *InstanceGroupManagersResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersResizeCall) Fields(s ...googleapi.Field) *InstanceGroupManagersResizeCall
- func (c *InstanceGroupManagersResizeCall) Header() http.Header
- func (c *InstanceGroupManagersResizeCall) RequestId(requestId string) *InstanceGroupManagersResizeCall
- type InstanceGroupManagersScopedList
- type InstanceGroupManagersScopedListWarning
- type InstanceGroupManagersScopedListWarningData
- type InstanceGroupManagersService
- func (r *InstanceGroupManagersService) AbandonInstances(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersAbandonInstancesCall
- func (r *InstanceGroupManagersService) AggregatedList(project string) *InstanceGroupManagersAggregatedListCall
- func (r *InstanceGroupManagersService) ApplyUpdatesToInstances(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersApplyUpdatesToInstancesCall
- func (r *InstanceGroupManagersService) CreateInstances(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersCreateInstancesCall
- func (r *InstanceGroupManagersService) Delete(project string, zone string, instanceGroupManager string) *InstanceGroupManagersDeleteCall
- func (r *InstanceGroupManagersService) DeleteInstances(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersDeleteInstancesCall
- func (r *InstanceGroupManagersService) DeletePerInstanceConfigs(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersDeletePerInstanceConfigsCall
- func (r *InstanceGroupManagersService) Get(project string, zone string, instanceGroupManager string) *InstanceGroupManagersGetCall
- func (r *InstanceGroupManagersService) Insert(project string, zone string, instancegroupmanager *InstanceGroupManager) *InstanceGroupManagersInsertCall
- func (r *InstanceGroupManagersService) List(project string, zone string) *InstanceGroupManagersListCall
- func (r *InstanceGroupManagersService) ListErrors(project string, zone string, instanceGroupManager string) *InstanceGroupManagersListErrorsCall
- func (r *InstanceGroupManagersService) ListManagedInstances(project string, zone string, instanceGroupManager string) *InstanceGroupManagersListManagedInstancesCall
- func (r *InstanceGroupManagersService) ListPerInstanceConfigs(project string, zone string, instanceGroupManager string) *InstanceGroupManagersListPerInstanceConfigsCall
- func (r *InstanceGroupManagersService) Patch(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersPatchCall
- func (r *InstanceGroupManagersService) PatchPerInstanceConfigs(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersPatchPerInstanceConfigsCall
- func (r *InstanceGroupManagersService) RecreateInstances(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersRecreateInstancesCall
- func (r *InstanceGroupManagersService) Resize(project string, zone string, instanceGroupManager string, size int64) *InstanceGroupManagersResizeCall
- func (r *InstanceGroupManagersService) SetInstanceTemplate(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersSetInstanceTemplateCall
- func (r *InstanceGroupManagersService) SetTargetPools(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersSetTargetPoolsCall
- func (r *InstanceGroupManagersService) UpdatePerInstanceConfigs(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersUpdatePerInstanceConfigsCall
- type InstanceGroupManagersSetInstanceTemplateCall
- func (c *InstanceGroupManagersSetInstanceTemplateCall) Context(ctx context.Context) *InstanceGroupManagersSetInstanceTemplateCall
- func (c *InstanceGroupManagersSetInstanceTemplateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersSetInstanceTemplateCall) Fields(s ...googleapi.Field) *InstanceGroupManagersSetInstanceTemplateCall
- func (c *InstanceGroupManagersSetInstanceTemplateCall) Header() http.Header
- func (c *InstanceGroupManagersSetInstanceTemplateCall) RequestId(requestId string) *InstanceGroupManagersSetInstanceTemplateCall
- type InstanceGroupManagersSetInstanceTemplateRequest
- type InstanceGroupManagersSetTargetPoolsCall
- func (c *InstanceGroupManagersSetTargetPoolsCall) Context(ctx context.Context) *InstanceGroupManagersSetTargetPoolsCall
- func (c *InstanceGroupManagersSetTargetPoolsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersSetTargetPoolsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersSetTargetPoolsCall
- func (c *InstanceGroupManagersSetTargetPoolsCall) Header() http.Header
- func (c *InstanceGroupManagersSetTargetPoolsCall) RequestId(requestId string) *InstanceGroupManagersSetTargetPoolsCall
- type InstanceGroupManagersSetTargetPoolsRequest
- type InstanceGroupManagersUpdatePerInstanceConfigsCall
- func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) Context(ctx context.Context) *InstanceGroupManagersUpdatePerInstanceConfigsCall
- func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersUpdatePerInstanceConfigsCall
- func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) Header() http.Header
- func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) RequestId(requestId string) *InstanceGroupManagersUpdatePerInstanceConfigsCall
- type InstanceGroupManagersUpdatePerInstanceConfigsReq
- type InstanceGroupsAddInstancesCall
- func (c *InstanceGroupsAddInstancesCall) Context(ctx context.Context) *InstanceGroupsAddInstancesCall
- func (c *InstanceGroupsAddInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupsAddInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupsAddInstancesCall
- func (c *InstanceGroupsAddInstancesCall) Header() http.Header
- func (c *InstanceGroupsAddInstancesCall) RequestId(requestId string) *InstanceGroupsAddInstancesCall
- type InstanceGroupsAddInstancesRequest
- type InstanceGroupsAggregatedListCall
- func (c *InstanceGroupsAggregatedListCall) Context(ctx context.Context) *InstanceGroupsAggregatedListCall
- func (c *InstanceGroupsAggregatedListCall) Do(opts ...googleapi.CallOption) (*InstanceGroupAggregatedList, error)
- func (c *InstanceGroupsAggregatedListCall) Fields(s ...googleapi.Field) *InstanceGroupsAggregatedListCall
- func (c *InstanceGroupsAggregatedListCall) Filter(filter string) *InstanceGroupsAggregatedListCall
- func (c *InstanceGroupsAggregatedListCall) Header() http.Header
- func (c *InstanceGroupsAggregatedListCall) IfNoneMatch(entityTag string) *InstanceGroupsAggregatedListCall
- func (c *InstanceGroupsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *InstanceGroupsAggregatedListCall
- func (c *InstanceGroupsAggregatedListCall) MaxResults(maxResults int64) *InstanceGroupsAggregatedListCall
- func (c *InstanceGroupsAggregatedListCall) OrderBy(orderBy string) *InstanceGroupsAggregatedListCall
- func (c *InstanceGroupsAggregatedListCall) PageToken(pageToken string) *InstanceGroupsAggregatedListCall
- func (c *InstanceGroupsAggregatedListCall) Pages(ctx context.Context, f func(*InstanceGroupAggregatedList) error) error
- func (c *InstanceGroupsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupsAggregatedListCall
- func (c *InstanceGroupsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *InstanceGroupsAggregatedListCall
- type InstanceGroupsDeleteCall
- func (c *InstanceGroupsDeleteCall) Context(ctx context.Context) *InstanceGroupsDeleteCall
- func (c *InstanceGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupsDeleteCall) Fields(s ...googleapi.Field) *InstanceGroupsDeleteCall
- func (c *InstanceGroupsDeleteCall) Header() http.Header
- func (c *InstanceGroupsDeleteCall) RequestId(requestId string) *InstanceGroupsDeleteCall
- type InstanceGroupsGetCall
- func (c *InstanceGroupsGetCall) Context(ctx context.Context) *InstanceGroupsGetCall
- func (c *InstanceGroupsGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroup, error)
- func (c *InstanceGroupsGetCall) Fields(s ...googleapi.Field) *InstanceGroupsGetCall
- func (c *InstanceGroupsGetCall) Header() http.Header
- func (c *InstanceGroupsGetCall) IfNoneMatch(entityTag string) *InstanceGroupsGetCall
- type InstanceGroupsInsertCall
- func (c *InstanceGroupsInsertCall) Context(ctx context.Context) *InstanceGroupsInsertCall
- func (c *InstanceGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupsInsertCall) Fields(s ...googleapi.Field) *InstanceGroupsInsertCall
- func (c *InstanceGroupsInsertCall) Header() http.Header
- func (c *InstanceGroupsInsertCall) RequestId(requestId string) *InstanceGroupsInsertCall
- type InstanceGroupsListCall
- func (c *InstanceGroupsListCall) Context(ctx context.Context) *InstanceGroupsListCall
- func (c *InstanceGroupsListCall) Do(opts ...googleapi.CallOption) (*InstanceGroupList, error)
- func (c *InstanceGroupsListCall) Fields(s ...googleapi.Field) *InstanceGroupsListCall
- func (c *InstanceGroupsListCall) Filter(filter string) *InstanceGroupsListCall
- func (c *InstanceGroupsListCall) Header() http.Header
- func (c *InstanceGroupsListCall) IfNoneMatch(entityTag string) *InstanceGroupsListCall
- func (c *InstanceGroupsListCall) MaxResults(maxResults int64) *InstanceGroupsListCall
- func (c *InstanceGroupsListCall) OrderBy(orderBy string) *InstanceGroupsListCall
- func (c *InstanceGroupsListCall) PageToken(pageToken string) *InstanceGroupsListCall
- func (c *InstanceGroupsListCall) Pages(ctx context.Context, f func(*InstanceGroupList) error) error
- func (c *InstanceGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupsListCall
- type InstanceGroupsListInstances
- type InstanceGroupsListInstancesCall
- func (c *InstanceGroupsListInstancesCall) Context(ctx context.Context) *InstanceGroupsListInstancesCall
- func (c *InstanceGroupsListInstancesCall) Do(opts ...googleapi.CallOption) (*InstanceGroupsListInstances, error)
- func (c *InstanceGroupsListInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupsListInstancesCall
- func (c *InstanceGroupsListInstancesCall) Filter(filter string) *InstanceGroupsListInstancesCall
- func (c *InstanceGroupsListInstancesCall) Header() http.Header
- func (c *InstanceGroupsListInstancesCall) MaxResults(maxResults int64) *InstanceGroupsListInstancesCall
- func (c *InstanceGroupsListInstancesCall) OrderBy(orderBy string) *InstanceGroupsListInstancesCall
- func (c *InstanceGroupsListInstancesCall) PageToken(pageToken string) *InstanceGroupsListInstancesCall
- func (c *InstanceGroupsListInstancesCall) Pages(ctx context.Context, f func(*InstanceGroupsListInstances) error) error
- func (c *InstanceGroupsListInstancesCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupsListInstancesCall
- type InstanceGroupsListInstancesRequest
- type InstanceGroupsListInstancesWarning
- type InstanceGroupsListInstancesWarningData
- type InstanceGroupsRemoveInstancesCall
- func (c *InstanceGroupsRemoveInstancesCall) Context(ctx context.Context) *InstanceGroupsRemoveInstancesCall
- func (c *InstanceGroupsRemoveInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupsRemoveInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupsRemoveInstancesCall
- func (c *InstanceGroupsRemoveInstancesCall) Header() http.Header
- func (c *InstanceGroupsRemoveInstancesCall) RequestId(requestId string) *InstanceGroupsRemoveInstancesCall
- type InstanceGroupsRemoveInstancesRequest
- type InstanceGroupsScopedList
- type InstanceGroupsScopedListWarning
- type InstanceGroupsScopedListWarningData
- type InstanceGroupsService
- func (r *InstanceGroupsService) AddInstances(project string, zone string, instanceGroup string, ...) *InstanceGroupsAddInstancesCall
- func (r *InstanceGroupsService) AggregatedList(project string) *InstanceGroupsAggregatedListCall
- func (r *InstanceGroupsService) Delete(project string, zone string, instanceGroup string) *InstanceGroupsDeleteCall
- func (r *InstanceGroupsService) Get(project string, zone string, instanceGroup string) *InstanceGroupsGetCall
- func (r *InstanceGroupsService) Insert(project string, zone string, instancegroup *InstanceGroup) *InstanceGroupsInsertCall
- func (r *InstanceGroupsService) List(project string, zone string) *InstanceGroupsListCall
- func (r *InstanceGroupsService) ListInstances(project string, zone string, instanceGroup string, ...) *InstanceGroupsListInstancesCall
- func (r *InstanceGroupsService) RemoveInstances(project string, zone string, instanceGroup string, ...) *InstanceGroupsRemoveInstancesCall
- func (r *InstanceGroupsService) SetNamedPorts(project string, zone string, instanceGroup string, ...) *InstanceGroupsSetNamedPortsCall
- type InstanceGroupsSetNamedPortsCall
- func (c *InstanceGroupsSetNamedPortsCall) Context(ctx context.Context) *InstanceGroupsSetNamedPortsCall
- func (c *InstanceGroupsSetNamedPortsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupsSetNamedPortsCall) Fields(s ...googleapi.Field) *InstanceGroupsSetNamedPortsCall
- func (c *InstanceGroupsSetNamedPortsCall) Header() http.Header
- func (c *InstanceGroupsSetNamedPortsCall) RequestId(requestId string) *InstanceGroupsSetNamedPortsCall
- type InstanceGroupsSetNamedPortsRequest
- type InstanceList
- type InstanceListReferrers
- type InstanceListReferrersWarning
- type InstanceListReferrersWarningData
- type InstanceListWarning
- type InstanceListWarningData
- type InstanceManagedByIgmError
- type InstanceManagedByIgmErrorInstanceActionDetails
- type InstanceManagedByIgmErrorManagedInstanceError
- type InstanceMoveRequest
- type InstanceParams
- type InstanceProperties
- type InstancePropertiesPatch
- type InstanceReference
- type InstanceSettings
- type InstanceSettingsGetCall
- func (c *InstanceSettingsGetCall) Context(ctx context.Context) *InstanceSettingsGetCall
- func (c *InstanceSettingsGetCall) Do(opts ...googleapi.CallOption) (*InstanceSettings, error)
- func (c *InstanceSettingsGetCall) Fields(s ...googleapi.Field) *InstanceSettingsGetCall
- func (c *InstanceSettingsGetCall) Header() http.Header
- func (c *InstanceSettingsGetCall) IfNoneMatch(entityTag string) *InstanceSettingsGetCall
- type InstanceSettingsMetadata
- type InstanceSettingsPatchCall
- func (c *InstanceSettingsPatchCall) Context(ctx context.Context) *InstanceSettingsPatchCall
- func (c *InstanceSettingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceSettingsPatchCall) Fields(s ...googleapi.Field) *InstanceSettingsPatchCall
- func (c *InstanceSettingsPatchCall) Header() http.Header
- func (c *InstanceSettingsPatchCall) RequestId(requestId string) *InstanceSettingsPatchCall
- func (c *InstanceSettingsPatchCall) UpdateMask(updateMask string) *InstanceSettingsPatchCall
- type InstanceSettingsService
- type InstanceTemplate
- type InstanceTemplateAggregatedList
- type InstanceTemplateAggregatedListWarning
- type InstanceTemplateAggregatedListWarningData
- type InstanceTemplateList
- type InstanceTemplateListWarning
- type InstanceTemplateListWarningData
- type InstanceTemplatesAggregatedListCall
- func (c *InstanceTemplatesAggregatedListCall) Context(ctx context.Context) *InstanceTemplatesAggregatedListCall
- func (c *InstanceTemplatesAggregatedListCall) Do(opts ...googleapi.CallOption) (*InstanceTemplateAggregatedList, error)
- func (c *InstanceTemplatesAggregatedListCall) Fields(s ...googleapi.Field) *InstanceTemplatesAggregatedListCall
- func (c *InstanceTemplatesAggregatedListCall) Filter(filter string) *InstanceTemplatesAggregatedListCall
- func (c *InstanceTemplatesAggregatedListCall) Header() http.Header
- func (c *InstanceTemplatesAggregatedListCall) IfNoneMatch(entityTag string) *InstanceTemplatesAggregatedListCall
- func (c *InstanceTemplatesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *InstanceTemplatesAggregatedListCall
- func (c *InstanceTemplatesAggregatedListCall) MaxResults(maxResults int64) *InstanceTemplatesAggregatedListCall
- func (c *InstanceTemplatesAggregatedListCall) OrderBy(orderBy string) *InstanceTemplatesAggregatedListCall
- func (c *InstanceTemplatesAggregatedListCall) PageToken(pageToken string) *InstanceTemplatesAggregatedListCall
- func (c *InstanceTemplatesAggregatedListCall) Pages(ctx context.Context, f func(*InstanceTemplateAggregatedList) error) error
- func (c *InstanceTemplatesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceTemplatesAggregatedListCall
- func (c *InstanceTemplatesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *InstanceTemplatesAggregatedListCall
- type InstanceTemplatesDeleteCall
- func (c *InstanceTemplatesDeleteCall) Context(ctx context.Context) *InstanceTemplatesDeleteCall
- func (c *InstanceTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceTemplatesDeleteCall) Fields(s ...googleapi.Field) *InstanceTemplatesDeleteCall
- func (c *InstanceTemplatesDeleteCall) Header() http.Header
- func (c *InstanceTemplatesDeleteCall) RequestId(requestId string) *InstanceTemplatesDeleteCall
- type InstanceTemplatesGetCall
- func (c *InstanceTemplatesGetCall) Context(ctx context.Context) *InstanceTemplatesGetCall
- func (c *InstanceTemplatesGetCall) Do(opts ...googleapi.CallOption) (*InstanceTemplate, error)
- func (c *InstanceTemplatesGetCall) Fields(s ...googleapi.Field) *InstanceTemplatesGetCall
- func (c *InstanceTemplatesGetCall) Header() http.Header
- func (c *InstanceTemplatesGetCall) IfNoneMatch(entityTag string) *InstanceTemplatesGetCall
- type InstanceTemplatesGetIamPolicyCall
- func (c *InstanceTemplatesGetIamPolicyCall) Context(ctx context.Context) *InstanceTemplatesGetIamPolicyCall
- func (c *InstanceTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *InstanceTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *InstanceTemplatesGetIamPolicyCall
- func (c *InstanceTemplatesGetIamPolicyCall) Header() http.Header
- func (c *InstanceTemplatesGetIamPolicyCall) IfNoneMatch(entityTag string) *InstanceTemplatesGetIamPolicyCall
- func (c *InstanceTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *InstanceTemplatesGetIamPolicyCall
- type InstanceTemplatesInsertCall
- func (c *InstanceTemplatesInsertCall) Context(ctx context.Context) *InstanceTemplatesInsertCall
- func (c *InstanceTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceTemplatesInsertCall) Fields(s ...googleapi.Field) *InstanceTemplatesInsertCall
- func (c *InstanceTemplatesInsertCall) Header() http.Header
- func (c *InstanceTemplatesInsertCall) RequestId(requestId string) *InstanceTemplatesInsertCall
- type InstanceTemplatesListCall
- func (c *InstanceTemplatesListCall) Context(ctx context.Context) *InstanceTemplatesListCall
- func (c *InstanceTemplatesListCall) Do(opts ...googleapi.CallOption) (*InstanceTemplateList, error)
- func (c *InstanceTemplatesListCall) Fields(s ...googleapi.Field) *InstanceTemplatesListCall
- func (c *InstanceTemplatesListCall) Filter(filter string) *InstanceTemplatesListCall
- func (c *InstanceTemplatesListCall) Header() http.Header
- func (c *InstanceTemplatesListCall) IfNoneMatch(entityTag string) *InstanceTemplatesListCall
- func (c *InstanceTemplatesListCall) MaxResults(maxResults int64) *InstanceTemplatesListCall
- func (c *InstanceTemplatesListCall) OrderBy(orderBy string) *InstanceTemplatesListCall
- func (c *InstanceTemplatesListCall) PageToken(pageToken string) *InstanceTemplatesListCall
- func (c *InstanceTemplatesListCall) Pages(ctx context.Context, f func(*InstanceTemplateList) error) error
- func (c *InstanceTemplatesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceTemplatesListCall
- type InstanceTemplatesScopedList
- type InstanceTemplatesScopedListWarning
- type InstanceTemplatesScopedListWarningData
- type InstanceTemplatesService
- func (r *InstanceTemplatesService) AggregatedList(project string) *InstanceTemplatesAggregatedListCall
- func (r *InstanceTemplatesService) Delete(project string, instanceTemplate string) *InstanceTemplatesDeleteCall
- func (r *InstanceTemplatesService) Get(project string, instanceTemplate string) *InstanceTemplatesGetCall
- func (r *InstanceTemplatesService) GetIamPolicy(project string, resource string) *InstanceTemplatesGetIamPolicyCall
- func (r *InstanceTemplatesService) Insert(project string, instancetemplate *InstanceTemplate) *InstanceTemplatesInsertCall
- func (r *InstanceTemplatesService) List(project string) *InstanceTemplatesListCall
- func (r *InstanceTemplatesService) SetIamPolicy(project string, resource string, ...) *InstanceTemplatesSetIamPolicyCall
- func (r *InstanceTemplatesService) TestIamPermissions(project string, resource string, ...) *InstanceTemplatesTestIamPermissionsCall
- type InstanceTemplatesSetIamPolicyCall
- func (c *InstanceTemplatesSetIamPolicyCall) Context(ctx context.Context) *InstanceTemplatesSetIamPolicyCall
- func (c *InstanceTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *InstanceTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *InstanceTemplatesSetIamPolicyCall
- func (c *InstanceTemplatesSetIamPolicyCall) Header() http.Header
- type InstanceTemplatesTestIamPermissionsCall
- func (c *InstanceTemplatesTestIamPermissionsCall) Context(ctx context.Context) *InstanceTemplatesTestIamPermissionsCall
- func (c *InstanceTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *InstanceTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *InstanceTemplatesTestIamPermissionsCall
- func (c *InstanceTemplatesTestIamPermissionsCall) Header() http.Header
- type InstanceWithNamedPorts
- type InstancesAddAccessConfigCall
- func (c *InstancesAddAccessConfigCall) Context(ctx context.Context) *InstancesAddAccessConfigCall
- func (c *InstancesAddAccessConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesAddAccessConfigCall) Fields(s ...googleapi.Field) *InstancesAddAccessConfigCall
- func (c *InstancesAddAccessConfigCall) Header() http.Header
- func (c *InstancesAddAccessConfigCall) RequestId(requestId string) *InstancesAddAccessConfigCall
- type InstancesAddResourcePoliciesCall
- func (c *InstancesAddResourcePoliciesCall) Context(ctx context.Context) *InstancesAddResourcePoliciesCall
- func (c *InstancesAddResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesAddResourcePoliciesCall) Fields(s ...googleapi.Field) *InstancesAddResourcePoliciesCall
- func (c *InstancesAddResourcePoliciesCall) Header() http.Header
- func (c *InstancesAddResourcePoliciesCall) RequestId(requestId string) *InstancesAddResourcePoliciesCall
- type InstancesAddResourcePoliciesRequest
- type InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) Context(ctx context.Context) *InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) Do(opts ...googleapi.CallOption) (*InstanceAggregatedList, error)
- func (c *InstancesAggregatedListCall) Fields(s ...googleapi.Field) *InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) Filter(filter string) *InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) Header() http.Header
- func (c *InstancesAggregatedListCall) IfNoneMatch(entityTag string) *InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) MaxResults(maxResults int64) *InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) OrderBy(orderBy string) *InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) PageToken(pageToken string) *InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) Pages(ctx context.Context, f func(*InstanceAggregatedList) error) error
- func (c *InstancesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *InstancesAggregatedListCall
- type InstancesAttachDiskCall
- func (c *InstancesAttachDiskCall) Context(ctx context.Context) *InstancesAttachDiskCall
- func (c *InstancesAttachDiskCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesAttachDiskCall) Fields(s ...googleapi.Field) *InstancesAttachDiskCall
- func (c *InstancesAttachDiskCall) ForceAttach(forceAttach bool) *InstancesAttachDiskCall
- func (c *InstancesAttachDiskCall) Header() http.Header
- func (c *InstancesAttachDiskCall) RequestId(requestId string) *InstancesAttachDiskCall
- type InstancesBulkInsertCall
- func (c *InstancesBulkInsertCall) Context(ctx context.Context) *InstancesBulkInsertCall
- func (c *InstancesBulkInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesBulkInsertCall) Fields(s ...googleapi.Field) *InstancesBulkInsertCall
- func (c *InstancesBulkInsertCall) Header() http.Header
- func (c *InstancesBulkInsertCall) RequestId(requestId string) *InstancesBulkInsertCall
- type InstancesBulkInsertOperationMetadata
- type InstancesDeleteAccessConfigCall
- func (c *InstancesDeleteAccessConfigCall) Context(ctx context.Context) *InstancesDeleteAccessConfigCall
- func (c *InstancesDeleteAccessConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesDeleteAccessConfigCall) Fields(s ...googleapi.Field) *InstancesDeleteAccessConfigCall
- func (c *InstancesDeleteAccessConfigCall) Header() http.Header
- func (c *InstancesDeleteAccessConfigCall) RequestId(requestId string) *InstancesDeleteAccessConfigCall
- type InstancesDeleteCall
- func (c *InstancesDeleteCall) Context(ctx context.Context) *InstancesDeleteCall
- func (c *InstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesDeleteCall) Fields(s ...googleapi.Field) *InstancesDeleteCall
- func (c *InstancesDeleteCall) Header() http.Header
- func (c *InstancesDeleteCall) RequestId(requestId string) *InstancesDeleteCall
- type InstancesDetachDiskCall
- func (c *InstancesDetachDiskCall) Context(ctx context.Context) *InstancesDetachDiskCall
- func (c *InstancesDetachDiskCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesDetachDiskCall) Fields(s ...googleapi.Field) *InstancesDetachDiskCall
- func (c *InstancesDetachDiskCall) Header() http.Header
- func (c *InstancesDetachDiskCall) RequestId(requestId string) *InstancesDetachDiskCall
- type InstancesGetCall
- func (c *InstancesGetCall) Context(ctx context.Context) *InstancesGetCall
- func (c *InstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error)
- func (c *InstancesGetCall) Fields(s ...googleapi.Field) *InstancesGetCall
- func (c *InstancesGetCall) Header() http.Header
- func (c *InstancesGetCall) IfNoneMatch(entityTag string) *InstancesGetCall
- type InstancesGetEffectiveFirewallsCall
- func (c *InstancesGetEffectiveFirewallsCall) Context(ctx context.Context) *InstancesGetEffectiveFirewallsCall
- func (c *InstancesGetEffectiveFirewallsCall) Do(opts ...googleapi.CallOption) (*InstancesGetEffectiveFirewallsResponse, error)
- func (c *InstancesGetEffectiveFirewallsCall) Fields(s ...googleapi.Field) *InstancesGetEffectiveFirewallsCall
- func (c *InstancesGetEffectiveFirewallsCall) Header() http.Header
- func (c *InstancesGetEffectiveFirewallsCall) IfNoneMatch(entityTag string) *InstancesGetEffectiveFirewallsCall
- type InstancesGetEffectiveFirewallsResponse
- type InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
- type InstancesGetGuestAttributesCall
- func (c *InstancesGetGuestAttributesCall) Context(ctx context.Context) *InstancesGetGuestAttributesCall
- func (c *InstancesGetGuestAttributesCall) Do(opts ...googleapi.CallOption) (*GuestAttributes, error)
- func (c *InstancesGetGuestAttributesCall) Fields(s ...googleapi.Field) *InstancesGetGuestAttributesCall
- func (c *InstancesGetGuestAttributesCall) Header() http.Header
- func (c *InstancesGetGuestAttributesCall) IfNoneMatch(entityTag string) *InstancesGetGuestAttributesCall
- func (c *InstancesGetGuestAttributesCall) QueryPath(queryPath string) *InstancesGetGuestAttributesCall
- func (c *InstancesGetGuestAttributesCall) VariableKey(variableKey string) *InstancesGetGuestAttributesCall
- type InstancesGetIamPolicyCall
- func (c *InstancesGetIamPolicyCall) Context(ctx context.Context) *InstancesGetIamPolicyCall
- func (c *InstancesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *InstancesGetIamPolicyCall) Fields(s ...googleapi.Field) *InstancesGetIamPolicyCall
- func (c *InstancesGetIamPolicyCall) Header() http.Header
- func (c *InstancesGetIamPolicyCall) IfNoneMatch(entityTag string) *InstancesGetIamPolicyCall
- func (c *InstancesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *InstancesGetIamPolicyCall
- type InstancesGetScreenshotCall
- func (c *InstancesGetScreenshotCall) Context(ctx context.Context) *InstancesGetScreenshotCall
- func (c *InstancesGetScreenshotCall) Do(opts ...googleapi.CallOption) (*Screenshot, error)
- func (c *InstancesGetScreenshotCall) Fields(s ...googleapi.Field) *InstancesGetScreenshotCall
- func (c *InstancesGetScreenshotCall) Header() http.Header
- func (c *InstancesGetScreenshotCall) IfNoneMatch(entityTag string) *InstancesGetScreenshotCall
- type InstancesGetSerialPortOutputCall
- func (c *InstancesGetSerialPortOutputCall) Context(ctx context.Context) *InstancesGetSerialPortOutputCall
- func (c *InstancesGetSerialPortOutputCall) Do(opts ...googleapi.CallOption) (*SerialPortOutput, error)
- func (c *InstancesGetSerialPortOutputCall) Fields(s ...googleapi.Field) *InstancesGetSerialPortOutputCall
- func (c *InstancesGetSerialPortOutputCall) Header() http.Header
- func (c *InstancesGetSerialPortOutputCall) IfNoneMatch(entityTag string) *InstancesGetSerialPortOutputCall
- func (c *InstancesGetSerialPortOutputCall) Port(port int64) *InstancesGetSerialPortOutputCall
- func (c *InstancesGetSerialPortOutputCall) Start(start int64) *InstancesGetSerialPortOutputCall
- type InstancesGetShieldedInstanceIdentityCall
- func (c *InstancesGetShieldedInstanceIdentityCall) Context(ctx context.Context) *InstancesGetShieldedInstanceIdentityCall
- func (c *InstancesGetShieldedInstanceIdentityCall) Do(opts ...googleapi.CallOption) (*ShieldedInstanceIdentity, error)
- func (c *InstancesGetShieldedInstanceIdentityCall) Fields(s ...googleapi.Field) *InstancesGetShieldedInstanceIdentityCall
- func (c *InstancesGetShieldedInstanceIdentityCall) Header() http.Header
- func (c *InstancesGetShieldedInstanceIdentityCall) IfNoneMatch(entityTag string) *InstancesGetShieldedInstanceIdentityCall
- type InstancesInsertCall
- func (c *InstancesInsertCall) Context(ctx context.Context) *InstancesInsertCall
- func (c *InstancesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesInsertCall) Fields(s ...googleapi.Field) *InstancesInsertCall
- func (c *InstancesInsertCall) Header() http.Header
- func (c *InstancesInsertCall) RequestId(requestId string) *InstancesInsertCall
- func (c *InstancesInsertCall) SourceInstanceTemplate(sourceInstanceTemplate string) *InstancesInsertCall
- func (c *InstancesInsertCall) SourceMachineImage(sourceMachineImage string) *InstancesInsertCall
- type InstancesListCall
- func (c *InstancesListCall) Context(ctx context.Context) *InstancesListCall
- func (c *InstancesListCall) Do(opts ...googleapi.CallOption) (*InstanceList, error)
- func (c *InstancesListCall) Fields(s ...googleapi.Field) *InstancesListCall
- func (c *InstancesListCall) Filter(filter string) *InstancesListCall
- func (c *InstancesListCall) Header() http.Header
- func (c *InstancesListCall) IfNoneMatch(entityTag string) *InstancesListCall
- func (c *InstancesListCall) MaxResults(maxResults int64) *InstancesListCall
- func (c *InstancesListCall) OrderBy(orderBy string) *InstancesListCall
- func (c *InstancesListCall) PageToken(pageToken string) *InstancesListCall
- func (c *InstancesListCall) Pages(ctx context.Context, f func(*InstanceList) error) error
- func (c *InstancesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstancesListCall
- type InstancesListReferrersCall
- func (c *InstancesListReferrersCall) Context(ctx context.Context) *InstancesListReferrersCall
- func (c *InstancesListReferrersCall) Do(opts ...googleapi.CallOption) (*InstanceListReferrers, error)
- func (c *InstancesListReferrersCall) Fields(s ...googleapi.Field) *InstancesListReferrersCall
- func (c *InstancesListReferrersCall) Filter(filter string) *InstancesListReferrersCall
- func (c *InstancesListReferrersCall) Header() http.Header
- func (c *InstancesListReferrersCall) IfNoneMatch(entityTag string) *InstancesListReferrersCall
- func (c *InstancesListReferrersCall) MaxResults(maxResults int64) *InstancesListReferrersCall
- func (c *InstancesListReferrersCall) OrderBy(orderBy string) *InstancesListReferrersCall
- func (c *InstancesListReferrersCall) PageToken(pageToken string) *InstancesListReferrersCall
- func (c *InstancesListReferrersCall) Pages(ctx context.Context, f func(*InstanceListReferrers) error) error
- func (c *InstancesListReferrersCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstancesListReferrersCall
- type InstancesPerformMaintenanceCall
- func (c *InstancesPerformMaintenanceCall) Context(ctx context.Context) *InstancesPerformMaintenanceCall
- func (c *InstancesPerformMaintenanceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesPerformMaintenanceCall) Fields(s ...googleapi.Field) *InstancesPerformMaintenanceCall
- func (c *InstancesPerformMaintenanceCall) Header() http.Header
- func (c *InstancesPerformMaintenanceCall) RequestId(requestId string) *InstancesPerformMaintenanceCall
- type InstancesRemoveResourcePoliciesCall
- func (c *InstancesRemoveResourcePoliciesCall) Context(ctx context.Context) *InstancesRemoveResourcePoliciesCall
- func (c *InstancesRemoveResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesRemoveResourcePoliciesCall) Fields(s ...googleapi.Field) *InstancesRemoveResourcePoliciesCall
- func (c *InstancesRemoveResourcePoliciesCall) Header() http.Header
- func (c *InstancesRemoveResourcePoliciesCall) RequestId(requestId string) *InstancesRemoveResourcePoliciesCall
- type InstancesRemoveResourcePoliciesRequest
- type InstancesResetCall
- func (c *InstancesResetCall) Context(ctx context.Context) *InstancesResetCall
- func (c *InstancesResetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesResetCall) Fields(s ...googleapi.Field) *InstancesResetCall
- func (c *InstancesResetCall) Header() http.Header
- func (c *InstancesResetCall) RequestId(requestId string) *InstancesResetCall
- type InstancesResumeCall
- func (c *InstancesResumeCall) Context(ctx context.Context) *InstancesResumeCall
- func (c *InstancesResumeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesResumeCall) Fields(s ...googleapi.Field) *InstancesResumeCall
- func (c *InstancesResumeCall) Header() http.Header
- func (c *InstancesResumeCall) RequestId(requestId string) *InstancesResumeCall
- type InstancesScopedList
- type InstancesScopedListWarning
- type InstancesScopedListWarningData
- type InstancesSendDiagnosticInterruptCall
- func (c *InstancesSendDiagnosticInterruptCall) Context(ctx context.Context) *InstancesSendDiagnosticInterruptCall
- func (c *InstancesSendDiagnosticInterruptCall) Do(opts ...googleapi.CallOption) error
- func (c *InstancesSendDiagnosticInterruptCall) Fields(s ...googleapi.Field) *InstancesSendDiagnosticInterruptCall
- func (c *InstancesSendDiagnosticInterruptCall) Header() http.Header
- type InstancesService
- func (r *InstancesService) AddAccessConfig(project string, zone string, instance string, networkInterface string, ...) *InstancesAddAccessConfigCall
- func (r *InstancesService) AddResourcePolicies(project string, zone string, instance string, ...) *InstancesAddResourcePoliciesCall
- func (r *InstancesService) AggregatedList(project string) *InstancesAggregatedListCall
- func (r *InstancesService) AttachDisk(project string, zone string, instance string, attacheddisk *AttachedDisk) *InstancesAttachDiskCall
- func (r *InstancesService) BulkInsert(project string, zone string, ...) *InstancesBulkInsertCall
- func (r *InstancesService) Delete(project string, zone string, instance string) *InstancesDeleteCall
- func (r *InstancesService) DeleteAccessConfig(project string, zone string, instance string, accessConfig string, ...) *InstancesDeleteAccessConfigCall
- func (r *InstancesService) DetachDisk(project string, zone string, instance string, deviceName string) *InstancesDetachDiskCall
- func (r *InstancesService) Get(project string, zone string, instance string) *InstancesGetCall
- func (r *InstancesService) GetEffectiveFirewalls(project string, zone string, instance string, networkInterface string) *InstancesGetEffectiveFirewallsCall
- func (r *InstancesService) GetGuestAttributes(project string, zone string, instance string) *InstancesGetGuestAttributesCall
- func (r *InstancesService) GetIamPolicy(project string, zone string, resource string) *InstancesGetIamPolicyCall
- func (r *InstancesService) GetScreenshot(project string, zone string, instance string) *InstancesGetScreenshotCall
- func (r *InstancesService) GetSerialPortOutput(project string, zone string, instance string) *InstancesGetSerialPortOutputCall
- func (r *InstancesService) GetShieldedInstanceIdentity(project string, zone string, instance string) *InstancesGetShieldedInstanceIdentityCall
- func (r *InstancesService) Insert(project string, zone string, instance *Instance) *InstancesInsertCall
- func (r *InstancesService) List(project string, zone string) *InstancesListCall
- func (r *InstancesService) ListReferrers(project string, zone string, instance string) *InstancesListReferrersCall
- func (r *InstancesService) PerformMaintenance(project string, zone string, instance string) *InstancesPerformMaintenanceCall
- func (r *InstancesService) RemoveResourcePolicies(project string, zone string, instance string, ...) *InstancesRemoveResourcePoliciesCall
- func (r *InstancesService) Reset(project string, zone string, instance string) *InstancesResetCall
- func (r *InstancesService) Resume(project string, zone string, instance string) *InstancesResumeCall
- func (r *InstancesService) SendDiagnosticInterrupt(project string, zone string, instance string) *InstancesSendDiagnosticInterruptCall
- func (r *InstancesService) SetDeletionProtection(project string, zone string, resource string) *InstancesSetDeletionProtectionCall
- func (r *InstancesService) SetDiskAutoDelete(project string, zone string, instance string, autoDelete bool, ...) *InstancesSetDiskAutoDeleteCall
- func (r *InstancesService) SetIamPolicy(project string, zone string, resource string, ...) *InstancesSetIamPolicyCall
- func (r *InstancesService) SetLabels(project string, zone string, instance string, ...) *InstancesSetLabelsCall
- func (r *InstancesService) SetMachineResources(project string, zone string, instance string, ...) *InstancesSetMachineResourcesCall
- func (r *InstancesService) SetMachineType(project string, zone string, instance string, ...) *InstancesSetMachineTypeCall
- func (r *InstancesService) SetMetadata(project string, zone string, instance string, metadata *Metadata) *InstancesSetMetadataCall
- func (r *InstancesService) SetMinCpuPlatform(project string, zone string, instance string, ...) *InstancesSetMinCpuPlatformCall
- func (r *InstancesService) SetName(project string, zone string, instance string, ...) *InstancesSetNameCall
- func (r *InstancesService) SetScheduling(project string, zone string, instance string, scheduling *Scheduling) *InstancesSetSchedulingCall
- func (r *InstancesService) SetSecurityPolicy(project string, zone string, instance string, ...) *InstancesSetSecurityPolicyCall
- func (r *InstancesService) SetServiceAccount(project string, zone string, instance string, ...) *InstancesSetServiceAccountCall
- func (r *InstancesService) SetShieldedInstanceIntegrityPolicy(project string, zone string, instance string, ...) *InstancesSetShieldedInstanceIntegrityPolicyCall
- func (r *InstancesService) SetTags(project string, zone string, instance string, tags *Tags) *InstancesSetTagsCall
- func (r *InstancesService) SimulateMaintenanceEvent(project string, zone string, instance string) *InstancesSimulateMaintenanceEventCall
- func (r *InstancesService) Start(project string, zone string, instance string) *InstancesStartCall
- func (r *InstancesService) StartWithEncryptionKey(project string, zone string, instance string, ...) *InstancesStartWithEncryptionKeyCall
- func (r *InstancesService) Stop(project string, zone string, instance string) *InstancesStopCall
- func (r *InstancesService) Suspend(project string, zone string, instance string) *InstancesSuspendCall
- func (r *InstancesService) TestIamPermissions(project string, zone string, resource string, ...) *InstancesTestIamPermissionsCall
- func (r *InstancesService) Update(project string, zone string, instance string, instance2 *Instance) *InstancesUpdateCall
- func (r *InstancesService) UpdateAccessConfig(project string, zone string, instance string, networkInterface string, ...) *InstancesUpdateAccessConfigCall
- func (r *InstancesService) UpdateDisplayDevice(project string, zone string, instance string, displaydevice *DisplayDevice) *InstancesUpdateDisplayDeviceCall
- func (r *InstancesService) UpdateNetworkInterface(project string, zone string, instance string, networkInterface string, ...) *InstancesUpdateNetworkInterfaceCall
- func (r *InstancesService) UpdateShieldedInstanceConfig(project string, zone string, instance string, ...) *InstancesUpdateShieldedInstanceConfigCall
- type InstancesSetDeletionProtectionCall
- func (c *InstancesSetDeletionProtectionCall) Context(ctx context.Context) *InstancesSetDeletionProtectionCall
- func (c *InstancesSetDeletionProtectionCall) DeletionProtection(deletionProtection bool) *InstancesSetDeletionProtectionCall
- func (c *InstancesSetDeletionProtectionCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSetDeletionProtectionCall) Fields(s ...googleapi.Field) *InstancesSetDeletionProtectionCall
- func (c *InstancesSetDeletionProtectionCall) Header() http.Header
- func (c *InstancesSetDeletionProtectionCall) RequestId(requestId string) *InstancesSetDeletionProtectionCall
- type InstancesSetDiskAutoDeleteCall
- func (c *InstancesSetDiskAutoDeleteCall) Context(ctx context.Context) *InstancesSetDiskAutoDeleteCall
- func (c *InstancesSetDiskAutoDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSetDiskAutoDeleteCall) Fields(s ...googleapi.Field) *InstancesSetDiskAutoDeleteCall
- func (c *InstancesSetDiskAutoDeleteCall) Header() http.Header
- func (c *InstancesSetDiskAutoDeleteCall) RequestId(requestId string) *InstancesSetDiskAutoDeleteCall
- type InstancesSetIamPolicyCall
- func (c *InstancesSetIamPolicyCall) Context(ctx context.Context) *InstancesSetIamPolicyCall
- func (c *InstancesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *InstancesSetIamPolicyCall) Fields(s ...googleapi.Field) *InstancesSetIamPolicyCall
- func (c *InstancesSetIamPolicyCall) Header() http.Header
- type InstancesSetLabelsCall
- func (c *InstancesSetLabelsCall) Context(ctx context.Context) *InstancesSetLabelsCall
- func (c *InstancesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSetLabelsCall) Fields(s ...googleapi.Field) *InstancesSetLabelsCall
- func (c *InstancesSetLabelsCall) Header() http.Header
- func (c *InstancesSetLabelsCall) RequestId(requestId string) *InstancesSetLabelsCall
- type InstancesSetLabelsRequest
- type InstancesSetMachineResourcesCall
- func (c *InstancesSetMachineResourcesCall) Context(ctx context.Context) *InstancesSetMachineResourcesCall
- func (c *InstancesSetMachineResourcesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSetMachineResourcesCall) Fields(s ...googleapi.Field) *InstancesSetMachineResourcesCall
- func (c *InstancesSetMachineResourcesCall) Header() http.Header
- func (c *InstancesSetMachineResourcesCall) RequestId(requestId string) *InstancesSetMachineResourcesCall
- type InstancesSetMachineResourcesRequest
- type InstancesSetMachineTypeCall
- func (c *InstancesSetMachineTypeCall) Context(ctx context.Context) *InstancesSetMachineTypeCall
- func (c *InstancesSetMachineTypeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSetMachineTypeCall) Fields(s ...googleapi.Field) *InstancesSetMachineTypeCall
- func (c *InstancesSetMachineTypeCall) Header() http.Header
- func (c *InstancesSetMachineTypeCall) RequestId(requestId string) *InstancesSetMachineTypeCall
- type InstancesSetMachineTypeRequest
- type InstancesSetMetadataCall
- func (c *InstancesSetMetadataCall) Context(ctx context.Context) *InstancesSetMetadataCall
- func (c *InstancesSetMetadataCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSetMetadataCall) Fields(s ...googleapi.Field) *InstancesSetMetadataCall
- func (c *InstancesSetMetadataCall) Header() http.Header
- func (c *InstancesSetMetadataCall) RequestId(requestId string) *InstancesSetMetadataCall
- type InstancesSetMinCpuPlatformCall
- func (c *InstancesSetMinCpuPlatformCall) Context(ctx context.Context) *InstancesSetMinCpuPlatformCall
- func (c *InstancesSetMinCpuPlatformCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSetMinCpuPlatformCall) Fields(s ...googleapi.Field) *InstancesSetMinCpuPlatformCall
- func (c *InstancesSetMinCpuPlatformCall) Header() http.Header
- func (c *InstancesSetMinCpuPlatformCall) RequestId(requestId string) *InstancesSetMinCpuPlatformCall
- type InstancesSetMinCpuPlatformRequest
- type InstancesSetNameCall
- func (c *InstancesSetNameCall) Context(ctx context.Context) *InstancesSetNameCall
- func (c *InstancesSetNameCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSetNameCall) Fields(s ...googleapi.Field) *InstancesSetNameCall
- func (c *InstancesSetNameCall) Header() http.Header
- func (c *InstancesSetNameCall) RequestId(requestId string) *InstancesSetNameCall
- type InstancesSetNameRequest
- type InstancesSetSchedulingCall
- func (c *InstancesSetSchedulingCall) Context(ctx context.Context) *InstancesSetSchedulingCall
- func (c *InstancesSetSchedulingCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSetSchedulingCall) Fields(s ...googleapi.Field) *InstancesSetSchedulingCall
- func (c *InstancesSetSchedulingCall) Header() http.Header
- func (c *InstancesSetSchedulingCall) RequestId(requestId string) *InstancesSetSchedulingCall
- type InstancesSetSecurityPolicyCall
- func (c *InstancesSetSecurityPolicyCall) Context(ctx context.Context) *InstancesSetSecurityPolicyCall
- func (c *InstancesSetSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSetSecurityPolicyCall) Fields(s ...googleapi.Field) *InstancesSetSecurityPolicyCall
- func (c *InstancesSetSecurityPolicyCall) Header() http.Header
- func (c *InstancesSetSecurityPolicyCall) RequestId(requestId string) *InstancesSetSecurityPolicyCall
- type InstancesSetSecurityPolicyRequest
- type InstancesSetServiceAccountCall
- func (c *InstancesSetServiceAccountCall) Context(ctx context.Context) *InstancesSetServiceAccountCall
- func (c *InstancesSetServiceAccountCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSetServiceAccountCall) Fields(s ...googleapi.Field) *InstancesSetServiceAccountCall
- func (c *InstancesSetServiceAccountCall) Header() http.Header
- func (c *InstancesSetServiceAccountCall) RequestId(requestId string) *InstancesSetServiceAccountCall
- type InstancesSetServiceAccountRequest
- type InstancesSetShieldedInstanceIntegrityPolicyCall
- func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Context(ctx context.Context) *InstancesSetShieldedInstanceIntegrityPolicyCall
- func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Fields(s ...googleapi.Field) *InstancesSetShieldedInstanceIntegrityPolicyCall
- func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Header() http.Header
- func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) RequestId(requestId string) *InstancesSetShieldedInstanceIntegrityPolicyCall
- type InstancesSetTagsCall
- func (c *InstancesSetTagsCall) Context(ctx context.Context) *InstancesSetTagsCall
- func (c *InstancesSetTagsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSetTagsCall) Fields(s ...googleapi.Field) *InstancesSetTagsCall
- func (c *InstancesSetTagsCall) Header() http.Header
- func (c *InstancesSetTagsCall) RequestId(requestId string) *InstancesSetTagsCall
- type InstancesSimulateMaintenanceEventCall
- func (c *InstancesSimulateMaintenanceEventCall) Context(ctx context.Context) *InstancesSimulateMaintenanceEventCall
- func (c *InstancesSimulateMaintenanceEventCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSimulateMaintenanceEventCall) Fields(s ...googleapi.Field) *InstancesSimulateMaintenanceEventCall
- func (c *InstancesSimulateMaintenanceEventCall) Header() http.Header
- func (c *InstancesSimulateMaintenanceEventCall) RequestId(requestId string) *InstancesSimulateMaintenanceEventCall
- func (c *InstancesSimulateMaintenanceEventCall) WithExtendedNotifications(withExtendedNotifications bool) *InstancesSimulateMaintenanceEventCall
- type InstancesStartCall
- func (c *InstancesStartCall) Context(ctx context.Context) *InstancesStartCall
- func (c *InstancesStartCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesStartCall) Fields(s ...googleapi.Field) *InstancesStartCall
- func (c *InstancesStartCall) Header() http.Header
- func (c *InstancesStartCall) RequestId(requestId string) *InstancesStartCall
- type InstancesStartWithEncryptionKeyCall
- func (c *InstancesStartWithEncryptionKeyCall) Context(ctx context.Context) *InstancesStartWithEncryptionKeyCall
- func (c *InstancesStartWithEncryptionKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesStartWithEncryptionKeyCall) Fields(s ...googleapi.Field) *InstancesStartWithEncryptionKeyCall
- func (c *InstancesStartWithEncryptionKeyCall) Header() http.Header
- func (c *InstancesStartWithEncryptionKeyCall) RequestId(requestId string) *InstancesStartWithEncryptionKeyCall
- type InstancesStartWithEncryptionKeyRequest
- type InstancesStopCall
- func (c *InstancesStopCall) Context(ctx context.Context) *InstancesStopCall
- func (c *InstancesStopCall) DiscardLocalSsd(discardLocalSsd bool) *InstancesStopCall
- func (c *InstancesStopCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesStopCall) Fields(s ...googleapi.Field) *InstancesStopCall
- func (c *InstancesStopCall) Header() http.Header
- func (c *InstancesStopCall) RequestId(requestId string) *InstancesStopCall
- type InstancesSuspendCall
- func (c *InstancesSuspendCall) Context(ctx context.Context) *InstancesSuspendCall
- func (c *InstancesSuspendCall) DiscardLocalSsd(discardLocalSsd bool) *InstancesSuspendCall
- func (c *InstancesSuspendCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSuspendCall) Fields(s ...googleapi.Field) *InstancesSuspendCall
- func (c *InstancesSuspendCall) Header() http.Header
- func (c *InstancesSuspendCall) RequestId(requestId string) *InstancesSuspendCall
- type InstancesTestIamPermissionsCall
- func (c *InstancesTestIamPermissionsCall) Context(ctx context.Context) *InstancesTestIamPermissionsCall
- func (c *InstancesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *InstancesTestIamPermissionsCall) Fields(s ...googleapi.Field) *InstancesTestIamPermissionsCall
- func (c *InstancesTestIamPermissionsCall) Header() http.Header
- type InstancesUpdateAccessConfigCall
- func (c *InstancesUpdateAccessConfigCall) Context(ctx context.Context) *InstancesUpdateAccessConfigCall
- func (c *InstancesUpdateAccessConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesUpdateAccessConfigCall) Fields(s ...googleapi.Field) *InstancesUpdateAccessConfigCall
- func (c *InstancesUpdateAccessConfigCall) Header() http.Header
- func (c *InstancesUpdateAccessConfigCall) RequestId(requestId string) *InstancesUpdateAccessConfigCall
- type InstancesUpdateCall
- func (c *InstancesUpdateCall) Context(ctx context.Context) *InstancesUpdateCall
- func (c *InstancesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesUpdateCall) Fields(s ...googleapi.Field) *InstancesUpdateCall
- func (c *InstancesUpdateCall) Header() http.Header
- func (c *InstancesUpdateCall) MinimalAction(minimalAction string) *InstancesUpdateCall
- func (c *InstancesUpdateCall) MostDisruptiveAllowedAction(mostDisruptiveAllowedAction string) *InstancesUpdateCall
- func (c *InstancesUpdateCall) RequestId(requestId string) *InstancesUpdateCall
- type InstancesUpdateDisplayDeviceCall
- func (c *InstancesUpdateDisplayDeviceCall) Context(ctx context.Context) *InstancesUpdateDisplayDeviceCall
- func (c *InstancesUpdateDisplayDeviceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesUpdateDisplayDeviceCall) Fields(s ...googleapi.Field) *InstancesUpdateDisplayDeviceCall
- func (c *InstancesUpdateDisplayDeviceCall) Header() http.Header
- func (c *InstancesUpdateDisplayDeviceCall) RequestId(requestId string) *InstancesUpdateDisplayDeviceCall
- type InstancesUpdateNetworkInterfaceCall
- func (c *InstancesUpdateNetworkInterfaceCall) Context(ctx context.Context) *InstancesUpdateNetworkInterfaceCall
- func (c *InstancesUpdateNetworkInterfaceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesUpdateNetworkInterfaceCall) Fields(s ...googleapi.Field) *InstancesUpdateNetworkInterfaceCall
- func (c *InstancesUpdateNetworkInterfaceCall) Header() http.Header
- func (c *InstancesUpdateNetworkInterfaceCall) RequestId(requestId string) *InstancesUpdateNetworkInterfaceCall
- type InstancesUpdateShieldedInstanceConfigCall
- func (c *InstancesUpdateShieldedInstanceConfigCall) Context(ctx context.Context) *InstancesUpdateShieldedInstanceConfigCall
- func (c *InstancesUpdateShieldedInstanceConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesUpdateShieldedInstanceConfigCall) Fields(s ...googleapi.Field) *InstancesUpdateShieldedInstanceConfigCall
- func (c *InstancesUpdateShieldedInstanceConfigCall) Header() http.Header
- func (c *InstancesUpdateShieldedInstanceConfigCall) RequestId(requestId string) *InstancesUpdateShieldedInstanceConfigCall
- type InstantSnapshot
- type InstantSnapshotAggregatedList
- type InstantSnapshotAggregatedListWarning
- type InstantSnapshotAggregatedListWarningData
- type InstantSnapshotList
- type InstantSnapshotListWarning
- type InstantSnapshotListWarningData
- type InstantSnapshotResourceStatus
- type InstantSnapshotsAggregatedListCall
- func (c *InstantSnapshotsAggregatedListCall) Context(ctx context.Context) *InstantSnapshotsAggregatedListCall
- func (c *InstantSnapshotsAggregatedListCall) Do(opts ...googleapi.CallOption) (*InstantSnapshotAggregatedList, error)
- func (c *InstantSnapshotsAggregatedListCall) Fields(s ...googleapi.Field) *InstantSnapshotsAggregatedListCall
- func (c *InstantSnapshotsAggregatedListCall) Filter(filter string) *InstantSnapshotsAggregatedListCall
- func (c *InstantSnapshotsAggregatedListCall) Header() http.Header
- func (c *InstantSnapshotsAggregatedListCall) IfNoneMatch(entityTag string) *InstantSnapshotsAggregatedListCall
- func (c *InstantSnapshotsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *InstantSnapshotsAggregatedListCall
- func (c *InstantSnapshotsAggregatedListCall) MaxResults(maxResults int64) *InstantSnapshotsAggregatedListCall
- func (c *InstantSnapshotsAggregatedListCall) OrderBy(orderBy string) *InstantSnapshotsAggregatedListCall
- func (c *InstantSnapshotsAggregatedListCall) PageToken(pageToken string) *InstantSnapshotsAggregatedListCall
- func (c *InstantSnapshotsAggregatedListCall) Pages(ctx context.Context, f func(*InstantSnapshotAggregatedList) error) error
- func (c *InstantSnapshotsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstantSnapshotsAggregatedListCall
- func (c *InstantSnapshotsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *InstantSnapshotsAggregatedListCall
- type InstantSnapshotsDeleteCall
- func (c *InstantSnapshotsDeleteCall) Context(ctx context.Context) *InstantSnapshotsDeleteCall
- func (c *InstantSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstantSnapshotsDeleteCall) Fields(s ...googleapi.Field) *InstantSnapshotsDeleteCall
- func (c *InstantSnapshotsDeleteCall) Header() http.Header
- func (c *InstantSnapshotsDeleteCall) RequestId(requestId string) *InstantSnapshotsDeleteCall
- type InstantSnapshotsGetCall
- func (c *InstantSnapshotsGetCall) Context(ctx context.Context) *InstantSnapshotsGetCall
- func (c *InstantSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*InstantSnapshot, error)
- func (c *InstantSnapshotsGetCall) Fields(s ...googleapi.Field) *InstantSnapshotsGetCall
- func (c *InstantSnapshotsGetCall) Header() http.Header
- func (c *InstantSnapshotsGetCall) IfNoneMatch(entityTag string) *InstantSnapshotsGetCall
- type InstantSnapshotsGetIamPolicyCall
- func (c *InstantSnapshotsGetIamPolicyCall) Context(ctx context.Context) *InstantSnapshotsGetIamPolicyCall
- func (c *InstantSnapshotsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *InstantSnapshotsGetIamPolicyCall) Fields(s ...googleapi.Field) *InstantSnapshotsGetIamPolicyCall
- func (c *InstantSnapshotsGetIamPolicyCall) Header() http.Header
- func (c *InstantSnapshotsGetIamPolicyCall) IfNoneMatch(entityTag string) *InstantSnapshotsGetIamPolicyCall
- func (c *InstantSnapshotsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *InstantSnapshotsGetIamPolicyCall
- type InstantSnapshotsInsertCall
- func (c *InstantSnapshotsInsertCall) Context(ctx context.Context) *InstantSnapshotsInsertCall
- func (c *InstantSnapshotsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstantSnapshotsInsertCall) Fields(s ...googleapi.Field) *InstantSnapshotsInsertCall
- func (c *InstantSnapshotsInsertCall) Header() http.Header
- func (c *InstantSnapshotsInsertCall) RequestId(requestId string) *InstantSnapshotsInsertCall
- type InstantSnapshotsListCall
- func (c *InstantSnapshotsListCall) Context(ctx context.Context) *InstantSnapshotsListCall
- func (c *InstantSnapshotsListCall) Do(opts ...googleapi.CallOption) (*InstantSnapshotList, error)
- func (c *InstantSnapshotsListCall) Fields(s ...googleapi.Field) *InstantSnapshotsListCall
- func (c *InstantSnapshotsListCall) Filter(filter string) *InstantSnapshotsListCall
- func (c *InstantSnapshotsListCall) Header() http.Header
- func (c *InstantSnapshotsListCall) IfNoneMatch(entityTag string) *InstantSnapshotsListCall
- func (c *InstantSnapshotsListCall) MaxResults(maxResults int64) *InstantSnapshotsListCall
- func (c *InstantSnapshotsListCall) OrderBy(orderBy string) *InstantSnapshotsListCall
- func (c *InstantSnapshotsListCall) PageToken(pageToken string) *InstantSnapshotsListCall
- func (c *InstantSnapshotsListCall) Pages(ctx context.Context, f func(*InstantSnapshotList) error) error
- func (c *InstantSnapshotsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstantSnapshotsListCall
- type InstantSnapshotsScopedList
- type InstantSnapshotsScopedListWarning
- type InstantSnapshotsScopedListWarningData
- type InstantSnapshotsService
- func (r *InstantSnapshotsService) AggregatedList(project string) *InstantSnapshotsAggregatedListCall
- func (r *InstantSnapshotsService) Delete(project string, zone string, instantSnapshot string) *InstantSnapshotsDeleteCall
- func (r *InstantSnapshotsService) Get(project string, zone string, instantSnapshot string) *InstantSnapshotsGetCall
- func (r *InstantSnapshotsService) GetIamPolicy(project string, zone string, resource string) *InstantSnapshotsGetIamPolicyCall
- func (r *InstantSnapshotsService) Insert(project string, zone string, instantsnapshot *InstantSnapshot) *InstantSnapshotsInsertCall
- func (r *InstantSnapshotsService) List(project string, zone string) *InstantSnapshotsListCall
- func (r *InstantSnapshotsService) SetIamPolicy(project string, zone string, resource string, ...) *InstantSnapshotsSetIamPolicyCall
- func (r *InstantSnapshotsService) SetLabels(project string, zone string, resource string, ...) *InstantSnapshotsSetLabelsCall
- func (r *InstantSnapshotsService) TestIamPermissions(project string, zone string, resource string, ...) *InstantSnapshotsTestIamPermissionsCall
- type InstantSnapshotsSetIamPolicyCall
- func (c *InstantSnapshotsSetIamPolicyCall) Context(ctx context.Context) *InstantSnapshotsSetIamPolicyCall
- func (c *InstantSnapshotsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *InstantSnapshotsSetIamPolicyCall) Fields(s ...googleapi.Field) *InstantSnapshotsSetIamPolicyCall
- func (c *InstantSnapshotsSetIamPolicyCall) Header() http.Header
- type InstantSnapshotsSetLabelsCall
- func (c *InstantSnapshotsSetLabelsCall) Context(ctx context.Context) *InstantSnapshotsSetLabelsCall
- func (c *InstantSnapshotsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstantSnapshotsSetLabelsCall) Fields(s ...googleapi.Field) *InstantSnapshotsSetLabelsCall
- func (c *InstantSnapshotsSetLabelsCall) Header() http.Header
- func (c *InstantSnapshotsSetLabelsCall) RequestId(requestId string) *InstantSnapshotsSetLabelsCall
- type InstantSnapshotsTestIamPermissionsCall
- func (c *InstantSnapshotsTestIamPermissionsCall) Context(ctx context.Context) *InstantSnapshotsTestIamPermissionsCall
- func (c *InstantSnapshotsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *InstantSnapshotsTestIamPermissionsCall) Fields(s ...googleapi.Field) *InstantSnapshotsTestIamPermissionsCall
- func (c *InstantSnapshotsTestIamPermissionsCall) Header() http.Header
- type Int64RangeMatch
- type Interconnect
- type InterconnectAttachment
- type InterconnectAttachmentAggregatedList
- type InterconnectAttachmentAggregatedListWarning
- type InterconnectAttachmentAggregatedListWarningData
- type InterconnectAttachmentConfigurationConstraints
- type InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange
- type InterconnectAttachmentList
- type InterconnectAttachmentListWarning
- type InterconnectAttachmentListWarningData
- type InterconnectAttachmentPartnerMetadata
- type InterconnectAttachmentPrivateInfo
- type InterconnectAttachmentsAggregatedListCall
- func (c *InterconnectAttachmentsAggregatedListCall) Context(ctx context.Context) *InterconnectAttachmentsAggregatedListCall
- func (c *InterconnectAttachmentsAggregatedListCall) Do(opts ...googleapi.CallOption) (*InterconnectAttachmentAggregatedList, error)
- func (c *InterconnectAttachmentsAggregatedListCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsAggregatedListCall
- func (c *InterconnectAttachmentsAggregatedListCall) Filter(filter string) *InterconnectAttachmentsAggregatedListCall
- func (c *InterconnectAttachmentsAggregatedListCall) Header() http.Header
- func (c *InterconnectAttachmentsAggregatedListCall) IfNoneMatch(entityTag string) *InterconnectAttachmentsAggregatedListCall
- func (c *InterconnectAttachmentsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *InterconnectAttachmentsAggregatedListCall
- func (c *InterconnectAttachmentsAggregatedListCall) MaxResults(maxResults int64) *InterconnectAttachmentsAggregatedListCall
- func (c *InterconnectAttachmentsAggregatedListCall) OrderBy(orderBy string) *InterconnectAttachmentsAggregatedListCall
- func (c *InterconnectAttachmentsAggregatedListCall) PageToken(pageToken string) *InterconnectAttachmentsAggregatedListCall
- func (c *InterconnectAttachmentsAggregatedListCall) Pages(ctx context.Context, f func(*InterconnectAttachmentAggregatedList) error) error
- func (c *InterconnectAttachmentsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InterconnectAttachmentsAggregatedListCall
- func (c *InterconnectAttachmentsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *InterconnectAttachmentsAggregatedListCall
- type InterconnectAttachmentsDeleteCall
- func (c *InterconnectAttachmentsDeleteCall) Context(ctx context.Context) *InterconnectAttachmentsDeleteCall
- func (c *InterconnectAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InterconnectAttachmentsDeleteCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsDeleteCall
- func (c *InterconnectAttachmentsDeleteCall) Header() http.Header
- func (c *InterconnectAttachmentsDeleteCall) RequestId(requestId string) *InterconnectAttachmentsDeleteCall
- type InterconnectAttachmentsGetCall
- func (c *InterconnectAttachmentsGetCall) Context(ctx context.Context) *InterconnectAttachmentsGetCall
- func (c *InterconnectAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*InterconnectAttachment, error)
- func (c *InterconnectAttachmentsGetCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsGetCall
- func (c *InterconnectAttachmentsGetCall) Header() http.Header
- func (c *InterconnectAttachmentsGetCall) IfNoneMatch(entityTag string) *InterconnectAttachmentsGetCall
- type InterconnectAttachmentsInsertCall
- func (c *InterconnectAttachmentsInsertCall) Context(ctx context.Context) *InterconnectAttachmentsInsertCall
- func (c *InterconnectAttachmentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InterconnectAttachmentsInsertCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsInsertCall
- func (c *InterconnectAttachmentsInsertCall) Header() http.Header
- func (c *InterconnectAttachmentsInsertCall) RequestId(requestId string) *InterconnectAttachmentsInsertCall
- func (c *InterconnectAttachmentsInsertCall) ValidateOnly(validateOnly bool) *InterconnectAttachmentsInsertCall
- type InterconnectAttachmentsListCall
- func (c *InterconnectAttachmentsListCall) Context(ctx context.Context) *InterconnectAttachmentsListCall
- func (c *InterconnectAttachmentsListCall) Do(opts ...googleapi.CallOption) (*InterconnectAttachmentList, error)
- func (c *InterconnectAttachmentsListCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsListCall
- func (c *InterconnectAttachmentsListCall) Filter(filter string) *InterconnectAttachmentsListCall
- func (c *InterconnectAttachmentsListCall) Header() http.Header
- func (c *InterconnectAttachmentsListCall) IfNoneMatch(entityTag string) *InterconnectAttachmentsListCall
- func (c *InterconnectAttachmentsListCall) MaxResults(maxResults int64) *InterconnectAttachmentsListCall
- func (c *InterconnectAttachmentsListCall) OrderBy(orderBy string) *InterconnectAttachmentsListCall
- func (c *InterconnectAttachmentsListCall) PageToken(pageToken string) *InterconnectAttachmentsListCall
- func (c *InterconnectAttachmentsListCall) Pages(ctx context.Context, f func(*InterconnectAttachmentList) error) error
- func (c *InterconnectAttachmentsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InterconnectAttachmentsListCall
- type InterconnectAttachmentsPatchCall
- func (c *InterconnectAttachmentsPatchCall) Context(ctx context.Context) *InterconnectAttachmentsPatchCall
- func (c *InterconnectAttachmentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InterconnectAttachmentsPatchCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsPatchCall
- func (c *InterconnectAttachmentsPatchCall) Header() http.Header
- func (c *InterconnectAttachmentsPatchCall) RequestId(requestId string) *InterconnectAttachmentsPatchCall
- type InterconnectAttachmentsScopedList
- type InterconnectAttachmentsScopedListWarning
- type InterconnectAttachmentsScopedListWarningData
- type InterconnectAttachmentsService
- func (r *InterconnectAttachmentsService) AggregatedList(project string) *InterconnectAttachmentsAggregatedListCall
- func (r *InterconnectAttachmentsService) Delete(project string, region string, interconnectAttachment string) *InterconnectAttachmentsDeleteCall
- func (r *InterconnectAttachmentsService) Get(project string, region string, interconnectAttachment string) *InterconnectAttachmentsGetCall
- func (r *InterconnectAttachmentsService) Insert(project string, region string, interconnectattachment *InterconnectAttachment) *InterconnectAttachmentsInsertCall
- func (r *InterconnectAttachmentsService) List(project string, region string) *InterconnectAttachmentsListCall
- func (r *InterconnectAttachmentsService) Patch(project string, region string, interconnectAttachment string, ...) *InterconnectAttachmentsPatchCall
- func (r *InterconnectAttachmentsService) SetLabels(project string, region string, resource string, ...) *InterconnectAttachmentsSetLabelsCall
- type InterconnectAttachmentsSetLabelsCall
- func (c *InterconnectAttachmentsSetLabelsCall) Context(ctx context.Context) *InterconnectAttachmentsSetLabelsCall
- func (c *InterconnectAttachmentsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InterconnectAttachmentsSetLabelsCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsSetLabelsCall
- func (c *InterconnectAttachmentsSetLabelsCall) Header() http.Header
- func (c *InterconnectAttachmentsSetLabelsCall) RequestId(requestId string) *InterconnectAttachmentsSetLabelsCall
- type InterconnectCircuitInfo
- type InterconnectDiagnostics
- type InterconnectDiagnosticsARPEntry
- type InterconnectDiagnosticsLinkLACPStatus
- type InterconnectDiagnosticsLinkOpticalPower
- type InterconnectDiagnosticsLinkStatus
- type InterconnectDiagnosticsMacsecStatus
- type InterconnectList
- type InterconnectListWarning
- type InterconnectListWarningData
- type InterconnectLocation
- type InterconnectLocationList
- type InterconnectLocationListWarning
- type InterconnectLocationListWarningData
- type InterconnectLocationRegionInfo
- type InterconnectLocationsGetCall
- func (c *InterconnectLocationsGetCall) Context(ctx context.Context) *InterconnectLocationsGetCall
- func (c *InterconnectLocationsGetCall) Do(opts ...googleapi.CallOption) (*InterconnectLocation, error)
- func (c *InterconnectLocationsGetCall) Fields(s ...googleapi.Field) *InterconnectLocationsGetCall
- func (c *InterconnectLocationsGetCall) Header() http.Header
- func (c *InterconnectLocationsGetCall) IfNoneMatch(entityTag string) *InterconnectLocationsGetCall
- type InterconnectLocationsListCall
- func (c *InterconnectLocationsListCall) Context(ctx context.Context) *InterconnectLocationsListCall
- func (c *InterconnectLocationsListCall) Do(opts ...googleapi.CallOption) (*InterconnectLocationList, error)
- func (c *InterconnectLocationsListCall) Fields(s ...googleapi.Field) *InterconnectLocationsListCall
- func (c *InterconnectLocationsListCall) Filter(filter string) *InterconnectLocationsListCall
- func (c *InterconnectLocationsListCall) Header() http.Header
- func (c *InterconnectLocationsListCall) IfNoneMatch(entityTag string) *InterconnectLocationsListCall
- func (c *InterconnectLocationsListCall) MaxResults(maxResults int64) *InterconnectLocationsListCall
- func (c *InterconnectLocationsListCall) OrderBy(orderBy string) *InterconnectLocationsListCall
- func (c *InterconnectLocationsListCall) PageToken(pageToken string) *InterconnectLocationsListCall
- func (c *InterconnectLocationsListCall) Pages(ctx context.Context, f func(*InterconnectLocationList) error) error
- func (c *InterconnectLocationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InterconnectLocationsListCall
- type InterconnectLocationsService
- type InterconnectMacsec
- type InterconnectMacsecConfig
- type InterconnectMacsecConfigPreSharedKey
- type InterconnectMacsecPreSharedKey
- type InterconnectOutageNotification
- type InterconnectRemoteLocation
- type InterconnectRemoteLocationConstraints
- type InterconnectRemoteLocationConstraintsSubnetLengthRange
- type InterconnectRemoteLocationList
- type InterconnectRemoteLocationListWarning
- type InterconnectRemoteLocationListWarningData
- type InterconnectRemoteLocationPermittedConnections
- type InterconnectRemoteLocationsGetCall
- func (c *InterconnectRemoteLocationsGetCall) Context(ctx context.Context) *InterconnectRemoteLocationsGetCall
- func (c *InterconnectRemoteLocationsGetCall) Do(opts ...googleapi.CallOption) (*InterconnectRemoteLocation, error)
- func (c *InterconnectRemoteLocationsGetCall) Fields(s ...googleapi.Field) *InterconnectRemoteLocationsGetCall
- func (c *InterconnectRemoteLocationsGetCall) Header() http.Header
- func (c *InterconnectRemoteLocationsGetCall) IfNoneMatch(entityTag string) *InterconnectRemoteLocationsGetCall
- type InterconnectRemoteLocationsListCall
- func (c *InterconnectRemoteLocationsListCall) Context(ctx context.Context) *InterconnectRemoteLocationsListCall
- func (c *InterconnectRemoteLocationsListCall) Do(opts ...googleapi.CallOption) (*InterconnectRemoteLocationList, error)
- func (c *InterconnectRemoteLocationsListCall) Fields(s ...googleapi.Field) *InterconnectRemoteLocationsListCall
- func (c *InterconnectRemoteLocationsListCall) Filter(filter string) *InterconnectRemoteLocationsListCall
- func (c *InterconnectRemoteLocationsListCall) Header() http.Header
- func (c *InterconnectRemoteLocationsListCall) IfNoneMatch(entityTag string) *InterconnectRemoteLocationsListCall
- func (c *InterconnectRemoteLocationsListCall) MaxResults(maxResults int64) *InterconnectRemoteLocationsListCall
- func (c *InterconnectRemoteLocationsListCall) OrderBy(orderBy string) *InterconnectRemoteLocationsListCall
- func (c *InterconnectRemoteLocationsListCall) PageToken(pageToken string) *InterconnectRemoteLocationsListCall
- func (c *InterconnectRemoteLocationsListCall) Pages(ctx context.Context, f func(*InterconnectRemoteLocationList) error) error
- func (c *InterconnectRemoteLocationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InterconnectRemoteLocationsListCall
- type InterconnectRemoteLocationsService
- type InterconnectsDeleteCall
- func (c *InterconnectsDeleteCall) Context(ctx context.Context) *InterconnectsDeleteCall
- func (c *InterconnectsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InterconnectsDeleteCall) Fields(s ...googleapi.Field) *InterconnectsDeleteCall
- func (c *InterconnectsDeleteCall) Header() http.Header
- func (c *InterconnectsDeleteCall) RequestId(requestId string) *InterconnectsDeleteCall
- type InterconnectsGetCall
- func (c *InterconnectsGetCall) Context(ctx context.Context) *InterconnectsGetCall
- func (c *InterconnectsGetCall) Do(opts ...googleapi.CallOption) (*Interconnect, error)
- func (c *InterconnectsGetCall) Fields(s ...googleapi.Field) *InterconnectsGetCall
- func (c *InterconnectsGetCall) Header() http.Header
- func (c *InterconnectsGetCall) IfNoneMatch(entityTag string) *InterconnectsGetCall
- type InterconnectsGetDiagnosticsCall
- func (c *InterconnectsGetDiagnosticsCall) Context(ctx context.Context) *InterconnectsGetDiagnosticsCall
- func (c *InterconnectsGetDiagnosticsCall) Do(opts ...googleapi.CallOption) (*InterconnectsGetDiagnosticsResponse, error)
- func (c *InterconnectsGetDiagnosticsCall) Fields(s ...googleapi.Field) *InterconnectsGetDiagnosticsCall
- func (c *InterconnectsGetDiagnosticsCall) Header() http.Header
- func (c *InterconnectsGetDiagnosticsCall) IfNoneMatch(entityTag string) *InterconnectsGetDiagnosticsCall
- type InterconnectsGetDiagnosticsResponse
- type InterconnectsGetMacsecConfigCall
- func (c *InterconnectsGetMacsecConfigCall) Context(ctx context.Context) *InterconnectsGetMacsecConfigCall
- func (c *InterconnectsGetMacsecConfigCall) Do(opts ...googleapi.CallOption) (*InterconnectsGetMacsecConfigResponse, error)
- func (c *InterconnectsGetMacsecConfigCall) Fields(s ...googleapi.Field) *InterconnectsGetMacsecConfigCall
- func (c *InterconnectsGetMacsecConfigCall) Header() http.Header
- func (c *InterconnectsGetMacsecConfigCall) IfNoneMatch(entityTag string) *InterconnectsGetMacsecConfigCall
- type InterconnectsGetMacsecConfigResponse
- type InterconnectsInsertCall
- func (c *InterconnectsInsertCall) Context(ctx context.Context) *InterconnectsInsertCall
- func (c *InterconnectsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InterconnectsInsertCall) Fields(s ...googleapi.Field) *InterconnectsInsertCall
- func (c *InterconnectsInsertCall) Header() http.Header
- func (c *InterconnectsInsertCall) RequestId(requestId string) *InterconnectsInsertCall
- type InterconnectsListCall
- func (c *InterconnectsListCall) Context(ctx context.Context) *InterconnectsListCall
- func (c *InterconnectsListCall) Do(opts ...googleapi.CallOption) (*InterconnectList, error)
- func (c *InterconnectsListCall) Fields(s ...googleapi.Field) *InterconnectsListCall
- func (c *InterconnectsListCall) Filter(filter string) *InterconnectsListCall
- func (c *InterconnectsListCall) Header() http.Header
- func (c *InterconnectsListCall) IfNoneMatch(entityTag string) *InterconnectsListCall
- func (c *InterconnectsListCall) MaxResults(maxResults int64) *InterconnectsListCall
- func (c *InterconnectsListCall) OrderBy(orderBy string) *InterconnectsListCall
- func (c *InterconnectsListCall) PageToken(pageToken string) *InterconnectsListCall
- func (c *InterconnectsListCall) Pages(ctx context.Context, f func(*InterconnectList) error) error
- func (c *InterconnectsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InterconnectsListCall
- type InterconnectsPatchCall
- func (c *InterconnectsPatchCall) Context(ctx context.Context) *InterconnectsPatchCall
- func (c *InterconnectsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InterconnectsPatchCall) Fields(s ...googleapi.Field) *InterconnectsPatchCall
- func (c *InterconnectsPatchCall) Header() http.Header
- func (c *InterconnectsPatchCall) RequestId(requestId string) *InterconnectsPatchCall
- type InterconnectsService
- func (r *InterconnectsService) Delete(project string, interconnect string) *InterconnectsDeleteCall
- func (r *InterconnectsService) Get(project string, interconnect string) *InterconnectsGetCall
- func (r *InterconnectsService) GetDiagnostics(project string, interconnect string) *InterconnectsGetDiagnosticsCall
- func (r *InterconnectsService) GetMacsecConfig(project string, interconnect string) *InterconnectsGetMacsecConfigCall
- func (r *InterconnectsService) Insert(project string, interconnect *Interconnect) *InterconnectsInsertCall
- func (r *InterconnectsService) List(project string) *InterconnectsListCall
- func (r *InterconnectsService) Patch(project string, interconnect string, interconnect2 *Interconnect) *InterconnectsPatchCall
- func (r *InterconnectsService) SetLabels(project string, resource string, ...) *InterconnectsSetLabelsCall
- type InterconnectsSetLabelsCall
- func (c *InterconnectsSetLabelsCall) Context(ctx context.Context) *InterconnectsSetLabelsCall
- func (c *InterconnectsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InterconnectsSetLabelsCall) Fields(s ...googleapi.Field) *InterconnectsSetLabelsCall
- func (c *InterconnectsSetLabelsCall) Header() http.Header
- type License
- type LicenseCode
- type LicenseCodeLicenseAlias
- type LicenseCodesGetCall
- func (c *LicenseCodesGetCall) Context(ctx context.Context) *LicenseCodesGetCall
- func (c *LicenseCodesGetCall) Do(opts ...googleapi.CallOption) (*LicenseCode, error)
- func (c *LicenseCodesGetCall) Fields(s ...googleapi.Field) *LicenseCodesGetCall
- func (c *LicenseCodesGetCall) Header() http.Header
- func (c *LicenseCodesGetCall) IfNoneMatch(entityTag string) *LicenseCodesGetCall
- type LicenseCodesService
- type LicenseCodesTestIamPermissionsCall
- func (c *LicenseCodesTestIamPermissionsCall) Context(ctx context.Context) *LicenseCodesTestIamPermissionsCall
- func (c *LicenseCodesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *LicenseCodesTestIamPermissionsCall) Fields(s ...googleapi.Field) *LicenseCodesTestIamPermissionsCall
- func (c *LicenseCodesTestIamPermissionsCall) Header() http.Header
- type LicenseResourceCommitment
- type LicenseResourceRequirements
- type LicensesDeleteCall
- func (c *LicensesDeleteCall) Context(ctx context.Context) *LicensesDeleteCall
- func (c *LicensesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *LicensesDeleteCall) Fields(s ...googleapi.Field) *LicensesDeleteCall
- func (c *LicensesDeleteCall) Header() http.Header
- func (c *LicensesDeleteCall) RequestId(requestId string) *LicensesDeleteCall
- type LicensesGetCall
- func (c *LicensesGetCall) Context(ctx context.Context) *LicensesGetCall
- func (c *LicensesGetCall) Do(opts ...googleapi.CallOption) (*License, error)
- func (c *LicensesGetCall) Fields(s ...googleapi.Field) *LicensesGetCall
- func (c *LicensesGetCall) Header() http.Header
- func (c *LicensesGetCall) IfNoneMatch(entityTag string) *LicensesGetCall
- type LicensesGetIamPolicyCall
- func (c *LicensesGetIamPolicyCall) Context(ctx context.Context) *LicensesGetIamPolicyCall
- func (c *LicensesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *LicensesGetIamPolicyCall) Fields(s ...googleapi.Field) *LicensesGetIamPolicyCall
- func (c *LicensesGetIamPolicyCall) Header() http.Header
- func (c *LicensesGetIamPolicyCall) IfNoneMatch(entityTag string) *LicensesGetIamPolicyCall
- func (c *LicensesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *LicensesGetIamPolicyCall
- type LicensesInsertCall
- func (c *LicensesInsertCall) Context(ctx context.Context) *LicensesInsertCall
- func (c *LicensesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *LicensesInsertCall) Fields(s ...googleapi.Field) *LicensesInsertCall
- func (c *LicensesInsertCall) Header() http.Header
- func (c *LicensesInsertCall) RequestId(requestId string) *LicensesInsertCall
- type LicensesListCall
- func (c *LicensesListCall) Context(ctx context.Context) *LicensesListCall
- func (c *LicensesListCall) Do(opts ...googleapi.CallOption) (*LicensesListResponse, error)
- func (c *LicensesListCall) Fields(s ...googleapi.Field) *LicensesListCall
- func (c *LicensesListCall) Filter(filter string) *LicensesListCall
- func (c *LicensesListCall) Header() http.Header
- func (c *LicensesListCall) IfNoneMatch(entityTag string) *LicensesListCall
- func (c *LicensesListCall) MaxResults(maxResults int64) *LicensesListCall
- func (c *LicensesListCall) OrderBy(orderBy string) *LicensesListCall
- func (c *LicensesListCall) PageToken(pageToken string) *LicensesListCall
- func (c *LicensesListCall) Pages(ctx context.Context, f func(*LicensesListResponse) error) error
- func (c *LicensesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *LicensesListCall
- type LicensesListResponse
- type LicensesListResponseWarning
- type LicensesListResponseWarningData
- type LicensesService
- func (r *LicensesService) Delete(project string, license string) *LicensesDeleteCall
- func (r *LicensesService) Get(project string, license string) *LicensesGetCall
- func (r *LicensesService) GetIamPolicy(project string, resource string) *LicensesGetIamPolicyCall
- func (r *LicensesService) Insert(project string, license *License) *LicensesInsertCall
- func (r *LicensesService) List(project string) *LicensesListCall
- func (r *LicensesService) SetIamPolicy(project string, resource string, ...) *LicensesSetIamPolicyCall
- func (r *LicensesService) TestIamPermissions(project string, resource string, ...) *LicensesTestIamPermissionsCall
- type LicensesSetIamPolicyCall
- func (c *LicensesSetIamPolicyCall) Context(ctx context.Context) *LicensesSetIamPolicyCall
- func (c *LicensesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *LicensesSetIamPolicyCall) Fields(s ...googleapi.Field) *LicensesSetIamPolicyCall
- func (c *LicensesSetIamPolicyCall) Header() http.Header
- type LicensesTestIamPermissionsCall
- func (c *LicensesTestIamPermissionsCall) Context(ctx context.Context) *LicensesTestIamPermissionsCall
- func (c *LicensesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *LicensesTestIamPermissionsCall) Fields(s ...googleapi.Field) *LicensesTestIamPermissionsCall
- func (c *LicensesTestIamPermissionsCall) Header() http.Header
- type LocalDisk
- type LocalizedMessage
- type LocationPolicy
- type LocationPolicyLocation
- type LocationPolicyLocationConstraints
- type LogConfig
- type LogConfigCloudAuditOptions
- type LogConfigCounterOptions
- type LogConfigCounterOptionsCustomField
- type LogConfigDataAccessOptions
- type MachineImage
- type MachineImageList
- type MachineImageListWarning
- type MachineImageListWarningData
- type MachineImagesDeleteCall
- func (c *MachineImagesDeleteCall) Context(ctx context.Context) *MachineImagesDeleteCall
- func (c *MachineImagesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *MachineImagesDeleteCall) Fields(s ...googleapi.Field) *MachineImagesDeleteCall
- func (c *MachineImagesDeleteCall) Header() http.Header
- func (c *MachineImagesDeleteCall) RequestId(requestId string) *MachineImagesDeleteCall
- type MachineImagesGetCall
- func (c *MachineImagesGetCall) Context(ctx context.Context) *MachineImagesGetCall
- func (c *MachineImagesGetCall) Do(opts ...googleapi.CallOption) (*MachineImage, error)
- func (c *MachineImagesGetCall) Fields(s ...googleapi.Field) *MachineImagesGetCall
- func (c *MachineImagesGetCall) Header() http.Header
- func (c *MachineImagesGetCall) IfNoneMatch(entityTag string) *MachineImagesGetCall
- type MachineImagesGetIamPolicyCall
- func (c *MachineImagesGetIamPolicyCall) Context(ctx context.Context) *MachineImagesGetIamPolicyCall
- func (c *MachineImagesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *MachineImagesGetIamPolicyCall) Fields(s ...googleapi.Field) *MachineImagesGetIamPolicyCall
- func (c *MachineImagesGetIamPolicyCall) Header() http.Header
- func (c *MachineImagesGetIamPolicyCall) IfNoneMatch(entityTag string) *MachineImagesGetIamPolicyCall
- func (c *MachineImagesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *MachineImagesGetIamPolicyCall
- type MachineImagesInsertCall
- func (c *MachineImagesInsertCall) Context(ctx context.Context) *MachineImagesInsertCall
- func (c *MachineImagesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *MachineImagesInsertCall) Fields(s ...googleapi.Field) *MachineImagesInsertCall
- func (c *MachineImagesInsertCall) Header() http.Header
- func (c *MachineImagesInsertCall) RequestId(requestId string) *MachineImagesInsertCall
- func (c *MachineImagesInsertCall) SourceInstance(sourceInstance string) *MachineImagesInsertCall
- type MachineImagesListCall
- func (c *MachineImagesListCall) Context(ctx context.Context) *MachineImagesListCall
- func (c *MachineImagesListCall) Do(opts ...googleapi.CallOption) (*MachineImageList, error)
- func (c *MachineImagesListCall) Fields(s ...googleapi.Field) *MachineImagesListCall
- func (c *MachineImagesListCall) Filter(filter string) *MachineImagesListCall
- func (c *MachineImagesListCall) Header() http.Header
- func (c *MachineImagesListCall) IfNoneMatch(entityTag string) *MachineImagesListCall
- func (c *MachineImagesListCall) MaxResults(maxResults int64) *MachineImagesListCall
- func (c *MachineImagesListCall) OrderBy(orderBy string) *MachineImagesListCall
- func (c *MachineImagesListCall) PageToken(pageToken string) *MachineImagesListCall
- func (c *MachineImagesListCall) Pages(ctx context.Context, f func(*MachineImageList) error) error
- func (c *MachineImagesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MachineImagesListCall
- type MachineImagesService
- func (r *MachineImagesService) Delete(project string, machineImage string) *MachineImagesDeleteCall
- func (r *MachineImagesService) Get(project string, machineImage string) *MachineImagesGetCall
- func (r *MachineImagesService) GetIamPolicy(project string, resource string) *MachineImagesGetIamPolicyCall
- func (r *MachineImagesService) Insert(project string, machineimage *MachineImage) *MachineImagesInsertCall
- func (r *MachineImagesService) List(project string) *MachineImagesListCall
- func (r *MachineImagesService) SetIamPolicy(project string, resource string, ...) *MachineImagesSetIamPolicyCall
- func (r *MachineImagesService) TestIamPermissions(project string, resource string, ...) *MachineImagesTestIamPermissionsCall
- type MachineImagesSetIamPolicyCall
- func (c *MachineImagesSetIamPolicyCall) Context(ctx context.Context) *MachineImagesSetIamPolicyCall
- func (c *MachineImagesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *MachineImagesSetIamPolicyCall) Fields(s ...googleapi.Field) *MachineImagesSetIamPolicyCall
- func (c *MachineImagesSetIamPolicyCall) Header() http.Header
- type MachineImagesTestIamPermissionsCall
- func (c *MachineImagesTestIamPermissionsCall) Context(ctx context.Context) *MachineImagesTestIamPermissionsCall
- func (c *MachineImagesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *MachineImagesTestIamPermissionsCall) Fields(s ...googleapi.Field) *MachineImagesTestIamPermissionsCall
- func (c *MachineImagesTestIamPermissionsCall) Header() http.Header
- type MachineType
- type MachineTypeAccelerators
- type MachineTypeAggregatedList
- type MachineTypeAggregatedListWarning
- type MachineTypeAggregatedListWarningData
- type MachineTypeList
- type MachineTypeListWarning
- type MachineTypeListWarningData
- type MachineTypeScratchDisks
- type MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) Context(ctx context.Context) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*MachineTypeAggregatedList, error)
- func (c *MachineTypesAggregatedListCall) Fields(s ...googleapi.Field) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) Filter(filter string) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) Header() http.Header
- func (c *MachineTypesAggregatedListCall) IfNoneMatch(entityTag string) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) MaxResults(maxResults int64) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) OrderBy(orderBy string) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) PageToken(pageToken string) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) Pages(ctx context.Context, f func(*MachineTypeAggregatedList) error) error
- func (c *MachineTypesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *MachineTypesAggregatedListCall
- type MachineTypesGetCall
- func (c *MachineTypesGetCall) Context(ctx context.Context) *MachineTypesGetCall
- func (c *MachineTypesGetCall) Do(opts ...googleapi.CallOption) (*MachineType, error)
- func (c *MachineTypesGetCall) Fields(s ...googleapi.Field) *MachineTypesGetCall
- func (c *MachineTypesGetCall) Header() http.Header
- func (c *MachineTypesGetCall) IfNoneMatch(entityTag string) *MachineTypesGetCall
- type MachineTypesListCall
- func (c *MachineTypesListCall) Context(ctx context.Context) *MachineTypesListCall
- func (c *MachineTypesListCall) Do(opts ...googleapi.CallOption) (*MachineTypeList, error)
- func (c *MachineTypesListCall) Fields(s ...googleapi.Field) *MachineTypesListCall
- func (c *MachineTypesListCall) Filter(filter string) *MachineTypesListCall
- func (c *MachineTypesListCall) Header() http.Header
- func (c *MachineTypesListCall) IfNoneMatch(entityTag string) *MachineTypesListCall
- func (c *MachineTypesListCall) MaxResults(maxResults int64) *MachineTypesListCall
- func (c *MachineTypesListCall) OrderBy(orderBy string) *MachineTypesListCall
- func (c *MachineTypesListCall) PageToken(pageToken string) *MachineTypesListCall
- func (c *MachineTypesListCall) Pages(ctx context.Context, f func(*MachineTypeList) error) error
- func (c *MachineTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MachineTypesListCall
- type MachineTypesScopedList
- type MachineTypesScopedListWarning
- type MachineTypesScopedListWarningData
- type MachineTypesService
- type ManagedInstance
- type ManagedInstanceInstanceHealth
- type ManagedInstanceLastAttempt
- type ManagedInstanceLastAttemptErrors
- type ManagedInstanceLastAttemptErrorsErrors
- type ManagedInstanceLastAttemptErrorsErrorsErrorDetails
- type ManagedInstanceVersion
- type Metadata
- type MetadataFilter
- type MetadataFilterLabelMatch
- type MetadataItems
- type NamedPort
- type NatIpInfo
- type NatIpInfoNatIpInfoMapping
- type NatIpInfoResponse
- type Network
- type NetworkAttachment
- type NetworkAttachmentAggregatedList
- type NetworkAttachmentAggregatedListWarning
- type NetworkAttachmentAggregatedListWarningData
- type NetworkAttachmentConnectedEndpoint
- type NetworkAttachmentList
- type NetworkAttachmentListWarning
- type NetworkAttachmentListWarningData
- type NetworkAttachmentsAggregatedListCall
- func (c *NetworkAttachmentsAggregatedListCall) Context(ctx context.Context) *NetworkAttachmentsAggregatedListCall
- func (c *NetworkAttachmentsAggregatedListCall) Do(opts ...googleapi.CallOption) (*NetworkAttachmentAggregatedList, error)
- func (c *NetworkAttachmentsAggregatedListCall) Fields(s ...googleapi.Field) *NetworkAttachmentsAggregatedListCall
- func (c *NetworkAttachmentsAggregatedListCall) Filter(filter string) *NetworkAttachmentsAggregatedListCall
- func (c *NetworkAttachmentsAggregatedListCall) Header() http.Header
- func (c *NetworkAttachmentsAggregatedListCall) IfNoneMatch(entityTag string) *NetworkAttachmentsAggregatedListCall
- func (c *NetworkAttachmentsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *NetworkAttachmentsAggregatedListCall
- func (c *NetworkAttachmentsAggregatedListCall) MaxResults(maxResults int64) *NetworkAttachmentsAggregatedListCall
- func (c *NetworkAttachmentsAggregatedListCall) OrderBy(orderBy string) *NetworkAttachmentsAggregatedListCall
- func (c *NetworkAttachmentsAggregatedListCall) PageToken(pageToken string) *NetworkAttachmentsAggregatedListCall
- func (c *NetworkAttachmentsAggregatedListCall) Pages(ctx context.Context, f func(*NetworkAttachmentAggregatedList) error) error
- func (c *NetworkAttachmentsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworkAttachmentsAggregatedListCall
- func (c *NetworkAttachmentsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *NetworkAttachmentsAggregatedListCall
- type NetworkAttachmentsDeleteCall
- func (c *NetworkAttachmentsDeleteCall) Context(ctx context.Context) *NetworkAttachmentsDeleteCall
- func (c *NetworkAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkAttachmentsDeleteCall) Fields(s ...googleapi.Field) *NetworkAttachmentsDeleteCall
- func (c *NetworkAttachmentsDeleteCall) Header() http.Header
- func (c *NetworkAttachmentsDeleteCall) RequestId(requestId string) *NetworkAttachmentsDeleteCall
- type NetworkAttachmentsGetCall
- func (c *NetworkAttachmentsGetCall) Context(ctx context.Context) *NetworkAttachmentsGetCall
- func (c *NetworkAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*NetworkAttachment, error)
- func (c *NetworkAttachmentsGetCall) Fields(s ...googleapi.Field) *NetworkAttachmentsGetCall
- func (c *NetworkAttachmentsGetCall) Header() http.Header
- func (c *NetworkAttachmentsGetCall) IfNoneMatch(entityTag string) *NetworkAttachmentsGetCall
- type NetworkAttachmentsGetIamPolicyCall
- func (c *NetworkAttachmentsGetIamPolicyCall) Context(ctx context.Context) *NetworkAttachmentsGetIamPolicyCall
- func (c *NetworkAttachmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *NetworkAttachmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *NetworkAttachmentsGetIamPolicyCall
- func (c *NetworkAttachmentsGetIamPolicyCall) Header() http.Header
- func (c *NetworkAttachmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *NetworkAttachmentsGetIamPolicyCall
- func (c *NetworkAttachmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *NetworkAttachmentsGetIamPolicyCall
- type NetworkAttachmentsInsertCall
- func (c *NetworkAttachmentsInsertCall) Context(ctx context.Context) *NetworkAttachmentsInsertCall
- func (c *NetworkAttachmentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkAttachmentsInsertCall) Fields(s ...googleapi.Field) *NetworkAttachmentsInsertCall
- func (c *NetworkAttachmentsInsertCall) Header() http.Header
- func (c *NetworkAttachmentsInsertCall) RequestId(requestId string) *NetworkAttachmentsInsertCall
- type NetworkAttachmentsListCall
- func (c *NetworkAttachmentsListCall) Context(ctx context.Context) *NetworkAttachmentsListCall
- func (c *NetworkAttachmentsListCall) Do(opts ...googleapi.CallOption) (*NetworkAttachmentList, error)
- func (c *NetworkAttachmentsListCall) Fields(s ...googleapi.Field) *NetworkAttachmentsListCall
- func (c *NetworkAttachmentsListCall) Filter(filter string) *NetworkAttachmentsListCall
- func (c *NetworkAttachmentsListCall) Header() http.Header
- func (c *NetworkAttachmentsListCall) IfNoneMatch(entityTag string) *NetworkAttachmentsListCall
- func (c *NetworkAttachmentsListCall) MaxResults(maxResults int64) *NetworkAttachmentsListCall
- func (c *NetworkAttachmentsListCall) OrderBy(orderBy string) *NetworkAttachmentsListCall
- func (c *NetworkAttachmentsListCall) PageToken(pageToken string) *NetworkAttachmentsListCall
- func (c *NetworkAttachmentsListCall) Pages(ctx context.Context, f func(*NetworkAttachmentList) error) error
- func (c *NetworkAttachmentsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworkAttachmentsListCall
- type NetworkAttachmentsPatchCall
- func (c *NetworkAttachmentsPatchCall) Context(ctx context.Context) *NetworkAttachmentsPatchCall
- func (c *NetworkAttachmentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkAttachmentsPatchCall) Fields(s ...googleapi.Field) *NetworkAttachmentsPatchCall
- func (c *NetworkAttachmentsPatchCall) Header() http.Header
- func (c *NetworkAttachmentsPatchCall) RequestId(requestId string) *NetworkAttachmentsPatchCall
- type NetworkAttachmentsScopedList
- type NetworkAttachmentsScopedListWarning
- type NetworkAttachmentsScopedListWarningData
- type NetworkAttachmentsService
- func (r *NetworkAttachmentsService) AggregatedList(project string) *NetworkAttachmentsAggregatedListCall
- func (r *NetworkAttachmentsService) Delete(project string, region string, networkAttachment string) *NetworkAttachmentsDeleteCall
- func (r *NetworkAttachmentsService) Get(project string, region string, networkAttachment string) *NetworkAttachmentsGetCall
- func (r *NetworkAttachmentsService) GetIamPolicy(project string, region string, resource string) *NetworkAttachmentsGetIamPolicyCall
- func (r *NetworkAttachmentsService) Insert(project string, region string, networkattachment *NetworkAttachment) *NetworkAttachmentsInsertCall
- func (r *NetworkAttachmentsService) List(project string, region string) *NetworkAttachmentsListCall
- func (r *NetworkAttachmentsService) Patch(project string, region string, networkAttachment string, ...) *NetworkAttachmentsPatchCall
- func (r *NetworkAttachmentsService) SetIamPolicy(project string, region string, resource string, ...) *NetworkAttachmentsSetIamPolicyCall
- func (r *NetworkAttachmentsService) TestIamPermissions(project string, region string, resource string, ...) *NetworkAttachmentsTestIamPermissionsCall
- type NetworkAttachmentsSetIamPolicyCall
- func (c *NetworkAttachmentsSetIamPolicyCall) Context(ctx context.Context) *NetworkAttachmentsSetIamPolicyCall
- func (c *NetworkAttachmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *NetworkAttachmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *NetworkAttachmentsSetIamPolicyCall
- func (c *NetworkAttachmentsSetIamPolicyCall) Header() http.Header
- type NetworkAttachmentsTestIamPermissionsCall
- func (c *NetworkAttachmentsTestIamPermissionsCall) Context(ctx context.Context) *NetworkAttachmentsTestIamPermissionsCall
- func (c *NetworkAttachmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *NetworkAttachmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *NetworkAttachmentsTestIamPermissionsCall
- func (c *NetworkAttachmentsTestIamPermissionsCall) Header() http.Header
- type NetworkEdgeSecurityService
- type NetworkEdgeSecurityServiceAggregatedList
- type NetworkEdgeSecurityServiceAggregatedListWarning
- type NetworkEdgeSecurityServiceAggregatedListWarningData
- type NetworkEdgeSecurityServicesAggregatedListCall
- func (c *NetworkEdgeSecurityServicesAggregatedListCall) Context(ctx context.Context) *NetworkEdgeSecurityServicesAggregatedListCall
- func (c *NetworkEdgeSecurityServicesAggregatedListCall) Do(opts ...googleapi.CallOption) (*NetworkEdgeSecurityServiceAggregatedList, error)
- func (c *NetworkEdgeSecurityServicesAggregatedListCall) Fields(s ...googleapi.Field) *NetworkEdgeSecurityServicesAggregatedListCall
- func (c *NetworkEdgeSecurityServicesAggregatedListCall) Filter(filter string) *NetworkEdgeSecurityServicesAggregatedListCall
- func (c *NetworkEdgeSecurityServicesAggregatedListCall) Header() http.Header
- func (c *NetworkEdgeSecurityServicesAggregatedListCall) IfNoneMatch(entityTag string) *NetworkEdgeSecurityServicesAggregatedListCall
- func (c *NetworkEdgeSecurityServicesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *NetworkEdgeSecurityServicesAggregatedListCall
- func (c *NetworkEdgeSecurityServicesAggregatedListCall) MaxResults(maxResults int64) *NetworkEdgeSecurityServicesAggregatedListCall
- func (c *NetworkEdgeSecurityServicesAggregatedListCall) OrderBy(orderBy string) *NetworkEdgeSecurityServicesAggregatedListCall
- func (c *NetworkEdgeSecurityServicesAggregatedListCall) PageToken(pageToken string) *NetworkEdgeSecurityServicesAggregatedListCall
- func (c *NetworkEdgeSecurityServicesAggregatedListCall) Pages(ctx context.Context, f func(*NetworkEdgeSecurityServiceAggregatedList) error) error
- func (c *NetworkEdgeSecurityServicesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworkEdgeSecurityServicesAggregatedListCall
- func (c *NetworkEdgeSecurityServicesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *NetworkEdgeSecurityServicesAggregatedListCall
- type NetworkEdgeSecurityServicesDeleteCall
- func (c *NetworkEdgeSecurityServicesDeleteCall) Context(ctx context.Context) *NetworkEdgeSecurityServicesDeleteCall
- func (c *NetworkEdgeSecurityServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkEdgeSecurityServicesDeleteCall) Fields(s ...googleapi.Field) *NetworkEdgeSecurityServicesDeleteCall
- func (c *NetworkEdgeSecurityServicesDeleteCall) Header() http.Header
- func (c *NetworkEdgeSecurityServicesDeleteCall) RequestId(requestId string) *NetworkEdgeSecurityServicesDeleteCall
- type NetworkEdgeSecurityServicesGetCall
- func (c *NetworkEdgeSecurityServicesGetCall) Context(ctx context.Context) *NetworkEdgeSecurityServicesGetCall
- func (c *NetworkEdgeSecurityServicesGetCall) Do(opts ...googleapi.CallOption) (*NetworkEdgeSecurityService, error)
- func (c *NetworkEdgeSecurityServicesGetCall) Fields(s ...googleapi.Field) *NetworkEdgeSecurityServicesGetCall
- func (c *NetworkEdgeSecurityServicesGetCall) Header() http.Header
- func (c *NetworkEdgeSecurityServicesGetCall) IfNoneMatch(entityTag string) *NetworkEdgeSecurityServicesGetCall
- type NetworkEdgeSecurityServicesInsertCall
- func (c *NetworkEdgeSecurityServicesInsertCall) Context(ctx context.Context) *NetworkEdgeSecurityServicesInsertCall
- func (c *NetworkEdgeSecurityServicesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkEdgeSecurityServicesInsertCall) Fields(s ...googleapi.Field) *NetworkEdgeSecurityServicesInsertCall
- func (c *NetworkEdgeSecurityServicesInsertCall) Header() http.Header
- func (c *NetworkEdgeSecurityServicesInsertCall) RequestId(requestId string) *NetworkEdgeSecurityServicesInsertCall
- func (c *NetworkEdgeSecurityServicesInsertCall) ValidateOnly(validateOnly bool) *NetworkEdgeSecurityServicesInsertCall
- type NetworkEdgeSecurityServicesPatchCall
- func (c *NetworkEdgeSecurityServicesPatchCall) Context(ctx context.Context) *NetworkEdgeSecurityServicesPatchCall
- func (c *NetworkEdgeSecurityServicesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkEdgeSecurityServicesPatchCall) Fields(s ...googleapi.Field) *NetworkEdgeSecurityServicesPatchCall
- func (c *NetworkEdgeSecurityServicesPatchCall) Header() http.Header
- func (c *NetworkEdgeSecurityServicesPatchCall) Paths(paths ...string) *NetworkEdgeSecurityServicesPatchCall
- func (c *NetworkEdgeSecurityServicesPatchCall) RequestId(requestId string) *NetworkEdgeSecurityServicesPatchCall
- func (c *NetworkEdgeSecurityServicesPatchCall) UpdateMask(updateMask string) *NetworkEdgeSecurityServicesPatchCall
- type NetworkEdgeSecurityServicesScopedList
- type NetworkEdgeSecurityServicesScopedListWarning
- type NetworkEdgeSecurityServicesScopedListWarningData
- type NetworkEdgeSecurityServicesService
- func (r *NetworkEdgeSecurityServicesService) AggregatedList(project string) *NetworkEdgeSecurityServicesAggregatedListCall
- func (r *NetworkEdgeSecurityServicesService) Delete(project string, region string, networkEdgeSecurityService string) *NetworkEdgeSecurityServicesDeleteCall
- func (r *NetworkEdgeSecurityServicesService) Get(project string, region string, networkEdgeSecurityService string) *NetworkEdgeSecurityServicesGetCall
- func (r *NetworkEdgeSecurityServicesService) Insert(project string, region string, ...) *NetworkEdgeSecurityServicesInsertCall
- func (r *NetworkEdgeSecurityServicesService) Patch(project string, region string, networkEdgeSecurityService string, ...) *NetworkEdgeSecurityServicesPatchCall
- type NetworkEndpoint
- type NetworkEndpointGroup
- type NetworkEndpointGroupAggregatedList
- type NetworkEndpointGroupAggregatedListWarning
- type NetworkEndpointGroupAggregatedListWarningData
- type NetworkEndpointGroupAppEngine
- type NetworkEndpointGroupCloudFunction
- type NetworkEndpointGroupCloudRun
- type NetworkEndpointGroupList
- type NetworkEndpointGroupListWarning
- type NetworkEndpointGroupListWarningData
- type NetworkEndpointGroupPscData
- type NetworkEndpointGroupsAggregatedListCall
- func (c *NetworkEndpointGroupsAggregatedListCall) Context(ctx context.Context) *NetworkEndpointGroupsAggregatedListCall
- func (c *NetworkEndpointGroupsAggregatedListCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupAggregatedList, error)
- func (c *NetworkEndpointGroupsAggregatedListCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsAggregatedListCall
- func (c *NetworkEndpointGroupsAggregatedListCall) Filter(filter string) *NetworkEndpointGroupsAggregatedListCall
- func (c *NetworkEndpointGroupsAggregatedListCall) Header() http.Header
- func (c *NetworkEndpointGroupsAggregatedListCall) IfNoneMatch(entityTag string) *NetworkEndpointGroupsAggregatedListCall
- func (c *NetworkEndpointGroupsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *NetworkEndpointGroupsAggregatedListCall
- func (c *NetworkEndpointGroupsAggregatedListCall) MaxResults(maxResults int64) *NetworkEndpointGroupsAggregatedListCall
- func (c *NetworkEndpointGroupsAggregatedListCall) OrderBy(orderBy string) *NetworkEndpointGroupsAggregatedListCall
- func (c *NetworkEndpointGroupsAggregatedListCall) PageToken(pageToken string) *NetworkEndpointGroupsAggregatedListCall
- func (c *NetworkEndpointGroupsAggregatedListCall) Pages(ctx context.Context, f func(*NetworkEndpointGroupAggregatedList) error) error
- func (c *NetworkEndpointGroupsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworkEndpointGroupsAggregatedListCall
- func (c *NetworkEndpointGroupsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *NetworkEndpointGroupsAggregatedListCall
- type NetworkEndpointGroupsAttachEndpointsRequest
- type NetworkEndpointGroupsAttachNetworkEndpointsCall
- func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) Context(ctx context.Context) *NetworkEndpointGroupsAttachNetworkEndpointsCall
- func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsAttachNetworkEndpointsCall
- func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) Header() http.Header
- func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) RequestId(requestId string) *NetworkEndpointGroupsAttachNetworkEndpointsCall
- type NetworkEndpointGroupsDeleteCall
- func (c *NetworkEndpointGroupsDeleteCall) Context(ctx context.Context) *NetworkEndpointGroupsDeleteCall
- func (c *NetworkEndpointGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkEndpointGroupsDeleteCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsDeleteCall
- func (c *NetworkEndpointGroupsDeleteCall) Header() http.Header
- func (c *NetworkEndpointGroupsDeleteCall) RequestId(requestId string) *NetworkEndpointGroupsDeleteCall
- type NetworkEndpointGroupsDetachEndpointsRequest
- type NetworkEndpointGroupsDetachNetworkEndpointsCall
- func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) Context(ctx context.Context) *NetworkEndpointGroupsDetachNetworkEndpointsCall
- func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsDetachNetworkEndpointsCall
- func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) Header() http.Header
- func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) RequestId(requestId string) *NetworkEndpointGroupsDetachNetworkEndpointsCall
- type NetworkEndpointGroupsGetCall
- func (c *NetworkEndpointGroupsGetCall) Context(ctx context.Context) *NetworkEndpointGroupsGetCall
- func (c *NetworkEndpointGroupsGetCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroup, error)
- func (c *NetworkEndpointGroupsGetCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsGetCall
- func (c *NetworkEndpointGroupsGetCall) Header() http.Header
- func (c *NetworkEndpointGroupsGetCall) IfNoneMatch(entityTag string) *NetworkEndpointGroupsGetCall
- type NetworkEndpointGroupsInsertCall
- func (c *NetworkEndpointGroupsInsertCall) Context(ctx context.Context) *NetworkEndpointGroupsInsertCall
- func (c *NetworkEndpointGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkEndpointGroupsInsertCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsInsertCall
- func (c *NetworkEndpointGroupsInsertCall) Header() http.Header
- func (c *NetworkEndpointGroupsInsertCall) RequestId(requestId string) *NetworkEndpointGroupsInsertCall
- type NetworkEndpointGroupsListCall
- func (c *NetworkEndpointGroupsListCall) Context(ctx context.Context) *NetworkEndpointGroupsListCall
- func (c *NetworkEndpointGroupsListCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupList, error)
- func (c *NetworkEndpointGroupsListCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsListCall
- func (c *NetworkEndpointGroupsListCall) Filter(filter string) *NetworkEndpointGroupsListCall
- func (c *NetworkEndpointGroupsListCall) Header() http.Header
- func (c *NetworkEndpointGroupsListCall) IfNoneMatch(entityTag string) *NetworkEndpointGroupsListCall
- func (c *NetworkEndpointGroupsListCall) MaxResults(maxResults int64) *NetworkEndpointGroupsListCall
- func (c *NetworkEndpointGroupsListCall) OrderBy(orderBy string) *NetworkEndpointGroupsListCall
- func (c *NetworkEndpointGroupsListCall) PageToken(pageToken string) *NetworkEndpointGroupsListCall
- func (c *NetworkEndpointGroupsListCall) Pages(ctx context.Context, f func(*NetworkEndpointGroupList) error) error
- func (c *NetworkEndpointGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworkEndpointGroupsListCall
- type NetworkEndpointGroupsListEndpointsRequest
- type NetworkEndpointGroupsListNetworkEndpoints
- type NetworkEndpointGroupsListNetworkEndpointsCall
- func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Context(ctx context.Context) *NetworkEndpointGroupsListNetworkEndpointsCall
- func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupsListNetworkEndpoints, error)
- func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsListNetworkEndpointsCall
- func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Filter(filter string) *NetworkEndpointGroupsListNetworkEndpointsCall
- func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Header() http.Header
- func (c *NetworkEndpointGroupsListNetworkEndpointsCall) MaxResults(maxResults int64) *NetworkEndpointGroupsListNetworkEndpointsCall
- func (c *NetworkEndpointGroupsListNetworkEndpointsCall) OrderBy(orderBy string) *NetworkEndpointGroupsListNetworkEndpointsCall
- func (c *NetworkEndpointGroupsListNetworkEndpointsCall) PageToken(pageToken string) *NetworkEndpointGroupsListNetworkEndpointsCall
- func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Pages(ctx context.Context, f func(*NetworkEndpointGroupsListNetworkEndpoints) error) error
- func (c *NetworkEndpointGroupsListNetworkEndpointsCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworkEndpointGroupsListNetworkEndpointsCall
- type NetworkEndpointGroupsListNetworkEndpointsWarning
- type NetworkEndpointGroupsListNetworkEndpointsWarningData
- type NetworkEndpointGroupsScopedList
- type NetworkEndpointGroupsScopedListWarning
- type NetworkEndpointGroupsScopedListWarningData
- type NetworkEndpointGroupsService
- func (r *NetworkEndpointGroupsService) AggregatedList(project string) *NetworkEndpointGroupsAggregatedListCall
- func (r *NetworkEndpointGroupsService) AttachNetworkEndpoints(project string, zone string, networkEndpointGroup string, ...) *NetworkEndpointGroupsAttachNetworkEndpointsCall
- func (r *NetworkEndpointGroupsService) Delete(project string, zone string, networkEndpointGroup string) *NetworkEndpointGroupsDeleteCall
- func (r *NetworkEndpointGroupsService) DetachNetworkEndpoints(project string, zone string, networkEndpointGroup string, ...) *NetworkEndpointGroupsDetachNetworkEndpointsCall
- func (r *NetworkEndpointGroupsService) Get(project string, zone string, networkEndpointGroup string) *NetworkEndpointGroupsGetCall
- func (r *NetworkEndpointGroupsService) Insert(project string, zone string, networkendpointgroup *NetworkEndpointGroup) *NetworkEndpointGroupsInsertCall
- func (r *NetworkEndpointGroupsService) List(project string, zone string) *NetworkEndpointGroupsListCall
- func (r *NetworkEndpointGroupsService) ListNetworkEndpoints(project string, zone string, networkEndpointGroup string, ...) *NetworkEndpointGroupsListNetworkEndpointsCall
- func (r *NetworkEndpointGroupsService) TestIamPermissions(project string, zone string, resource string, ...) *NetworkEndpointGroupsTestIamPermissionsCall
- type NetworkEndpointGroupsTestIamPermissionsCall
- func (c *NetworkEndpointGroupsTestIamPermissionsCall) Context(ctx context.Context) *NetworkEndpointGroupsTestIamPermissionsCall
- func (c *NetworkEndpointGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *NetworkEndpointGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsTestIamPermissionsCall
- func (c *NetworkEndpointGroupsTestIamPermissionsCall) Header() http.Header
- type NetworkEndpointWithHealthStatus
- type NetworkFirewallPoliciesAddAssociationCall
- func (c *NetworkFirewallPoliciesAddAssociationCall) Context(ctx context.Context) *NetworkFirewallPoliciesAddAssociationCall
- func (c *NetworkFirewallPoliciesAddAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkFirewallPoliciesAddAssociationCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesAddAssociationCall
- func (c *NetworkFirewallPoliciesAddAssociationCall) Header() http.Header
- func (c *NetworkFirewallPoliciesAddAssociationCall) ReplaceExistingAssociation(replaceExistingAssociation bool) *NetworkFirewallPoliciesAddAssociationCall
- func (c *NetworkFirewallPoliciesAddAssociationCall) RequestId(requestId string) *NetworkFirewallPoliciesAddAssociationCall
- type NetworkFirewallPoliciesAddRuleCall
- func (c *NetworkFirewallPoliciesAddRuleCall) Context(ctx context.Context) *NetworkFirewallPoliciesAddRuleCall
- func (c *NetworkFirewallPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkFirewallPoliciesAddRuleCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesAddRuleCall
- func (c *NetworkFirewallPoliciesAddRuleCall) Header() http.Header
- func (c *NetworkFirewallPoliciesAddRuleCall) MaxPriority(maxPriority int64) *NetworkFirewallPoliciesAddRuleCall
- func (c *NetworkFirewallPoliciesAddRuleCall) MinPriority(minPriority int64) *NetworkFirewallPoliciesAddRuleCall
- func (c *NetworkFirewallPoliciesAddRuleCall) RequestId(requestId string) *NetworkFirewallPoliciesAddRuleCall
- type NetworkFirewallPoliciesCloneRulesCall
- func (c *NetworkFirewallPoliciesCloneRulesCall) Context(ctx context.Context) *NetworkFirewallPoliciesCloneRulesCall
- func (c *NetworkFirewallPoliciesCloneRulesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkFirewallPoliciesCloneRulesCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesCloneRulesCall
- func (c *NetworkFirewallPoliciesCloneRulesCall) Header() http.Header
- func (c *NetworkFirewallPoliciesCloneRulesCall) RequestId(requestId string) *NetworkFirewallPoliciesCloneRulesCall
- func (c *NetworkFirewallPoliciesCloneRulesCall) SourceFirewallPolicy(sourceFirewallPolicy string) *NetworkFirewallPoliciesCloneRulesCall
- type NetworkFirewallPoliciesDeleteCall
- func (c *NetworkFirewallPoliciesDeleteCall) Context(ctx context.Context) *NetworkFirewallPoliciesDeleteCall
- func (c *NetworkFirewallPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkFirewallPoliciesDeleteCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesDeleteCall
- func (c *NetworkFirewallPoliciesDeleteCall) Header() http.Header
- func (c *NetworkFirewallPoliciesDeleteCall) RequestId(requestId string) *NetworkFirewallPoliciesDeleteCall
- type NetworkFirewallPoliciesGetAssociationCall
- func (c *NetworkFirewallPoliciesGetAssociationCall) Context(ctx context.Context) *NetworkFirewallPoliciesGetAssociationCall
- func (c *NetworkFirewallPoliciesGetAssociationCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyAssociation, error)
- func (c *NetworkFirewallPoliciesGetAssociationCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesGetAssociationCall
- func (c *NetworkFirewallPoliciesGetAssociationCall) Header() http.Header
- func (c *NetworkFirewallPoliciesGetAssociationCall) IfNoneMatch(entityTag string) *NetworkFirewallPoliciesGetAssociationCall
- func (c *NetworkFirewallPoliciesGetAssociationCall) Name(name string) *NetworkFirewallPoliciesGetAssociationCall
- type NetworkFirewallPoliciesGetCall
- func (c *NetworkFirewallPoliciesGetCall) Context(ctx context.Context) *NetworkFirewallPoliciesGetCall
- func (c *NetworkFirewallPoliciesGetCall) Do(opts ...googleapi.CallOption) (*FirewallPolicy, error)
- func (c *NetworkFirewallPoliciesGetCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesGetCall
- func (c *NetworkFirewallPoliciesGetCall) Header() http.Header
- func (c *NetworkFirewallPoliciesGetCall) IfNoneMatch(entityTag string) *NetworkFirewallPoliciesGetCall
- type NetworkFirewallPoliciesGetIamPolicyCall
- func (c *NetworkFirewallPoliciesGetIamPolicyCall) Context(ctx context.Context) *NetworkFirewallPoliciesGetIamPolicyCall
- func (c *NetworkFirewallPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *NetworkFirewallPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesGetIamPolicyCall
- func (c *NetworkFirewallPoliciesGetIamPolicyCall) Header() http.Header
- func (c *NetworkFirewallPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *NetworkFirewallPoliciesGetIamPolicyCall
- func (c *NetworkFirewallPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *NetworkFirewallPoliciesGetIamPolicyCall
- type NetworkFirewallPoliciesGetRuleCall
- func (c *NetworkFirewallPoliciesGetRuleCall) Context(ctx context.Context) *NetworkFirewallPoliciesGetRuleCall
- func (c *NetworkFirewallPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyRule, error)
- func (c *NetworkFirewallPoliciesGetRuleCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesGetRuleCall
- func (c *NetworkFirewallPoliciesGetRuleCall) Header() http.Header
- func (c *NetworkFirewallPoliciesGetRuleCall) IfNoneMatch(entityTag string) *NetworkFirewallPoliciesGetRuleCall
- func (c *NetworkFirewallPoliciesGetRuleCall) Priority(priority int64) *NetworkFirewallPoliciesGetRuleCall
- type NetworkFirewallPoliciesInsertCall
- func (c *NetworkFirewallPoliciesInsertCall) Context(ctx context.Context) *NetworkFirewallPoliciesInsertCall
- func (c *NetworkFirewallPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkFirewallPoliciesInsertCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesInsertCall
- func (c *NetworkFirewallPoliciesInsertCall) Header() http.Header
- func (c *NetworkFirewallPoliciesInsertCall) RequestId(requestId string) *NetworkFirewallPoliciesInsertCall
- type NetworkFirewallPoliciesListCall
- func (c *NetworkFirewallPoliciesListCall) Context(ctx context.Context) *NetworkFirewallPoliciesListCall
- func (c *NetworkFirewallPoliciesListCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyList, error)
- func (c *NetworkFirewallPoliciesListCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesListCall
- func (c *NetworkFirewallPoliciesListCall) Filter(filter string) *NetworkFirewallPoliciesListCall
- func (c *NetworkFirewallPoliciesListCall) Header() http.Header
- func (c *NetworkFirewallPoliciesListCall) IfNoneMatch(entityTag string) *NetworkFirewallPoliciesListCall
- func (c *NetworkFirewallPoliciesListCall) MaxResults(maxResults int64) *NetworkFirewallPoliciesListCall
- func (c *NetworkFirewallPoliciesListCall) OrderBy(orderBy string) *NetworkFirewallPoliciesListCall
- func (c *NetworkFirewallPoliciesListCall) PageToken(pageToken string) *NetworkFirewallPoliciesListCall
- func (c *NetworkFirewallPoliciesListCall) Pages(ctx context.Context, f func(*FirewallPolicyList) error) error
- func (c *NetworkFirewallPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworkFirewallPoliciesListCall
- type NetworkFirewallPoliciesPatchCall
- func (c *NetworkFirewallPoliciesPatchCall) Context(ctx context.Context) *NetworkFirewallPoliciesPatchCall
- func (c *NetworkFirewallPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkFirewallPoliciesPatchCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesPatchCall
- func (c *NetworkFirewallPoliciesPatchCall) Header() http.Header
- func (c *NetworkFirewallPoliciesPatchCall) RequestId(requestId string) *NetworkFirewallPoliciesPatchCall
- type NetworkFirewallPoliciesPatchRuleCall
- func (c *NetworkFirewallPoliciesPatchRuleCall) Context(ctx context.Context) *NetworkFirewallPoliciesPatchRuleCall
- func (c *NetworkFirewallPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkFirewallPoliciesPatchRuleCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesPatchRuleCall
- func (c *NetworkFirewallPoliciesPatchRuleCall) Header() http.Header
- func (c *NetworkFirewallPoliciesPatchRuleCall) Priority(priority int64) *NetworkFirewallPoliciesPatchRuleCall
- func (c *NetworkFirewallPoliciesPatchRuleCall) RequestId(requestId string) *NetworkFirewallPoliciesPatchRuleCall
- type NetworkFirewallPoliciesRemoveAssociationCall
- func (c *NetworkFirewallPoliciesRemoveAssociationCall) Context(ctx context.Context) *NetworkFirewallPoliciesRemoveAssociationCall
- func (c *NetworkFirewallPoliciesRemoveAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkFirewallPoliciesRemoveAssociationCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesRemoveAssociationCall
- func (c *NetworkFirewallPoliciesRemoveAssociationCall) Header() http.Header
- func (c *NetworkFirewallPoliciesRemoveAssociationCall) Name(name string) *NetworkFirewallPoliciesRemoveAssociationCall
- func (c *NetworkFirewallPoliciesRemoveAssociationCall) RequestId(requestId string) *NetworkFirewallPoliciesRemoveAssociationCall
- type NetworkFirewallPoliciesRemoveRuleCall
- func (c *NetworkFirewallPoliciesRemoveRuleCall) Context(ctx context.Context) *NetworkFirewallPoliciesRemoveRuleCall
- func (c *NetworkFirewallPoliciesRemoveRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworkFirewallPoliciesRemoveRuleCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesRemoveRuleCall
- func (c *NetworkFirewallPoliciesRemoveRuleCall) Header() http.Header
- func (c *NetworkFirewallPoliciesRemoveRuleCall) Priority(priority int64) *NetworkFirewallPoliciesRemoveRuleCall
- func (c *NetworkFirewallPoliciesRemoveRuleCall) RequestId(requestId string) *NetworkFirewallPoliciesRemoveRuleCall
- type NetworkFirewallPoliciesService
- func (r *NetworkFirewallPoliciesService) AddAssociation(project string, firewallPolicy string, ...) *NetworkFirewallPoliciesAddAssociationCall
- func (r *NetworkFirewallPoliciesService) AddRule(project string, firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *NetworkFirewallPoliciesAddRuleCall
- func (r *NetworkFirewallPoliciesService) CloneRules(project string, firewallPolicy string) *NetworkFirewallPoliciesCloneRulesCall
- func (r *NetworkFirewallPoliciesService) Delete(project string, firewallPolicy string) *NetworkFirewallPoliciesDeleteCall
- func (r *NetworkFirewallPoliciesService) Get(project string, firewallPolicy string) *NetworkFirewallPoliciesGetCall
- func (r *NetworkFirewallPoliciesService) GetAssociation(project string, firewallPolicy string) *NetworkFirewallPoliciesGetAssociationCall
- func (r *NetworkFirewallPoliciesService) GetIamPolicy(project string, resource string) *NetworkFirewallPoliciesGetIamPolicyCall
- func (r *NetworkFirewallPoliciesService) GetRule(project string, firewallPolicy string) *NetworkFirewallPoliciesGetRuleCall
- func (r *NetworkFirewallPoliciesService) Insert(project string, firewallpolicy *FirewallPolicy) *NetworkFirewallPoliciesInsertCall
- func (r *NetworkFirewallPoliciesService) List(project string) *NetworkFirewallPoliciesListCall
- func (r *NetworkFirewallPoliciesService) Patch(project string, firewallPolicy string, firewallpolicy *FirewallPolicy) *NetworkFirewallPoliciesPatchCall
- func (r *NetworkFirewallPoliciesService) PatchRule(project string, firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *NetworkFirewallPoliciesPatchRuleCall
- func (r *NetworkFirewallPoliciesService) RemoveAssociation(project string, firewallPolicy string) *NetworkFirewallPoliciesRemoveAssociationCall
- func (r *NetworkFirewallPoliciesService) RemoveRule(project string, firewallPolicy string) *NetworkFirewallPoliciesRemoveRuleCall
- func (r *NetworkFirewallPoliciesService) SetIamPolicy(project string, resource string, ...) *NetworkFirewallPoliciesSetIamPolicyCall
- func (r *NetworkFirewallPoliciesService) TestIamPermissions(project string, resource string, ...) *NetworkFirewallPoliciesTestIamPermissionsCall
- type NetworkFirewallPoliciesSetIamPolicyCall
- func (c *NetworkFirewallPoliciesSetIamPolicyCall) Context(ctx context.Context) *NetworkFirewallPoliciesSetIamPolicyCall
- func (c *NetworkFirewallPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *NetworkFirewallPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesSetIamPolicyCall
- func (c *NetworkFirewallPoliciesSetIamPolicyCall) Header() http.Header
- type NetworkFirewallPoliciesTestIamPermissionsCall
- func (c *NetworkFirewallPoliciesTestIamPermissionsCall) Context(ctx context.Context) *NetworkFirewallPoliciesTestIamPermissionsCall
- func (c *NetworkFirewallPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *NetworkFirewallPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesTestIamPermissionsCall
- func (c *NetworkFirewallPoliciesTestIamPermissionsCall) Header() http.Header
- type NetworkInterface
- type NetworkList
- type NetworkListWarning
- type NetworkListWarningData
- type NetworkPeering
- type NetworkPerformanceConfig
- type NetworkRoutingConfig
- type NetworksAddPeeringCall
- func (c *NetworksAddPeeringCall) Context(ctx context.Context) *NetworksAddPeeringCall
- func (c *NetworksAddPeeringCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworksAddPeeringCall) Fields(s ...googleapi.Field) *NetworksAddPeeringCall
- func (c *NetworksAddPeeringCall) Header() http.Header
- func (c *NetworksAddPeeringCall) RequestId(requestId string) *NetworksAddPeeringCall
- type NetworksAddPeeringRequest
- type NetworksDeleteCall
- func (c *NetworksDeleteCall) Context(ctx context.Context) *NetworksDeleteCall
- func (c *NetworksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworksDeleteCall) Fields(s ...googleapi.Field) *NetworksDeleteCall
- func (c *NetworksDeleteCall) Header() http.Header
- func (c *NetworksDeleteCall) RequestId(requestId string) *NetworksDeleteCall
- type NetworksGetCall
- func (c *NetworksGetCall) Context(ctx context.Context) *NetworksGetCall
- func (c *NetworksGetCall) Do(opts ...googleapi.CallOption) (*Network, error)
- func (c *NetworksGetCall) Fields(s ...googleapi.Field) *NetworksGetCall
- func (c *NetworksGetCall) Header() http.Header
- func (c *NetworksGetCall) IfNoneMatch(entityTag string) *NetworksGetCall
- type NetworksGetEffectiveFirewallsCall
- func (c *NetworksGetEffectiveFirewallsCall) Context(ctx context.Context) *NetworksGetEffectiveFirewallsCall
- func (c *NetworksGetEffectiveFirewallsCall) Do(opts ...googleapi.CallOption) (*NetworksGetEffectiveFirewallsResponse, error)
- func (c *NetworksGetEffectiveFirewallsCall) Fields(s ...googleapi.Field) *NetworksGetEffectiveFirewallsCall
- func (c *NetworksGetEffectiveFirewallsCall) Header() http.Header
- func (c *NetworksGetEffectiveFirewallsCall) IfNoneMatch(entityTag string) *NetworksGetEffectiveFirewallsCall
- type NetworksGetEffectiveFirewallsResponse
- type NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
- type NetworksInsertCall
- func (c *NetworksInsertCall) Context(ctx context.Context) *NetworksInsertCall
- func (c *NetworksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworksInsertCall) Fields(s ...googleapi.Field) *NetworksInsertCall
- func (c *NetworksInsertCall) Header() http.Header
- func (c *NetworksInsertCall) RequestId(requestId string) *NetworksInsertCall
- type NetworksListCall
- func (c *NetworksListCall) Context(ctx context.Context) *NetworksListCall
- func (c *NetworksListCall) Do(opts ...googleapi.CallOption) (*NetworkList, error)
- func (c *NetworksListCall) Fields(s ...googleapi.Field) *NetworksListCall
- func (c *NetworksListCall) Filter(filter string) *NetworksListCall
- func (c *NetworksListCall) Header() http.Header
- func (c *NetworksListCall) IfNoneMatch(entityTag string) *NetworksListCall
- func (c *NetworksListCall) MaxResults(maxResults int64) *NetworksListCall
- func (c *NetworksListCall) OrderBy(orderBy string) *NetworksListCall
- func (c *NetworksListCall) PageToken(pageToken string) *NetworksListCall
- func (c *NetworksListCall) Pages(ctx context.Context, f func(*NetworkList) error) error
- func (c *NetworksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworksListCall
- type NetworksListPeeringRoutesCall
- func (c *NetworksListPeeringRoutesCall) Context(ctx context.Context) *NetworksListPeeringRoutesCall
- func (c *NetworksListPeeringRoutesCall) Direction(direction string) *NetworksListPeeringRoutesCall
- func (c *NetworksListPeeringRoutesCall) Do(opts ...googleapi.CallOption) (*ExchangedPeeringRoutesList, error)
- func (c *NetworksListPeeringRoutesCall) Fields(s ...googleapi.Field) *NetworksListPeeringRoutesCall
- func (c *NetworksListPeeringRoutesCall) Filter(filter string) *NetworksListPeeringRoutesCall
- func (c *NetworksListPeeringRoutesCall) Header() http.Header
- func (c *NetworksListPeeringRoutesCall) IfNoneMatch(entityTag string) *NetworksListPeeringRoutesCall
- func (c *NetworksListPeeringRoutesCall) MaxResults(maxResults int64) *NetworksListPeeringRoutesCall
- func (c *NetworksListPeeringRoutesCall) OrderBy(orderBy string) *NetworksListPeeringRoutesCall
- func (c *NetworksListPeeringRoutesCall) PageToken(pageToken string) *NetworksListPeeringRoutesCall
- func (c *NetworksListPeeringRoutesCall) Pages(ctx context.Context, f func(*ExchangedPeeringRoutesList) error) error
- func (c *NetworksListPeeringRoutesCall) PeeringName(peeringName string) *NetworksListPeeringRoutesCall
- func (c *NetworksListPeeringRoutesCall) Region(region string) *NetworksListPeeringRoutesCall
- func (c *NetworksListPeeringRoutesCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworksListPeeringRoutesCall
- type NetworksPatchCall
- func (c *NetworksPatchCall) Context(ctx context.Context) *NetworksPatchCall
- func (c *NetworksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworksPatchCall) Fields(s ...googleapi.Field) *NetworksPatchCall
- func (c *NetworksPatchCall) Header() http.Header
- func (c *NetworksPatchCall) RequestId(requestId string) *NetworksPatchCall
- type NetworksRemovePeeringCall
- func (c *NetworksRemovePeeringCall) Context(ctx context.Context) *NetworksRemovePeeringCall
- func (c *NetworksRemovePeeringCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworksRemovePeeringCall) Fields(s ...googleapi.Field) *NetworksRemovePeeringCall
- func (c *NetworksRemovePeeringCall) Header() http.Header
- func (c *NetworksRemovePeeringCall) RequestId(requestId string) *NetworksRemovePeeringCall
- type NetworksRemovePeeringRequest
- type NetworksService
- func (r *NetworksService) AddPeering(project string, network string, ...) *NetworksAddPeeringCall
- func (r *NetworksService) Delete(project string, network string) *NetworksDeleteCall
- func (r *NetworksService) Get(project string, network string) *NetworksGetCall
- func (r *NetworksService) GetEffectiveFirewalls(project string, network string) *NetworksGetEffectiveFirewallsCall
- func (r *NetworksService) Insert(project string, network *Network) *NetworksInsertCall
- func (r *NetworksService) List(project string) *NetworksListCall
- func (r *NetworksService) ListPeeringRoutes(project string, network string) *NetworksListPeeringRoutesCall
- func (r *NetworksService) Patch(project string, network string, network2 *Network) *NetworksPatchCall
- func (r *NetworksService) RemovePeering(project string, network string, ...) *NetworksRemovePeeringCall
- func (r *NetworksService) SwitchToCustomMode(project string, network string) *NetworksSwitchToCustomModeCall
- func (r *NetworksService) UpdatePeering(project string, network string, ...) *NetworksUpdatePeeringCall
- type NetworksSwitchToCustomModeCall
- func (c *NetworksSwitchToCustomModeCall) Context(ctx context.Context) *NetworksSwitchToCustomModeCall
- func (c *NetworksSwitchToCustomModeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworksSwitchToCustomModeCall) Fields(s ...googleapi.Field) *NetworksSwitchToCustomModeCall
- func (c *NetworksSwitchToCustomModeCall) Header() http.Header
- func (c *NetworksSwitchToCustomModeCall) RequestId(requestId string) *NetworksSwitchToCustomModeCall
- type NetworksUpdatePeeringCall
- func (c *NetworksUpdatePeeringCall) Context(ctx context.Context) *NetworksUpdatePeeringCall
- func (c *NetworksUpdatePeeringCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NetworksUpdatePeeringCall) Fields(s ...googleapi.Field) *NetworksUpdatePeeringCall
- func (c *NetworksUpdatePeeringCall) Header() http.Header
- func (c *NetworksUpdatePeeringCall) RequestId(requestId string) *NetworksUpdatePeeringCall
- type NetworksUpdatePeeringRequest
- type NodeGroup
- type NodeGroupAggregatedList
- type NodeGroupAggregatedListWarning
- type NodeGroupAggregatedListWarningData
- type NodeGroupAutoscalingPolicy
- type NodeGroupList
- type NodeGroupListWarning
- type NodeGroupListWarningData
- type NodeGroupMaintenanceWindow
- type NodeGroupNode
- type NodeGroupsAddNodesCall
- func (c *NodeGroupsAddNodesCall) Context(ctx context.Context) *NodeGroupsAddNodesCall
- func (c *NodeGroupsAddNodesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NodeGroupsAddNodesCall) Fields(s ...googleapi.Field) *NodeGroupsAddNodesCall
- func (c *NodeGroupsAddNodesCall) Header() http.Header
- func (c *NodeGroupsAddNodesCall) RequestId(requestId string) *NodeGroupsAddNodesCall
- type NodeGroupsAddNodesRequest
- type NodeGroupsAggregatedListCall
- func (c *NodeGroupsAggregatedListCall) Context(ctx context.Context) *NodeGroupsAggregatedListCall
- func (c *NodeGroupsAggregatedListCall) Do(opts ...googleapi.CallOption) (*NodeGroupAggregatedList, error)
- func (c *NodeGroupsAggregatedListCall) Fields(s ...googleapi.Field) *NodeGroupsAggregatedListCall
- func (c *NodeGroupsAggregatedListCall) Filter(filter string) *NodeGroupsAggregatedListCall
- func (c *NodeGroupsAggregatedListCall) Header() http.Header
- func (c *NodeGroupsAggregatedListCall) IfNoneMatch(entityTag string) *NodeGroupsAggregatedListCall
- func (c *NodeGroupsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *NodeGroupsAggregatedListCall
- func (c *NodeGroupsAggregatedListCall) MaxResults(maxResults int64) *NodeGroupsAggregatedListCall
- func (c *NodeGroupsAggregatedListCall) OrderBy(orderBy string) *NodeGroupsAggregatedListCall
- func (c *NodeGroupsAggregatedListCall) PageToken(pageToken string) *NodeGroupsAggregatedListCall
- func (c *NodeGroupsAggregatedListCall) Pages(ctx context.Context, f func(*NodeGroupAggregatedList) error) error
- func (c *NodeGroupsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NodeGroupsAggregatedListCall
- func (c *NodeGroupsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *NodeGroupsAggregatedListCall
- type NodeGroupsDeleteCall
- func (c *NodeGroupsDeleteCall) Context(ctx context.Context) *NodeGroupsDeleteCall
- func (c *NodeGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NodeGroupsDeleteCall) Fields(s ...googleapi.Field) *NodeGroupsDeleteCall
- func (c *NodeGroupsDeleteCall) Header() http.Header
- func (c *NodeGroupsDeleteCall) RequestId(requestId string) *NodeGroupsDeleteCall
- type NodeGroupsDeleteNodesCall
- func (c *NodeGroupsDeleteNodesCall) Context(ctx context.Context) *NodeGroupsDeleteNodesCall
- func (c *NodeGroupsDeleteNodesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NodeGroupsDeleteNodesCall) Fields(s ...googleapi.Field) *NodeGroupsDeleteNodesCall
- func (c *NodeGroupsDeleteNodesCall) Header() http.Header
- func (c *NodeGroupsDeleteNodesCall) RequestId(requestId string) *NodeGroupsDeleteNodesCall
- type NodeGroupsDeleteNodesRequest
- type NodeGroupsGetCall
- func (c *NodeGroupsGetCall) Context(ctx context.Context) *NodeGroupsGetCall
- func (c *NodeGroupsGetCall) Do(opts ...googleapi.CallOption) (*NodeGroup, error)
- func (c *NodeGroupsGetCall) Fields(s ...googleapi.Field) *NodeGroupsGetCall
- func (c *NodeGroupsGetCall) Header() http.Header
- func (c *NodeGroupsGetCall) IfNoneMatch(entityTag string) *NodeGroupsGetCall
- type NodeGroupsGetIamPolicyCall
- func (c *NodeGroupsGetIamPolicyCall) Context(ctx context.Context) *NodeGroupsGetIamPolicyCall
- func (c *NodeGroupsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *NodeGroupsGetIamPolicyCall) Fields(s ...googleapi.Field) *NodeGroupsGetIamPolicyCall
- func (c *NodeGroupsGetIamPolicyCall) Header() http.Header
- func (c *NodeGroupsGetIamPolicyCall) IfNoneMatch(entityTag string) *NodeGroupsGetIamPolicyCall
- func (c *NodeGroupsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *NodeGroupsGetIamPolicyCall
- type NodeGroupsInsertCall
- func (c *NodeGroupsInsertCall) Context(ctx context.Context) *NodeGroupsInsertCall
- func (c *NodeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NodeGroupsInsertCall) Fields(s ...googleapi.Field) *NodeGroupsInsertCall
- func (c *NodeGroupsInsertCall) Header() http.Header
- func (c *NodeGroupsInsertCall) RequestId(requestId string) *NodeGroupsInsertCall
- type NodeGroupsListCall
- func (c *NodeGroupsListCall) Context(ctx context.Context) *NodeGroupsListCall
- func (c *NodeGroupsListCall) Do(opts ...googleapi.CallOption) (*NodeGroupList, error)
- func (c *NodeGroupsListCall) Fields(s ...googleapi.Field) *NodeGroupsListCall
- func (c *NodeGroupsListCall) Filter(filter string) *NodeGroupsListCall
- func (c *NodeGroupsListCall) Header() http.Header
- func (c *NodeGroupsListCall) IfNoneMatch(entityTag string) *NodeGroupsListCall
- func (c *NodeGroupsListCall) MaxResults(maxResults int64) *NodeGroupsListCall
- func (c *NodeGroupsListCall) OrderBy(orderBy string) *NodeGroupsListCall
- func (c *NodeGroupsListCall) PageToken(pageToken string) *NodeGroupsListCall
- func (c *NodeGroupsListCall) Pages(ctx context.Context, f func(*NodeGroupList) error) error
- func (c *NodeGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NodeGroupsListCall
- type NodeGroupsListNodes
- type NodeGroupsListNodesCall
- func (c *NodeGroupsListNodesCall) Context(ctx context.Context) *NodeGroupsListNodesCall
- func (c *NodeGroupsListNodesCall) Do(opts ...googleapi.CallOption) (*NodeGroupsListNodes, error)
- func (c *NodeGroupsListNodesCall) Fields(s ...googleapi.Field) *NodeGroupsListNodesCall
- func (c *NodeGroupsListNodesCall) Filter(filter string) *NodeGroupsListNodesCall
- func (c *NodeGroupsListNodesCall) Header() http.Header
- func (c *NodeGroupsListNodesCall) MaxResults(maxResults int64) *NodeGroupsListNodesCall
- func (c *NodeGroupsListNodesCall) OrderBy(orderBy string) *NodeGroupsListNodesCall
- func (c *NodeGroupsListNodesCall) PageToken(pageToken string) *NodeGroupsListNodesCall
- func (c *NodeGroupsListNodesCall) Pages(ctx context.Context, f func(*NodeGroupsListNodes) error) error
- func (c *NodeGroupsListNodesCall) ReturnPartialSuccess(returnPartialSuccess bool) *NodeGroupsListNodesCall
- type NodeGroupsListNodesWarning
- type NodeGroupsListNodesWarningData
- type NodeGroupsPatchCall
- func (c *NodeGroupsPatchCall) Context(ctx context.Context) *NodeGroupsPatchCall
- func (c *NodeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NodeGroupsPatchCall) Fields(s ...googleapi.Field) *NodeGroupsPatchCall
- func (c *NodeGroupsPatchCall) Header() http.Header
- func (c *NodeGroupsPatchCall) RequestId(requestId string) *NodeGroupsPatchCall
- type NodeGroupsPerformMaintenanceCall
- func (c *NodeGroupsPerformMaintenanceCall) Context(ctx context.Context) *NodeGroupsPerformMaintenanceCall
- func (c *NodeGroupsPerformMaintenanceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NodeGroupsPerformMaintenanceCall) Fields(s ...googleapi.Field) *NodeGroupsPerformMaintenanceCall
- func (c *NodeGroupsPerformMaintenanceCall) Header() http.Header
- func (c *NodeGroupsPerformMaintenanceCall) RequestId(requestId string) *NodeGroupsPerformMaintenanceCall
- type NodeGroupsPerformMaintenanceRequest
- type NodeGroupsScopedList
- type NodeGroupsScopedListWarning
- type NodeGroupsScopedListWarningData
- type NodeGroupsService
- func (r *NodeGroupsService) AddNodes(project string, zone string, nodeGroup string, ...) *NodeGroupsAddNodesCall
- func (r *NodeGroupsService) AggregatedList(project string) *NodeGroupsAggregatedListCall
- func (r *NodeGroupsService) Delete(project string, zone string, nodeGroup string) *NodeGroupsDeleteCall
- func (r *NodeGroupsService) DeleteNodes(project string, zone string, nodeGroup string, ...) *NodeGroupsDeleteNodesCall
- func (r *NodeGroupsService) Get(project string, zone string, nodeGroup string) *NodeGroupsGetCall
- func (r *NodeGroupsService) GetIamPolicy(project string, zone string, resource string) *NodeGroupsGetIamPolicyCall
- func (r *NodeGroupsService) Insert(project string, zone string, initialNodeCount int64, nodegroup *NodeGroup) *NodeGroupsInsertCall
- func (r *NodeGroupsService) List(project string, zone string) *NodeGroupsListCall
- func (r *NodeGroupsService) ListNodes(project string, zone string, nodeGroup string) *NodeGroupsListNodesCall
- func (r *NodeGroupsService) Patch(project string, zone string, nodeGroup string, nodegroup *NodeGroup) *NodeGroupsPatchCall
- func (r *NodeGroupsService) PerformMaintenance(project string, zone string, nodeGroup string, ...) *NodeGroupsPerformMaintenanceCall
- func (r *NodeGroupsService) SetIamPolicy(project string, zone string, resource string, ...) *NodeGroupsSetIamPolicyCall
- func (r *NodeGroupsService) SetNodeTemplate(project string, zone string, nodeGroup string, ...) *NodeGroupsSetNodeTemplateCall
- func (r *NodeGroupsService) SimulateMaintenanceEvent(project string, zone string, nodeGroup string, ...) *NodeGroupsSimulateMaintenanceEventCall
- func (r *NodeGroupsService) TestIamPermissions(project string, zone string, resource string, ...) *NodeGroupsTestIamPermissionsCall
- type NodeGroupsSetIamPolicyCall
- func (c *NodeGroupsSetIamPolicyCall) Context(ctx context.Context) *NodeGroupsSetIamPolicyCall
- func (c *NodeGroupsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *NodeGroupsSetIamPolicyCall) Fields(s ...googleapi.Field) *NodeGroupsSetIamPolicyCall
- func (c *NodeGroupsSetIamPolicyCall) Header() http.Header
- type NodeGroupsSetNodeTemplateCall
- func (c *NodeGroupsSetNodeTemplateCall) Context(ctx context.Context) *NodeGroupsSetNodeTemplateCall
- func (c *NodeGroupsSetNodeTemplateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NodeGroupsSetNodeTemplateCall) Fields(s ...googleapi.Field) *NodeGroupsSetNodeTemplateCall
- func (c *NodeGroupsSetNodeTemplateCall) Header() http.Header
- func (c *NodeGroupsSetNodeTemplateCall) RequestId(requestId string) *NodeGroupsSetNodeTemplateCall
- type NodeGroupsSetNodeTemplateRequest
- type NodeGroupsSimulateMaintenanceEventCall
- func (c *NodeGroupsSimulateMaintenanceEventCall) Context(ctx context.Context) *NodeGroupsSimulateMaintenanceEventCall
- func (c *NodeGroupsSimulateMaintenanceEventCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NodeGroupsSimulateMaintenanceEventCall) Fields(s ...googleapi.Field) *NodeGroupsSimulateMaintenanceEventCall
- func (c *NodeGroupsSimulateMaintenanceEventCall) Header() http.Header
- func (c *NodeGroupsSimulateMaintenanceEventCall) RequestId(requestId string) *NodeGroupsSimulateMaintenanceEventCall
- type NodeGroupsSimulateMaintenanceEventRequest
- type NodeGroupsTestIamPermissionsCall
- func (c *NodeGroupsTestIamPermissionsCall) Context(ctx context.Context) *NodeGroupsTestIamPermissionsCall
- func (c *NodeGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *NodeGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *NodeGroupsTestIamPermissionsCall
- func (c *NodeGroupsTestIamPermissionsCall) Header() http.Header
- type NodeTemplate
- type NodeTemplateAggregatedList
- type NodeTemplateAggregatedListWarning
- type NodeTemplateAggregatedListWarningData
- type NodeTemplateList
- type NodeTemplateListWarning
- type NodeTemplateListWarningData
- type NodeTemplateNodeTypeFlexibility
- type NodeTemplatesAggregatedListCall
- func (c *NodeTemplatesAggregatedListCall) Context(ctx context.Context) *NodeTemplatesAggregatedListCall
- func (c *NodeTemplatesAggregatedListCall) Do(opts ...googleapi.CallOption) (*NodeTemplateAggregatedList, error)
- func (c *NodeTemplatesAggregatedListCall) Fields(s ...googleapi.Field) *NodeTemplatesAggregatedListCall
- func (c *NodeTemplatesAggregatedListCall) Filter(filter string) *NodeTemplatesAggregatedListCall
- func (c *NodeTemplatesAggregatedListCall) Header() http.Header
- func (c *NodeTemplatesAggregatedListCall) IfNoneMatch(entityTag string) *NodeTemplatesAggregatedListCall
- func (c *NodeTemplatesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *NodeTemplatesAggregatedListCall
- func (c *NodeTemplatesAggregatedListCall) MaxResults(maxResults int64) *NodeTemplatesAggregatedListCall
- func (c *NodeTemplatesAggregatedListCall) OrderBy(orderBy string) *NodeTemplatesAggregatedListCall
- func (c *NodeTemplatesAggregatedListCall) PageToken(pageToken string) *NodeTemplatesAggregatedListCall
- func (c *NodeTemplatesAggregatedListCall) Pages(ctx context.Context, f func(*NodeTemplateAggregatedList) error) error
- func (c *NodeTemplatesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NodeTemplatesAggregatedListCall
- func (c *NodeTemplatesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *NodeTemplatesAggregatedListCall
- type NodeTemplatesDeleteCall
- func (c *NodeTemplatesDeleteCall) Context(ctx context.Context) *NodeTemplatesDeleteCall
- func (c *NodeTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NodeTemplatesDeleteCall) Fields(s ...googleapi.Field) *NodeTemplatesDeleteCall
- func (c *NodeTemplatesDeleteCall) Header() http.Header
- func (c *NodeTemplatesDeleteCall) RequestId(requestId string) *NodeTemplatesDeleteCall
- type NodeTemplatesGetCall
- func (c *NodeTemplatesGetCall) Context(ctx context.Context) *NodeTemplatesGetCall
- func (c *NodeTemplatesGetCall) Do(opts ...googleapi.CallOption) (*NodeTemplate, error)
- func (c *NodeTemplatesGetCall) Fields(s ...googleapi.Field) *NodeTemplatesGetCall
- func (c *NodeTemplatesGetCall) Header() http.Header
- func (c *NodeTemplatesGetCall) IfNoneMatch(entityTag string) *NodeTemplatesGetCall
- type NodeTemplatesGetIamPolicyCall
- func (c *NodeTemplatesGetIamPolicyCall) Context(ctx context.Context) *NodeTemplatesGetIamPolicyCall
- func (c *NodeTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *NodeTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *NodeTemplatesGetIamPolicyCall
- func (c *NodeTemplatesGetIamPolicyCall) Header() http.Header
- func (c *NodeTemplatesGetIamPolicyCall) IfNoneMatch(entityTag string) *NodeTemplatesGetIamPolicyCall
- func (c *NodeTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *NodeTemplatesGetIamPolicyCall
- type NodeTemplatesInsertCall
- func (c *NodeTemplatesInsertCall) Context(ctx context.Context) *NodeTemplatesInsertCall
- func (c *NodeTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NodeTemplatesInsertCall) Fields(s ...googleapi.Field) *NodeTemplatesInsertCall
- func (c *NodeTemplatesInsertCall) Header() http.Header
- func (c *NodeTemplatesInsertCall) RequestId(requestId string) *NodeTemplatesInsertCall
- type NodeTemplatesListCall
- func (c *NodeTemplatesListCall) Context(ctx context.Context) *NodeTemplatesListCall
- func (c *NodeTemplatesListCall) Do(opts ...googleapi.CallOption) (*NodeTemplateList, error)
- func (c *NodeTemplatesListCall) Fields(s ...googleapi.Field) *NodeTemplatesListCall
- func (c *NodeTemplatesListCall) Filter(filter string) *NodeTemplatesListCall
- func (c *NodeTemplatesListCall) Header() http.Header
- func (c *NodeTemplatesListCall) IfNoneMatch(entityTag string) *NodeTemplatesListCall
- func (c *NodeTemplatesListCall) MaxResults(maxResults int64) *NodeTemplatesListCall
- func (c *NodeTemplatesListCall) OrderBy(orderBy string) *NodeTemplatesListCall
- func (c *NodeTemplatesListCall) PageToken(pageToken string) *NodeTemplatesListCall
- func (c *NodeTemplatesListCall) Pages(ctx context.Context, f func(*NodeTemplateList) error) error
- func (c *NodeTemplatesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NodeTemplatesListCall
- type NodeTemplatesScopedList
- type NodeTemplatesScopedListWarning
- type NodeTemplatesScopedListWarningData
- type NodeTemplatesService
- func (r *NodeTemplatesService) AggregatedList(project string) *NodeTemplatesAggregatedListCall
- func (r *NodeTemplatesService) Delete(project string, region string, nodeTemplate string) *NodeTemplatesDeleteCall
- func (r *NodeTemplatesService) Get(project string, region string, nodeTemplate string) *NodeTemplatesGetCall
- func (r *NodeTemplatesService) GetIamPolicy(project string, region string, resource string) *NodeTemplatesGetIamPolicyCall
- func (r *NodeTemplatesService) Insert(project string, region string, nodetemplate *NodeTemplate) *NodeTemplatesInsertCall
- func (r *NodeTemplatesService) List(project string, region string) *NodeTemplatesListCall
- func (r *NodeTemplatesService) SetIamPolicy(project string, region string, resource string, ...) *NodeTemplatesSetIamPolicyCall
- func (r *NodeTemplatesService) TestIamPermissions(project string, region string, resource string, ...) *NodeTemplatesTestIamPermissionsCall
- type NodeTemplatesSetIamPolicyCall
- func (c *NodeTemplatesSetIamPolicyCall) Context(ctx context.Context) *NodeTemplatesSetIamPolicyCall
- func (c *NodeTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *NodeTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *NodeTemplatesSetIamPolicyCall
- func (c *NodeTemplatesSetIamPolicyCall) Header() http.Header
- type NodeTemplatesTestIamPermissionsCall
- func (c *NodeTemplatesTestIamPermissionsCall) Context(ctx context.Context) *NodeTemplatesTestIamPermissionsCall
- func (c *NodeTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *NodeTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *NodeTemplatesTestIamPermissionsCall
- func (c *NodeTemplatesTestIamPermissionsCall) Header() http.Header
- type NodeType
- type NodeTypeAggregatedList
- type NodeTypeAggregatedListWarning
- type NodeTypeAggregatedListWarningData
- type NodeTypeList
- type NodeTypeListWarning
- type NodeTypeListWarningData
- type NodeTypesAggregatedListCall
- func (c *NodeTypesAggregatedListCall) Context(ctx context.Context) *NodeTypesAggregatedListCall
- func (c *NodeTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*NodeTypeAggregatedList, error)
- func (c *NodeTypesAggregatedListCall) Fields(s ...googleapi.Field) *NodeTypesAggregatedListCall
- func (c *NodeTypesAggregatedListCall) Filter(filter string) *NodeTypesAggregatedListCall
- func (c *NodeTypesAggregatedListCall) Header() http.Header
- func (c *NodeTypesAggregatedListCall) IfNoneMatch(entityTag string) *NodeTypesAggregatedListCall
- func (c *NodeTypesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *NodeTypesAggregatedListCall
- func (c *NodeTypesAggregatedListCall) MaxResults(maxResults int64) *NodeTypesAggregatedListCall
- func (c *NodeTypesAggregatedListCall) OrderBy(orderBy string) *NodeTypesAggregatedListCall
- func (c *NodeTypesAggregatedListCall) PageToken(pageToken string) *NodeTypesAggregatedListCall
- func (c *NodeTypesAggregatedListCall) Pages(ctx context.Context, f func(*NodeTypeAggregatedList) error) error
- func (c *NodeTypesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NodeTypesAggregatedListCall
- func (c *NodeTypesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *NodeTypesAggregatedListCall
- type NodeTypesGetCall
- func (c *NodeTypesGetCall) Context(ctx context.Context) *NodeTypesGetCall
- func (c *NodeTypesGetCall) Do(opts ...googleapi.CallOption) (*NodeType, error)
- func (c *NodeTypesGetCall) Fields(s ...googleapi.Field) *NodeTypesGetCall
- func (c *NodeTypesGetCall) Header() http.Header
- func (c *NodeTypesGetCall) IfNoneMatch(entityTag string) *NodeTypesGetCall
- type NodeTypesListCall
- func (c *NodeTypesListCall) Context(ctx context.Context) *NodeTypesListCall
- func (c *NodeTypesListCall) Do(opts ...googleapi.CallOption) (*NodeTypeList, error)
- func (c *NodeTypesListCall) Fields(s ...googleapi.Field) *NodeTypesListCall
- func (c *NodeTypesListCall) Filter(filter string) *NodeTypesListCall
- func (c *NodeTypesListCall) Header() http.Header
- func (c *NodeTypesListCall) IfNoneMatch(entityTag string) *NodeTypesListCall
- func (c *NodeTypesListCall) MaxResults(maxResults int64) *NodeTypesListCall
- func (c *NodeTypesListCall) OrderBy(orderBy string) *NodeTypesListCall
- func (c *NodeTypesListCall) PageToken(pageToken string) *NodeTypesListCall
- func (c *NodeTypesListCall) Pages(ctx context.Context, f func(*NodeTypeList) error) error
- func (c *NodeTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NodeTypesListCall
- type NodeTypesScopedList
- type NodeTypesScopedListWarning
- type NodeTypesScopedListWarningData
- type NodeTypesService
- type NotificationEndpoint
- type NotificationEndpointGrpcSettings
- type NotificationEndpointList
- type NotificationEndpointListWarning
- type NotificationEndpointListWarningData
- type Operation
- type OperationAggregatedList
- type OperationAggregatedListWarning
- type OperationAggregatedListWarningData
- type OperationError
- type OperationErrorErrors
- type OperationErrorErrorsErrorDetails
- type OperationList
- type OperationListWarning
- type OperationListWarningData
- type OperationWarnings
- type OperationWarningsData
- type OperationsScopedList
- type OperationsScopedListWarning
- type OperationsScopedListWarningData
- type OutlierDetection
- type PacketIntervals
- type PacketMirroring
- type PacketMirroringAggregatedList
- type PacketMirroringAggregatedListWarning
- type PacketMirroringAggregatedListWarningData
- type PacketMirroringFilter
- type PacketMirroringForwardingRuleInfo
- type PacketMirroringList
- type PacketMirroringListWarning
- type PacketMirroringListWarningData
- type PacketMirroringMirroredResourceInfo
- type PacketMirroringMirroredResourceInfoInstanceInfo
- type PacketMirroringMirroredResourceInfoSubnetInfo
- type PacketMirroringNetworkInfo
- type PacketMirroringsAggregatedListCall
- func (c *PacketMirroringsAggregatedListCall) Context(ctx context.Context) *PacketMirroringsAggregatedListCall
- func (c *PacketMirroringsAggregatedListCall) Do(opts ...googleapi.CallOption) (*PacketMirroringAggregatedList, error)
- func (c *PacketMirroringsAggregatedListCall) Fields(s ...googleapi.Field) *PacketMirroringsAggregatedListCall
- func (c *PacketMirroringsAggregatedListCall) Filter(filter string) *PacketMirroringsAggregatedListCall
- func (c *PacketMirroringsAggregatedListCall) Header() http.Header
- func (c *PacketMirroringsAggregatedListCall) IfNoneMatch(entityTag string) *PacketMirroringsAggregatedListCall
- func (c *PacketMirroringsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *PacketMirroringsAggregatedListCall
- func (c *PacketMirroringsAggregatedListCall) MaxResults(maxResults int64) *PacketMirroringsAggregatedListCall
- func (c *PacketMirroringsAggregatedListCall) OrderBy(orderBy string) *PacketMirroringsAggregatedListCall
- func (c *PacketMirroringsAggregatedListCall) PageToken(pageToken string) *PacketMirroringsAggregatedListCall
- func (c *PacketMirroringsAggregatedListCall) Pages(ctx context.Context, f func(*PacketMirroringAggregatedList) error) error
- func (c *PacketMirroringsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PacketMirroringsAggregatedListCall
- func (c *PacketMirroringsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *PacketMirroringsAggregatedListCall
- type PacketMirroringsDeleteCall
- func (c *PacketMirroringsDeleteCall) Context(ctx context.Context) *PacketMirroringsDeleteCall
- func (c *PacketMirroringsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PacketMirroringsDeleteCall) Fields(s ...googleapi.Field) *PacketMirroringsDeleteCall
- func (c *PacketMirroringsDeleteCall) Header() http.Header
- func (c *PacketMirroringsDeleteCall) RequestId(requestId string) *PacketMirroringsDeleteCall
- type PacketMirroringsGetCall
- func (c *PacketMirroringsGetCall) Context(ctx context.Context) *PacketMirroringsGetCall
- func (c *PacketMirroringsGetCall) Do(opts ...googleapi.CallOption) (*PacketMirroring, error)
- func (c *PacketMirroringsGetCall) Fields(s ...googleapi.Field) *PacketMirroringsGetCall
- func (c *PacketMirroringsGetCall) Header() http.Header
- func (c *PacketMirroringsGetCall) IfNoneMatch(entityTag string) *PacketMirroringsGetCall
- type PacketMirroringsInsertCall
- func (c *PacketMirroringsInsertCall) Context(ctx context.Context) *PacketMirroringsInsertCall
- func (c *PacketMirroringsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PacketMirroringsInsertCall) Fields(s ...googleapi.Field) *PacketMirroringsInsertCall
- func (c *PacketMirroringsInsertCall) Header() http.Header
- func (c *PacketMirroringsInsertCall) RequestId(requestId string) *PacketMirroringsInsertCall
- type PacketMirroringsListCall
- func (c *PacketMirroringsListCall) Context(ctx context.Context) *PacketMirroringsListCall
- func (c *PacketMirroringsListCall) Do(opts ...googleapi.CallOption) (*PacketMirroringList, error)
- func (c *PacketMirroringsListCall) Fields(s ...googleapi.Field) *PacketMirroringsListCall
- func (c *PacketMirroringsListCall) Filter(filter string) *PacketMirroringsListCall
- func (c *PacketMirroringsListCall) Header() http.Header
- func (c *PacketMirroringsListCall) IfNoneMatch(entityTag string) *PacketMirroringsListCall
- func (c *PacketMirroringsListCall) MaxResults(maxResults int64) *PacketMirroringsListCall
- func (c *PacketMirroringsListCall) OrderBy(orderBy string) *PacketMirroringsListCall
- func (c *PacketMirroringsListCall) PageToken(pageToken string) *PacketMirroringsListCall
- func (c *PacketMirroringsListCall) Pages(ctx context.Context, f func(*PacketMirroringList) error) error
- func (c *PacketMirroringsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PacketMirroringsListCall
- type PacketMirroringsPatchCall
- func (c *PacketMirroringsPatchCall) Context(ctx context.Context) *PacketMirroringsPatchCall
- func (c *PacketMirroringsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PacketMirroringsPatchCall) Fields(s ...googleapi.Field) *PacketMirroringsPatchCall
- func (c *PacketMirroringsPatchCall) Header() http.Header
- func (c *PacketMirroringsPatchCall) RequestId(requestId string) *PacketMirroringsPatchCall
- type PacketMirroringsScopedList
- type PacketMirroringsScopedListWarning
- type PacketMirroringsScopedListWarningData
- type PacketMirroringsService
- func (r *PacketMirroringsService) AggregatedList(project string) *PacketMirroringsAggregatedListCall
- func (r *PacketMirroringsService) Delete(project string, region string, packetMirroring string) *PacketMirroringsDeleteCall
- func (r *PacketMirroringsService) Get(project string, region string, packetMirroring string) *PacketMirroringsGetCall
- func (r *PacketMirroringsService) Insert(project string, region string, packetmirroring *PacketMirroring) *PacketMirroringsInsertCall
- func (r *PacketMirroringsService) List(project string, region string) *PacketMirroringsListCall
- func (r *PacketMirroringsService) Patch(project string, region string, packetMirroring string, ...) *PacketMirroringsPatchCall
- func (r *PacketMirroringsService) TestIamPermissions(project string, region string, resource string, ...) *PacketMirroringsTestIamPermissionsCall
- type PacketMirroringsTestIamPermissionsCall
- func (c *PacketMirroringsTestIamPermissionsCall) Context(ctx context.Context) *PacketMirroringsTestIamPermissionsCall
- func (c *PacketMirroringsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *PacketMirroringsTestIamPermissionsCall) Fields(s ...googleapi.Field) *PacketMirroringsTestIamPermissionsCall
- func (c *PacketMirroringsTestIamPermissionsCall) Header() http.Header
- type PathMatcher
- type PathRule
- type PerInstanceConfig
- type Policy
- type PreconfiguredWafSet
- type PreservedState
- type PreservedStatePreservedDisk
- type PreservedStatePreservedNetworkIp
- type PreservedStatePreservedNetworkIpIpAddress
- type Project
- type ProjectsDisableXpnHostCall
- func (c *ProjectsDisableXpnHostCall) Context(ctx context.Context) *ProjectsDisableXpnHostCall
- func (c *ProjectsDisableXpnHostCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsDisableXpnHostCall) Fields(s ...googleapi.Field) *ProjectsDisableXpnHostCall
- func (c *ProjectsDisableXpnHostCall) Header() http.Header
- func (c *ProjectsDisableXpnHostCall) RequestId(requestId string) *ProjectsDisableXpnHostCall
- type ProjectsDisableXpnResourceCall
- func (c *ProjectsDisableXpnResourceCall) Context(ctx context.Context) *ProjectsDisableXpnResourceCall
- func (c *ProjectsDisableXpnResourceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsDisableXpnResourceCall) Fields(s ...googleapi.Field) *ProjectsDisableXpnResourceCall
- func (c *ProjectsDisableXpnResourceCall) Header() http.Header
- func (c *ProjectsDisableXpnResourceCall) RequestId(requestId string) *ProjectsDisableXpnResourceCall
- type ProjectsDisableXpnResourceRequest
- type ProjectsEnableXpnHostCall
- func (c *ProjectsEnableXpnHostCall) Context(ctx context.Context) *ProjectsEnableXpnHostCall
- func (c *ProjectsEnableXpnHostCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsEnableXpnHostCall) Fields(s ...googleapi.Field) *ProjectsEnableXpnHostCall
- func (c *ProjectsEnableXpnHostCall) Header() http.Header
- func (c *ProjectsEnableXpnHostCall) RequestId(requestId string) *ProjectsEnableXpnHostCall
- type ProjectsEnableXpnResourceCall
- func (c *ProjectsEnableXpnResourceCall) Context(ctx context.Context) *ProjectsEnableXpnResourceCall
- func (c *ProjectsEnableXpnResourceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsEnableXpnResourceCall) Fields(s ...googleapi.Field) *ProjectsEnableXpnResourceCall
- func (c *ProjectsEnableXpnResourceCall) Header() http.Header
- func (c *ProjectsEnableXpnResourceCall) RequestId(requestId string) *ProjectsEnableXpnResourceCall
- type ProjectsEnableXpnResourceRequest
- type ProjectsGetCall
- func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall
- func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error)
- func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall
- func (c *ProjectsGetCall) Header() http.Header
- func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall
- type ProjectsGetXpnHostCall
- func (c *ProjectsGetXpnHostCall) Context(ctx context.Context) *ProjectsGetXpnHostCall
- func (c *ProjectsGetXpnHostCall) Do(opts ...googleapi.CallOption) (*Project, error)
- func (c *ProjectsGetXpnHostCall) Fields(s ...googleapi.Field) *ProjectsGetXpnHostCall
- func (c *ProjectsGetXpnHostCall) Header() http.Header
- func (c *ProjectsGetXpnHostCall) IfNoneMatch(entityTag string) *ProjectsGetXpnHostCall
- type ProjectsGetXpnResources
- type ProjectsGetXpnResourcesCall
- func (c *ProjectsGetXpnResourcesCall) Context(ctx context.Context) *ProjectsGetXpnResourcesCall
- func (c *ProjectsGetXpnResourcesCall) Do(opts ...googleapi.CallOption) (*ProjectsGetXpnResources, error)
- func (c *ProjectsGetXpnResourcesCall) Fields(s ...googleapi.Field) *ProjectsGetXpnResourcesCall
- func (c *ProjectsGetXpnResourcesCall) Filter(filter string) *ProjectsGetXpnResourcesCall
- func (c *ProjectsGetXpnResourcesCall) Header() http.Header
- func (c *ProjectsGetXpnResourcesCall) IfNoneMatch(entityTag string) *ProjectsGetXpnResourcesCall
- func (c *ProjectsGetXpnResourcesCall) MaxResults(maxResults int64) *ProjectsGetXpnResourcesCall
- func (c *ProjectsGetXpnResourcesCall) OrderBy(orderBy string) *ProjectsGetXpnResourcesCall
- func (c *ProjectsGetXpnResourcesCall) PageToken(pageToken string) *ProjectsGetXpnResourcesCall
- func (c *ProjectsGetXpnResourcesCall) Pages(ctx context.Context, f func(*ProjectsGetXpnResources) error) error
- func (c *ProjectsGetXpnResourcesCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsGetXpnResourcesCall
- type ProjectsListXpnHostsCall
- func (c *ProjectsListXpnHostsCall) Context(ctx context.Context) *ProjectsListXpnHostsCall
- func (c *ProjectsListXpnHostsCall) Do(opts ...googleapi.CallOption) (*XpnHostList, error)
- func (c *ProjectsListXpnHostsCall) Fields(s ...googleapi.Field) *ProjectsListXpnHostsCall
- func (c *ProjectsListXpnHostsCall) Filter(filter string) *ProjectsListXpnHostsCall
- func (c *ProjectsListXpnHostsCall) Header() http.Header
- func (c *ProjectsListXpnHostsCall) MaxResults(maxResults int64) *ProjectsListXpnHostsCall
- func (c *ProjectsListXpnHostsCall) OrderBy(orderBy string) *ProjectsListXpnHostsCall
- func (c *ProjectsListXpnHostsCall) PageToken(pageToken string) *ProjectsListXpnHostsCall
- func (c *ProjectsListXpnHostsCall) Pages(ctx context.Context, f func(*XpnHostList) error) error
- func (c *ProjectsListXpnHostsCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsListXpnHostsCall
- type ProjectsListXpnHostsRequest
- type ProjectsMoveDiskCall
- func (c *ProjectsMoveDiskCall) Context(ctx context.Context) *ProjectsMoveDiskCall
- func (c *ProjectsMoveDiskCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsMoveDiskCall) Fields(s ...googleapi.Field) *ProjectsMoveDiskCall
- func (c *ProjectsMoveDiskCall) Header() http.Header
- func (c *ProjectsMoveDiskCall) RequestId(requestId string) *ProjectsMoveDiskCall
- type ProjectsMoveInstanceCall
- func (c *ProjectsMoveInstanceCall) Context(ctx context.Context) *ProjectsMoveInstanceCall
- func (c *ProjectsMoveInstanceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsMoveInstanceCall) Fields(s ...googleapi.Field) *ProjectsMoveInstanceCall
- func (c *ProjectsMoveInstanceCall) Header() http.Header
- func (c *ProjectsMoveInstanceCall) RequestId(requestId string) *ProjectsMoveInstanceCall
- type ProjectsService
- func (r *ProjectsService) DisableXpnHost(project string) *ProjectsDisableXpnHostCall
- func (r *ProjectsService) DisableXpnResource(project string, ...) *ProjectsDisableXpnResourceCall
- func (r *ProjectsService) EnableXpnHost(project string) *ProjectsEnableXpnHostCall
- func (r *ProjectsService) EnableXpnResource(project string, ...) *ProjectsEnableXpnResourceCall
- func (r *ProjectsService) Get(project string) *ProjectsGetCall
- func (r *ProjectsService) GetXpnHost(project string) *ProjectsGetXpnHostCall
- func (r *ProjectsService) GetXpnResources(project string) *ProjectsGetXpnResourcesCall
- func (r *ProjectsService) ListXpnHosts(project string, projectslistxpnhostsrequest *ProjectsListXpnHostsRequest) *ProjectsListXpnHostsCall
- func (r *ProjectsService) MoveDisk(project string, diskmoverequest *DiskMoveRequest) *ProjectsMoveDiskCall
- func (r *ProjectsService) MoveInstance(project string, instancemoverequest *InstanceMoveRequest) *ProjectsMoveInstanceCall
- func (r *ProjectsService) SetCloudArmorTier(project string, ...) *ProjectsSetCloudArmorTierCall
- func (r *ProjectsService) SetCommonInstanceMetadata(project string, metadata *Metadata) *ProjectsSetCommonInstanceMetadataCall
- func (r *ProjectsService) SetDefaultNetworkTier(project string, ...) *ProjectsSetDefaultNetworkTierCall
- func (r *ProjectsService) SetUsageExportBucket(project string, usageexportlocation *UsageExportLocation) *ProjectsSetUsageExportBucketCall
- type ProjectsSetCloudArmorTierCall
- func (c *ProjectsSetCloudArmorTierCall) Context(ctx context.Context) *ProjectsSetCloudArmorTierCall
- func (c *ProjectsSetCloudArmorTierCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsSetCloudArmorTierCall) Fields(s ...googleapi.Field) *ProjectsSetCloudArmorTierCall
- func (c *ProjectsSetCloudArmorTierCall) Header() http.Header
- func (c *ProjectsSetCloudArmorTierCall) RequestId(requestId string) *ProjectsSetCloudArmorTierCall
- type ProjectsSetCloudArmorTierRequest
- type ProjectsSetCommonInstanceMetadataCall
- func (c *ProjectsSetCommonInstanceMetadataCall) Context(ctx context.Context) *ProjectsSetCommonInstanceMetadataCall
- func (c *ProjectsSetCommonInstanceMetadataCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsSetCommonInstanceMetadataCall) Fields(s ...googleapi.Field) *ProjectsSetCommonInstanceMetadataCall
- func (c *ProjectsSetCommonInstanceMetadataCall) Header() http.Header
- func (c *ProjectsSetCommonInstanceMetadataCall) RequestId(requestId string) *ProjectsSetCommonInstanceMetadataCall
- type ProjectsSetDefaultNetworkTierCall
- func (c *ProjectsSetDefaultNetworkTierCall) Context(ctx context.Context) *ProjectsSetDefaultNetworkTierCall
- func (c *ProjectsSetDefaultNetworkTierCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsSetDefaultNetworkTierCall) Fields(s ...googleapi.Field) *ProjectsSetDefaultNetworkTierCall
- func (c *ProjectsSetDefaultNetworkTierCall) Header() http.Header
- func (c *ProjectsSetDefaultNetworkTierCall) RequestId(requestId string) *ProjectsSetDefaultNetworkTierCall
- type ProjectsSetDefaultNetworkTierRequest
- type ProjectsSetUsageExportBucketCall
- func (c *ProjectsSetUsageExportBucketCall) Context(ctx context.Context) *ProjectsSetUsageExportBucketCall
- func (c *ProjectsSetUsageExportBucketCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsSetUsageExportBucketCall) Fields(s ...googleapi.Field) *ProjectsSetUsageExportBucketCall
- func (c *ProjectsSetUsageExportBucketCall) Header() http.Header
- func (c *ProjectsSetUsageExportBucketCall) RequestId(requestId string) *ProjectsSetUsageExportBucketCall
- type PublicAdvertisedPrefix
- type PublicAdvertisedPrefixList
- type PublicAdvertisedPrefixListWarning
- type PublicAdvertisedPrefixListWarningData
- type PublicAdvertisedPrefixPublicDelegatedPrefix
- type PublicAdvertisedPrefixesAnnounceCall
- func (c *PublicAdvertisedPrefixesAnnounceCall) Context(ctx context.Context) *PublicAdvertisedPrefixesAnnounceCall
- func (c *PublicAdvertisedPrefixesAnnounceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PublicAdvertisedPrefixesAnnounceCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesAnnounceCall
- func (c *PublicAdvertisedPrefixesAnnounceCall) Header() http.Header
- func (c *PublicAdvertisedPrefixesAnnounceCall) RequestId(requestId string) *PublicAdvertisedPrefixesAnnounceCall
- type PublicAdvertisedPrefixesDeleteCall
- func (c *PublicAdvertisedPrefixesDeleteCall) Context(ctx context.Context) *PublicAdvertisedPrefixesDeleteCall
- func (c *PublicAdvertisedPrefixesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PublicAdvertisedPrefixesDeleteCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesDeleteCall
- func (c *PublicAdvertisedPrefixesDeleteCall) Header() http.Header
- func (c *PublicAdvertisedPrefixesDeleteCall) RequestId(requestId string) *PublicAdvertisedPrefixesDeleteCall
- type PublicAdvertisedPrefixesGetCall
- func (c *PublicAdvertisedPrefixesGetCall) Context(ctx context.Context) *PublicAdvertisedPrefixesGetCall
- func (c *PublicAdvertisedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*PublicAdvertisedPrefix, error)
- func (c *PublicAdvertisedPrefixesGetCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesGetCall
- func (c *PublicAdvertisedPrefixesGetCall) Header() http.Header
- func (c *PublicAdvertisedPrefixesGetCall) IfNoneMatch(entityTag string) *PublicAdvertisedPrefixesGetCall
- type PublicAdvertisedPrefixesInsertCall
- func (c *PublicAdvertisedPrefixesInsertCall) Context(ctx context.Context) *PublicAdvertisedPrefixesInsertCall
- func (c *PublicAdvertisedPrefixesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PublicAdvertisedPrefixesInsertCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesInsertCall
- func (c *PublicAdvertisedPrefixesInsertCall) Header() http.Header
- func (c *PublicAdvertisedPrefixesInsertCall) RequestId(requestId string) *PublicAdvertisedPrefixesInsertCall
- type PublicAdvertisedPrefixesListCall
- func (c *PublicAdvertisedPrefixesListCall) Context(ctx context.Context) *PublicAdvertisedPrefixesListCall
- func (c *PublicAdvertisedPrefixesListCall) Do(opts ...googleapi.CallOption) (*PublicAdvertisedPrefixList, error)
- func (c *PublicAdvertisedPrefixesListCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesListCall
- func (c *PublicAdvertisedPrefixesListCall) Filter(filter string) *PublicAdvertisedPrefixesListCall
- func (c *PublicAdvertisedPrefixesListCall) Header() http.Header
- func (c *PublicAdvertisedPrefixesListCall) IfNoneMatch(entityTag string) *PublicAdvertisedPrefixesListCall
- func (c *PublicAdvertisedPrefixesListCall) MaxResults(maxResults int64) *PublicAdvertisedPrefixesListCall
- func (c *PublicAdvertisedPrefixesListCall) OrderBy(orderBy string) *PublicAdvertisedPrefixesListCall
- func (c *PublicAdvertisedPrefixesListCall) PageToken(pageToken string) *PublicAdvertisedPrefixesListCall
- func (c *PublicAdvertisedPrefixesListCall) Pages(ctx context.Context, f func(*PublicAdvertisedPrefixList) error) error
- func (c *PublicAdvertisedPrefixesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PublicAdvertisedPrefixesListCall
- type PublicAdvertisedPrefixesPatchCall
- func (c *PublicAdvertisedPrefixesPatchCall) Context(ctx context.Context) *PublicAdvertisedPrefixesPatchCall
- func (c *PublicAdvertisedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PublicAdvertisedPrefixesPatchCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesPatchCall
- func (c *PublicAdvertisedPrefixesPatchCall) Header() http.Header
- func (c *PublicAdvertisedPrefixesPatchCall) RequestId(requestId string) *PublicAdvertisedPrefixesPatchCall
- type PublicAdvertisedPrefixesService
- func (r *PublicAdvertisedPrefixesService) Announce(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesAnnounceCall
- func (r *PublicAdvertisedPrefixesService) Delete(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesDeleteCall
- func (r *PublicAdvertisedPrefixesService) Get(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesGetCall
- func (r *PublicAdvertisedPrefixesService) Insert(project string, publicadvertisedprefix *PublicAdvertisedPrefix) *PublicAdvertisedPrefixesInsertCall
- func (r *PublicAdvertisedPrefixesService) List(project string) *PublicAdvertisedPrefixesListCall
- func (r *PublicAdvertisedPrefixesService) Patch(project string, publicAdvertisedPrefix string, ...) *PublicAdvertisedPrefixesPatchCall
- func (r *PublicAdvertisedPrefixesService) Withdraw(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesWithdrawCall
- type PublicAdvertisedPrefixesWithdrawCall
- func (c *PublicAdvertisedPrefixesWithdrawCall) Context(ctx context.Context) *PublicAdvertisedPrefixesWithdrawCall
- func (c *PublicAdvertisedPrefixesWithdrawCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PublicAdvertisedPrefixesWithdrawCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesWithdrawCall
- func (c *PublicAdvertisedPrefixesWithdrawCall) Header() http.Header
- func (c *PublicAdvertisedPrefixesWithdrawCall) RequestId(requestId string) *PublicAdvertisedPrefixesWithdrawCall
- type PublicDelegatedPrefix
- type PublicDelegatedPrefixAggregatedList
- type PublicDelegatedPrefixAggregatedListWarning
- type PublicDelegatedPrefixAggregatedListWarningData
- type PublicDelegatedPrefixList
- type PublicDelegatedPrefixListWarning
- type PublicDelegatedPrefixListWarningData
- type PublicDelegatedPrefixPublicDelegatedSubPrefix
- type PublicDelegatedPrefixesAggregatedListCall
- func (c *PublicDelegatedPrefixesAggregatedListCall) Context(ctx context.Context) *PublicDelegatedPrefixesAggregatedListCall
- func (c *PublicDelegatedPrefixesAggregatedListCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefixAggregatedList, error)
- func (c *PublicDelegatedPrefixesAggregatedListCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesAggregatedListCall
- func (c *PublicDelegatedPrefixesAggregatedListCall) Filter(filter string) *PublicDelegatedPrefixesAggregatedListCall
- func (c *PublicDelegatedPrefixesAggregatedListCall) Header() http.Header
- func (c *PublicDelegatedPrefixesAggregatedListCall) IfNoneMatch(entityTag string) *PublicDelegatedPrefixesAggregatedListCall
- func (c *PublicDelegatedPrefixesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *PublicDelegatedPrefixesAggregatedListCall
- func (c *PublicDelegatedPrefixesAggregatedListCall) MaxResults(maxResults int64) *PublicDelegatedPrefixesAggregatedListCall
- func (c *PublicDelegatedPrefixesAggregatedListCall) OrderBy(orderBy string) *PublicDelegatedPrefixesAggregatedListCall
- func (c *PublicDelegatedPrefixesAggregatedListCall) PageToken(pageToken string) *PublicDelegatedPrefixesAggregatedListCall
- func (c *PublicDelegatedPrefixesAggregatedListCall) Pages(ctx context.Context, f func(*PublicDelegatedPrefixAggregatedList) error) error
- func (c *PublicDelegatedPrefixesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PublicDelegatedPrefixesAggregatedListCall
- func (c *PublicDelegatedPrefixesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *PublicDelegatedPrefixesAggregatedListCall
- type PublicDelegatedPrefixesAnnounceCall
- func (c *PublicDelegatedPrefixesAnnounceCall) Context(ctx context.Context) *PublicDelegatedPrefixesAnnounceCall
- func (c *PublicDelegatedPrefixesAnnounceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PublicDelegatedPrefixesAnnounceCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesAnnounceCall
- func (c *PublicDelegatedPrefixesAnnounceCall) Header() http.Header
- func (c *PublicDelegatedPrefixesAnnounceCall) RequestId(requestId string) *PublicDelegatedPrefixesAnnounceCall
- type PublicDelegatedPrefixesDeleteCall
- func (c *PublicDelegatedPrefixesDeleteCall) Context(ctx context.Context) *PublicDelegatedPrefixesDeleteCall
- func (c *PublicDelegatedPrefixesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PublicDelegatedPrefixesDeleteCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesDeleteCall
- func (c *PublicDelegatedPrefixesDeleteCall) Header() http.Header
- func (c *PublicDelegatedPrefixesDeleteCall) RequestId(requestId string) *PublicDelegatedPrefixesDeleteCall
- type PublicDelegatedPrefixesGetCall
- func (c *PublicDelegatedPrefixesGetCall) Context(ctx context.Context) *PublicDelegatedPrefixesGetCall
- func (c *PublicDelegatedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefix, error)
- func (c *PublicDelegatedPrefixesGetCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesGetCall
- func (c *PublicDelegatedPrefixesGetCall) Header() http.Header
- func (c *PublicDelegatedPrefixesGetCall) IfNoneMatch(entityTag string) *PublicDelegatedPrefixesGetCall
- type PublicDelegatedPrefixesInsertCall
- func (c *PublicDelegatedPrefixesInsertCall) Context(ctx context.Context) *PublicDelegatedPrefixesInsertCall
- func (c *PublicDelegatedPrefixesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PublicDelegatedPrefixesInsertCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesInsertCall
- func (c *PublicDelegatedPrefixesInsertCall) Header() http.Header
- func (c *PublicDelegatedPrefixesInsertCall) RequestId(requestId string) *PublicDelegatedPrefixesInsertCall
- type PublicDelegatedPrefixesListCall
- func (c *PublicDelegatedPrefixesListCall) Context(ctx context.Context) *PublicDelegatedPrefixesListCall
- func (c *PublicDelegatedPrefixesListCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefixList, error)
- func (c *PublicDelegatedPrefixesListCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesListCall
- func (c *PublicDelegatedPrefixesListCall) Filter(filter string) *PublicDelegatedPrefixesListCall
- func (c *PublicDelegatedPrefixesListCall) Header() http.Header
- func (c *PublicDelegatedPrefixesListCall) IfNoneMatch(entityTag string) *PublicDelegatedPrefixesListCall
- func (c *PublicDelegatedPrefixesListCall) MaxResults(maxResults int64) *PublicDelegatedPrefixesListCall
- func (c *PublicDelegatedPrefixesListCall) OrderBy(orderBy string) *PublicDelegatedPrefixesListCall
- func (c *PublicDelegatedPrefixesListCall) PageToken(pageToken string) *PublicDelegatedPrefixesListCall
- func (c *PublicDelegatedPrefixesListCall) Pages(ctx context.Context, f func(*PublicDelegatedPrefixList) error) error
- func (c *PublicDelegatedPrefixesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PublicDelegatedPrefixesListCall
- type PublicDelegatedPrefixesPatchCall
- func (c *PublicDelegatedPrefixesPatchCall) Context(ctx context.Context) *PublicDelegatedPrefixesPatchCall
- func (c *PublicDelegatedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PublicDelegatedPrefixesPatchCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesPatchCall
- func (c *PublicDelegatedPrefixesPatchCall) Header() http.Header
- func (c *PublicDelegatedPrefixesPatchCall) RequestId(requestId string) *PublicDelegatedPrefixesPatchCall
- type PublicDelegatedPrefixesScopedList
- type PublicDelegatedPrefixesScopedListWarning
- type PublicDelegatedPrefixesScopedListWarningData
- type PublicDelegatedPrefixesService
- func (r *PublicDelegatedPrefixesService) AggregatedList(project string) *PublicDelegatedPrefixesAggregatedListCall
- func (r *PublicDelegatedPrefixesService) Announce(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesAnnounceCall
- func (r *PublicDelegatedPrefixesService) Delete(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesDeleteCall
- func (r *PublicDelegatedPrefixesService) Get(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesGetCall
- func (r *PublicDelegatedPrefixesService) Insert(project string, region string, publicdelegatedprefix *PublicDelegatedPrefix) *PublicDelegatedPrefixesInsertCall
- func (r *PublicDelegatedPrefixesService) List(project string, region string) *PublicDelegatedPrefixesListCall
- func (r *PublicDelegatedPrefixesService) Patch(project string, region string, publicDelegatedPrefix string, ...) *PublicDelegatedPrefixesPatchCall
- func (r *PublicDelegatedPrefixesService) Withdraw(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesWithdrawCall
- type PublicDelegatedPrefixesWithdrawCall
- func (c *PublicDelegatedPrefixesWithdrawCall) Context(ctx context.Context) *PublicDelegatedPrefixesWithdrawCall
- func (c *PublicDelegatedPrefixesWithdrawCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PublicDelegatedPrefixesWithdrawCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesWithdrawCall
- func (c *PublicDelegatedPrefixesWithdrawCall) Header() http.Header
- func (c *PublicDelegatedPrefixesWithdrawCall) RequestId(requestId string) *PublicDelegatedPrefixesWithdrawCall
- type Quota
- type QuotaExceededInfo
- type Reference
- type Region
- type RegionAddressesMoveRequest
- type RegionAutoscalerList
- type RegionAutoscalerListWarning
- type RegionAutoscalerListWarningData
- type RegionAutoscalersDeleteCall
- func (c *RegionAutoscalersDeleteCall) Context(ctx context.Context) *RegionAutoscalersDeleteCall
- func (c *RegionAutoscalersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionAutoscalersDeleteCall) Fields(s ...googleapi.Field) *RegionAutoscalersDeleteCall
- func (c *RegionAutoscalersDeleteCall) Header() http.Header
- func (c *RegionAutoscalersDeleteCall) RequestId(requestId string) *RegionAutoscalersDeleteCall
- type RegionAutoscalersGetCall
- func (c *RegionAutoscalersGetCall) Context(ctx context.Context) *RegionAutoscalersGetCall
- func (c *RegionAutoscalersGetCall) Do(opts ...googleapi.CallOption) (*Autoscaler, error)
- func (c *RegionAutoscalersGetCall) Fields(s ...googleapi.Field) *RegionAutoscalersGetCall
- func (c *RegionAutoscalersGetCall) Header() http.Header
- func (c *RegionAutoscalersGetCall) IfNoneMatch(entityTag string) *RegionAutoscalersGetCall
- type RegionAutoscalersInsertCall
- func (c *RegionAutoscalersInsertCall) Context(ctx context.Context) *RegionAutoscalersInsertCall
- func (c *RegionAutoscalersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionAutoscalersInsertCall) Fields(s ...googleapi.Field) *RegionAutoscalersInsertCall
- func (c *RegionAutoscalersInsertCall) Header() http.Header
- func (c *RegionAutoscalersInsertCall) RequestId(requestId string) *RegionAutoscalersInsertCall
- type RegionAutoscalersListCall
- func (c *RegionAutoscalersListCall) Context(ctx context.Context) *RegionAutoscalersListCall
- func (c *RegionAutoscalersListCall) Do(opts ...googleapi.CallOption) (*RegionAutoscalerList, error)
- func (c *RegionAutoscalersListCall) Fields(s ...googleapi.Field) *RegionAutoscalersListCall
- func (c *RegionAutoscalersListCall) Filter(filter string) *RegionAutoscalersListCall
- func (c *RegionAutoscalersListCall) Header() http.Header
- func (c *RegionAutoscalersListCall) IfNoneMatch(entityTag string) *RegionAutoscalersListCall
- func (c *RegionAutoscalersListCall) MaxResults(maxResults int64) *RegionAutoscalersListCall
- func (c *RegionAutoscalersListCall) OrderBy(orderBy string) *RegionAutoscalersListCall
- func (c *RegionAutoscalersListCall) PageToken(pageToken string) *RegionAutoscalersListCall
- func (c *RegionAutoscalersListCall) Pages(ctx context.Context, f func(*RegionAutoscalerList) error) error
- func (c *RegionAutoscalersListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionAutoscalersListCall
- type RegionAutoscalersPatchCall
- func (c *RegionAutoscalersPatchCall) Autoscaler(autoscaler string) *RegionAutoscalersPatchCall
- func (c *RegionAutoscalersPatchCall) Context(ctx context.Context) *RegionAutoscalersPatchCall
- func (c *RegionAutoscalersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionAutoscalersPatchCall) Fields(s ...googleapi.Field) *RegionAutoscalersPatchCall
- func (c *RegionAutoscalersPatchCall) Header() http.Header
- func (c *RegionAutoscalersPatchCall) RequestId(requestId string) *RegionAutoscalersPatchCall
- type RegionAutoscalersService
- func (r *RegionAutoscalersService) Delete(project string, region string, autoscaler string) *RegionAutoscalersDeleteCall
- func (r *RegionAutoscalersService) Get(project string, region string, autoscaler string) *RegionAutoscalersGetCall
- func (r *RegionAutoscalersService) Insert(project string, region string, autoscaler *Autoscaler) *RegionAutoscalersInsertCall
- func (r *RegionAutoscalersService) List(project string, region string) *RegionAutoscalersListCall
- func (r *RegionAutoscalersService) Patch(project string, region string, autoscaler *Autoscaler) *RegionAutoscalersPatchCall
- func (r *RegionAutoscalersService) Update(project string, region string, autoscaler *Autoscaler) *RegionAutoscalersUpdateCall
- type RegionAutoscalersUpdateCall
- func (c *RegionAutoscalersUpdateCall) Autoscaler(autoscaler string) *RegionAutoscalersUpdateCall
- func (c *RegionAutoscalersUpdateCall) Context(ctx context.Context) *RegionAutoscalersUpdateCall
- func (c *RegionAutoscalersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionAutoscalersUpdateCall) Fields(s ...googleapi.Field) *RegionAutoscalersUpdateCall
- func (c *RegionAutoscalersUpdateCall) Header() http.Header
- func (c *RegionAutoscalersUpdateCall) RequestId(requestId string) *RegionAutoscalersUpdateCall
- type RegionBackendServicesDeleteCall
- func (c *RegionBackendServicesDeleteCall) Context(ctx context.Context) *RegionBackendServicesDeleteCall
- func (c *RegionBackendServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionBackendServicesDeleteCall) Fields(s ...googleapi.Field) *RegionBackendServicesDeleteCall
- func (c *RegionBackendServicesDeleteCall) Header() http.Header
- func (c *RegionBackendServicesDeleteCall) RequestId(requestId string) *RegionBackendServicesDeleteCall
- type RegionBackendServicesGetCall
- func (c *RegionBackendServicesGetCall) Context(ctx context.Context) *RegionBackendServicesGetCall
- func (c *RegionBackendServicesGetCall) Do(opts ...googleapi.CallOption) (*BackendService, error)
- func (c *RegionBackendServicesGetCall) Fields(s ...googleapi.Field) *RegionBackendServicesGetCall
- func (c *RegionBackendServicesGetCall) Header() http.Header
- func (c *RegionBackendServicesGetCall) IfNoneMatch(entityTag string) *RegionBackendServicesGetCall
- type RegionBackendServicesGetHealthCall
- func (c *RegionBackendServicesGetHealthCall) Context(ctx context.Context) *RegionBackendServicesGetHealthCall
- func (c *RegionBackendServicesGetHealthCall) Do(opts ...googleapi.CallOption) (*BackendServiceGroupHealth, error)
- func (c *RegionBackendServicesGetHealthCall) Fields(s ...googleapi.Field) *RegionBackendServicesGetHealthCall
- func (c *RegionBackendServicesGetHealthCall) Header() http.Header
- type RegionBackendServicesGetIamPolicyCall
- func (c *RegionBackendServicesGetIamPolicyCall) Context(ctx context.Context) *RegionBackendServicesGetIamPolicyCall
- func (c *RegionBackendServicesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *RegionBackendServicesGetIamPolicyCall) Fields(s ...googleapi.Field) *RegionBackendServicesGetIamPolicyCall
- func (c *RegionBackendServicesGetIamPolicyCall) Header() http.Header
- func (c *RegionBackendServicesGetIamPolicyCall) IfNoneMatch(entityTag string) *RegionBackendServicesGetIamPolicyCall
- func (c *RegionBackendServicesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *RegionBackendServicesGetIamPolicyCall
- type RegionBackendServicesInsertCall
- func (c *RegionBackendServicesInsertCall) Context(ctx context.Context) *RegionBackendServicesInsertCall
- func (c *RegionBackendServicesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionBackendServicesInsertCall) Fields(s ...googleapi.Field) *RegionBackendServicesInsertCall
- func (c *RegionBackendServicesInsertCall) Header() http.Header
- func (c *RegionBackendServicesInsertCall) RequestId(requestId string) *RegionBackendServicesInsertCall
- type RegionBackendServicesListCall
- func (c *RegionBackendServicesListCall) Context(ctx context.Context) *RegionBackendServicesListCall
- func (c *RegionBackendServicesListCall) Do(opts ...googleapi.CallOption) (*BackendServiceList, error)
- func (c *RegionBackendServicesListCall) Fields(s ...googleapi.Field) *RegionBackendServicesListCall
- func (c *RegionBackendServicesListCall) Filter(filter string) *RegionBackendServicesListCall
- func (c *RegionBackendServicesListCall) Header() http.Header
- func (c *RegionBackendServicesListCall) IfNoneMatch(entityTag string) *RegionBackendServicesListCall
- func (c *RegionBackendServicesListCall) MaxResults(maxResults int64) *RegionBackendServicesListCall
- func (c *RegionBackendServicesListCall) OrderBy(orderBy string) *RegionBackendServicesListCall
- func (c *RegionBackendServicesListCall) PageToken(pageToken string) *RegionBackendServicesListCall
- func (c *RegionBackendServicesListCall) Pages(ctx context.Context, f func(*BackendServiceList) error) error
- func (c *RegionBackendServicesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionBackendServicesListCall
- type RegionBackendServicesListUsableCall
- func (c *RegionBackendServicesListUsableCall) Context(ctx context.Context) *RegionBackendServicesListUsableCall
- func (c *RegionBackendServicesListUsableCall) Do(opts ...googleapi.CallOption) (*BackendServiceListUsable, error)
- func (c *RegionBackendServicesListUsableCall) Fields(s ...googleapi.Field) *RegionBackendServicesListUsableCall
- func (c *RegionBackendServicesListUsableCall) Filter(filter string) *RegionBackendServicesListUsableCall
- func (c *RegionBackendServicesListUsableCall) Header() http.Header
- func (c *RegionBackendServicesListUsableCall) IfNoneMatch(entityTag string) *RegionBackendServicesListUsableCall
- func (c *RegionBackendServicesListUsableCall) MaxResults(maxResults int64) *RegionBackendServicesListUsableCall
- func (c *RegionBackendServicesListUsableCall) OrderBy(orderBy string) *RegionBackendServicesListUsableCall
- func (c *RegionBackendServicesListUsableCall) PageToken(pageToken string) *RegionBackendServicesListUsableCall
- func (c *RegionBackendServicesListUsableCall) Pages(ctx context.Context, f func(*BackendServiceListUsable) error) error
- func (c *RegionBackendServicesListUsableCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionBackendServicesListUsableCall
- type RegionBackendServicesPatchCall
- func (c *RegionBackendServicesPatchCall) Context(ctx context.Context) *RegionBackendServicesPatchCall
- func (c *RegionBackendServicesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionBackendServicesPatchCall) Fields(s ...googleapi.Field) *RegionBackendServicesPatchCall
- func (c *RegionBackendServicesPatchCall) Header() http.Header
- func (c *RegionBackendServicesPatchCall) RequestId(requestId string) *RegionBackendServicesPatchCall
- type RegionBackendServicesService
- func (r *RegionBackendServicesService) Delete(project string, region string, backendService string) *RegionBackendServicesDeleteCall
- func (r *RegionBackendServicesService) Get(project string, region string, backendService string) *RegionBackendServicesGetCall
- func (r *RegionBackendServicesService) GetHealth(project string, region string, backendService string, ...) *RegionBackendServicesGetHealthCall
- func (r *RegionBackendServicesService) GetIamPolicy(project string, region string, resource string) *RegionBackendServicesGetIamPolicyCall
- func (r *RegionBackendServicesService) Insert(project string, region string, backendservice *BackendService) *RegionBackendServicesInsertCall
- func (r *RegionBackendServicesService) List(project string, region string) *RegionBackendServicesListCall
- func (r *RegionBackendServicesService) ListUsable(project string, region string) *RegionBackendServicesListUsableCall
- func (r *RegionBackendServicesService) Patch(project string, region string, backendService string, ...) *RegionBackendServicesPatchCall
- func (r *RegionBackendServicesService) SetIamPolicy(project string, region string, resource string, ...) *RegionBackendServicesSetIamPolicyCall
- func (r *RegionBackendServicesService) SetSecurityPolicy(project string, region string, backendService string, ...) *RegionBackendServicesSetSecurityPolicyCall
- func (r *RegionBackendServicesService) TestIamPermissions(project string, region string, resource string, ...) *RegionBackendServicesTestIamPermissionsCall
- func (r *RegionBackendServicesService) Update(project string, region string, backendService string, ...) *RegionBackendServicesUpdateCall
- type RegionBackendServicesSetIamPolicyCall
- func (c *RegionBackendServicesSetIamPolicyCall) Context(ctx context.Context) *RegionBackendServicesSetIamPolicyCall
- func (c *RegionBackendServicesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *RegionBackendServicesSetIamPolicyCall) Fields(s ...googleapi.Field) *RegionBackendServicesSetIamPolicyCall
- func (c *RegionBackendServicesSetIamPolicyCall) Header() http.Header
- type RegionBackendServicesSetSecurityPolicyCall
- func (c *RegionBackendServicesSetSecurityPolicyCall) Context(ctx context.Context) *RegionBackendServicesSetSecurityPolicyCall
- func (c *RegionBackendServicesSetSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionBackendServicesSetSecurityPolicyCall) Fields(s ...googleapi.Field) *RegionBackendServicesSetSecurityPolicyCall
- func (c *RegionBackendServicesSetSecurityPolicyCall) Header() http.Header
- func (c *RegionBackendServicesSetSecurityPolicyCall) RequestId(requestId string) *RegionBackendServicesSetSecurityPolicyCall
- type RegionBackendServicesTestIamPermissionsCall
- func (c *RegionBackendServicesTestIamPermissionsCall) Context(ctx context.Context) *RegionBackendServicesTestIamPermissionsCall
- func (c *RegionBackendServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RegionBackendServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionBackendServicesTestIamPermissionsCall
- func (c *RegionBackendServicesTestIamPermissionsCall) Header() http.Header
- type RegionBackendServicesUpdateCall
- func (c *RegionBackendServicesUpdateCall) Context(ctx context.Context) *RegionBackendServicesUpdateCall
- func (c *RegionBackendServicesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionBackendServicesUpdateCall) Fields(s ...googleapi.Field) *RegionBackendServicesUpdateCall
- func (c *RegionBackendServicesUpdateCall) Header() http.Header
- func (c *RegionBackendServicesUpdateCall) RequestId(requestId string) *RegionBackendServicesUpdateCall
- type RegionCommitmentsAggregatedListCall
- func (c *RegionCommitmentsAggregatedListCall) Context(ctx context.Context) *RegionCommitmentsAggregatedListCall
- func (c *RegionCommitmentsAggregatedListCall) Do(opts ...googleapi.CallOption) (*CommitmentAggregatedList, error)
- func (c *RegionCommitmentsAggregatedListCall) Fields(s ...googleapi.Field) *RegionCommitmentsAggregatedListCall
- func (c *RegionCommitmentsAggregatedListCall) Filter(filter string) *RegionCommitmentsAggregatedListCall
- func (c *RegionCommitmentsAggregatedListCall) Header() http.Header
- func (c *RegionCommitmentsAggregatedListCall) IfNoneMatch(entityTag string) *RegionCommitmentsAggregatedListCall
- func (c *RegionCommitmentsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *RegionCommitmentsAggregatedListCall
- func (c *RegionCommitmentsAggregatedListCall) MaxResults(maxResults int64) *RegionCommitmentsAggregatedListCall
- func (c *RegionCommitmentsAggregatedListCall) OrderBy(orderBy string) *RegionCommitmentsAggregatedListCall
- func (c *RegionCommitmentsAggregatedListCall) PageToken(pageToken string) *RegionCommitmentsAggregatedListCall
- func (c *RegionCommitmentsAggregatedListCall) Pages(ctx context.Context, f func(*CommitmentAggregatedList) error) error
- func (c *RegionCommitmentsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionCommitmentsAggregatedListCall
- func (c *RegionCommitmentsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *RegionCommitmentsAggregatedListCall
- type RegionCommitmentsGetCall
- func (c *RegionCommitmentsGetCall) Context(ctx context.Context) *RegionCommitmentsGetCall
- func (c *RegionCommitmentsGetCall) Do(opts ...googleapi.CallOption) (*Commitment, error)
- func (c *RegionCommitmentsGetCall) Fields(s ...googleapi.Field) *RegionCommitmentsGetCall
- func (c *RegionCommitmentsGetCall) Header() http.Header
- func (c *RegionCommitmentsGetCall) IfNoneMatch(entityTag string) *RegionCommitmentsGetCall
- type RegionCommitmentsInsertCall
- func (c *RegionCommitmentsInsertCall) Context(ctx context.Context) *RegionCommitmentsInsertCall
- func (c *RegionCommitmentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionCommitmentsInsertCall) Fields(s ...googleapi.Field) *RegionCommitmentsInsertCall
- func (c *RegionCommitmentsInsertCall) Header() http.Header
- func (c *RegionCommitmentsInsertCall) RequestId(requestId string) *RegionCommitmentsInsertCall
- type RegionCommitmentsListCall
- func (c *RegionCommitmentsListCall) Context(ctx context.Context) *RegionCommitmentsListCall
- func (c *RegionCommitmentsListCall) Do(opts ...googleapi.CallOption) (*CommitmentList, error)
- func (c *RegionCommitmentsListCall) Fields(s ...googleapi.Field) *RegionCommitmentsListCall
- func (c *RegionCommitmentsListCall) Filter(filter string) *RegionCommitmentsListCall
- func (c *RegionCommitmentsListCall) Header() http.Header
- func (c *RegionCommitmentsListCall) IfNoneMatch(entityTag string) *RegionCommitmentsListCall
- func (c *RegionCommitmentsListCall) MaxResults(maxResults int64) *RegionCommitmentsListCall
- func (c *RegionCommitmentsListCall) OrderBy(orderBy string) *RegionCommitmentsListCall
- func (c *RegionCommitmentsListCall) PageToken(pageToken string) *RegionCommitmentsListCall
- func (c *RegionCommitmentsListCall) Pages(ctx context.Context, f func(*CommitmentList) error) error
- func (c *RegionCommitmentsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionCommitmentsListCall
- type RegionCommitmentsService
- func (r *RegionCommitmentsService) AggregatedList(project string) *RegionCommitmentsAggregatedListCall
- func (r *RegionCommitmentsService) Get(project string, region string, commitment string) *RegionCommitmentsGetCall
- func (r *RegionCommitmentsService) Insert(project string, region string, commitment *Commitment) *RegionCommitmentsInsertCall
- func (r *RegionCommitmentsService) List(project string, region string) *RegionCommitmentsListCall
- func (r *RegionCommitmentsService) Update(project string, region string, commitment string, commitment2 *Commitment) *RegionCommitmentsUpdateCall
- type RegionCommitmentsUpdateCall
- func (c *RegionCommitmentsUpdateCall) Context(ctx context.Context) *RegionCommitmentsUpdateCall
- func (c *RegionCommitmentsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionCommitmentsUpdateCall) Fields(s ...googleapi.Field) *RegionCommitmentsUpdateCall
- func (c *RegionCommitmentsUpdateCall) Header() http.Header
- func (c *RegionCommitmentsUpdateCall) Paths(paths ...string) *RegionCommitmentsUpdateCall
- func (c *RegionCommitmentsUpdateCall) RequestId(requestId string) *RegionCommitmentsUpdateCall
- func (c *RegionCommitmentsUpdateCall) UpdateMask(updateMask string) *RegionCommitmentsUpdateCall
- type RegionDiskTypeList
- type RegionDiskTypeListWarning
- type RegionDiskTypeListWarningData
- type RegionDiskTypesGetCall
- func (c *RegionDiskTypesGetCall) Context(ctx context.Context) *RegionDiskTypesGetCall
- func (c *RegionDiskTypesGetCall) Do(opts ...googleapi.CallOption) (*DiskType, error)
- func (c *RegionDiskTypesGetCall) Fields(s ...googleapi.Field) *RegionDiskTypesGetCall
- func (c *RegionDiskTypesGetCall) Header() http.Header
- func (c *RegionDiskTypesGetCall) IfNoneMatch(entityTag string) *RegionDiskTypesGetCall
- type RegionDiskTypesListCall
- func (c *RegionDiskTypesListCall) Context(ctx context.Context) *RegionDiskTypesListCall
- func (c *RegionDiskTypesListCall) Do(opts ...googleapi.CallOption) (*RegionDiskTypeList, error)
- func (c *RegionDiskTypesListCall) Fields(s ...googleapi.Field) *RegionDiskTypesListCall
- func (c *RegionDiskTypesListCall) Filter(filter string) *RegionDiskTypesListCall
- func (c *RegionDiskTypesListCall) Header() http.Header
- func (c *RegionDiskTypesListCall) IfNoneMatch(entityTag string) *RegionDiskTypesListCall
- func (c *RegionDiskTypesListCall) MaxResults(maxResults int64) *RegionDiskTypesListCall
- func (c *RegionDiskTypesListCall) OrderBy(orderBy string) *RegionDiskTypesListCall
- func (c *RegionDiskTypesListCall) PageToken(pageToken string) *RegionDiskTypesListCall
- func (c *RegionDiskTypesListCall) Pages(ctx context.Context, f func(*RegionDiskTypeList) error) error
- func (c *RegionDiskTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionDiskTypesListCall
- type RegionDiskTypesService
- type RegionDisksAddResourcePoliciesCall
- func (c *RegionDisksAddResourcePoliciesCall) Context(ctx context.Context) *RegionDisksAddResourcePoliciesCall
- func (c *RegionDisksAddResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionDisksAddResourcePoliciesCall) Fields(s ...googleapi.Field) *RegionDisksAddResourcePoliciesCall
- func (c *RegionDisksAddResourcePoliciesCall) Header() http.Header
- func (c *RegionDisksAddResourcePoliciesCall) RequestId(requestId string) *RegionDisksAddResourcePoliciesCall
- type RegionDisksAddResourcePoliciesRequest
- type RegionDisksBulkInsertCall
- func (c *RegionDisksBulkInsertCall) Context(ctx context.Context) *RegionDisksBulkInsertCall
- func (c *RegionDisksBulkInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionDisksBulkInsertCall) Fields(s ...googleapi.Field) *RegionDisksBulkInsertCall
- func (c *RegionDisksBulkInsertCall) Header() http.Header
- func (c *RegionDisksBulkInsertCall) RequestId(requestId string) *RegionDisksBulkInsertCall
- type RegionDisksCreateSnapshotCall
- func (c *RegionDisksCreateSnapshotCall) Context(ctx context.Context) *RegionDisksCreateSnapshotCall
- func (c *RegionDisksCreateSnapshotCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionDisksCreateSnapshotCall) Fields(s ...googleapi.Field) *RegionDisksCreateSnapshotCall
- func (c *RegionDisksCreateSnapshotCall) Header() http.Header
- func (c *RegionDisksCreateSnapshotCall) RequestId(requestId string) *RegionDisksCreateSnapshotCall
- type RegionDisksDeleteCall
- func (c *RegionDisksDeleteCall) Context(ctx context.Context) *RegionDisksDeleteCall
- func (c *RegionDisksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionDisksDeleteCall) Fields(s ...googleapi.Field) *RegionDisksDeleteCall
- func (c *RegionDisksDeleteCall) Header() http.Header
- func (c *RegionDisksDeleteCall) RequestId(requestId string) *RegionDisksDeleteCall
- type RegionDisksGetCall
- func (c *RegionDisksGetCall) Context(ctx context.Context) *RegionDisksGetCall
- func (c *RegionDisksGetCall) Do(opts ...googleapi.CallOption) (*Disk, error)
- func (c *RegionDisksGetCall) Fields(s ...googleapi.Field) *RegionDisksGetCall
- func (c *RegionDisksGetCall) Header() http.Header
- func (c *RegionDisksGetCall) IfNoneMatch(entityTag string) *RegionDisksGetCall
- type RegionDisksGetIamPolicyCall
- func (c *RegionDisksGetIamPolicyCall) Context(ctx context.Context) *RegionDisksGetIamPolicyCall
- func (c *RegionDisksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *RegionDisksGetIamPolicyCall) Fields(s ...googleapi.Field) *RegionDisksGetIamPolicyCall
- func (c *RegionDisksGetIamPolicyCall) Header() http.Header
- func (c *RegionDisksGetIamPolicyCall) IfNoneMatch(entityTag string) *RegionDisksGetIamPolicyCall
- func (c *RegionDisksGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *RegionDisksGetIamPolicyCall
- type RegionDisksInsertCall
- func (c *RegionDisksInsertCall) Context(ctx context.Context) *RegionDisksInsertCall
- func (c *RegionDisksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionDisksInsertCall) Fields(s ...googleapi.Field) *RegionDisksInsertCall
- func (c *RegionDisksInsertCall) Header() http.Header
- func (c *RegionDisksInsertCall) RequestId(requestId string) *RegionDisksInsertCall
- func (c *RegionDisksInsertCall) SourceImage(sourceImage string) *RegionDisksInsertCall
- type RegionDisksListCall
- func (c *RegionDisksListCall) Context(ctx context.Context) *RegionDisksListCall
- func (c *RegionDisksListCall) Do(opts ...googleapi.CallOption) (*DiskList, error)
- func (c *RegionDisksListCall) Fields(s ...googleapi.Field) *RegionDisksListCall
- func (c *RegionDisksListCall) Filter(filter string) *RegionDisksListCall
- func (c *RegionDisksListCall) Header() http.Header
- func (c *RegionDisksListCall) IfNoneMatch(entityTag string) *RegionDisksListCall
- func (c *RegionDisksListCall) MaxResults(maxResults int64) *RegionDisksListCall
- func (c *RegionDisksListCall) OrderBy(orderBy string) *RegionDisksListCall
- func (c *RegionDisksListCall) PageToken(pageToken string) *RegionDisksListCall
- func (c *RegionDisksListCall) Pages(ctx context.Context, f func(*DiskList) error) error
- func (c *RegionDisksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionDisksListCall
- type RegionDisksRemoveResourcePoliciesCall
- func (c *RegionDisksRemoveResourcePoliciesCall) Context(ctx context.Context) *RegionDisksRemoveResourcePoliciesCall
- func (c *RegionDisksRemoveResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionDisksRemoveResourcePoliciesCall) Fields(s ...googleapi.Field) *RegionDisksRemoveResourcePoliciesCall
- func (c *RegionDisksRemoveResourcePoliciesCall) Header() http.Header
- func (c *RegionDisksRemoveResourcePoliciesCall) RequestId(requestId string) *RegionDisksRemoveResourcePoliciesCall
- type RegionDisksRemoveResourcePoliciesRequest
- type RegionDisksResizeCall
- func (c *RegionDisksResizeCall) Context(ctx context.Context) *RegionDisksResizeCall
- func (c *RegionDisksResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionDisksResizeCall) Fields(s ...googleapi.Field) *RegionDisksResizeCall
- func (c *RegionDisksResizeCall) Header() http.Header
- func (c *RegionDisksResizeCall) RequestId(requestId string) *RegionDisksResizeCall
- type RegionDisksResizeRequest
- type RegionDisksService
- func (r *RegionDisksService) AddResourcePolicies(project string, region string, disk string, ...) *RegionDisksAddResourcePoliciesCall
- func (r *RegionDisksService) BulkInsert(project string, region string, bulkinsertdiskresource *BulkInsertDiskResource) *RegionDisksBulkInsertCall
- func (r *RegionDisksService) CreateSnapshot(project string, region string, disk string, snapshot *Snapshot) *RegionDisksCreateSnapshotCall
- func (r *RegionDisksService) Delete(project string, region string, disk string) *RegionDisksDeleteCall
- func (r *RegionDisksService) Get(project string, region string, disk string) *RegionDisksGetCall
- func (r *RegionDisksService) GetIamPolicy(project string, region string, resource string) *RegionDisksGetIamPolicyCall
- func (r *RegionDisksService) Insert(project string, region string, disk *Disk) *RegionDisksInsertCall
- func (r *RegionDisksService) List(project string, region string) *RegionDisksListCall
- func (r *RegionDisksService) RemoveResourcePolicies(project string, region string, disk string, ...) *RegionDisksRemoveResourcePoliciesCall
- func (r *RegionDisksService) Resize(project string, region string, disk string, ...) *RegionDisksResizeCall
- func (r *RegionDisksService) SetIamPolicy(project string, region string, resource string, ...) *RegionDisksSetIamPolicyCall
- func (r *RegionDisksService) SetLabels(project string, region string, resource string, ...) *RegionDisksSetLabelsCall
- func (r *RegionDisksService) StartAsyncReplication(project string, region string, disk string, ...) *RegionDisksStartAsyncReplicationCall
- func (r *RegionDisksService) StopAsyncReplication(project string, region string, disk string) *RegionDisksStopAsyncReplicationCall
- func (r *RegionDisksService) StopGroupAsyncReplication(project string, region string, ...) *RegionDisksStopGroupAsyncReplicationCall
- func (r *RegionDisksService) TestIamPermissions(project string, region string, resource string, ...) *RegionDisksTestIamPermissionsCall
- func (r *RegionDisksService) Update(project string, region string, disk string, disk2 *Disk) *RegionDisksUpdateCall
- type RegionDisksSetIamPolicyCall
- func (c *RegionDisksSetIamPolicyCall) Context(ctx context.Context) *RegionDisksSetIamPolicyCall
- func (c *RegionDisksSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *RegionDisksSetIamPolicyCall) Fields(s ...googleapi.Field) *RegionDisksSetIamPolicyCall
- func (c *RegionDisksSetIamPolicyCall) Header() http.Header
- type RegionDisksSetLabelsCall
- func (c *RegionDisksSetLabelsCall) Context(ctx context.Context) *RegionDisksSetLabelsCall
- func (c *RegionDisksSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionDisksSetLabelsCall) Fields(s ...googleapi.Field) *RegionDisksSetLabelsCall
- func (c *RegionDisksSetLabelsCall) Header() http.Header
- func (c *RegionDisksSetLabelsCall) RequestId(requestId string) *RegionDisksSetLabelsCall
- type RegionDisksStartAsyncReplicationCall
- func (c *RegionDisksStartAsyncReplicationCall) Context(ctx context.Context) *RegionDisksStartAsyncReplicationCall
- func (c *RegionDisksStartAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionDisksStartAsyncReplicationCall) Fields(s ...googleapi.Field) *RegionDisksStartAsyncReplicationCall
- func (c *RegionDisksStartAsyncReplicationCall) Header() http.Header
- func (c *RegionDisksStartAsyncReplicationCall) RequestId(requestId string) *RegionDisksStartAsyncReplicationCall
- type RegionDisksStartAsyncReplicationRequest
- type RegionDisksStopAsyncReplicationCall
- func (c *RegionDisksStopAsyncReplicationCall) Context(ctx context.Context) *RegionDisksStopAsyncReplicationCall
- func (c *RegionDisksStopAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionDisksStopAsyncReplicationCall) Fields(s ...googleapi.Field) *RegionDisksStopAsyncReplicationCall
- func (c *RegionDisksStopAsyncReplicationCall) Header() http.Header
- func (c *RegionDisksStopAsyncReplicationCall) RequestId(requestId string) *RegionDisksStopAsyncReplicationCall
- type RegionDisksStopGroupAsyncReplicationCall
- func (c *RegionDisksStopGroupAsyncReplicationCall) Context(ctx context.Context) *RegionDisksStopGroupAsyncReplicationCall
- func (c *RegionDisksStopGroupAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionDisksStopGroupAsyncReplicationCall) Fields(s ...googleapi.Field) *RegionDisksStopGroupAsyncReplicationCall
- func (c *RegionDisksStopGroupAsyncReplicationCall) Header() http.Header
- func (c *RegionDisksStopGroupAsyncReplicationCall) RequestId(requestId string) *RegionDisksStopGroupAsyncReplicationCall
- type RegionDisksTestIamPermissionsCall
- func (c *RegionDisksTestIamPermissionsCall) Context(ctx context.Context) *RegionDisksTestIamPermissionsCall
- func (c *RegionDisksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RegionDisksTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionDisksTestIamPermissionsCall
- func (c *RegionDisksTestIamPermissionsCall) Header() http.Header
- type RegionDisksUpdateCall
- func (c *RegionDisksUpdateCall) Context(ctx context.Context) *RegionDisksUpdateCall
- func (c *RegionDisksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionDisksUpdateCall) Fields(s ...googleapi.Field) *RegionDisksUpdateCall
- func (c *RegionDisksUpdateCall) Header() http.Header
- func (c *RegionDisksUpdateCall) Paths(paths ...string) *RegionDisksUpdateCall
- func (c *RegionDisksUpdateCall) RequestId(requestId string) *RegionDisksUpdateCall
- func (c *RegionDisksUpdateCall) UpdateMask(updateMask string) *RegionDisksUpdateCall
- type RegionHealthCheckServicesDeleteCall
- func (c *RegionHealthCheckServicesDeleteCall) Context(ctx context.Context) *RegionHealthCheckServicesDeleteCall
- func (c *RegionHealthCheckServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionHealthCheckServicesDeleteCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesDeleteCall
- func (c *RegionHealthCheckServicesDeleteCall) Header() http.Header
- func (c *RegionHealthCheckServicesDeleteCall) RequestId(requestId string) *RegionHealthCheckServicesDeleteCall
- type RegionHealthCheckServicesGetCall
- func (c *RegionHealthCheckServicesGetCall) Context(ctx context.Context) *RegionHealthCheckServicesGetCall
- func (c *RegionHealthCheckServicesGetCall) Do(opts ...googleapi.CallOption) (*HealthCheckService, error)
- func (c *RegionHealthCheckServicesGetCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesGetCall
- func (c *RegionHealthCheckServicesGetCall) Header() http.Header
- func (c *RegionHealthCheckServicesGetCall) IfNoneMatch(entityTag string) *RegionHealthCheckServicesGetCall
- type RegionHealthCheckServicesInsertCall
- func (c *RegionHealthCheckServicesInsertCall) Context(ctx context.Context) *RegionHealthCheckServicesInsertCall
- func (c *RegionHealthCheckServicesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionHealthCheckServicesInsertCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesInsertCall
- func (c *RegionHealthCheckServicesInsertCall) Header() http.Header
- func (c *RegionHealthCheckServicesInsertCall) RequestId(requestId string) *RegionHealthCheckServicesInsertCall
- type RegionHealthCheckServicesListCall
- func (c *RegionHealthCheckServicesListCall) Context(ctx context.Context) *RegionHealthCheckServicesListCall
- func (c *RegionHealthCheckServicesListCall) Do(opts ...googleapi.CallOption) (*HealthCheckServicesList, error)
- func (c *RegionHealthCheckServicesListCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesListCall
- func (c *RegionHealthCheckServicesListCall) Filter(filter string) *RegionHealthCheckServicesListCall
- func (c *RegionHealthCheckServicesListCall) Header() http.Header
- func (c *RegionHealthCheckServicesListCall) IfNoneMatch(entityTag string) *RegionHealthCheckServicesListCall
- func (c *RegionHealthCheckServicesListCall) MaxResults(maxResults int64) *RegionHealthCheckServicesListCall
- func (c *RegionHealthCheckServicesListCall) OrderBy(orderBy string) *RegionHealthCheckServicesListCall
- func (c *RegionHealthCheckServicesListCall) PageToken(pageToken string) *RegionHealthCheckServicesListCall
- func (c *RegionHealthCheckServicesListCall) Pages(ctx context.Context, f func(*HealthCheckServicesList) error) error
- func (c *RegionHealthCheckServicesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionHealthCheckServicesListCall
- type RegionHealthCheckServicesPatchCall
- func (c *RegionHealthCheckServicesPatchCall) Context(ctx context.Context) *RegionHealthCheckServicesPatchCall
- func (c *RegionHealthCheckServicesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionHealthCheckServicesPatchCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesPatchCall
- func (c *RegionHealthCheckServicesPatchCall) Header() http.Header
- func (c *RegionHealthCheckServicesPatchCall) RequestId(requestId string) *RegionHealthCheckServicesPatchCall
- type RegionHealthCheckServicesService
- func (r *RegionHealthCheckServicesService) Delete(project string, region string, healthCheckService string) *RegionHealthCheckServicesDeleteCall
- func (r *RegionHealthCheckServicesService) Get(project string, region string, healthCheckService string) *RegionHealthCheckServicesGetCall
- func (r *RegionHealthCheckServicesService) Insert(project string, region string, healthcheckservice *HealthCheckService) *RegionHealthCheckServicesInsertCall
- func (r *RegionHealthCheckServicesService) List(project string, region string) *RegionHealthCheckServicesListCall
- func (r *RegionHealthCheckServicesService) Patch(project string, region string, healthCheckService string, ...) *RegionHealthCheckServicesPatchCall
- type RegionHealthChecksDeleteCall
- func (c *RegionHealthChecksDeleteCall) Context(ctx context.Context) *RegionHealthChecksDeleteCall
- func (c *RegionHealthChecksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionHealthChecksDeleteCall) Fields(s ...googleapi.Field) *RegionHealthChecksDeleteCall
- func (c *RegionHealthChecksDeleteCall) Header() http.Header
- func (c *RegionHealthChecksDeleteCall) RequestId(requestId string) *RegionHealthChecksDeleteCall
- type RegionHealthChecksGetCall
- func (c *RegionHealthChecksGetCall) Context(ctx context.Context) *RegionHealthChecksGetCall
- func (c *RegionHealthChecksGetCall) Do(opts ...googleapi.CallOption) (*HealthCheck, error)
- func (c *RegionHealthChecksGetCall) Fields(s ...googleapi.Field) *RegionHealthChecksGetCall
- func (c *RegionHealthChecksGetCall) Header() http.Header
- func (c *RegionHealthChecksGetCall) IfNoneMatch(entityTag string) *RegionHealthChecksGetCall
- type RegionHealthChecksInsertCall
- func (c *RegionHealthChecksInsertCall) Context(ctx context.Context) *RegionHealthChecksInsertCall
- func (c *RegionHealthChecksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionHealthChecksInsertCall) Fields(s ...googleapi.Field) *RegionHealthChecksInsertCall
- func (c *RegionHealthChecksInsertCall) Header() http.Header
- func (c *RegionHealthChecksInsertCall) RequestId(requestId string) *RegionHealthChecksInsertCall
- type RegionHealthChecksListCall
- func (c *RegionHealthChecksListCall) Context(ctx context.Context) *RegionHealthChecksListCall
- func (c *RegionHealthChecksListCall) Do(opts ...googleapi.CallOption) (*HealthCheckList, error)
- func (c *RegionHealthChecksListCall) Fields(s ...googleapi.Field) *RegionHealthChecksListCall
- func (c *RegionHealthChecksListCall) Filter(filter string) *RegionHealthChecksListCall
- func (c *RegionHealthChecksListCall) Header() http.Header
- func (c *RegionHealthChecksListCall) IfNoneMatch(entityTag string) *RegionHealthChecksListCall
- func (c *RegionHealthChecksListCall) MaxResults(maxResults int64) *RegionHealthChecksListCall
- func (c *RegionHealthChecksListCall) OrderBy(orderBy string) *RegionHealthChecksListCall
- func (c *RegionHealthChecksListCall) PageToken(pageToken string) *RegionHealthChecksListCall
- func (c *RegionHealthChecksListCall) Pages(ctx context.Context, f func(*HealthCheckList) error) error
- func (c *RegionHealthChecksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionHealthChecksListCall
- type RegionHealthChecksPatchCall
- func (c *RegionHealthChecksPatchCall) Context(ctx context.Context) *RegionHealthChecksPatchCall
- func (c *RegionHealthChecksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionHealthChecksPatchCall) Fields(s ...googleapi.Field) *RegionHealthChecksPatchCall
- func (c *RegionHealthChecksPatchCall) Header() http.Header
- func (c *RegionHealthChecksPatchCall) RequestId(requestId string) *RegionHealthChecksPatchCall
- type RegionHealthChecksService
- func (r *RegionHealthChecksService) Delete(project string, region string, healthCheck string) *RegionHealthChecksDeleteCall
- func (r *RegionHealthChecksService) Get(project string, region string, healthCheck string) *RegionHealthChecksGetCall
- func (r *RegionHealthChecksService) Insert(project string, region string, healthcheck *HealthCheck) *RegionHealthChecksInsertCall
- func (r *RegionHealthChecksService) List(project string, region string) *RegionHealthChecksListCall
- func (r *RegionHealthChecksService) Patch(project string, region string, healthCheck string, healthcheck *HealthCheck) *RegionHealthChecksPatchCall
- func (r *RegionHealthChecksService) Update(project string, region string, healthCheck string, healthcheck *HealthCheck) *RegionHealthChecksUpdateCall
- type RegionHealthChecksUpdateCall
- func (c *RegionHealthChecksUpdateCall) Context(ctx context.Context) *RegionHealthChecksUpdateCall
- func (c *RegionHealthChecksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionHealthChecksUpdateCall) Fields(s ...googleapi.Field) *RegionHealthChecksUpdateCall
- func (c *RegionHealthChecksUpdateCall) Header() http.Header
- func (c *RegionHealthChecksUpdateCall) RequestId(requestId string) *RegionHealthChecksUpdateCall
- type RegionInstanceGroupList
- type RegionInstanceGroupListWarning
- type RegionInstanceGroupListWarningData
- type RegionInstanceGroupManagerDeleteInstanceConfigReq
- type RegionInstanceGroupManagerList
- type RegionInstanceGroupManagerListWarning
- type RegionInstanceGroupManagerListWarningData
- type RegionInstanceGroupManagerPatchInstanceConfigReq
- type RegionInstanceGroupManagerUpdateInstanceConfigReq
- type RegionInstanceGroupManagersAbandonInstancesCall
- func (c *RegionInstanceGroupManagersAbandonInstancesCall) Context(ctx context.Context) *RegionInstanceGroupManagersAbandonInstancesCall
- func (c *RegionInstanceGroupManagersAbandonInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersAbandonInstancesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersAbandonInstancesCall
- func (c *RegionInstanceGroupManagersAbandonInstancesCall) Header() http.Header
- func (c *RegionInstanceGroupManagersAbandonInstancesCall) RequestId(requestId string) *RegionInstanceGroupManagersAbandonInstancesCall
- type RegionInstanceGroupManagersAbandonInstancesRequest
- type RegionInstanceGroupManagersApplyUpdatesRequest
- type RegionInstanceGroupManagersApplyUpdatesToInstancesCall
- func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Context(ctx context.Context) *RegionInstanceGroupManagersApplyUpdatesToInstancesCall
- func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersApplyUpdatesToInstancesCall
- func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Header() http.Header
- type RegionInstanceGroupManagersCreateInstancesCall
- func (c *RegionInstanceGroupManagersCreateInstancesCall) Context(ctx context.Context) *RegionInstanceGroupManagersCreateInstancesCall
- func (c *RegionInstanceGroupManagersCreateInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersCreateInstancesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersCreateInstancesCall
- func (c *RegionInstanceGroupManagersCreateInstancesCall) Header() http.Header
- func (c *RegionInstanceGroupManagersCreateInstancesCall) RequestId(requestId string) *RegionInstanceGroupManagersCreateInstancesCall
- type RegionInstanceGroupManagersCreateInstancesRequest
- type RegionInstanceGroupManagersDeleteCall
- func (c *RegionInstanceGroupManagersDeleteCall) Context(ctx context.Context) *RegionInstanceGroupManagersDeleteCall
- func (c *RegionInstanceGroupManagersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersDeleteCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersDeleteCall
- func (c *RegionInstanceGroupManagersDeleteCall) Header() http.Header
- func (c *RegionInstanceGroupManagersDeleteCall) RequestId(requestId string) *RegionInstanceGroupManagersDeleteCall
- type RegionInstanceGroupManagersDeleteInstancesCall
- func (c *RegionInstanceGroupManagersDeleteInstancesCall) Context(ctx context.Context) *RegionInstanceGroupManagersDeleteInstancesCall
- func (c *RegionInstanceGroupManagersDeleteInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersDeleteInstancesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersDeleteInstancesCall
- func (c *RegionInstanceGroupManagersDeleteInstancesCall) Header() http.Header
- func (c *RegionInstanceGroupManagersDeleteInstancesCall) RequestId(requestId string) *RegionInstanceGroupManagersDeleteInstancesCall
- type RegionInstanceGroupManagersDeleteInstancesRequest
- type RegionInstanceGroupManagersDeletePerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Context(ctx context.Context) *RegionInstanceGroupManagersDeletePerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersDeletePerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Header() http.Header
- type RegionInstanceGroupManagersGetCall
- func (c *RegionInstanceGroupManagersGetCall) Context(ctx context.Context) *RegionInstanceGroupManagersGetCall
- func (c *RegionInstanceGroupManagersGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManager, error)
- func (c *RegionInstanceGroupManagersGetCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersGetCall
- func (c *RegionInstanceGroupManagersGetCall) Header() http.Header
- func (c *RegionInstanceGroupManagersGetCall) IfNoneMatch(entityTag string) *RegionInstanceGroupManagersGetCall
- type RegionInstanceGroupManagersInsertCall
- func (c *RegionInstanceGroupManagersInsertCall) Context(ctx context.Context) *RegionInstanceGroupManagersInsertCall
- func (c *RegionInstanceGroupManagersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersInsertCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersInsertCall
- func (c *RegionInstanceGroupManagersInsertCall) Header() http.Header
- func (c *RegionInstanceGroupManagersInsertCall) RequestId(requestId string) *RegionInstanceGroupManagersInsertCall
- type RegionInstanceGroupManagersListCall
- func (c *RegionInstanceGroupManagersListCall) Context(ctx context.Context) *RegionInstanceGroupManagersListCall
- func (c *RegionInstanceGroupManagersListCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupManagerList, error)
- func (c *RegionInstanceGroupManagersListCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersListCall
- func (c *RegionInstanceGroupManagersListCall) Filter(filter string) *RegionInstanceGroupManagersListCall
- func (c *RegionInstanceGroupManagersListCall) Header() http.Header
- func (c *RegionInstanceGroupManagersListCall) IfNoneMatch(entityTag string) *RegionInstanceGroupManagersListCall
- func (c *RegionInstanceGroupManagersListCall) MaxResults(maxResults int64) *RegionInstanceGroupManagersListCall
- func (c *RegionInstanceGroupManagersListCall) OrderBy(orderBy string) *RegionInstanceGroupManagersListCall
- func (c *RegionInstanceGroupManagersListCall) PageToken(pageToken string) *RegionInstanceGroupManagersListCall
- func (c *RegionInstanceGroupManagersListCall) Pages(ctx context.Context, f func(*RegionInstanceGroupManagerList) error) error
- func (c *RegionInstanceGroupManagersListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceGroupManagersListCall
- type RegionInstanceGroupManagersListErrorsCall
- func (c *RegionInstanceGroupManagersListErrorsCall) Context(ctx context.Context) *RegionInstanceGroupManagersListErrorsCall
- func (c *RegionInstanceGroupManagersListErrorsCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupManagersListErrorsResponse, error)
- func (c *RegionInstanceGroupManagersListErrorsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersListErrorsCall
- func (c *RegionInstanceGroupManagersListErrorsCall) Filter(filter string) *RegionInstanceGroupManagersListErrorsCall
- func (c *RegionInstanceGroupManagersListErrorsCall) Header() http.Header
- func (c *RegionInstanceGroupManagersListErrorsCall) IfNoneMatch(entityTag string) *RegionInstanceGroupManagersListErrorsCall
- func (c *RegionInstanceGroupManagersListErrorsCall) MaxResults(maxResults int64) *RegionInstanceGroupManagersListErrorsCall
- func (c *RegionInstanceGroupManagersListErrorsCall) OrderBy(orderBy string) *RegionInstanceGroupManagersListErrorsCall
- func (c *RegionInstanceGroupManagersListErrorsCall) PageToken(pageToken string) *RegionInstanceGroupManagersListErrorsCall
- func (c *RegionInstanceGroupManagersListErrorsCall) Pages(ctx context.Context, ...) error
- func (c *RegionInstanceGroupManagersListErrorsCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceGroupManagersListErrorsCall
- type RegionInstanceGroupManagersListErrorsResponse
- type RegionInstanceGroupManagersListInstanceConfigsResp
- type RegionInstanceGroupManagersListInstanceConfigsRespWarning
- type RegionInstanceGroupManagersListInstanceConfigsRespWarningData
- type RegionInstanceGroupManagersListInstancesResponse
- type RegionInstanceGroupManagersListManagedInstancesCall
- func (c *RegionInstanceGroupManagersListManagedInstancesCall) Context(ctx context.Context) *RegionInstanceGroupManagersListManagedInstancesCall
- func (c *RegionInstanceGroupManagersListManagedInstancesCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupManagersListInstancesResponse, error)
- func (c *RegionInstanceGroupManagersListManagedInstancesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersListManagedInstancesCall
- func (c *RegionInstanceGroupManagersListManagedInstancesCall) Filter(filter string) *RegionInstanceGroupManagersListManagedInstancesCall
- func (c *RegionInstanceGroupManagersListManagedInstancesCall) Header() http.Header
- func (c *RegionInstanceGroupManagersListManagedInstancesCall) MaxResults(maxResults int64) *RegionInstanceGroupManagersListManagedInstancesCall
- func (c *RegionInstanceGroupManagersListManagedInstancesCall) OrderBy(orderBy string) *RegionInstanceGroupManagersListManagedInstancesCall
- func (c *RegionInstanceGroupManagersListManagedInstancesCall) PageToken(pageToken string) *RegionInstanceGroupManagersListManagedInstancesCall
- func (c *RegionInstanceGroupManagersListManagedInstancesCall) Pages(ctx context.Context, ...) error
- func (c *RegionInstanceGroupManagersListManagedInstancesCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceGroupManagersListManagedInstancesCall
- type RegionInstanceGroupManagersListPerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Context(ctx context.Context) *RegionInstanceGroupManagersListPerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupManagersListInstanceConfigsResp, error)
- func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersListPerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Filter(filter string) *RegionInstanceGroupManagersListPerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Header() http.Header
- func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) MaxResults(maxResults int64) *RegionInstanceGroupManagersListPerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) OrderBy(orderBy string) *RegionInstanceGroupManagersListPerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) PageToken(pageToken string) *RegionInstanceGroupManagersListPerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Pages(ctx context.Context, ...) error
- func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceGroupManagersListPerInstanceConfigsCall
- type RegionInstanceGroupManagersPatchCall
- func (c *RegionInstanceGroupManagersPatchCall) Context(ctx context.Context) *RegionInstanceGroupManagersPatchCall
- func (c *RegionInstanceGroupManagersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersPatchCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersPatchCall
- func (c *RegionInstanceGroupManagersPatchCall) Header() http.Header
- func (c *RegionInstanceGroupManagersPatchCall) RequestId(requestId string) *RegionInstanceGroupManagersPatchCall
- type RegionInstanceGroupManagersPatchPerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Context(ctx context.Context) *RegionInstanceGroupManagersPatchPerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersPatchPerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Header() http.Header
- func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) RequestId(requestId string) *RegionInstanceGroupManagersPatchPerInstanceConfigsCall
- type RegionInstanceGroupManagersRecreateInstancesCall
- func (c *RegionInstanceGroupManagersRecreateInstancesCall) Context(ctx context.Context) *RegionInstanceGroupManagersRecreateInstancesCall
- func (c *RegionInstanceGroupManagersRecreateInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersRecreateInstancesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersRecreateInstancesCall
- func (c *RegionInstanceGroupManagersRecreateInstancesCall) Header() http.Header
- func (c *RegionInstanceGroupManagersRecreateInstancesCall) RequestId(requestId string) *RegionInstanceGroupManagersRecreateInstancesCall
- type RegionInstanceGroupManagersRecreateRequest
- type RegionInstanceGroupManagersResizeCall
- func (c *RegionInstanceGroupManagersResizeCall) Context(ctx context.Context) *RegionInstanceGroupManagersResizeCall
- func (c *RegionInstanceGroupManagersResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersResizeCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersResizeCall
- func (c *RegionInstanceGroupManagersResizeCall) Header() http.Header
- func (c *RegionInstanceGroupManagersResizeCall) RequestId(requestId string) *RegionInstanceGroupManagersResizeCall
- type RegionInstanceGroupManagersService
- func (r *RegionInstanceGroupManagersService) AbandonInstances(project string, region string, instanceGroupManager string, ...) *RegionInstanceGroupManagersAbandonInstancesCall
- func (r *RegionInstanceGroupManagersService) ApplyUpdatesToInstances(project string, region string, instanceGroupManager string, ...) *RegionInstanceGroupManagersApplyUpdatesToInstancesCall
- func (r *RegionInstanceGroupManagersService) CreateInstances(project string, region string, instanceGroupManager string, ...) *RegionInstanceGroupManagersCreateInstancesCall
- func (r *RegionInstanceGroupManagersService) Delete(project string, region string, instanceGroupManager string) *RegionInstanceGroupManagersDeleteCall
- func (r *RegionInstanceGroupManagersService) DeleteInstances(project string, region string, instanceGroupManager string, ...) *RegionInstanceGroupManagersDeleteInstancesCall
- func (r *RegionInstanceGroupManagersService) DeletePerInstanceConfigs(project string, region string, instanceGroupManager string, ...) *RegionInstanceGroupManagersDeletePerInstanceConfigsCall
- func (r *RegionInstanceGroupManagersService) Get(project string, region string, instanceGroupManager string) *RegionInstanceGroupManagersGetCall
- func (r *RegionInstanceGroupManagersService) Insert(project string, region string, instancegroupmanager *InstanceGroupManager) *RegionInstanceGroupManagersInsertCall
- func (r *RegionInstanceGroupManagersService) List(project string, region string) *RegionInstanceGroupManagersListCall
- func (r *RegionInstanceGroupManagersService) ListErrors(project string, region string, instanceGroupManager string) *RegionInstanceGroupManagersListErrorsCall
- func (r *RegionInstanceGroupManagersService) ListManagedInstances(project string, region string, instanceGroupManager string) *RegionInstanceGroupManagersListManagedInstancesCall
- func (r *RegionInstanceGroupManagersService) ListPerInstanceConfigs(project string, region string, instanceGroupManager string) *RegionInstanceGroupManagersListPerInstanceConfigsCall
- func (r *RegionInstanceGroupManagersService) Patch(project string, region string, instanceGroupManager string, ...) *RegionInstanceGroupManagersPatchCall
- func (r *RegionInstanceGroupManagersService) PatchPerInstanceConfigs(project string, region string, instanceGroupManager string, ...) *RegionInstanceGroupManagersPatchPerInstanceConfigsCall
- func (r *RegionInstanceGroupManagersService) RecreateInstances(project string, region string, instanceGroupManager string, ...) *RegionInstanceGroupManagersRecreateInstancesCall
- func (r *RegionInstanceGroupManagersService) Resize(project string, region string, instanceGroupManager string, size int64) *RegionInstanceGroupManagersResizeCall
- func (r *RegionInstanceGroupManagersService) SetInstanceTemplate(project string, region string, instanceGroupManager string, ...) *RegionInstanceGroupManagersSetInstanceTemplateCall
- func (r *RegionInstanceGroupManagersService) SetTargetPools(project string, region string, instanceGroupManager string, ...) *RegionInstanceGroupManagersSetTargetPoolsCall
- func (r *RegionInstanceGroupManagersService) UpdatePerInstanceConfigs(project string, region string, instanceGroupManager string, ...) *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall
- type RegionInstanceGroupManagersSetInstanceTemplateCall
- func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) Context(ctx context.Context) *RegionInstanceGroupManagersSetInstanceTemplateCall
- func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersSetInstanceTemplateCall
- func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) Header() http.Header
- func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) RequestId(requestId string) *RegionInstanceGroupManagersSetInstanceTemplateCall
- type RegionInstanceGroupManagersSetTargetPoolsCall
- func (c *RegionInstanceGroupManagersSetTargetPoolsCall) Context(ctx context.Context) *RegionInstanceGroupManagersSetTargetPoolsCall
- func (c *RegionInstanceGroupManagersSetTargetPoolsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersSetTargetPoolsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersSetTargetPoolsCall
- func (c *RegionInstanceGroupManagersSetTargetPoolsCall) Header() http.Header
- func (c *RegionInstanceGroupManagersSetTargetPoolsCall) RequestId(requestId string) *RegionInstanceGroupManagersSetTargetPoolsCall
- type RegionInstanceGroupManagersSetTargetPoolsRequest
- type RegionInstanceGroupManagersSetTemplateRequest
- type RegionInstanceGroupManagersUpdatePerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Context(ctx context.Context) *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall
- func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Header() http.Header
- func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) RequestId(requestId string) *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall
- type RegionInstanceGroupsGetCall
- func (c *RegionInstanceGroupsGetCall) Context(ctx context.Context) *RegionInstanceGroupsGetCall
- func (c *RegionInstanceGroupsGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroup, error)
- func (c *RegionInstanceGroupsGetCall) Fields(s ...googleapi.Field) *RegionInstanceGroupsGetCall
- func (c *RegionInstanceGroupsGetCall) Header() http.Header
- func (c *RegionInstanceGroupsGetCall) IfNoneMatch(entityTag string) *RegionInstanceGroupsGetCall
- type RegionInstanceGroupsListCall
- func (c *RegionInstanceGroupsListCall) Context(ctx context.Context) *RegionInstanceGroupsListCall
- func (c *RegionInstanceGroupsListCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupList, error)
- func (c *RegionInstanceGroupsListCall) Fields(s ...googleapi.Field) *RegionInstanceGroupsListCall
- func (c *RegionInstanceGroupsListCall) Filter(filter string) *RegionInstanceGroupsListCall
- func (c *RegionInstanceGroupsListCall) Header() http.Header
- func (c *RegionInstanceGroupsListCall) IfNoneMatch(entityTag string) *RegionInstanceGroupsListCall
- func (c *RegionInstanceGroupsListCall) MaxResults(maxResults int64) *RegionInstanceGroupsListCall
- func (c *RegionInstanceGroupsListCall) OrderBy(orderBy string) *RegionInstanceGroupsListCall
- func (c *RegionInstanceGroupsListCall) PageToken(pageToken string) *RegionInstanceGroupsListCall
- func (c *RegionInstanceGroupsListCall) Pages(ctx context.Context, f func(*RegionInstanceGroupList) error) error
- func (c *RegionInstanceGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceGroupsListCall
- type RegionInstanceGroupsListInstances
- type RegionInstanceGroupsListInstancesCall
- func (c *RegionInstanceGroupsListInstancesCall) Context(ctx context.Context) *RegionInstanceGroupsListInstancesCall
- func (c *RegionInstanceGroupsListInstancesCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupsListInstances, error)
- func (c *RegionInstanceGroupsListInstancesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupsListInstancesCall
- func (c *RegionInstanceGroupsListInstancesCall) Filter(filter string) *RegionInstanceGroupsListInstancesCall
- func (c *RegionInstanceGroupsListInstancesCall) Header() http.Header
- func (c *RegionInstanceGroupsListInstancesCall) MaxResults(maxResults int64) *RegionInstanceGroupsListInstancesCall
- func (c *RegionInstanceGroupsListInstancesCall) OrderBy(orderBy string) *RegionInstanceGroupsListInstancesCall
- func (c *RegionInstanceGroupsListInstancesCall) PageToken(pageToken string) *RegionInstanceGroupsListInstancesCall
- func (c *RegionInstanceGroupsListInstancesCall) Pages(ctx context.Context, f func(*RegionInstanceGroupsListInstances) error) error
- func (c *RegionInstanceGroupsListInstancesCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceGroupsListInstancesCall
- type RegionInstanceGroupsListInstancesRequest
- type RegionInstanceGroupsListInstancesWarning
- type RegionInstanceGroupsListInstancesWarningData
- type RegionInstanceGroupsService
- func (r *RegionInstanceGroupsService) Get(project string, region string, instanceGroup string) *RegionInstanceGroupsGetCall
- func (r *RegionInstanceGroupsService) List(project string, region string) *RegionInstanceGroupsListCall
- func (r *RegionInstanceGroupsService) ListInstances(project string, region string, instanceGroup string, ...) *RegionInstanceGroupsListInstancesCall
- func (r *RegionInstanceGroupsService) SetNamedPorts(project string, region string, instanceGroup string, ...) *RegionInstanceGroupsSetNamedPortsCall
- type RegionInstanceGroupsSetNamedPortsCall
- func (c *RegionInstanceGroupsSetNamedPortsCall) Context(ctx context.Context) *RegionInstanceGroupsSetNamedPortsCall
- func (c *RegionInstanceGroupsSetNamedPortsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupsSetNamedPortsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupsSetNamedPortsCall
- func (c *RegionInstanceGroupsSetNamedPortsCall) Header() http.Header
- func (c *RegionInstanceGroupsSetNamedPortsCall) RequestId(requestId string) *RegionInstanceGroupsSetNamedPortsCall
- type RegionInstanceGroupsSetNamedPortsRequest
- type RegionInstanceTemplatesDeleteCall
- func (c *RegionInstanceTemplatesDeleteCall) Context(ctx context.Context) *RegionInstanceTemplatesDeleteCall
- func (c *RegionInstanceTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceTemplatesDeleteCall) Fields(s ...googleapi.Field) *RegionInstanceTemplatesDeleteCall
- func (c *RegionInstanceTemplatesDeleteCall) Header() http.Header
- func (c *RegionInstanceTemplatesDeleteCall) RequestId(requestId string) *RegionInstanceTemplatesDeleteCall
- type RegionInstanceTemplatesGetCall
- func (c *RegionInstanceTemplatesGetCall) Context(ctx context.Context) *RegionInstanceTemplatesGetCall
- func (c *RegionInstanceTemplatesGetCall) Do(opts ...googleapi.CallOption) (*InstanceTemplate, error)
- func (c *RegionInstanceTemplatesGetCall) Fields(s ...googleapi.Field) *RegionInstanceTemplatesGetCall
- func (c *RegionInstanceTemplatesGetCall) Header() http.Header
- func (c *RegionInstanceTemplatesGetCall) IfNoneMatch(entityTag string) *RegionInstanceTemplatesGetCall
- type RegionInstanceTemplatesInsertCall
- func (c *RegionInstanceTemplatesInsertCall) Context(ctx context.Context) *RegionInstanceTemplatesInsertCall
- func (c *RegionInstanceTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceTemplatesInsertCall) Fields(s ...googleapi.Field) *RegionInstanceTemplatesInsertCall
- func (c *RegionInstanceTemplatesInsertCall) Header() http.Header
- func (c *RegionInstanceTemplatesInsertCall) RequestId(requestId string) *RegionInstanceTemplatesInsertCall
- type RegionInstanceTemplatesListCall
- func (c *RegionInstanceTemplatesListCall) Context(ctx context.Context) *RegionInstanceTemplatesListCall
- func (c *RegionInstanceTemplatesListCall) Do(opts ...googleapi.CallOption) (*InstanceTemplateList, error)
- func (c *RegionInstanceTemplatesListCall) Fields(s ...googleapi.Field) *RegionInstanceTemplatesListCall
- func (c *RegionInstanceTemplatesListCall) Filter(filter string) *RegionInstanceTemplatesListCall
- func (c *RegionInstanceTemplatesListCall) Header() http.Header
- func (c *RegionInstanceTemplatesListCall) IfNoneMatch(entityTag string) *RegionInstanceTemplatesListCall
- func (c *RegionInstanceTemplatesListCall) MaxResults(maxResults int64) *RegionInstanceTemplatesListCall
- func (c *RegionInstanceTemplatesListCall) OrderBy(orderBy string) *RegionInstanceTemplatesListCall
- func (c *RegionInstanceTemplatesListCall) PageToken(pageToken string) *RegionInstanceTemplatesListCall
- func (c *RegionInstanceTemplatesListCall) Pages(ctx context.Context, f func(*InstanceTemplateList) error) error
- func (c *RegionInstanceTemplatesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceTemplatesListCall
- type RegionInstanceTemplatesService
- func (r *RegionInstanceTemplatesService) Delete(project string, region string, instanceTemplate string) *RegionInstanceTemplatesDeleteCall
- func (r *RegionInstanceTemplatesService) Get(project string, region string, instanceTemplate string) *RegionInstanceTemplatesGetCall
- func (r *RegionInstanceTemplatesService) Insert(project string, region string, instancetemplate *InstanceTemplate) *RegionInstanceTemplatesInsertCall
- func (r *RegionInstanceTemplatesService) List(project string, region string) *RegionInstanceTemplatesListCall
- type RegionInstancesBulkInsertCall
- func (c *RegionInstancesBulkInsertCall) Context(ctx context.Context) *RegionInstancesBulkInsertCall
- func (c *RegionInstancesBulkInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstancesBulkInsertCall) Fields(s ...googleapi.Field) *RegionInstancesBulkInsertCall
- func (c *RegionInstancesBulkInsertCall) Header() http.Header
- func (c *RegionInstancesBulkInsertCall) RequestId(requestId string) *RegionInstancesBulkInsertCall
- type RegionInstancesService
- type RegionInstantSnapshotsDeleteCall
- func (c *RegionInstantSnapshotsDeleteCall) Context(ctx context.Context) *RegionInstantSnapshotsDeleteCall
- func (c *RegionInstantSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstantSnapshotsDeleteCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsDeleteCall
- func (c *RegionInstantSnapshotsDeleteCall) Header() http.Header
- func (c *RegionInstantSnapshotsDeleteCall) RequestId(requestId string) *RegionInstantSnapshotsDeleteCall
- type RegionInstantSnapshotsGetCall
- func (c *RegionInstantSnapshotsGetCall) Context(ctx context.Context) *RegionInstantSnapshotsGetCall
- func (c *RegionInstantSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*InstantSnapshot, error)
- func (c *RegionInstantSnapshotsGetCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsGetCall
- func (c *RegionInstantSnapshotsGetCall) Header() http.Header
- func (c *RegionInstantSnapshotsGetCall) IfNoneMatch(entityTag string) *RegionInstantSnapshotsGetCall
- type RegionInstantSnapshotsGetIamPolicyCall
- func (c *RegionInstantSnapshotsGetIamPolicyCall) Context(ctx context.Context) *RegionInstantSnapshotsGetIamPolicyCall
- func (c *RegionInstantSnapshotsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *RegionInstantSnapshotsGetIamPolicyCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsGetIamPolicyCall
- func (c *RegionInstantSnapshotsGetIamPolicyCall) Header() http.Header
- func (c *RegionInstantSnapshotsGetIamPolicyCall) IfNoneMatch(entityTag string) *RegionInstantSnapshotsGetIamPolicyCall
- func (c *RegionInstantSnapshotsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *RegionInstantSnapshotsGetIamPolicyCall
- type RegionInstantSnapshotsInsertCall
- func (c *RegionInstantSnapshotsInsertCall) Context(ctx context.Context) *RegionInstantSnapshotsInsertCall
- func (c *RegionInstantSnapshotsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstantSnapshotsInsertCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsInsertCall
- func (c *RegionInstantSnapshotsInsertCall) Header() http.Header
- func (c *RegionInstantSnapshotsInsertCall) RequestId(requestId string) *RegionInstantSnapshotsInsertCall
- type RegionInstantSnapshotsListCall
- func (c *RegionInstantSnapshotsListCall) Context(ctx context.Context) *RegionInstantSnapshotsListCall
- func (c *RegionInstantSnapshotsListCall) Do(opts ...googleapi.CallOption) (*InstantSnapshotList, error)
- func (c *RegionInstantSnapshotsListCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsListCall
- func (c *RegionInstantSnapshotsListCall) Filter(filter string) *RegionInstantSnapshotsListCall
- func (c *RegionInstantSnapshotsListCall) Header() http.Header
- func (c *RegionInstantSnapshotsListCall) IfNoneMatch(entityTag string) *RegionInstantSnapshotsListCall
- func (c *RegionInstantSnapshotsListCall) MaxResults(maxResults int64) *RegionInstantSnapshotsListCall
- func (c *RegionInstantSnapshotsListCall) OrderBy(orderBy string) *RegionInstantSnapshotsListCall
- func (c *RegionInstantSnapshotsListCall) PageToken(pageToken string) *RegionInstantSnapshotsListCall
- func (c *RegionInstantSnapshotsListCall) Pages(ctx context.Context, f func(*InstantSnapshotList) error) error
- func (c *RegionInstantSnapshotsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstantSnapshotsListCall
- type RegionInstantSnapshotsService
- func (r *RegionInstantSnapshotsService) Delete(project string, region string, instantSnapshot string) *RegionInstantSnapshotsDeleteCall
- func (r *RegionInstantSnapshotsService) Get(project string, region string, instantSnapshot string) *RegionInstantSnapshotsGetCall
- func (r *RegionInstantSnapshotsService) GetIamPolicy(project string, region string, resource string) *RegionInstantSnapshotsGetIamPolicyCall
- func (r *RegionInstantSnapshotsService) Insert(project string, region string, instantsnapshot *InstantSnapshot) *RegionInstantSnapshotsInsertCall
- func (r *RegionInstantSnapshotsService) List(project string, region string) *RegionInstantSnapshotsListCall
- func (r *RegionInstantSnapshotsService) SetIamPolicy(project string, region string, resource string, ...) *RegionInstantSnapshotsSetIamPolicyCall
- func (r *RegionInstantSnapshotsService) SetLabels(project string, region string, resource string, ...) *RegionInstantSnapshotsSetLabelsCall
- func (r *RegionInstantSnapshotsService) TestIamPermissions(project string, region string, resource string, ...) *RegionInstantSnapshotsTestIamPermissionsCall
- type RegionInstantSnapshotsSetIamPolicyCall
- func (c *RegionInstantSnapshotsSetIamPolicyCall) Context(ctx context.Context) *RegionInstantSnapshotsSetIamPolicyCall
- func (c *RegionInstantSnapshotsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *RegionInstantSnapshotsSetIamPolicyCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsSetIamPolicyCall
- func (c *RegionInstantSnapshotsSetIamPolicyCall) Header() http.Header
- type RegionInstantSnapshotsSetLabelsCall
- func (c *RegionInstantSnapshotsSetLabelsCall) Context(ctx context.Context) *RegionInstantSnapshotsSetLabelsCall
- func (c *RegionInstantSnapshotsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstantSnapshotsSetLabelsCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsSetLabelsCall
- func (c *RegionInstantSnapshotsSetLabelsCall) Header() http.Header
- func (c *RegionInstantSnapshotsSetLabelsCall) RequestId(requestId string) *RegionInstantSnapshotsSetLabelsCall
- type RegionInstantSnapshotsTestIamPermissionsCall
- func (c *RegionInstantSnapshotsTestIamPermissionsCall) Context(ctx context.Context) *RegionInstantSnapshotsTestIamPermissionsCall
- func (c *RegionInstantSnapshotsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RegionInstantSnapshotsTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsTestIamPermissionsCall
- func (c *RegionInstantSnapshotsTestIamPermissionsCall) Header() http.Header
- type RegionList
- type RegionListWarning
- type RegionListWarningData
- type RegionNetworkEndpointGroupsAttachEndpointsRequest
- type RegionNetworkEndpointGroupsAttachNetworkEndpointsCall
- func (c *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) Context(ctx context.Context) *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall
- func (c *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) Fields(s ...googleapi.Field) *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall
- func (c *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) Header() http.Header
- func (c *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) RequestId(requestId string) *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall
- type RegionNetworkEndpointGroupsDeleteCall
- func (c *RegionNetworkEndpointGroupsDeleteCall) Context(ctx context.Context) *RegionNetworkEndpointGroupsDeleteCall
- func (c *RegionNetworkEndpointGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionNetworkEndpointGroupsDeleteCall) Fields(s ...googleapi.Field) *RegionNetworkEndpointGroupsDeleteCall
- func (c *RegionNetworkEndpointGroupsDeleteCall) Header() http.Header
- func (c *RegionNetworkEndpointGroupsDeleteCall) RequestId(requestId string) *RegionNetworkEndpointGroupsDeleteCall
- type RegionNetworkEndpointGroupsDetachEndpointsRequest
- type RegionNetworkEndpointGroupsDetachNetworkEndpointsCall
- func (c *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) Context(ctx context.Context) *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall
- func (c *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) Fields(s ...googleapi.Field) *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall
- func (c *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) Header() http.Header
- func (c *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) RequestId(requestId string) *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall
- type RegionNetworkEndpointGroupsGetCall
- func (c *RegionNetworkEndpointGroupsGetCall) Context(ctx context.Context) *RegionNetworkEndpointGroupsGetCall
- func (c *RegionNetworkEndpointGroupsGetCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroup, error)
- func (c *RegionNetworkEndpointGroupsGetCall) Fields(s ...googleapi.Field) *RegionNetworkEndpointGroupsGetCall
- func (c *RegionNetworkEndpointGroupsGetCall) Header() http.Header
- func (c *RegionNetworkEndpointGroupsGetCall) IfNoneMatch(entityTag string) *RegionNetworkEndpointGroupsGetCall
- type RegionNetworkEndpointGroupsInsertCall
- func (c *RegionNetworkEndpointGroupsInsertCall) Context(ctx context.Context) *RegionNetworkEndpointGroupsInsertCall
- func (c *RegionNetworkEndpointGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionNetworkEndpointGroupsInsertCall) Fields(s ...googleapi.Field) *RegionNetworkEndpointGroupsInsertCall
- func (c *RegionNetworkEndpointGroupsInsertCall) Header() http.Header
- func (c *RegionNetworkEndpointGroupsInsertCall) RequestId(requestId string) *RegionNetworkEndpointGroupsInsertCall
- type RegionNetworkEndpointGroupsListCall
- func (c *RegionNetworkEndpointGroupsListCall) Context(ctx context.Context) *RegionNetworkEndpointGroupsListCall
- func (c *RegionNetworkEndpointGroupsListCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupList, error)
- func (c *RegionNetworkEndpointGroupsListCall) Fields(s ...googleapi.Field) *RegionNetworkEndpointGroupsListCall
- func (c *RegionNetworkEndpointGroupsListCall) Filter(filter string) *RegionNetworkEndpointGroupsListCall
- func (c *RegionNetworkEndpointGroupsListCall) Header() http.Header
- func (c *RegionNetworkEndpointGroupsListCall) IfNoneMatch(entityTag string) *RegionNetworkEndpointGroupsListCall
- func (c *RegionNetworkEndpointGroupsListCall) MaxResults(maxResults int64) *RegionNetworkEndpointGroupsListCall
- func (c *RegionNetworkEndpointGroupsListCall) OrderBy(orderBy string) *RegionNetworkEndpointGroupsListCall
- func (c *RegionNetworkEndpointGroupsListCall) PageToken(pageToken string) *RegionNetworkEndpointGroupsListCall
- func (c *RegionNetworkEndpointGroupsListCall) Pages(ctx context.Context, f func(*NetworkEndpointGroupList) error) error
- func (c *RegionNetworkEndpointGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionNetworkEndpointGroupsListCall
- type RegionNetworkEndpointGroupsListNetworkEndpointsCall
- func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) Context(ctx context.Context) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
- func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupsListNetworkEndpoints, error)
- func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) Fields(s ...googleapi.Field) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
- func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) Filter(filter string) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
- func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) Header() http.Header
- func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) MaxResults(maxResults int64) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
- func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) OrderBy(orderBy string) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
- func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) PageToken(pageToken string) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
- func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) Pages(ctx context.Context, f func(*NetworkEndpointGroupsListNetworkEndpoints) error) error
- func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
- type RegionNetworkEndpointGroupsService
- func (r *RegionNetworkEndpointGroupsService) AttachNetworkEndpoints(project string, region string, networkEndpointGroup string, ...) *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall
- func (r *RegionNetworkEndpointGroupsService) Delete(project string, region string, networkEndpointGroup string) *RegionNetworkEndpointGroupsDeleteCall
- func (r *RegionNetworkEndpointGroupsService) DetachNetworkEndpoints(project string, region string, networkEndpointGroup string, ...) *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall
- func (r *RegionNetworkEndpointGroupsService) Get(project string, region string, networkEndpointGroup string) *RegionNetworkEndpointGroupsGetCall
- func (r *RegionNetworkEndpointGroupsService) Insert(project string, region string, networkendpointgroup *NetworkEndpointGroup) *RegionNetworkEndpointGroupsInsertCall
- func (r *RegionNetworkEndpointGroupsService) List(project string, region string) *RegionNetworkEndpointGroupsListCall
- func (r *RegionNetworkEndpointGroupsService) ListNetworkEndpoints(project string, region string, networkEndpointGroup string) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
- type RegionNetworkFirewallPoliciesAddAssociationCall
- func (c *RegionNetworkFirewallPoliciesAddAssociationCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesAddAssociationCall
- func (c *RegionNetworkFirewallPoliciesAddAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionNetworkFirewallPoliciesAddAssociationCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesAddAssociationCall
- func (c *RegionNetworkFirewallPoliciesAddAssociationCall) Header() http.Header
- func (c *RegionNetworkFirewallPoliciesAddAssociationCall) ReplaceExistingAssociation(replaceExistingAssociation bool) *RegionNetworkFirewallPoliciesAddAssociationCall
- func (c *RegionNetworkFirewallPoliciesAddAssociationCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesAddAssociationCall
- type RegionNetworkFirewallPoliciesAddRuleCall
- func (c *RegionNetworkFirewallPoliciesAddRuleCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesAddRuleCall
- func (c *RegionNetworkFirewallPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionNetworkFirewallPoliciesAddRuleCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesAddRuleCall
- func (c *RegionNetworkFirewallPoliciesAddRuleCall) Header() http.Header
- func (c *RegionNetworkFirewallPoliciesAddRuleCall) MaxPriority(maxPriority int64) *RegionNetworkFirewallPoliciesAddRuleCall
- func (c *RegionNetworkFirewallPoliciesAddRuleCall) MinPriority(minPriority int64) *RegionNetworkFirewallPoliciesAddRuleCall
- func (c *RegionNetworkFirewallPoliciesAddRuleCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesAddRuleCall
- type RegionNetworkFirewallPoliciesCloneRulesCall
- func (c *RegionNetworkFirewallPoliciesCloneRulesCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesCloneRulesCall
- func (c *RegionNetworkFirewallPoliciesCloneRulesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionNetworkFirewallPoliciesCloneRulesCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesCloneRulesCall
- func (c *RegionNetworkFirewallPoliciesCloneRulesCall) Header() http.Header
- func (c *RegionNetworkFirewallPoliciesCloneRulesCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesCloneRulesCall
- func (c *RegionNetworkFirewallPoliciesCloneRulesCall) SourceFirewallPolicy(sourceFirewallPolicy string) *RegionNetworkFirewallPoliciesCloneRulesCall
- type RegionNetworkFirewallPoliciesDeleteCall
- func (c *RegionNetworkFirewallPoliciesDeleteCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesDeleteCall
- func (c *RegionNetworkFirewallPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionNetworkFirewallPoliciesDeleteCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesDeleteCall
- func (c *RegionNetworkFirewallPoliciesDeleteCall) Header() http.Header
- func (c *RegionNetworkFirewallPoliciesDeleteCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesDeleteCall
- type RegionNetworkFirewallPoliciesGetAssociationCall
- func (c *RegionNetworkFirewallPoliciesGetAssociationCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesGetAssociationCall
- func (c *RegionNetworkFirewallPoliciesGetAssociationCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyAssociation, error)
- func (c *RegionNetworkFirewallPoliciesGetAssociationCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesGetAssociationCall
- func (c *RegionNetworkFirewallPoliciesGetAssociationCall) Header() http.Header
- func (c *RegionNetworkFirewallPoliciesGetAssociationCall) IfNoneMatch(entityTag string) *RegionNetworkFirewallPoliciesGetAssociationCall
- func (c *RegionNetworkFirewallPoliciesGetAssociationCall) Name(name string) *RegionNetworkFirewallPoliciesGetAssociationCall
- type RegionNetworkFirewallPoliciesGetCall
- func (c *RegionNetworkFirewallPoliciesGetCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesGetCall
- func (c *RegionNetworkFirewallPoliciesGetCall) Do(opts ...googleapi.CallOption) (*FirewallPolicy, error)
- func (c *RegionNetworkFirewallPoliciesGetCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesGetCall
- func (c *RegionNetworkFirewallPoliciesGetCall) Header() http.Header
- func (c *RegionNetworkFirewallPoliciesGetCall) IfNoneMatch(entityTag string) *RegionNetworkFirewallPoliciesGetCall
- type RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall
- func (c *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall
- func (c *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) Do(opts ...googleapi.CallOption) (*RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse, error)
- func (c *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall
- func (c *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) Header() http.Header
- func (c *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) IfNoneMatch(entityTag string) *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall
- type RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse
- type RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
- type RegionNetworkFirewallPoliciesGetIamPolicyCall
- func (c *RegionNetworkFirewallPoliciesGetIamPolicyCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesGetIamPolicyCall
- func (c *RegionNetworkFirewallPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *RegionNetworkFirewallPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesGetIamPolicyCall
- func (c *RegionNetworkFirewallPoliciesGetIamPolicyCall) Header() http.Header
- func (c *RegionNetworkFirewallPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *RegionNetworkFirewallPoliciesGetIamPolicyCall
- func (c *RegionNetworkFirewallPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *RegionNetworkFirewallPoliciesGetIamPolicyCall
- type RegionNetworkFirewallPoliciesGetRuleCall
- func (c *RegionNetworkFirewallPoliciesGetRuleCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesGetRuleCall
- func (c *RegionNetworkFirewallPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyRule, error)
- func (c *RegionNetworkFirewallPoliciesGetRuleCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesGetRuleCall
- func (c *RegionNetworkFirewallPoliciesGetRuleCall) Header() http.Header
- func (c *RegionNetworkFirewallPoliciesGetRuleCall) IfNoneMatch(entityTag string) *RegionNetworkFirewallPoliciesGetRuleCall
- func (c *RegionNetworkFirewallPoliciesGetRuleCall) Priority(priority int64) *RegionNetworkFirewallPoliciesGetRuleCall
- type RegionNetworkFirewallPoliciesInsertCall
- func (c *RegionNetworkFirewallPoliciesInsertCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesInsertCall
- func (c *RegionNetworkFirewallPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionNetworkFirewallPoliciesInsertCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesInsertCall
- func (c *RegionNetworkFirewallPoliciesInsertCall) Header() http.Header
- func (c *RegionNetworkFirewallPoliciesInsertCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesInsertCall
- type RegionNetworkFirewallPoliciesListCall
- func (c *RegionNetworkFirewallPoliciesListCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesListCall
- func (c *RegionNetworkFirewallPoliciesListCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyList, error)
- func (c *RegionNetworkFirewallPoliciesListCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesListCall
- func (c *RegionNetworkFirewallPoliciesListCall) Filter(filter string) *RegionNetworkFirewallPoliciesListCall
- func (c *RegionNetworkFirewallPoliciesListCall) Header() http.Header
- func (c *RegionNetworkFirewallPoliciesListCall) IfNoneMatch(entityTag string) *RegionNetworkFirewallPoliciesListCall
- func (c *RegionNetworkFirewallPoliciesListCall) MaxResults(maxResults int64) *RegionNetworkFirewallPoliciesListCall
- func (c *RegionNetworkFirewallPoliciesListCall) OrderBy(orderBy string) *RegionNetworkFirewallPoliciesListCall
- func (c *RegionNetworkFirewallPoliciesListCall) PageToken(pageToken string) *RegionNetworkFirewallPoliciesListCall
- func (c *RegionNetworkFirewallPoliciesListCall) Pages(ctx context.Context, f func(*FirewallPolicyList) error) error
- func (c *RegionNetworkFirewallPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionNetworkFirewallPoliciesListCall
- type RegionNetworkFirewallPoliciesPatchCall
- func (c *RegionNetworkFirewallPoliciesPatchCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesPatchCall
- func (c *RegionNetworkFirewallPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionNetworkFirewallPoliciesPatchCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesPatchCall
- func (c *RegionNetworkFirewallPoliciesPatchCall) Header() http.Header
- func (c *RegionNetworkFirewallPoliciesPatchCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesPatchCall
- type RegionNetworkFirewallPoliciesPatchRuleCall
- func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesPatchRuleCall
- func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesPatchRuleCall
- func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Header() http.Header
- func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Priority(priority int64) *RegionNetworkFirewallPoliciesPatchRuleCall
- func (c *RegionNetworkFirewallPoliciesPatchRuleCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesPatchRuleCall
- type RegionNetworkFirewallPoliciesRemoveAssociationCall
- func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesRemoveAssociationCall
- func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesRemoveAssociationCall
- func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Header() http.Header
- func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Name(name string) *RegionNetworkFirewallPoliciesRemoveAssociationCall
- func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesRemoveAssociationCall
- type RegionNetworkFirewallPoliciesRemoveRuleCall
- func (c *RegionNetworkFirewallPoliciesRemoveRuleCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesRemoveRuleCall
- func (c *RegionNetworkFirewallPoliciesRemoveRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionNetworkFirewallPoliciesRemoveRuleCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesRemoveRuleCall
- func (c *RegionNetworkFirewallPoliciesRemoveRuleCall) Header() http.Header
- func (c *RegionNetworkFirewallPoliciesRemoveRuleCall) Priority(priority int64) *RegionNetworkFirewallPoliciesRemoveRuleCall
- func (c *RegionNetworkFirewallPoliciesRemoveRuleCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesRemoveRuleCall
- type RegionNetworkFirewallPoliciesService
- func (r *RegionNetworkFirewallPoliciesService) AddAssociation(project string, region string, firewallPolicy string, ...) *RegionNetworkFirewallPoliciesAddAssociationCall
- func (r *RegionNetworkFirewallPoliciesService) AddRule(project string, region string, firewallPolicy string, ...) *RegionNetworkFirewallPoliciesAddRuleCall
- func (r *RegionNetworkFirewallPoliciesService) CloneRules(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesCloneRulesCall
- func (r *RegionNetworkFirewallPoliciesService) Delete(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesDeleteCall
- func (r *RegionNetworkFirewallPoliciesService) Get(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesGetCall
- func (r *RegionNetworkFirewallPoliciesService) GetAssociation(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesGetAssociationCall
- func (r *RegionNetworkFirewallPoliciesService) GetEffectiveFirewalls(project string, region string, network string) *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall
- func (r *RegionNetworkFirewallPoliciesService) GetIamPolicy(project string, region string, resource string) *RegionNetworkFirewallPoliciesGetIamPolicyCall
- func (r *RegionNetworkFirewallPoliciesService) GetRule(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesGetRuleCall
- func (r *RegionNetworkFirewallPoliciesService) Insert(project string, region string, firewallpolicy *FirewallPolicy) *RegionNetworkFirewallPoliciesInsertCall
- func (r *RegionNetworkFirewallPoliciesService) List(project string, region string) *RegionNetworkFirewallPoliciesListCall
- func (r *RegionNetworkFirewallPoliciesService) Patch(project string, region string, firewallPolicy string, ...) *RegionNetworkFirewallPoliciesPatchCall
- func (r *RegionNetworkFirewallPoliciesService) PatchRule(project string, region string, firewallPolicy string, ...) *RegionNetworkFirewallPoliciesPatchRuleCall
- func (r *RegionNetworkFirewallPoliciesService) RemoveAssociation(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesRemoveAssociationCall
- func (r *RegionNetworkFirewallPoliciesService) RemoveRule(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesRemoveRuleCall
- func (r *RegionNetworkFirewallPoliciesService) SetIamPolicy(project string, region string, resource string, ...) *RegionNetworkFirewallPoliciesSetIamPolicyCall
- func (r *RegionNetworkFirewallPoliciesService) TestIamPermissions(project string, region string, resource string, ...) *RegionNetworkFirewallPoliciesTestIamPermissionsCall
- type RegionNetworkFirewallPoliciesSetIamPolicyCall
- func (c *RegionNetworkFirewallPoliciesSetIamPolicyCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesSetIamPolicyCall
- func (c *RegionNetworkFirewallPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *RegionNetworkFirewallPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesSetIamPolicyCall
- func (c *RegionNetworkFirewallPoliciesSetIamPolicyCall) Header() http.Header
- type RegionNetworkFirewallPoliciesTestIamPermissionsCall
- func (c *RegionNetworkFirewallPoliciesTestIamPermissionsCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesTestIamPermissionsCall
- func (c *RegionNetworkFirewallPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RegionNetworkFirewallPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesTestIamPermissionsCall
- func (c *RegionNetworkFirewallPoliciesTestIamPermissionsCall) Header() http.Header
- type RegionNotificationEndpointsDeleteCall
- func (c *RegionNotificationEndpointsDeleteCall) Context(ctx context.Context) *RegionNotificationEndpointsDeleteCall
- func (c *RegionNotificationEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionNotificationEndpointsDeleteCall) Fields(s ...googleapi.Field) *RegionNotificationEndpointsDeleteCall
- func (c *RegionNotificationEndpointsDeleteCall) Header() http.Header
- func (c *RegionNotificationEndpointsDeleteCall) RequestId(requestId string) *RegionNotificationEndpointsDeleteCall
- type RegionNotificationEndpointsGetCall
- func (c *RegionNotificationEndpointsGetCall) Context(ctx context.Context) *RegionNotificationEndpointsGetCall
- func (c *RegionNotificationEndpointsGetCall) Do(opts ...googleapi.CallOption) (*NotificationEndpoint, error)
- func (c *RegionNotificationEndpointsGetCall) Fields(s ...googleapi.Field) *RegionNotificationEndpointsGetCall
- func (c *RegionNotificationEndpointsGetCall) Header() http.Header
- func (c *RegionNotificationEndpointsGetCall) IfNoneMatch(entityTag string) *RegionNotificationEndpointsGetCall
- type RegionNotificationEndpointsInsertCall
- func (c *RegionNotificationEndpointsInsertCall) Context(ctx context.Context) *RegionNotificationEndpointsInsertCall
- func (c *RegionNotificationEndpointsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionNotificationEndpointsInsertCall) Fields(s ...googleapi.Field) *RegionNotificationEndpointsInsertCall
- func (c *RegionNotificationEndpointsInsertCall) Header() http.Header
- func (c *RegionNotificationEndpointsInsertCall) RequestId(requestId string) *RegionNotificationEndpointsInsertCall
- type RegionNotificationEndpointsListCall
- func (c *RegionNotificationEndpointsListCall) Context(ctx context.Context) *RegionNotificationEndpointsListCall
- func (c *RegionNotificationEndpointsListCall) Do(opts ...googleapi.CallOption) (*NotificationEndpointList, error)
- func (c *RegionNotificationEndpointsListCall) Fields(s ...googleapi.Field) *RegionNotificationEndpointsListCall
- func (c *RegionNotificationEndpointsListCall) Filter(filter string) *RegionNotificationEndpointsListCall
- func (c *RegionNotificationEndpointsListCall) Header() http.Header
- func (c *RegionNotificationEndpointsListCall) IfNoneMatch(entityTag string) *RegionNotificationEndpointsListCall
- func (c *RegionNotificationEndpointsListCall) MaxResults(maxResults int64) *RegionNotificationEndpointsListCall
- func (c *RegionNotificationEndpointsListCall) OrderBy(orderBy string) *RegionNotificationEndpointsListCall
- func (c *RegionNotificationEndpointsListCall) PageToken(pageToken string) *RegionNotificationEndpointsListCall
- func (c *RegionNotificationEndpointsListCall) Pages(ctx context.Context, f func(*NotificationEndpointList) error) error
- func (c *RegionNotificationEndpointsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionNotificationEndpointsListCall
- type RegionNotificationEndpointsService
- func (r *RegionNotificationEndpointsService) Delete(project string, region string, notificationEndpoint string) *RegionNotificationEndpointsDeleteCall
- func (r *RegionNotificationEndpointsService) Get(project string, region string, notificationEndpoint string) *RegionNotificationEndpointsGetCall
- func (r *RegionNotificationEndpointsService) Insert(project string, region string, notificationendpoint *NotificationEndpoint) *RegionNotificationEndpointsInsertCall
- func (r *RegionNotificationEndpointsService) List(project string, region string) *RegionNotificationEndpointsListCall
- type RegionOperationsDeleteCall
- func (c *RegionOperationsDeleteCall) Context(ctx context.Context) *RegionOperationsDeleteCall
- func (c *RegionOperationsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *RegionOperationsDeleteCall) Fields(s ...googleapi.Field) *RegionOperationsDeleteCall
- func (c *RegionOperationsDeleteCall) Header() http.Header
- type RegionOperationsGetCall
- func (c *RegionOperationsGetCall) Context(ctx context.Context) *RegionOperationsGetCall
- func (c *RegionOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionOperationsGetCall) Fields(s ...googleapi.Field) *RegionOperationsGetCall
- func (c *RegionOperationsGetCall) Header() http.Header
- func (c *RegionOperationsGetCall) IfNoneMatch(entityTag string) *RegionOperationsGetCall
- type RegionOperationsListCall
- func (c *RegionOperationsListCall) Context(ctx context.Context) *RegionOperationsListCall
- func (c *RegionOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList, error)
- func (c *RegionOperationsListCall) Fields(s ...googleapi.Field) *RegionOperationsListCall
- func (c *RegionOperationsListCall) Filter(filter string) *RegionOperationsListCall
- func (c *RegionOperationsListCall) Header() http.Header
- func (c *RegionOperationsListCall) IfNoneMatch(entityTag string) *RegionOperationsListCall
- func (c *RegionOperationsListCall) MaxResults(maxResults int64) *RegionOperationsListCall
- func (c *RegionOperationsListCall) OrderBy(orderBy string) *RegionOperationsListCall
- func (c *RegionOperationsListCall) PageToken(pageToken string) *RegionOperationsListCall
- func (c *RegionOperationsListCall) Pages(ctx context.Context, f func(*OperationList) error) error
- func (c *RegionOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionOperationsListCall
- type RegionOperationsService
- func (r *RegionOperationsService) Delete(project string, region string, operationid string) *RegionOperationsDeleteCall
- func (r *RegionOperationsService) Get(project string, region string, operationid string) *RegionOperationsGetCall
- func (r *RegionOperationsService) List(project string, region string) *RegionOperationsListCall
- func (r *RegionOperationsService) Wait(project string, region string, operationid string) *RegionOperationsWaitCall
- type RegionOperationsWaitCall
- func (c *RegionOperationsWaitCall) Context(ctx context.Context) *RegionOperationsWaitCall
- func (c *RegionOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionOperationsWaitCall) Fields(s ...googleapi.Field) *RegionOperationsWaitCall
- func (c *RegionOperationsWaitCall) Header() http.Header
- type RegionQuotaStatusWarning
- type RegionQuotaStatusWarningData
- type RegionSecurityPoliciesAddRuleCall
- func (c *RegionSecurityPoliciesAddRuleCall) Context(ctx context.Context) *RegionSecurityPoliciesAddRuleCall
- func (c *RegionSecurityPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionSecurityPoliciesAddRuleCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesAddRuleCall
- func (c *RegionSecurityPoliciesAddRuleCall) Header() http.Header
- func (c *RegionSecurityPoliciesAddRuleCall) ValidateOnly(validateOnly bool) *RegionSecurityPoliciesAddRuleCall
- type RegionSecurityPoliciesDeleteCall
- func (c *RegionSecurityPoliciesDeleteCall) Context(ctx context.Context) *RegionSecurityPoliciesDeleteCall
- func (c *RegionSecurityPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionSecurityPoliciesDeleteCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesDeleteCall
- func (c *RegionSecurityPoliciesDeleteCall) Header() http.Header
- func (c *RegionSecurityPoliciesDeleteCall) RequestId(requestId string) *RegionSecurityPoliciesDeleteCall
- type RegionSecurityPoliciesGetCall
- func (c *RegionSecurityPoliciesGetCall) Context(ctx context.Context) *RegionSecurityPoliciesGetCall
- func (c *RegionSecurityPoliciesGetCall) Do(opts ...googleapi.CallOption) (*SecurityPolicy, error)
- func (c *RegionSecurityPoliciesGetCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesGetCall
- func (c *RegionSecurityPoliciesGetCall) Header() http.Header
- func (c *RegionSecurityPoliciesGetCall) IfNoneMatch(entityTag string) *RegionSecurityPoliciesGetCall
- type RegionSecurityPoliciesGetRuleCall
- func (c *RegionSecurityPoliciesGetRuleCall) Context(ctx context.Context) *RegionSecurityPoliciesGetRuleCall
- func (c *RegionSecurityPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyRule, error)
- func (c *RegionSecurityPoliciesGetRuleCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesGetRuleCall
- func (c *RegionSecurityPoliciesGetRuleCall) Header() http.Header
- func (c *RegionSecurityPoliciesGetRuleCall) IfNoneMatch(entityTag string) *RegionSecurityPoliciesGetRuleCall
- func (c *RegionSecurityPoliciesGetRuleCall) Priority(priority int64) *RegionSecurityPoliciesGetRuleCall
- type RegionSecurityPoliciesInsertCall
- func (c *RegionSecurityPoliciesInsertCall) Context(ctx context.Context) *RegionSecurityPoliciesInsertCall
- func (c *RegionSecurityPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionSecurityPoliciesInsertCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesInsertCall
- func (c *RegionSecurityPoliciesInsertCall) Header() http.Header
- func (c *RegionSecurityPoliciesInsertCall) RequestId(requestId string) *RegionSecurityPoliciesInsertCall
- func (c *RegionSecurityPoliciesInsertCall) ValidateOnly(validateOnly bool) *RegionSecurityPoliciesInsertCall
- type RegionSecurityPoliciesListCall
- func (c *RegionSecurityPoliciesListCall) Context(ctx context.Context) *RegionSecurityPoliciesListCall
- func (c *RegionSecurityPoliciesListCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyList, error)
- func (c *RegionSecurityPoliciesListCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesListCall
- func (c *RegionSecurityPoliciesListCall) Filter(filter string) *RegionSecurityPoliciesListCall
- func (c *RegionSecurityPoliciesListCall) Header() http.Header
- func (c *RegionSecurityPoliciesListCall) IfNoneMatch(entityTag string) *RegionSecurityPoliciesListCall
- func (c *RegionSecurityPoliciesListCall) MaxResults(maxResults int64) *RegionSecurityPoliciesListCall
- func (c *RegionSecurityPoliciesListCall) OrderBy(orderBy string) *RegionSecurityPoliciesListCall
- func (c *RegionSecurityPoliciesListCall) PageToken(pageToken string) *RegionSecurityPoliciesListCall
- func (c *RegionSecurityPoliciesListCall) Pages(ctx context.Context, f func(*SecurityPolicyList) error) error
- func (c *RegionSecurityPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionSecurityPoliciesListCall
- type RegionSecurityPoliciesPatchCall
- func (c *RegionSecurityPoliciesPatchCall) Context(ctx context.Context) *RegionSecurityPoliciesPatchCall
- func (c *RegionSecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionSecurityPoliciesPatchCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesPatchCall
- func (c *RegionSecurityPoliciesPatchCall) Header() http.Header
- func (c *RegionSecurityPoliciesPatchCall) RequestId(requestId string) *RegionSecurityPoliciesPatchCall
- func (c *RegionSecurityPoliciesPatchCall) UpdateMask(updateMask string) *RegionSecurityPoliciesPatchCall
- type RegionSecurityPoliciesPatchRuleCall
- func (c *RegionSecurityPoliciesPatchRuleCall) Context(ctx context.Context) *RegionSecurityPoliciesPatchRuleCall
- func (c *RegionSecurityPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionSecurityPoliciesPatchRuleCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesPatchRuleCall
- func (c *RegionSecurityPoliciesPatchRuleCall) Header() http.Header
- func (c *RegionSecurityPoliciesPatchRuleCall) Priority(priority int64) *RegionSecurityPoliciesPatchRuleCall
- func (c *RegionSecurityPoliciesPatchRuleCall) UpdateMask(updateMask string) *RegionSecurityPoliciesPatchRuleCall
- func (c *RegionSecurityPoliciesPatchRuleCall) ValidateOnly(validateOnly bool) *RegionSecurityPoliciesPatchRuleCall
- type RegionSecurityPoliciesRemoveRuleCall
- func (c *RegionSecurityPoliciesRemoveRuleCall) Context(ctx context.Context) *RegionSecurityPoliciesRemoveRuleCall
- func (c *RegionSecurityPoliciesRemoveRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionSecurityPoliciesRemoveRuleCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesRemoveRuleCall
- func (c *RegionSecurityPoliciesRemoveRuleCall) Header() http.Header
- func (c *RegionSecurityPoliciesRemoveRuleCall) Priority(priority int64) *RegionSecurityPoliciesRemoveRuleCall
- type RegionSecurityPoliciesService
- func (r *RegionSecurityPoliciesService) AddRule(project string, region string, securityPolicy string, ...) *RegionSecurityPoliciesAddRuleCall
- func (r *RegionSecurityPoliciesService) Delete(project string, region string, securityPolicy string) *RegionSecurityPoliciesDeleteCall
- func (r *RegionSecurityPoliciesService) Get(project string, region string, securityPolicy string) *RegionSecurityPoliciesGetCall
- func (r *RegionSecurityPoliciesService) GetRule(project string, region string, securityPolicy string) *RegionSecurityPoliciesGetRuleCall
- func (r *RegionSecurityPoliciesService) Insert(project string, region string, securitypolicy *SecurityPolicy) *RegionSecurityPoliciesInsertCall
- func (r *RegionSecurityPoliciesService) List(project string, region string) *RegionSecurityPoliciesListCall
- func (r *RegionSecurityPoliciesService) Patch(project string, region string, securityPolicy string, ...) *RegionSecurityPoliciesPatchCall
- func (r *RegionSecurityPoliciesService) PatchRule(project string, region string, securityPolicy string, ...) *RegionSecurityPoliciesPatchRuleCall
- func (r *RegionSecurityPoliciesService) RemoveRule(project string, region string, securityPolicy string) *RegionSecurityPoliciesRemoveRuleCall
- type RegionSetLabelsRequest
- type RegionSetPolicyRequest
- type RegionSslCertificatesDeleteCall
- func (c *RegionSslCertificatesDeleteCall) Context(ctx context.Context) *RegionSslCertificatesDeleteCall
- func (c *RegionSslCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionSslCertificatesDeleteCall) Fields(s ...googleapi.Field) *RegionSslCertificatesDeleteCall
- func (c *RegionSslCertificatesDeleteCall) Header() http.Header
- func (c *RegionSslCertificatesDeleteCall) RequestId(requestId string) *RegionSslCertificatesDeleteCall
- type RegionSslCertificatesGetCall
- func (c *RegionSslCertificatesGetCall) Context(ctx context.Context) *RegionSslCertificatesGetCall
- func (c *RegionSslCertificatesGetCall) Do(opts ...googleapi.CallOption) (*SslCertificate, error)
- func (c *RegionSslCertificatesGetCall) Fields(s ...googleapi.Field) *RegionSslCertificatesGetCall
- func (c *RegionSslCertificatesGetCall) Header() http.Header
- func (c *RegionSslCertificatesGetCall) IfNoneMatch(entityTag string) *RegionSslCertificatesGetCall
- type RegionSslCertificatesInsertCall
- func (c *RegionSslCertificatesInsertCall) Context(ctx context.Context) *RegionSslCertificatesInsertCall
- func (c *RegionSslCertificatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionSslCertificatesInsertCall) Fields(s ...googleapi.Field) *RegionSslCertificatesInsertCall
- func (c *RegionSslCertificatesInsertCall) Header() http.Header
- func (c *RegionSslCertificatesInsertCall) RequestId(requestId string) *RegionSslCertificatesInsertCall
- type RegionSslCertificatesListCall
- func (c *RegionSslCertificatesListCall) Context(ctx context.Context) *RegionSslCertificatesListCall
- func (c *RegionSslCertificatesListCall) Do(opts ...googleapi.CallOption) (*SslCertificateList, error)
- func (c *RegionSslCertificatesListCall) Fields(s ...googleapi.Field) *RegionSslCertificatesListCall
- func (c *RegionSslCertificatesListCall) Filter(filter string) *RegionSslCertificatesListCall
- func (c *RegionSslCertificatesListCall) Header() http.Header
- func (c *RegionSslCertificatesListCall) IfNoneMatch(entityTag string) *RegionSslCertificatesListCall
- func (c *RegionSslCertificatesListCall) MaxResults(maxResults int64) *RegionSslCertificatesListCall
- func (c *RegionSslCertificatesListCall) OrderBy(orderBy string) *RegionSslCertificatesListCall
- func (c *RegionSslCertificatesListCall) PageToken(pageToken string) *RegionSslCertificatesListCall
- func (c *RegionSslCertificatesListCall) Pages(ctx context.Context, f func(*SslCertificateList) error) error
- func (c *RegionSslCertificatesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionSslCertificatesListCall
- type RegionSslCertificatesService
- func (r *RegionSslCertificatesService) Delete(project string, region string, sslCertificate string) *RegionSslCertificatesDeleteCall
- func (r *RegionSslCertificatesService) Get(project string, region string, sslCertificate string) *RegionSslCertificatesGetCall
- func (r *RegionSslCertificatesService) Insert(project string, region string, sslcertificate *SslCertificate) *RegionSslCertificatesInsertCall
- func (r *RegionSslCertificatesService) List(project string, region string) *RegionSslCertificatesListCall
- type RegionSslPoliciesDeleteCall
- func (c *RegionSslPoliciesDeleteCall) Context(ctx context.Context) *RegionSslPoliciesDeleteCall
- func (c *RegionSslPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionSslPoliciesDeleteCall) Fields(s ...googleapi.Field) *RegionSslPoliciesDeleteCall
- func (c *RegionSslPoliciesDeleteCall) Header() http.Header
- func (c *RegionSslPoliciesDeleteCall) RequestId(requestId string) *RegionSslPoliciesDeleteCall
- type RegionSslPoliciesGetCall
- func (c *RegionSslPoliciesGetCall) Context(ctx context.Context) *RegionSslPoliciesGetCall
- func (c *RegionSslPoliciesGetCall) Do(opts ...googleapi.CallOption) (*SslPolicy, error)
- func (c *RegionSslPoliciesGetCall) Fields(s ...googleapi.Field) *RegionSslPoliciesGetCall
- func (c *RegionSslPoliciesGetCall) Header() http.Header
- func (c *RegionSslPoliciesGetCall) IfNoneMatch(entityTag string) *RegionSslPoliciesGetCall
- type RegionSslPoliciesInsertCall
- func (c *RegionSslPoliciesInsertCall) Context(ctx context.Context) *RegionSslPoliciesInsertCall
- func (c *RegionSslPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionSslPoliciesInsertCall) Fields(s ...googleapi.Field) *RegionSslPoliciesInsertCall
- func (c *RegionSslPoliciesInsertCall) Header() http.Header
- func (c *RegionSslPoliciesInsertCall) RequestId(requestId string) *RegionSslPoliciesInsertCall
- type RegionSslPoliciesListAvailableFeaturesCall
- func (c *RegionSslPoliciesListAvailableFeaturesCall) Context(ctx context.Context) *RegionSslPoliciesListAvailableFeaturesCall
- func (c *RegionSslPoliciesListAvailableFeaturesCall) Do(opts ...googleapi.CallOption) (*SslPoliciesListAvailableFeaturesResponse, error)
- func (c *RegionSslPoliciesListAvailableFeaturesCall) Fields(s ...googleapi.Field) *RegionSslPoliciesListAvailableFeaturesCall
- func (c *RegionSslPoliciesListAvailableFeaturesCall) Filter(filter string) *RegionSslPoliciesListAvailableFeaturesCall
- func (c *RegionSslPoliciesListAvailableFeaturesCall) Header() http.Header
- func (c *RegionSslPoliciesListAvailableFeaturesCall) IfNoneMatch(entityTag string) *RegionSslPoliciesListAvailableFeaturesCall
- func (c *RegionSslPoliciesListAvailableFeaturesCall) MaxResults(maxResults int64) *RegionSslPoliciesListAvailableFeaturesCall
- func (c *RegionSslPoliciesListAvailableFeaturesCall) OrderBy(orderBy string) *RegionSslPoliciesListAvailableFeaturesCall
- func (c *RegionSslPoliciesListAvailableFeaturesCall) PageToken(pageToken string) *RegionSslPoliciesListAvailableFeaturesCall
- func (c *RegionSslPoliciesListAvailableFeaturesCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionSslPoliciesListAvailableFeaturesCall
- type RegionSslPoliciesListCall
- func (c *RegionSslPoliciesListCall) Context(ctx context.Context) *RegionSslPoliciesListCall
- func (c *RegionSslPoliciesListCall) Do(opts ...googleapi.CallOption) (*SslPoliciesList, error)
- func (c *RegionSslPoliciesListCall) Fields(s ...googleapi.Field) *RegionSslPoliciesListCall
- func (c *RegionSslPoliciesListCall) Filter(filter string) *RegionSslPoliciesListCall
- func (c *RegionSslPoliciesListCall) Header() http.Header
- func (c *RegionSslPoliciesListCall) IfNoneMatch(entityTag string) *RegionSslPoliciesListCall
- func (c *RegionSslPoliciesListCall) MaxResults(maxResults int64) *RegionSslPoliciesListCall
- func (c *RegionSslPoliciesListCall) OrderBy(orderBy string) *RegionSslPoliciesListCall
- func (c *RegionSslPoliciesListCall) PageToken(pageToken string) *RegionSslPoliciesListCall
- func (c *RegionSslPoliciesListCall) Pages(ctx context.Context, f func(*SslPoliciesList) error) error
- func (c *RegionSslPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionSslPoliciesListCall
- type RegionSslPoliciesPatchCall
- func (c *RegionSslPoliciesPatchCall) Context(ctx context.Context) *RegionSslPoliciesPatchCall
- func (c *RegionSslPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionSslPoliciesPatchCall) Fields(s ...googleapi.Field) *RegionSslPoliciesPatchCall
- func (c *RegionSslPoliciesPatchCall) Header() http.Header
- func (c *RegionSslPoliciesPatchCall) RequestId(requestId string) *RegionSslPoliciesPatchCall
- type RegionSslPoliciesService
- func (r *RegionSslPoliciesService) Delete(project string, region string, sslPolicy string) *RegionSslPoliciesDeleteCall
- func (r *RegionSslPoliciesService) Get(project string, region string, sslPolicy string) *RegionSslPoliciesGetCall
- func (r *RegionSslPoliciesService) Insert(project string, region string, sslpolicy *SslPolicy) *RegionSslPoliciesInsertCall
- func (r *RegionSslPoliciesService) List(project string, region string) *RegionSslPoliciesListCall
- func (r *RegionSslPoliciesService) ListAvailableFeatures(project string, region string) *RegionSslPoliciesListAvailableFeaturesCall
- func (r *RegionSslPoliciesService) Patch(project string, region string, sslPolicy string, sslpolicy *SslPolicy) *RegionSslPoliciesPatchCall
- type RegionTargetHttpProxiesDeleteCall
- func (c *RegionTargetHttpProxiesDeleteCall) Context(ctx context.Context) *RegionTargetHttpProxiesDeleteCall
- func (c *RegionTargetHttpProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionTargetHttpProxiesDeleteCall) Fields(s ...googleapi.Field) *RegionTargetHttpProxiesDeleteCall
- func (c *RegionTargetHttpProxiesDeleteCall) Header() http.Header
- func (c *RegionTargetHttpProxiesDeleteCall) RequestId(requestId string) *RegionTargetHttpProxiesDeleteCall
- type RegionTargetHttpProxiesGetCall
- func (c *RegionTargetHttpProxiesGetCall) Context(ctx context.Context) *RegionTargetHttpProxiesGetCall
- func (c *RegionTargetHttpProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetHttpProxy, error)
- func (c *RegionTargetHttpProxiesGetCall) Fields(s ...googleapi.Field) *RegionTargetHttpProxiesGetCall
- func (c *RegionTargetHttpProxiesGetCall) Header() http.Header
- func (c *RegionTargetHttpProxiesGetCall) IfNoneMatch(entityTag string) *RegionTargetHttpProxiesGetCall
- type RegionTargetHttpProxiesInsertCall
- func (c *RegionTargetHttpProxiesInsertCall) Context(ctx context.Context) *RegionTargetHttpProxiesInsertCall
- func (c *RegionTargetHttpProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionTargetHttpProxiesInsertCall) Fields(s ...googleapi.Field) *RegionTargetHttpProxiesInsertCall
- func (c *RegionTargetHttpProxiesInsertCall) Header() http.Header
- func (c *RegionTargetHttpProxiesInsertCall) RequestId(requestId string) *RegionTargetHttpProxiesInsertCall
- type RegionTargetHttpProxiesListCall
- func (c *RegionTargetHttpProxiesListCall) Context(ctx context.Context) *RegionTargetHttpProxiesListCall
- func (c *RegionTargetHttpProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetHttpProxyList, error)
- func (c *RegionTargetHttpProxiesListCall) Fields(s ...googleapi.Field) *RegionTargetHttpProxiesListCall
- func (c *RegionTargetHttpProxiesListCall) Filter(filter string) *RegionTargetHttpProxiesListCall
- func (c *RegionTargetHttpProxiesListCall) Header() http.Header
- func (c *RegionTargetHttpProxiesListCall) IfNoneMatch(entityTag string) *RegionTargetHttpProxiesListCall
- func (c *RegionTargetHttpProxiesListCall) MaxResults(maxResults int64) *RegionTargetHttpProxiesListCall
- func (c *RegionTargetHttpProxiesListCall) OrderBy(orderBy string) *RegionTargetHttpProxiesListCall
- func (c *RegionTargetHttpProxiesListCall) PageToken(pageToken string) *RegionTargetHttpProxiesListCall
- func (c *RegionTargetHttpProxiesListCall) Pages(ctx context.Context, f func(*TargetHttpProxyList) error) error
- func (c *RegionTargetHttpProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionTargetHttpProxiesListCall
- type RegionTargetHttpProxiesService
- func (r *RegionTargetHttpProxiesService) Delete(project string, region string, targetHttpProxy string) *RegionTargetHttpProxiesDeleteCall
- func (r *RegionTargetHttpProxiesService) Get(project string, region string, targetHttpProxy string) *RegionTargetHttpProxiesGetCall
- func (r *RegionTargetHttpProxiesService) Insert(project string, region string, targethttpproxy *TargetHttpProxy) *RegionTargetHttpProxiesInsertCall
- func (r *RegionTargetHttpProxiesService) List(project string, region string) *RegionTargetHttpProxiesListCall
- func (r *RegionTargetHttpProxiesService) SetUrlMap(project string, region string, targetHttpProxy string, ...) *RegionTargetHttpProxiesSetUrlMapCall
- type RegionTargetHttpProxiesSetUrlMapCall
- func (c *RegionTargetHttpProxiesSetUrlMapCall) Context(ctx context.Context) *RegionTargetHttpProxiesSetUrlMapCall
- func (c *RegionTargetHttpProxiesSetUrlMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionTargetHttpProxiesSetUrlMapCall) Fields(s ...googleapi.Field) *RegionTargetHttpProxiesSetUrlMapCall
- func (c *RegionTargetHttpProxiesSetUrlMapCall) Header() http.Header
- func (c *RegionTargetHttpProxiesSetUrlMapCall) RequestId(requestId string) *RegionTargetHttpProxiesSetUrlMapCall
- type RegionTargetHttpsProxiesDeleteCall
- func (c *RegionTargetHttpsProxiesDeleteCall) Context(ctx context.Context) *RegionTargetHttpsProxiesDeleteCall
- func (c *RegionTargetHttpsProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionTargetHttpsProxiesDeleteCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesDeleteCall
- func (c *RegionTargetHttpsProxiesDeleteCall) Header() http.Header
- func (c *RegionTargetHttpsProxiesDeleteCall) RequestId(requestId string) *RegionTargetHttpsProxiesDeleteCall
- type RegionTargetHttpsProxiesGetCall
- func (c *RegionTargetHttpsProxiesGetCall) Context(ctx context.Context) *RegionTargetHttpsProxiesGetCall
- func (c *RegionTargetHttpsProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetHttpsProxy, error)
- func (c *RegionTargetHttpsProxiesGetCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesGetCall
- func (c *RegionTargetHttpsProxiesGetCall) Header() http.Header
- func (c *RegionTargetHttpsProxiesGetCall) IfNoneMatch(entityTag string) *RegionTargetHttpsProxiesGetCall
- type RegionTargetHttpsProxiesInsertCall
- func (c *RegionTargetHttpsProxiesInsertCall) Context(ctx context.Context) *RegionTargetHttpsProxiesInsertCall
- func (c *RegionTargetHttpsProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionTargetHttpsProxiesInsertCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesInsertCall
- func (c *RegionTargetHttpsProxiesInsertCall) Header() http.Header
- func (c *RegionTargetHttpsProxiesInsertCall) RequestId(requestId string) *RegionTargetHttpsProxiesInsertCall
- type RegionTargetHttpsProxiesListCall
- func (c *RegionTargetHttpsProxiesListCall) Context(ctx context.Context) *RegionTargetHttpsProxiesListCall
- func (c *RegionTargetHttpsProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetHttpsProxyList, error)
- func (c *RegionTargetHttpsProxiesListCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesListCall
- func (c *RegionTargetHttpsProxiesListCall) Filter(filter string) *RegionTargetHttpsProxiesListCall
- func (c *RegionTargetHttpsProxiesListCall) Header() http.Header
- func (c *RegionTargetHttpsProxiesListCall) IfNoneMatch(entityTag string) *RegionTargetHttpsProxiesListCall
- func (c *RegionTargetHttpsProxiesListCall) MaxResults(maxResults int64) *RegionTargetHttpsProxiesListCall
- func (c *RegionTargetHttpsProxiesListCall) OrderBy(orderBy string) *RegionTargetHttpsProxiesListCall
- func (c *RegionTargetHttpsProxiesListCall) PageToken(pageToken string) *RegionTargetHttpsProxiesListCall
- func (c *RegionTargetHttpsProxiesListCall) Pages(ctx context.Context, f func(*TargetHttpsProxyList) error) error
- func (c *RegionTargetHttpsProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionTargetHttpsProxiesListCall
- type RegionTargetHttpsProxiesPatchCall
- func (c *RegionTargetHttpsProxiesPatchCall) Context(ctx context.Context) *RegionTargetHttpsProxiesPatchCall
- func (c *RegionTargetHttpsProxiesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionTargetHttpsProxiesPatchCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesPatchCall
- func (c *RegionTargetHttpsProxiesPatchCall) Header() http.Header
- func (c *RegionTargetHttpsProxiesPatchCall) RequestId(requestId string) *RegionTargetHttpsProxiesPatchCall
- type RegionTargetHttpsProxiesService
- func (r *RegionTargetHttpsProxiesService) Delete(project string, region string, targetHttpsProxy string) *RegionTargetHttpsProxiesDeleteCall
- func (r *RegionTargetHttpsProxiesService) Get(project string, region string, targetHttpsProxy string) *RegionTargetHttpsProxiesGetCall
- func (r *RegionTargetHttpsProxiesService) Insert(project string, region string, targethttpsproxy *TargetHttpsProxy) *RegionTargetHttpsProxiesInsertCall
- func (r *RegionTargetHttpsProxiesService) List(project string, region string) *RegionTargetHttpsProxiesListCall
- func (r *RegionTargetHttpsProxiesService) Patch(project string, region string, targetHttpsProxy string, ...) *RegionTargetHttpsProxiesPatchCall
- func (r *RegionTargetHttpsProxiesService) SetSslCertificates(project string, region string, targetHttpsProxy string, ...) *RegionTargetHttpsProxiesSetSslCertificatesCall
- func (r *RegionTargetHttpsProxiesService) SetUrlMap(project string, region string, targetHttpsProxy string, ...) *RegionTargetHttpsProxiesSetUrlMapCall
- type RegionTargetHttpsProxiesSetSslCertificatesCall
- func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) Context(ctx context.Context) *RegionTargetHttpsProxiesSetSslCertificatesCall
- func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesSetSslCertificatesCall
- func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) Header() http.Header
- func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) RequestId(requestId string) *RegionTargetHttpsProxiesSetSslCertificatesCall
- type RegionTargetHttpsProxiesSetSslCertificatesRequest
- type RegionTargetHttpsProxiesSetUrlMapCall
- func (c *RegionTargetHttpsProxiesSetUrlMapCall) Context(ctx context.Context) *RegionTargetHttpsProxiesSetUrlMapCall
- func (c *RegionTargetHttpsProxiesSetUrlMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionTargetHttpsProxiesSetUrlMapCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesSetUrlMapCall
- func (c *RegionTargetHttpsProxiesSetUrlMapCall) Header() http.Header
- func (c *RegionTargetHttpsProxiesSetUrlMapCall) RequestId(requestId string) *RegionTargetHttpsProxiesSetUrlMapCall
- type RegionTargetTcpProxiesDeleteCall
- func (c *RegionTargetTcpProxiesDeleteCall) Context(ctx context.Context) *RegionTargetTcpProxiesDeleteCall
- func (c *RegionTargetTcpProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionTargetTcpProxiesDeleteCall) Fields(s ...googleapi.Field) *RegionTargetTcpProxiesDeleteCall
- func (c *RegionTargetTcpProxiesDeleteCall) Header() http.Header
- func (c *RegionTargetTcpProxiesDeleteCall) RequestId(requestId string) *RegionTargetTcpProxiesDeleteCall
- type RegionTargetTcpProxiesGetCall
- func (c *RegionTargetTcpProxiesGetCall) Context(ctx context.Context) *RegionTargetTcpProxiesGetCall
- func (c *RegionTargetTcpProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetTcpProxy, error)
- func (c *RegionTargetTcpProxiesGetCall) Fields(s ...googleapi.Field) *RegionTargetTcpProxiesGetCall
- func (c *RegionTargetTcpProxiesGetCall) Header() http.Header
- func (c *RegionTargetTcpProxiesGetCall) IfNoneMatch(entityTag string) *RegionTargetTcpProxiesGetCall
- type RegionTargetTcpProxiesInsertCall
- func (c *RegionTargetTcpProxiesInsertCall) Context(ctx context.Context) *RegionTargetTcpProxiesInsertCall
- func (c *RegionTargetTcpProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionTargetTcpProxiesInsertCall) Fields(s ...googleapi.Field) *RegionTargetTcpProxiesInsertCall
- func (c *RegionTargetTcpProxiesInsertCall) Header() http.Header
- func (c *RegionTargetTcpProxiesInsertCall) RequestId(requestId string) *RegionTargetTcpProxiesInsertCall
- type RegionTargetTcpProxiesListCall
- func (c *RegionTargetTcpProxiesListCall) Context(ctx context.Context) *RegionTargetTcpProxiesListCall
- func (c *RegionTargetTcpProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetTcpProxyList, error)
- func (c *RegionTargetTcpProxiesListCall) Fields(s ...googleapi.Field) *RegionTargetTcpProxiesListCall
- func (c *RegionTargetTcpProxiesListCall) Filter(filter string) *RegionTargetTcpProxiesListCall
- func (c *RegionTargetTcpProxiesListCall) Header() http.Header
- func (c *RegionTargetTcpProxiesListCall) IfNoneMatch(entityTag string) *RegionTargetTcpProxiesListCall
- func (c *RegionTargetTcpProxiesListCall) MaxResults(maxResults int64) *RegionTargetTcpProxiesListCall
- func (c *RegionTargetTcpProxiesListCall) OrderBy(orderBy string) *RegionTargetTcpProxiesListCall
- func (c *RegionTargetTcpProxiesListCall) PageToken(pageToken string) *RegionTargetTcpProxiesListCall
- func (c *RegionTargetTcpProxiesListCall) Pages(ctx context.Context, f func(*TargetTcpProxyList) error) error
- func (c *RegionTargetTcpProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionTargetTcpProxiesListCall
- type RegionTargetTcpProxiesService
- func (r *RegionTargetTcpProxiesService) Delete(project string, region string, targetTcpProxy string) *RegionTargetTcpProxiesDeleteCall
- func (r *RegionTargetTcpProxiesService) Get(project string, region string, targetTcpProxy string) *RegionTargetTcpProxiesGetCall
- func (r *RegionTargetTcpProxiesService) Insert(project string, region string, targettcpproxy *TargetTcpProxy) *RegionTargetTcpProxiesInsertCall
- func (r *RegionTargetTcpProxiesService) List(project string, region string) *RegionTargetTcpProxiesListCall
- type RegionUrlMapsDeleteCall
- func (c *RegionUrlMapsDeleteCall) Context(ctx context.Context) *RegionUrlMapsDeleteCall
- func (c *RegionUrlMapsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionUrlMapsDeleteCall) Fields(s ...googleapi.Field) *RegionUrlMapsDeleteCall
- func (c *RegionUrlMapsDeleteCall) Header() http.Header
- func (c *RegionUrlMapsDeleteCall) RequestId(requestId string) *RegionUrlMapsDeleteCall
- type RegionUrlMapsGetCall
- func (c *RegionUrlMapsGetCall) Context(ctx context.Context) *RegionUrlMapsGetCall
- func (c *RegionUrlMapsGetCall) Do(opts ...googleapi.CallOption) (*UrlMap, error)
- func (c *RegionUrlMapsGetCall) Fields(s ...googleapi.Field) *RegionUrlMapsGetCall
- func (c *RegionUrlMapsGetCall) Header() http.Header
- func (c *RegionUrlMapsGetCall) IfNoneMatch(entityTag string) *RegionUrlMapsGetCall
- type RegionUrlMapsInsertCall
- func (c *RegionUrlMapsInsertCall) Context(ctx context.Context) *RegionUrlMapsInsertCall
- func (c *RegionUrlMapsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionUrlMapsInsertCall) Fields(s ...googleapi.Field) *RegionUrlMapsInsertCall
- func (c *RegionUrlMapsInsertCall) Header() http.Header
- func (c *RegionUrlMapsInsertCall) RequestId(requestId string) *RegionUrlMapsInsertCall
- type RegionUrlMapsListCall
- func (c *RegionUrlMapsListCall) Context(ctx context.Context) *RegionUrlMapsListCall
- func (c *RegionUrlMapsListCall) Do(opts ...googleapi.CallOption) (*UrlMapList, error)
- func (c *RegionUrlMapsListCall) Fields(s ...googleapi.Field) *RegionUrlMapsListCall
- func (c *RegionUrlMapsListCall) Filter(filter string) *RegionUrlMapsListCall
- func (c *RegionUrlMapsListCall) Header() http.Header
- func (c *RegionUrlMapsListCall) IfNoneMatch(entityTag string) *RegionUrlMapsListCall
- func (c *RegionUrlMapsListCall) MaxResults(maxResults int64) *RegionUrlMapsListCall
- func (c *RegionUrlMapsListCall) OrderBy(orderBy string) *RegionUrlMapsListCall
- func (c *RegionUrlMapsListCall) PageToken(pageToken string) *RegionUrlMapsListCall
- func (c *RegionUrlMapsListCall) Pages(ctx context.Context, f func(*UrlMapList) error) error
- func (c *RegionUrlMapsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionUrlMapsListCall
- type RegionUrlMapsPatchCall
- func (c *RegionUrlMapsPatchCall) Context(ctx context.Context) *RegionUrlMapsPatchCall
- func (c *RegionUrlMapsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionUrlMapsPatchCall) Fields(s ...googleapi.Field) *RegionUrlMapsPatchCall
- func (c *RegionUrlMapsPatchCall) Header() http.Header
- func (c *RegionUrlMapsPatchCall) RequestId(requestId string) *RegionUrlMapsPatchCall
- type RegionUrlMapsService
- func (r *RegionUrlMapsService) Delete(project string, region string, urlMap string) *RegionUrlMapsDeleteCall
- func (r *RegionUrlMapsService) Get(project string, region string, urlMap string) *RegionUrlMapsGetCall
- func (r *RegionUrlMapsService) Insert(project string, region string, urlmap *UrlMap) *RegionUrlMapsInsertCall
- func (r *RegionUrlMapsService) List(project string, region string) *RegionUrlMapsListCall
- func (r *RegionUrlMapsService) Patch(project string, region string, urlMap string, urlmap *UrlMap) *RegionUrlMapsPatchCall
- func (r *RegionUrlMapsService) Update(project string, region string, urlMap string, urlmap *UrlMap) *RegionUrlMapsUpdateCall
- func (r *RegionUrlMapsService) Validate(project string, region string, urlMap string, ...) *RegionUrlMapsValidateCall
- type RegionUrlMapsUpdateCall
- func (c *RegionUrlMapsUpdateCall) Context(ctx context.Context) *RegionUrlMapsUpdateCall
- func (c *RegionUrlMapsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionUrlMapsUpdateCall) Fields(s ...googleapi.Field) *RegionUrlMapsUpdateCall
- func (c *RegionUrlMapsUpdateCall) Header() http.Header
- func (c *RegionUrlMapsUpdateCall) RequestId(requestId string) *RegionUrlMapsUpdateCall
- type RegionUrlMapsValidateCall
- func (c *RegionUrlMapsValidateCall) Context(ctx context.Context) *RegionUrlMapsValidateCall
- func (c *RegionUrlMapsValidateCall) Do(opts ...googleapi.CallOption) (*UrlMapsValidateResponse, error)
- func (c *RegionUrlMapsValidateCall) Fields(s ...googleapi.Field) *RegionUrlMapsValidateCall
- func (c *RegionUrlMapsValidateCall) Header() http.Header
- type RegionUrlMapsValidateRequest
- type RegionZonesListCall
- func (c *RegionZonesListCall) Context(ctx context.Context) *RegionZonesListCall
- func (c *RegionZonesListCall) Do(opts ...googleapi.CallOption) (*ZoneList, error)
- func (c *RegionZonesListCall) Fields(s ...googleapi.Field) *RegionZonesListCall
- func (c *RegionZonesListCall) Filter(filter string) *RegionZonesListCall
- func (c *RegionZonesListCall) Header() http.Header
- func (c *RegionZonesListCall) IfNoneMatch(entityTag string) *RegionZonesListCall
- func (c *RegionZonesListCall) MaxResults(maxResults int64) *RegionZonesListCall
- func (c *RegionZonesListCall) OrderBy(orderBy string) *RegionZonesListCall
- func (c *RegionZonesListCall) PageToken(pageToken string) *RegionZonesListCall
- func (c *RegionZonesListCall) Pages(ctx context.Context, f func(*ZoneList) error) error
- func (c *RegionZonesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionZonesListCall
- type RegionZonesService
- type RegionsGetCall
- func (c *RegionsGetCall) Context(ctx context.Context) *RegionsGetCall
- func (c *RegionsGetCall) Do(opts ...googleapi.CallOption) (*Region, error)
- func (c *RegionsGetCall) Fields(s ...googleapi.Field) *RegionsGetCall
- func (c *RegionsGetCall) Header() http.Header
- func (c *RegionsGetCall) IfNoneMatch(entityTag string) *RegionsGetCall
- type RegionsListCall
- func (c *RegionsListCall) Context(ctx context.Context) *RegionsListCall
- func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionList, error)
- func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall
- func (c *RegionsListCall) Filter(filter string) *RegionsListCall
- func (c *RegionsListCall) Header() http.Header
- func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall
- func (c *RegionsListCall) MaxResults(maxResults int64) *RegionsListCall
- func (c *RegionsListCall) OrderBy(orderBy string) *RegionsListCall
- func (c *RegionsListCall) PageToken(pageToken string) *RegionsListCall
- func (c *RegionsListCall) Pages(ctx context.Context, f func(*RegionList) error) error
- func (c *RegionsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionsListCall
- type RegionsService
- type RequestMirrorPolicy
- type Reservation
- type ReservationAffinity
- type ReservationAggregatedList
- type ReservationAggregatedListWarning
- type ReservationAggregatedListWarningData
- type ReservationList
- type ReservationListWarning
- type ReservationListWarningData
- type ReservationsAggregatedListCall
- func (c *ReservationsAggregatedListCall) Context(ctx context.Context) *ReservationsAggregatedListCall
- func (c *ReservationsAggregatedListCall) Do(opts ...googleapi.CallOption) (*ReservationAggregatedList, error)
- func (c *ReservationsAggregatedListCall) Fields(s ...googleapi.Field) *ReservationsAggregatedListCall
- func (c *ReservationsAggregatedListCall) Filter(filter string) *ReservationsAggregatedListCall
- func (c *ReservationsAggregatedListCall) Header() http.Header
- func (c *ReservationsAggregatedListCall) IfNoneMatch(entityTag string) *ReservationsAggregatedListCall
- func (c *ReservationsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *ReservationsAggregatedListCall
- func (c *ReservationsAggregatedListCall) MaxResults(maxResults int64) *ReservationsAggregatedListCall
- func (c *ReservationsAggregatedListCall) OrderBy(orderBy string) *ReservationsAggregatedListCall
- func (c *ReservationsAggregatedListCall) PageToken(pageToken string) *ReservationsAggregatedListCall
- func (c *ReservationsAggregatedListCall) Pages(ctx context.Context, f func(*ReservationAggregatedList) error) error
- func (c *ReservationsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ReservationsAggregatedListCall
- func (c *ReservationsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *ReservationsAggregatedListCall
- type ReservationsDeleteCall
- func (c *ReservationsDeleteCall) Context(ctx context.Context) *ReservationsDeleteCall
- func (c *ReservationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ReservationsDeleteCall) Fields(s ...googleapi.Field) *ReservationsDeleteCall
- func (c *ReservationsDeleteCall) Header() http.Header
- func (c *ReservationsDeleteCall) RequestId(requestId string) *ReservationsDeleteCall
- type ReservationsGetCall
- func (c *ReservationsGetCall) Context(ctx context.Context) *ReservationsGetCall
- func (c *ReservationsGetCall) Do(opts ...googleapi.CallOption) (*Reservation, error)
- func (c *ReservationsGetCall) Fields(s ...googleapi.Field) *ReservationsGetCall
- func (c *ReservationsGetCall) Header() http.Header
- func (c *ReservationsGetCall) IfNoneMatch(entityTag string) *ReservationsGetCall
- type ReservationsGetIamPolicyCall
- func (c *ReservationsGetIamPolicyCall) Context(ctx context.Context) *ReservationsGetIamPolicyCall
- func (c *ReservationsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ReservationsGetIamPolicyCall) Fields(s ...googleapi.Field) *ReservationsGetIamPolicyCall
- func (c *ReservationsGetIamPolicyCall) Header() http.Header
- func (c *ReservationsGetIamPolicyCall) IfNoneMatch(entityTag string) *ReservationsGetIamPolicyCall
- func (c *ReservationsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ReservationsGetIamPolicyCall
- type ReservationsInsertCall
- func (c *ReservationsInsertCall) Context(ctx context.Context) *ReservationsInsertCall
- func (c *ReservationsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ReservationsInsertCall) Fields(s ...googleapi.Field) *ReservationsInsertCall
- func (c *ReservationsInsertCall) Header() http.Header
- func (c *ReservationsInsertCall) RequestId(requestId string) *ReservationsInsertCall
- type ReservationsListCall
- func (c *ReservationsListCall) Context(ctx context.Context) *ReservationsListCall
- func (c *ReservationsListCall) Do(opts ...googleapi.CallOption) (*ReservationList, error)
- func (c *ReservationsListCall) Fields(s ...googleapi.Field) *ReservationsListCall
- func (c *ReservationsListCall) Filter(filter string) *ReservationsListCall
- func (c *ReservationsListCall) Header() http.Header
- func (c *ReservationsListCall) IfNoneMatch(entityTag string) *ReservationsListCall
- func (c *ReservationsListCall) MaxResults(maxResults int64) *ReservationsListCall
- func (c *ReservationsListCall) OrderBy(orderBy string) *ReservationsListCall
- func (c *ReservationsListCall) PageToken(pageToken string) *ReservationsListCall
- func (c *ReservationsListCall) Pages(ctx context.Context, f func(*ReservationList) error) error
- func (c *ReservationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ReservationsListCall
- type ReservationsResizeCall
- func (c *ReservationsResizeCall) Context(ctx context.Context) *ReservationsResizeCall
- func (c *ReservationsResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ReservationsResizeCall) Fields(s ...googleapi.Field) *ReservationsResizeCall
- func (c *ReservationsResizeCall) Header() http.Header
- func (c *ReservationsResizeCall) RequestId(requestId string) *ReservationsResizeCall
- type ReservationsResizeRequest
- type ReservationsScopedList
- type ReservationsScopedListWarning
- type ReservationsScopedListWarningData
- type ReservationsService
- func (r *ReservationsService) AggregatedList(project string) *ReservationsAggregatedListCall
- func (r *ReservationsService) Delete(project string, zone string, reservation string) *ReservationsDeleteCall
- func (r *ReservationsService) Get(project string, zone string, reservation string) *ReservationsGetCall
- func (r *ReservationsService) GetIamPolicy(project string, zone string, resource string) *ReservationsGetIamPolicyCall
- func (r *ReservationsService) Insert(project string, zone string, reservation *Reservation) *ReservationsInsertCall
- func (r *ReservationsService) List(project string, zone string) *ReservationsListCall
- func (r *ReservationsService) Resize(project string, zone string, reservation string, ...) *ReservationsResizeCall
- func (r *ReservationsService) SetIamPolicy(project string, zone string, resource string, ...) *ReservationsSetIamPolicyCall
- func (r *ReservationsService) TestIamPermissions(project string, zone string, resource string, ...) *ReservationsTestIamPermissionsCall
- func (r *ReservationsService) Update(project string, zone string, reservation string, reservation2 *Reservation) *ReservationsUpdateCall
- type ReservationsSetIamPolicyCall
- func (c *ReservationsSetIamPolicyCall) Context(ctx context.Context) *ReservationsSetIamPolicyCall
- func (c *ReservationsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ReservationsSetIamPolicyCall) Fields(s ...googleapi.Field) *ReservationsSetIamPolicyCall
- func (c *ReservationsSetIamPolicyCall) Header() http.Header
- type ReservationsTestIamPermissionsCall
- func (c *ReservationsTestIamPermissionsCall) Context(ctx context.Context) *ReservationsTestIamPermissionsCall
- func (c *ReservationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *ReservationsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ReservationsTestIamPermissionsCall
- func (c *ReservationsTestIamPermissionsCall) Header() http.Header
- type ReservationsUpdateCall
- func (c *ReservationsUpdateCall) Context(ctx context.Context) *ReservationsUpdateCall
- func (c *ReservationsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ReservationsUpdateCall) Fields(s ...googleapi.Field) *ReservationsUpdateCall
- func (c *ReservationsUpdateCall) Header() http.Header
- func (c *ReservationsUpdateCall) Paths(paths ...string) *ReservationsUpdateCall
- func (c *ReservationsUpdateCall) RequestId(requestId string) *ReservationsUpdateCall
- func (c *ReservationsUpdateCall) UpdateMask(updateMask string) *ReservationsUpdateCall
- type ResourceCommitment
- type ResourceGroupReference
- type ResourcePoliciesAggregatedListCall
- func (c *ResourcePoliciesAggregatedListCall) Context(ctx context.Context) *ResourcePoliciesAggregatedListCall
- func (c *ResourcePoliciesAggregatedListCall) Do(opts ...googleapi.CallOption) (*ResourcePolicyAggregatedList, error)
- func (c *ResourcePoliciesAggregatedListCall) Fields(s ...googleapi.Field) *ResourcePoliciesAggregatedListCall
- func (c *ResourcePoliciesAggregatedListCall) Filter(filter string) *ResourcePoliciesAggregatedListCall
- func (c *ResourcePoliciesAggregatedListCall) Header() http.Header
- func (c *ResourcePoliciesAggregatedListCall) IfNoneMatch(entityTag string) *ResourcePoliciesAggregatedListCall
- func (c *ResourcePoliciesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *ResourcePoliciesAggregatedListCall
- func (c *ResourcePoliciesAggregatedListCall) MaxResults(maxResults int64) *ResourcePoliciesAggregatedListCall
- func (c *ResourcePoliciesAggregatedListCall) OrderBy(orderBy string) *ResourcePoliciesAggregatedListCall
- func (c *ResourcePoliciesAggregatedListCall) PageToken(pageToken string) *ResourcePoliciesAggregatedListCall
- func (c *ResourcePoliciesAggregatedListCall) Pages(ctx context.Context, f func(*ResourcePolicyAggregatedList) error) error
- func (c *ResourcePoliciesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ResourcePoliciesAggregatedListCall
- func (c *ResourcePoliciesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *ResourcePoliciesAggregatedListCall
- type ResourcePoliciesDeleteCall
- func (c *ResourcePoliciesDeleteCall) Context(ctx context.Context) *ResourcePoliciesDeleteCall
- func (c *ResourcePoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ResourcePoliciesDeleteCall) Fields(s ...googleapi.Field) *ResourcePoliciesDeleteCall
- func (c *ResourcePoliciesDeleteCall) Header() http.Header
- func (c *ResourcePoliciesDeleteCall) RequestId(requestId string) *ResourcePoliciesDeleteCall
- type ResourcePoliciesGetCall
- func (c *ResourcePoliciesGetCall) Context(ctx context.Context) *ResourcePoliciesGetCall
- func (c *ResourcePoliciesGetCall) Do(opts ...googleapi.CallOption) (*ResourcePolicy, error)
- func (c *ResourcePoliciesGetCall) Fields(s ...googleapi.Field) *ResourcePoliciesGetCall
- func (c *ResourcePoliciesGetCall) Header() http.Header
- func (c *ResourcePoliciesGetCall) IfNoneMatch(entityTag string) *ResourcePoliciesGetCall
- type ResourcePoliciesGetIamPolicyCall
- func (c *ResourcePoliciesGetIamPolicyCall) Context(ctx context.Context) *ResourcePoliciesGetIamPolicyCall
- func (c *ResourcePoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ResourcePoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ResourcePoliciesGetIamPolicyCall
- func (c *ResourcePoliciesGetIamPolicyCall) Header() http.Header
- func (c *ResourcePoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ResourcePoliciesGetIamPolicyCall
- func (c *ResourcePoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ResourcePoliciesGetIamPolicyCall
- type ResourcePoliciesInsertCall
- func (c *ResourcePoliciesInsertCall) Context(ctx context.Context) *ResourcePoliciesInsertCall
- func (c *ResourcePoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ResourcePoliciesInsertCall) Fields(s ...googleapi.Field) *ResourcePoliciesInsertCall
- func (c *ResourcePoliciesInsertCall) Header() http.Header
- func (c *ResourcePoliciesInsertCall) RequestId(requestId string) *ResourcePoliciesInsertCall
- type ResourcePoliciesListCall
- func (c *ResourcePoliciesListCall) Context(ctx context.Context) *ResourcePoliciesListCall
- func (c *ResourcePoliciesListCall) Do(opts ...googleapi.CallOption) (*ResourcePolicyList, error)
- func (c *ResourcePoliciesListCall) Fields(s ...googleapi.Field) *ResourcePoliciesListCall
- func (c *ResourcePoliciesListCall) Filter(filter string) *ResourcePoliciesListCall
- func (c *ResourcePoliciesListCall) Header() http.Header
- func (c *ResourcePoliciesListCall) IfNoneMatch(entityTag string) *ResourcePoliciesListCall
- func (c *ResourcePoliciesListCall) MaxResults(maxResults int64) *ResourcePoliciesListCall
- func (c *ResourcePoliciesListCall) OrderBy(orderBy string) *ResourcePoliciesListCall
- func (c *ResourcePoliciesListCall) PageToken(pageToken string) *ResourcePoliciesListCall
- func (c *ResourcePoliciesListCall) Pages(ctx context.Context, f func(*ResourcePolicyList) error) error
- func (c *ResourcePoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ResourcePoliciesListCall
- type ResourcePoliciesPatchCall
- func (c *ResourcePoliciesPatchCall) Context(ctx context.Context) *ResourcePoliciesPatchCall
- func (c *ResourcePoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ResourcePoliciesPatchCall) Fields(s ...googleapi.Field) *ResourcePoliciesPatchCall
- func (c *ResourcePoliciesPatchCall) Header() http.Header
- func (c *ResourcePoliciesPatchCall) RequestId(requestId string) *ResourcePoliciesPatchCall
- func (c *ResourcePoliciesPatchCall) UpdateMask(updateMask string) *ResourcePoliciesPatchCall
- type ResourcePoliciesScopedList
- type ResourcePoliciesScopedListWarning
- type ResourcePoliciesScopedListWarningData
- type ResourcePoliciesService
- func (r *ResourcePoliciesService) AggregatedList(project string) *ResourcePoliciesAggregatedListCall
- func (r *ResourcePoliciesService) Delete(project string, region string, resourcePolicy string) *ResourcePoliciesDeleteCall
- func (r *ResourcePoliciesService) Get(project string, region string, resourcePolicy string) *ResourcePoliciesGetCall
- func (r *ResourcePoliciesService) GetIamPolicy(project string, region string, resource string) *ResourcePoliciesGetIamPolicyCall
- func (r *ResourcePoliciesService) Insert(project string, region string, resourcepolicy *ResourcePolicy) *ResourcePoliciesInsertCall
- func (r *ResourcePoliciesService) List(project string, region string) *ResourcePoliciesListCall
- func (r *ResourcePoliciesService) Patch(project string, region string, resourcePolicy string, ...) *ResourcePoliciesPatchCall
- func (r *ResourcePoliciesService) SetIamPolicy(project string, region string, resource string, ...) *ResourcePoliciesSetIamPolicyCall
- func (r *ResourcePoliciesService) TestIamPermissions(project string, region string, resource string, ...) *ResourcePoliciesTestIamPermissionsCall
- type ResourcePoliciesSetIamPolicyCall
- func (c *ResourcePoliciesSetIamPolicyCall) Context(ctx context.Context) *ResourcePoliciesSetIamPolicyCall
- func (c *ResourcePoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ResourcePoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ResourcePoliciesSetIamPolicyCall
- func (c *ResourcePoliciesSetIamPolicyCall) Header() http.Header
- type ResourcePoliciesTestIamPermissionsCall
- func (c *ResourcePoliciesTestIamPermissionsCall) Context(ctx context.Context) *ResourcePoliciesTestIamPermissionsCall
- func (c *ResourcePoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *ResourcePoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ResourcePoliciesTestIamPermissionsCall
- func (c *ResourcePoliciesTestIamPermissionsCall) Header() http.Header
- type ResourcePolicy
- type ResourcePolicyAggregatedList
- type ResourcePolicyAggregatedListWarning
- type ResourcePolicyAggregatedListWarningData
- type ResourcePolicyDailyCycle
- type ResourcePolicyDiskConsistencyGroupPolicy
- type ResourcePolicyGroupPlacementPolicy
- type ResourcePolicyHourlyCycle
- type ResourcePolicyInstanceSchedulePolicy
- type ResourcePolicyInstanceSchedulePolicySchedule
- type ResourcePolicyList
- type ResourcePolicyListWarning
- type ResourcePolicyListWarningData
- type ResourcePolicyResourceStatus
- type ResourcePolicyResourceStatusInstanceSchedulePolicyStatus
- type ResourcePolicySnapshotSchedulePolicy
- type ResourcePolicySnapshotSchedulePolicyRetentionPolicy
- type ResourcePolicySnapshotSchedulePolicySchedule
- type ResourcePolicySnapshotSchedulePolicySnapshotProperties
- type ResourcePolicyWeeklyCycle
- type ResourcePolicyWeeklyCycleDayOfWeek
- type ResourceStatus
- type ResourceStatusScheduling
- type Route
- type RouteAsPath
- type RouteList
- type RouteListWarning
- type RouteListWarningData
- type RouteWarnings
- type RouteWarningsData
- type Router
- type RouterAdvertisedIpRange
- type RouterAggregatedList
- type RouterAggregatedListWarning
- type RouterAggregatedListWarningData
- type RouterBgp
- type RouterBgpPeer
- type RouterBgpPeerBfd
- type RouterBgpPeerCustomLearnedIpRange
- type RouterInterface
- type RouterList
- type RouterListWarning
- type RouterListWarningData
- type RouterMd5AuthenticationKey
- type RouterNat
- type RouterNatLogConfig
- type RouterNatRule
- type RouterNatRuleAction
- type RouterNatSubnetworkToNat
- type RouterStatus
- type RouterStatusBgpPeerStatus
- type RouterStatusNatStatus
- type RouterStatusNatStatusNatRuleStatus
- type RouterStatusResponse
- type RoutersAggregatedListCall
- func (c *RoutersAggregatedListCall) Context(ctx context.Context) *RoutersAggregatedListCall
- func (c *RoutersAggregatedListCall) Do(opts ...googleapi.CallOption) (*RouterAggregatedList, error)
- func (c *RoutersAggregatedListCall) Fields(s ...googleapi.Field) *RoutersAggregatedListCall
- func (c *RoutersAggregatedListCall) Filter(filter string) *RoutersAggregatedListCall
- func (c *RoutersAggregatedListCall) Header() http.Header
- func (c *RoutersAggregatedListCall) IfNoneMatch(entityTag string) *RoutersAggregatedListCall
- func (c *RoutersAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *RoutersAggregatedListCall
- func (c *RoutersAggregatedListCall) MaxResults(maxResults int64) *RoutersAggregatedListCall
- func (c *RoutersAggregatedListCall) OrderBy(orderBy string) *RoutersAggregatedListCall
- func (c *RoutersAggregatedListCall) PageToken(pageToken string) *RoutersAggregatedListCall
- func (c *RoutersAggregatedListCall) Pages(ctx context.Context, f func(*RouterAggregatedList) error) error
- func (c *RoutersAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RoutersAggregatedListCall
- func (c *RoutersAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *RoutersAggregatedListCall
- type RoutersDeleteCall
- func (c *RoutersDeleteCall) Context(ctx context.Context) *RoutersDeleteCall
- func (c *RoutersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RoutersDeleteCall) Fields(s ...googleapi.Field) *RoutersDeleteCall
- func (c *RoutersDeleteCall) Header() http.Header
- func (c *RoutersDeleteCall) RequestId(requestId string) *RoutersDeleteCall
- type RoutersGetCall
- func (c *RoutersGetCall) Context(ctx context.Context) *RoutersGetCall
- func (c *RoutersGetCall) Do(opts ...googleapi.CallOption) (*Router, error)
- func (c *RoutersGetCall) Fields(s ...googleapi.Field) *RoutersGetCall
- func (c *RoutersGetCall) Header() http.Header
- func (c *RoutersGetCall) IfNoneMatch(entityTag string) *RoutersGetCall
- type RoutersGetNatIpInfoCall
- func (c *RoutersGetNatIpInfoCall) Context(ctx context.Context) *RoutersGetNatIpInfoCall
- func (c *RoutersGetNatIpInfoCall) Do(opts ...googleapi.CallOption) (*NatIpInfoResponse, error)
- func (c *RoutersGetNatIpInfoCall) Fields(s ...googleapi.Field) *RoutersGetNatIpInfoCall
- func (c *RoutersGetNatIpInfoCall) Header() http.Header
- func (c *RoutersGetNatIpInfoCall) IfNoneMatch(entityTag string) *RoutersGetNatIpInfoCall
- func (c *RoutersGetNatIpInfoCall) NatName(natName string) *RoutersGetNatIpInfoCall
- type RoutersGetNatMappingInfoCall
- func (c *RoutersGetNatMappingInfoCall) Context(ctx context.Context) *RoutersGetNatMappingInfoCall
- func (c *RoutersGetNatMappingInfoCall) Do(opts ...googleapi.CallOption) (*VmEndpointNatMappingsList, error)
- func (c *RoutersGetNatMappingInfoCall) Fields(s ...googleapi.Field) *RoutersGetNatMappingInfoCall
- func (c *RoutersGetNatMappingInfoCall) Filter(filter string) *RoutersGetNatMappingInfoCall
- func (c *RoutersGetNatMappingInfoCall) Header() http.Header
- func (c *RoutersGetNatMappingInfoCall) IfNoneMatch(entityTag string) *RoutersGetNatMappingInfoCall
- func (c *RoutersGetNatMappingInfoCall) MaxResults(maxResults int64) *RoutersGetNatMappingInfoCall
- func (c *RoutersGetNatMappingInfoCall) NatName(natName string) *RoutersGetNatMappingInfoCall
- func (c *RoutersGetNatMappingInfoCall) OrderBy(orderBy string) *RoutersGetNatMappingInfoCall
- func (c *RoutersGetNatMappingInfoCall) PageToken(pageToken string) *RoutersGetNatMappingInfoCall
- func (c *RoutersGetNatMappingInfoCall) Pages(ctx context.Context, f func(*VmEndpointNatMappingsList) error) error
- func (c *RoutersGetNatMappingInfoCall) ReturnPartialSuccess(returnPartialSuccess bool) *RoutersGetNatMappingInfoCall
- type RoutersGetRouterStatusCall
- func (c *RoutersGetRouterStatusCall) Context(ctx context.Context) *RoutersGetRouterStatusCall
- func (c *RoutersGetRouterStatusCall) Do(opts ...googleapi.CallOption) (*RouterStatusResponse, error)
- func (c *RoutersGetRouterStatusCall) Fields(s ...googleapi.Field) *RoutersGetRouterStatusCall
- func (c *RoutersGetRouterStatusCall) Header() http.Header
- func (c *RoutersGetRouterStatusCall) IfNoneMatch(entityTag string) *RoutersGetRouterStatusCall
- type RoutersInsertCall
- func (c *RoutersInsertCall) Context(ctx context.Context) *RoutersInsertCall
- func (c *RoutersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RoutersInsertCall) Fields(s ...googleapi.Field) *RoutersInsertCall
- func (c *RoutersInsertCall) Header() http.Header
- func (c *RoutersInsertCall) RequestId(requestId string) *RoutersInsertCall
- type RoutersListCall
- func (c *RoutersListCall) Context(ctx context.Context) *RoutersListCall
- func (c *RoutersListCall) Do(opts ...googleapi.CallOption) (*RouterList, error)
- func (c *RoutersListCall) Fields(s ...googleapi.Field) *RoutersListCall
- func (c *RoutersListCall) Filter(filter string) *RoutersListCall
- func (c *RoutersListCall) Header() http.Header
- func (c *RoutersListCall) IfNoneMatch(entityTag string) *RoutersListCall
- func (c *RoutersListCall) MaxResults(maxResults int64) *RoutersListCall
- func (c *RoutersListCall) OrderBy(orderBy string) *RoutersListCall
- func (c *RoutersListCall) PageToken(pageToken string) *RoutersListCall
- func (c *RoutersListCall) Pages(ctx context.Context, f func(*RouterList) error) error
- func (c *RoutersListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RoutersListCall
- type RoutersPatchCall
- func (c *RoutersPatchCall) Context(ctx context.Context) *RoutersPatchCall
- func (c *RoutersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RoutersPatchCall) Fields(s ...googleapi.Field) *RoutersPatchCall
- func (c *RoutersPatchCall) Header() http.Header
- func (c *RoutersPatchCall) RequestId(requestId string) *RoutersPatchCall
- type RoutersPreviewCall
- func (c *RoutersPreviewCall) Context(ctx context.Context) *RoutersPreviewCall
- func (c *RoutersPreviewCall) Do(opts ...googleapi.CallOption) (*RoutersPreviewResponse, error)
- func (c *RoutersPreviewCall) Fields(s ...googleapi.Field) *RoutersPreviewCall
- func (c *RoutersPreviewCall) Header() http.Header
- type RoutersPreviewResponse
- type RoutersScopedList
- type RoutersScopedListWarning
- type RoutersScopedListWarningData
- type RoutersService
- func (r *RoutersService) AggregatedList(project string) *RoutersAggregatedListCall
- func (r *RoutersService) Delete(project string, region string, router string) *RoutersDeleteCall
- func (r *RoutersService) Get(project string, region string, router string) *RoutersGetCall
- func (r *RoutersService) GetNatIpInfo(project string, region string, router string) *RoutersGetNatIpInfoCall
- func (r *RoutersService) GetNatMappingInfo(project string, region string, router string) *RoutersGetNatMappingInfoCall
- func (r *RoutersService) GetRouterStatus(project string, region string, router string) *RoutersGetRouterStatusCall
- func (r *RoutersService) Insert(project string, region string, router *Router) *RoutersInsertCall
- func (r *RoutersService) List(project string, region string) *RoutersListCall
- func (r *RoutersService) Patch(project string, region string, router string, router2 *Router) *RoutersPatchCall
- func (r *RoutersService) Preview(project string, region string, router string, router2 *Router) *RoutersPreviewCall
- func (r *RoutersService) Update(project string, region string, router string, router2 *Router) *RoutersUpdateCall
- type RoutersUpdateCall
- func (c *RoutersUpdateCall) Context(ctx context.Context) *RoutersUpdateCall
- func (c *RoutersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RoutersUpdateCall) Fields(s ...googleapi.Field) *RoutersUpdateCall
- func (c *RoutersUpdateCall) Header() http.Header
- func (c *RoutersUpdateCall) RequestId(requestId string) *RoutersUpdateCall
- type RoutesDeleteCall
- func (c *RoutesDeleteCall) Context(ctx context.Context) *RoutesDeleteCall
- func (c *RoutesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RoutesDeleteCall) Fields(s ...googleapi.Field) *RoutesDeleteCall
- func (c *RoutesDeleteCall) Header() http.Header
- func (c *RoutesDeleteCall) RequestId(requestId string) *RoutesDeleteCall
- type RoutesGetCall
- func (c *RoutesGetCall) Context(ctx context.Context) *RoutesGetCall
- func (c *RoutesGetCall) Do(opts ...googleapi.CallOption) (*Route, error)
- func (c *RoutesGetCall) Fields(s ...googleapi.Field) *RoutesGetCall
- func (c *RoutesGetCall) Header() http.Header
- func (c *RoutesGetCall) IfNoneMatch(entityTag string) *RoutesGetCall
- type RoutesInsertCall
- func (c *RoutesInsertCall) Context(ctx context.Context) *RoutesInsertCall
- func (c *RoutesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RoutesInsertCall) Fields(s ...googleapi.Field) *RoutesInsertCall
- func (c *RoutesInsertCall) Header() http.Header
- func (c *RoutesInsertCall) RequestId(requestId string) *RoutesInsertCall
- type RoutesListCall
- func (c *RoutesListCall) Context(ctx context.Context) *RoutesListCall
- func (c *RoutesListCall) Do(opts ...googleapi.CallOption) (*RouteList, error)
- func (c *RoutesListCall) Fields(s ...googleapi.Field) *RoutesListCall
- func (c *RoutesListCall) Filter(filter string) *RoutesListCall
- func (c *RoutesListCall) Header() http.Header
- func (c *RoutesListCall) IfNoneMatch(entityTag string) *RoutesListCall
- func (c *RoutesListCall) MaxResults(maxResults int64) *RoutesListCall
- func (c *RoutesListCall) OrderBy(orderBy string) *RoutesListCall
- func (c *RoutesListCall) PageToken(pageToken string) *RoutesListCall
- func (c *RoutesListCall) Pages(ctx context.Context, f func(*RouteList) error) error
- func (c *RoutesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RoutesListCall
- type RoutesService
- type Rule
- type SSLHealthCheck
- type SavedAttachedDisk
- type SavedDisk
- type ScalingScheduleStatus
- type Scheduling
- type SchedulingNodeAffinity
- type SchedulingOnInstanceStopAction
- type Screenshot
- type SecurityPoliciesAddRuleCall
- func (c *SecurityPoliciesAddRuleCall) Context(ctx context.Context) *SecurityPoliciesAddRuleCall
- func (c *SecurityPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SecurityPoliciesAddRuleCall) Fields(s ...googleapi.Field) *SecurityPoliciesAddRuleCall
- func (c *SecurityPoliciesAddRuleCall) Header() http.Header
- func (c *SecurityPoliciesAddRuleCall) ValidateOnly(validateOnly bool) *SecurityPoliciesAddRuleCall
- type SecurityPoliciesAggregatedList
- type SecurityPoliciesAggregatedListCall
- func (c *SecurityPoliciesAggregatedListCall) Context(ctx context.Context) *SecurityPoliciesAggregatedListCall
- func (c *SecurityPoliciesAggregatedListCall) Do(opts ...googleapi.CallOption) (*SecurityPoliciesAggregatedList, error)
- func (c *SecurityPoliciesAggregatedListCall) Fields(s ...googleapi.Field) *SecurityPoliciesAggregatedListCall
- func (c *SecurityPoliciesAggregatedListCall) Filter(filter string) *SecurityPoliciesAggregatedListCall
- func (c *SecurityPoliciesAggregatedListCall) Header() http.Header
- func (c *SecurityPoliciesAggregatedListCall) IfNoneMatch(entityTag string) *SecurityPoliciesAggregatedListCall
- func (c *SecurityPoliciesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *SecurityPoliciesAggregatedListCall
- func (c *SecurityPoliciesAggregatedListCall) MaxResults(maxResults int64) *SecurityPoliciesAggregatedListCall
- func (c *SecurityPoliciesAggregatedListCall) OrderBy(orderBy string) *SecurityPoliciesAggregatedListCall
- func (c *SecurityPoliciesAggregatedListCall) PageToken(pageToken string) *SecurityPoliciesAggregatedListCall
- func (c *SecurityPoliciesAggregatedListCall) Pages(ctx context.Context, f func(*SecurityPoliciesAggregatedList) error) error
- func (c *SecurityPoliciesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SecurityPoliciesAggregatedListCall
- func (c *SecurityPoliciesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *SecurityPoliciesAggregatedListCall
- type SecurityPoliciesAggregatedListWarning
- type SecurityPoliciesAggregatedListWarningData
- type SecurityPoliciesDeleteCall
- func (c *SecurityPoliciesDeleteCall) Context(ctx context.Context) *SecurityPoliciesDeleteCall
- func (c *SecurityPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SecurityPoliciesDeleteCall) Fields(s ...googleapi.Field) *SecurityPoliciesDeleteCall
- func (c *SecurityPoliciesDeleteCall) Header() http.Header
- func (c *SecurityPoliciesDeleteCall) RequestId(requestId string) *SecurityPoliciesDeleteCall
- type SecurityPoliciesGetCall
- func (c *SecurityPoliciesGetCall) Context(ctx context.Context) *SecurityPoliciesGetCall
- func (c *SecurityPoliciesGetCall) Do(opts ...googleapi.CallOption) (*SecurityPolicy, error)
- func (c *SecurityPoliciesGetCall) Fields(s ...googleapi.Field) *SecurityPoliciesGetCall
- func (c *SecurityPoliciesGetCall) Header() http.Header
- func (c *SecurityPoliciesGetCall) IfNoneMatch(entityTag string) *SecurityPoliciesGetCall
- type SecurityPoliciesGetRuleCall
- func (c *SecurityPoliciesGetRuleCall) Context(ctx context.Context) *SecurityPoliciesGetRuleCall
- func (c *SecurityPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyRule, error)
- func (c *SecurityPoliciesGetRuleCall) Fields(s ...googleapi.Field) *SecurityPoliciesGetRuleCall
- func (c *SecurityPoliciesGetRuleCall) Header() http.Header
- func (c *SecurityPoliciesGetRuleCall) IfNoneMatch(entityTag string) *SecurityPoliciesGetRuleCall
- func (c *SecurityPoliciesGetRuleCall) Priority(priority int64) *SecurityPoliciesGetRuleCall
- type SecurityPoliciesInsertCall
- func (c *SecurityPoliciesInsertCall) Context(ctx context.Context) *SecurityPoliciesInsertCall
- func (c *SecurityPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SecurityPoliciesInsertCall) Fields(s ...googleapi.Field) *SecurityPoliciesInsertCall
- func (c *SecurityPoliciesInsertCall) Header() http.Header
- func (c *SecurityPoliciesInsertCall) RequestId(requestId string) *SecurityPoliciesInsertCall
- func (c *SecurityPoliciesInsertCall) ValidateOnly(validateOnly bool) *SecurityPoliciesInsertCall
- type SecurityPoliciesListCall
- func (c *SecurityPoliciesListCall) Context(ctx context.Context) *SecurityPoliciesListCall
- func (c *SecurityPoliciesListCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyList, error)
- func (c *SecurityPoliciesListCall) Fields(s ...googleapi.Field) *SecurityPoliciesListCall
- func (c *SecurityPoliciesListCall) Filter(filter string) *SecurityPoliciesListCall
- func (c *SecurityPoliciesListCall) Header() http.Header
- func (c *SecurityPoliciesListCall) IfNoneMatch(entityTag string) *SecurityPoliciesListCall
- func (c *SecurityPoliciesListCall) MaxResults(maxResults int64) *SecurityPoliciesListCall
- func (c *SecurityPoliciesListCall) OrderBy(orderBy string) *SecurityPoliciesListCall
- func (c *SecurityPoliciesListCall) PageToken(pageToken string) *SecurityPoliciesListCall
- func (c *SecurityPoliciesListCall) Pages(ctx context.Context, f func(*SecurityPolicyList) error) error
- func (c *SecurityPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SecurityPoliciesListCall
- type SecurityPoliciesListPreconfiguredExpressionSetsCall
- func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Context(ctx context.Context) *SecurityPoliciesListPreconfiguredExpressionSetsCall
- func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Do(opts ...googleapi.CallOption) (*SecurityPoliciesListPreconfiguredExpressionSetsResponse, error)
- func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Fields(s ...googleapi.Field) *SecurityPoliciesListPreconfiguredExpressionSetsCall
- func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Filter(filter string) *SecurityPoliciesListPreconfiguredExpressionSetsCall
- func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Header() http.Header
- func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) IfNoneMatch(entityTag string) *SecurityPoliciesListPreconfiguredExpressionSetsCall
- func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) MaxResults(maxResults int64) *SecurityPoliciesListPreconfiguredExpressionSetsCall
- func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) OrderBy(orderBy string) *SecurityPoliciesListPreconfiguredExpressionSetsCall
- func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) PageToken(pageToken string) *SecurityPoliciesListPreconfiguredExpressionSetsCall
- func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) ReturnPartialSuccess(returnPartialSuccess bool) *SecurityPoliciesListPreconfiguredExpressionSetsCall
- type SecurityPoliciesListPreconfiguredExpressionSetsResponse
- type SecurityPoliciesPatchCall
- func (c *SecurityPoliciesPatchCall) Context(ctx context.Context) *SecurityPoliciesPatchCall
- func (c *SecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SecurityPoliciesPatchCall) Fields(s ...googleapi.Field) *SecurityPoliciesPatchCall
- func (c *SecurityPoliciesPatchCall) Header() http.Header
- func (c *SecurityPoliciesPatchCall) RequestId(requestId string) *SecurityPoliciesPatchCall
- func (c *SecurityPoliciesPatchCall) UpdateMask(updateMask string) *SecurityPoliciesPatchCall
- type SecurityPoliciesPatchRuleCall
- func (c *SecurityPoliciesPatchRuleCall) Context(ctx context.Context) *SecurityPoliciesPatchRuleCall
- func (c *SecurityPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SecurityPoliciesPatchRuleCall) Fields(s ...googleapi.Field) *SecurityPoliciesPatchRuleCall
- func (c *SecurityPoliciesPatchRuleCall) Header() http.Header
- func (c *SecurityPoliciesPatchRuleCall) Priority(priority int64) *SecurityPoliciesPatchRuleCall
- func (c *SecurityPoliciesPatchRuleCall) UpdateMask(updateMask string) *SecurityPoliciesPatchRuleCall
- func (c *SecurityPoliciesPatchRuleCall) ValidateOnly(validateOnly bool) *SecurityPoliciesPatchRuleCall
- type SecurityPoliciesRemoveRuleCall
- func (c *SecurityPoliciesRemoveRuleCall) Context(ctx context.Context) *SecurityPoliciesRemoveRuleCall
- func (c *SecurityPoliciesRemoveRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SecurityPoliciesRemoveRuleCall) Fields(s ...googleapi.Field) *SecurityPoliciesRemoveRuleCall
- func (c *SecurityPoliciesRemoveRuleCall) Header() http.Header
- func (c *SecurityPoliciesRemoveRuleCall) Priority(priority int64) *SecurityPoliciesRemoveRuleCall
- type SecurityPoliciesScopedList
- type SecurityPoliciesScopedListWarning
- type SecurityPoliciesScopedListWarningData
- type SecurityPoliciesService
- func (r *SecurityPoliciesService) AddRule(project string, securityPolicy string, securitypolicyrule *SecurityPolicyRule) *SecurityPoliciesAddRuleCall
- func (r *SecurityPoliciesService) AggregatedList(project string) *SecurityPoliciesAggregatedListCall
- func (r *SecurityPoliciesService) Delete(project string, securityPolicy string) *SecurityPoliciesDeleteCall
- func (r *SecurityPoliciesService) Get(project string, securityPolicy string) *SecurityPoliciesGetCall
- func (r *SecurityPoliciesService) GetRule(project string, securityPolicy string) *SecurityPoliciesGetRuleCall
- func (r *SecurityPoliciesService) Insert(project string, securitypolicy *SecurityPolicy) *SecurityPoliciesInsertCall
- func (r *SecurityPoliciesService) List(project string) *SecurityPoliciesListCall
- func (r *SecurityPoliciesService) ListPreconfiguredExpressionSets(project string) *SecurityPoliciesListPreconfiguredExpressionSetsCall
- func (r *SecurityPoliciesService) Patch(project string, securityPolicy string, securitypolicy *SecurityPolicy) *SecurityPoliciesPatchCall
- func (r *SecurityPoliciesService) PatchRule(project string, securityPolicy string, securitypolicyrule *SecurityPolicyRule) *SecurityPoliciesPatchRuleCall
- func (r *SecurityPoliciesService) RemoveRule(project string, securityPolicy string) *SecurityPoliciesRemoveRuleCall
- func (r *SecurityPoliciesService) SetLabels(project string, resource string, ...) *SecurityPoliciesSetLabelsCall
- type SecurityPoliciesSetLabelsCall
- func (c *SecurityPoliciesSetLabelsCall) Context(ctx context.Context) *SecurityPoliciesSetLabelsCall
- func (c *SecurityPoliciesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SecurityPoliciesSetLabelsCall) Fields(s ...googleapi.Field) *SecurityPoliciesSetLabelsCall
- func (c *SecurityPoliciesSetLabelsCall) Header() http.Header
- type SecurityPoliciesWafConfig
- type SecurityPolicy
- type SecurityPolicyAdaptiveProtectionConfig
- type SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig
- type SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
- type SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig
- type SecurityPolicyAdvancedOptionsConfig
- type SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
- type SecurityPolicyDdosProtectionConfig
- type SecurityPolicyList
- type SecurityPolicyListWarning
- type SecurityPolicyListWarningData
- type SecurityPolicyRecaptchaOptionsConfig
- type SecurityPolicyReference
- type SecurityPolicyRule
- type SecurityPolicyRuleHttpHeaderAction
- type SecurityPolicyRuleHttpHeaderActionHttpHeaderOption
- type SecurityPolicyRuleMatcher
- type SecurityPolicyRuleMatcherConfig
- type SecurityPolicyRuleMatcherExprOptions
- type SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
- type SecurityPolicyRuleNetworkMatcher
- type SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch
- type SecurityPolicyRulePreconfiguredWafConfig
- type SecurityPolicyRulePreconfiguredWafConfigExclusion
- type SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
- type SecurityPolicyRuleRateLimitOptions
- type SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig
- type SecurityPolicyRuleRateLimitOptionsThreshold
- type SecurityPolicyRuleRedirectOptions
- type SecurityPolicyUserDefinedField
- type SecuritySettings
- type SerialPortOutput
- type ServerBinding
- type Service
- type ServiceAccount
- type ServiceAttachment
- type ServiceAttachmentAggregatedList
- type ServiceAttachmentAggregatedListWarning
- type ServiceAttachmentAggregatedListWarningData
- type ServiceAttachmentConnectedEndpoint
- type ServiceAttachmentConsumerProjectLimit
- type ServiceAttachmentList
- type ServiceAttachmentListWarning
- type ServiceAttachmentListWarningData
- type ServiceAttachmentsAggregatedListCall
- func (c *ServiceAttachmentsAggregatedListCall) Context(ctx context.Context) *ServiceAttachmentsAggregatedListCall
- func (c *ServiceAttachmentsAggregatedListCall) Do(opts ...googleapi.CallOption) (*ServiceAttachmentAggregatedList, error)
- func (c *ServiceAttachmentsAggregatedListCall) Fields(s ...googleapi.Field) *ServiceAttachmentsAggregatedListCall
- func (c *ServiceAttachmentsAggregatedListCall) Filter(filter string) *ServiceAttachmentsAggregatedListCall
- func (c *ServiceAttachmentsAggregatedListCall) Header() http.Header
- func (c *ServiceAttachmentsAggregatedListCall) IfNoneMatch(entityTag string) *ServiceAttachmentsAggregatedListCall
- func (c *ServiceAttachmentsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *ServiceAttachmentsAggregatedListCall
- func (c *ServiceAttachmentsAggregatedListCall) MaxResults(maxResults int64) *ServiceAttachmentsAggregatedListCall
- func (c *ServiceAttachmentsAggregatedListCall) OrderBy(orderBy string) *ServiceAttachmentsAggregatedListCall
- func (c *ServiceAttachmentsAggregatedListCall) PageToken(pageToken string) *ServiceAttachmentsAggregatedListCall
- func (c *ServiceAttachmentsAggregatedListCall) Pages(ctx context.Context, f func(*ServiceAttachmentAggregatedList) error) error
- func (c *ServiceAttachmentsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ServiceAttachmentsAggregatedListCall
- func (c *ServiceAttachmentsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *ServiceAttachmentsAggregatedListCall
- type ServiceAttachmentsDeleteCall
- func (c *ServiceAttachmentsDeleteCall) Context(ctx context.Context) *ServiceAttachmentsDeleteCall
- func (c *ServiceAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ServiceAttachmentsDeleteCall) Fields(s ...googleapi.Field) *ServiceAttachmentsDeleteCall
- func (c *ServiceAttachmentsDeleteCall) Header() http.Header
- func (c *ServiceAttachmentsDeleteCall) RequestId(requestId string) *ServiceAttachmentsDeleteCall
- type ServiceAttachmentsGetCall
- func (c *ServiceAttachmentsGetCall) Context(ctx context.Context) *ServiceAttachmentsGetCall
- func (c *ServiceAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*ServiceAttachment, error)
- func (c *ServiceAttachmentsGetCall) Fields(s ...googleapi.Field) *ServiceAttachmentsGetCall
- func (c *ServiceAttachmentsGetCall) Header() http.Header
- func (c *ServiceAttachmentsGetCall) IfNoneMatch(entityTag string) *ServiceAttachmentsGetCall
- type ServiceAttachmentsGetIamPolicyCall
- func (c *ServiceAttachmentsGetIamPolicyCall) Context(ctx context.Context) *ServiceAttachmentsGetIamPolicyCall
- func (c *ServiceAttachmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ServiceAttachmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *ServiceAttachmentsGetIamPolicyCall
- func (c *ServiceAttachmentsGetIamPolicyCall) Header() http.Header
- func (c *ServiceAttachmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *ServiceAttachmentsGetIamPolicyCall
- func (c *ServiceAttachmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ServiceAttachmentsGetIamPolicyCall
- type ServiceAttachmentsInsertCall
- func (c *ServiceAttachmentsInsertCall) Context(ctx context.Context) *ServiceAttachmentsInsertCall
- func (c *ServiceAttachmentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ServiceAttachmentsInsertCall) Fields(s ...googleapi.Field) *ServiceAttachmentsInsertCall
- func (c *ServiceAttachmentsInsertCall) Header() http.Header
- func (c *ServiceAttachmentsInsertCall) RequestId(requestId string) *ServiceAttachmentsInsertCall
- type ServiceAttachmentsListCall
- func (c *ServiceAttachmentsListCall) Context(ctx context.Context) *ServiceAttachmentsListCall
- func (c *ServiceAttachmentsListCall) Do(opts ...googleapi.CallOption) (*ServiceAttachmentList, error)
- func (c *ServiceAttachmentsListCall) Fields(s ...googleapi.Field) *ServiceAttachmentsListCall
- func (c *ServiceAttachmentsListCall) Filter(filter string) *ServiceAttachmentsListCall
- func (c *ServiceAttachmentsListCall) Header() http.Header
- func (c *ServiceAttachmentsListCall) IfNoneMatch(entityTag string) *ServiceAttachmentsListCall
- func (c *ServiceAttachmentsListCall) MaxResults(maxResults int64) *ServiceAttachmentsListCall
- func (c *ServiceAttachmentsListCall) OrderBy(orderBy string) *ServiceAttachmentsListCall
- func (c *ServiceAttachmentsListCall) PageToken(pageToken string) *ServiceAttachmentsListCall
- func (c *ServiceAttachmentsListCall) Pages(ctx context.Context, f func(*ServiceAttachmentList) error) error
- func (c *ServiceAttachmentsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ServiceAttachmentsListCall
- type ServiceAttachmentsPatchCall
- func (c *ServiceAttachmentsPatchCall) Context(ctx context.Context) *ServiceAttachmentsPatchCall
- func (c *ServiceAttachmentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ServiceAttachmentsPatchCall) Fields(s ...googleapi.Field) *ServiceAttachmentsPatchCall
- func (c *ServiceAttachmentsPatchCall) Header() http.Header
- func (c *ServiceAttachmentsPatchCall) RequestId(requestId string) *ServiceAttachmentsPatchCall
- type ServiceAttachmentsScopedList
- type ServiceAttachmentsScopedListWarning
- type ServiceAttachmentsScopedListWarningData
- type ServiceAttachmentsService
- func (r *ServiceAttachmentsService) AggregatedList(project string) *ServiceAttachmentsAggregatedListCall
- func (r *ServiceAttachmentsService) Delete(project string, region string, serviceAttachment string) *ServiceAttachmentsDeleteCall
- func (r *ServiceAttachmentsService) Get(project string, region string, serviceAttachment string) *ServiceAttachmentsGetCall
- func (r *ServiceAttachmentsService) GetIamPolicy(project string, region string, resource string) *ServiceAttachmentsGetIamPolicyCall
- func (r *ServiceAttachmentsService) Insert(project string, region string, serviceattachment *ServiceAttachment) *ServiceAttachmentsInsertCall
- func (r *ServiceAttachmentsService) List(project string, region string) *ServiceAttachmentsListCall
- func (r *ServiceAttachmentsService) Patch(project string, region string, serviceAttachment string, ...) *ServiceAttachmentsPatchCall
- func (r *ServiceAttachmentsService) SetIamPolicy(project string, region string, resource string, ...) *ServiceAttachmentsSetIamPolicyCall
- func (r *ServiceAttachmentsService) TestIamPermissions(project string, region string, resource string, ...) *ServiceAttachmentsTestIamPermissionsCall
- type ServiceAttachmentsSetIamPolicyCall
- func (c *ServiceAttachmentsSetIamPolicyCall) Context(ctx context.Context) *ServiceAttachmentsSetIamPolicyCall
- func (c *ServiceAttachmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ServiceAttachmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *ServiceAttachmentsSetIamPolicyCall
- func (c *ServiceAttachmentsSetIamPolicyCall) Header() http.Header
- type ServiceAttachmentsTestIamPermissionsCall
- func (c *ServiceAttachmentsTestIamPermissionsCall) Context(ctx context.Context) *ServiceAttachmentsTestIamPermissionsCall
- func (c *ServiceAttachmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *ServiceAttachmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ServiceAttachmentsTestIamPermissionsCall
- func (c *ServiceAttachmentsTestIamPermissionsCall) Header() http.Header
- type SetCommonInstanceMetadataOperationMetadata
- type SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo
- type ShareSettings
- type ShareSettingsProjectConfig
- type ShieldedInstanceConfig
- type ShieldedInstanceIdentity
- type ShieldedInstanceIdentityEntry
- type ShieldedInstanceIntegrityPolicy
- type SignedUrlKey
- type Snapshot
- type SnapshotList
- type SnapshotListWarning
- type SnapshotListWarningData
- type SnapshotSettings
- type SnapshotSettingsGetCall
- func (c *SnapshotSettingsGetCall) Context(ctx context.Context) *SnapshotSettingsGetCall
- func (c *SnapshotSettingsGetCall) Do(opts ...googleapi.CallOption) (*SnapshotSettings, error)
- func (c *SnapshotSettingsGetCall) Fields(s ...googleapi.Field) *SnapshotSettingsGetCall
- func (c *SnapshotSettingsGetCall) Header() http.Header
- func (c *SnapshotSettingsGetCall) IfNoneMatch(entityTag string) *SnapshotSettingsGetCall
- type SnapshotSettingsPatchCall
- func (c *SnapshotSettingsPatchCall) Context(ctx context.Context) *SnapshotSettingsPatchCall
- func (c *SnapshotSettingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SnapshotSettingsPatchCall) Fields(s ...googleapi.Field) *SnapshotSettingsPatchCall
- func (c *SnapshotSettingsPatchCall) Header() http.Header
- func (c *SnapshotSettingsPatchCall) RequestId(requestId string) *SnapshotSettingsPatchCall
- func (c *SnapshotSettingsPatchCall) UpdateMask(updateMask string) *SnapshotSettingsPatchCall
- type SnapshotSettingsService
- type SnapshotSettingsStorageLocationSettings
- type SnapshotSettingsStorageLocationSettingsStorageLocationPreference
- type SnapshotsDeleteCall
- func (c *SnapshotsDeleteCall) Context(ctx context.Context) *SnapshotsDeleteCall
- func (c *SnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SnapshotsDeleteCall) Fields(s ...googleapi.Field) *SnapshotsDeleteCall
- func (c *SnapshotsDeleteCall) Header() http.Header
- func (c *SnapshotsDeleteCall) RequestId(requestId string) *SnapshotsDeleteCall
- type SnapshotsGetCall
- func (c *SnapshotsGetCall) Context(ctx context.Context) *SnapshotsGetCall
- func (c *SnapshotsGetCall) Do(opts ...googleapi.CallOption) (*Snapshot, error)
- func (c *SnapshotsGetCall) Fields(s ...googleapi.Field) *SnapshotsGetCall
- func (c *SnapshotsGetCall) Header() http.Header
- func (c *SnapshotsGetCall) IfNoneMatch(entityTag string) *SnapshotsGetCall
- type SnapshotsGetIamPolicyCall
- func (c *SnapshotsGetIamPolicyCall) Context(ctx context.Context) *SnapshotsGetIamPolicyCall
- func (c *SnapshotsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *SnapshotsGetIamPolicyCall) Fields(s ...googleapi.Field) *SnapshotsGetIamPolicyCall
- func (c *SnapshotsGetIamPolicyCall) Header() http.Header
- func (c *SnapshotsGetIamPolicyCall) IfNoneMatch(entityTag string) *SnapshotsGetIamPolicyCall
- func (c *SnapshotsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *SnapshotsGetIamPolicyCall
- type SnapshotsInsertCall
- func (c *SnapshotsInsertCall) Context(ctx context.Context) *SnapshotsInsertCall
- func (c *SnapshotsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SnapshotsInsertCall) Fields(s ...googleapi.Field) *SnapshotsInsertCall
- func (c *SnapshotsInsertCall) Header() http.Header
- func (c *SnapshotsInsertCall) RequestId(requestId string) *SnapshotsInsertCall
- type SnapshotsListCall
- func (c *SnapshotsListCall) Context(ctx context.Context) *SnapshotsListCall
- func (c *SnapshotsListCall) Do(opts ...googleapi.CallOption) (*SnapshotList, error)
- func (c *SnapshotsListCall) Fields(s ...googleapi.Field) *SnapshotsListCall
- func (c *SnapshotsListCall) Filter(filter string) *SnapshotsListCall
- func (c *SnapshotsListCall) Header() http.Header
- func (c *SnapshotsListCall) IfNoneMatch(entityTag string) *SnapshotsListCall
- func (c *SnapshotsListCall) MaxResults(maxResults int64) *SnapshotsListCall
- func (c *SnapshotsListCall) OrderBy(orderBy string) *SnapshotsListCall
- func (c *SnapshotsListCall) PageToken(pageToken string) *SnapshotsListCall
- func (c *SnapshotsListCall) Pages(ctx context.Context, f func(*SnapshotList) error) error
- func (c *SnapshotsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SnapshotsListCall
- type SnapshotsService
- func (r *SnapshotsService) Delete(project string, snapshot string) *SnapshotsDeleteCall
- func (r *SnapshotsService) Get(project string, snapshot string) *SnapshotsGetCall
- func (r *SnapshotsService) GetIamPolicy(project string, resource string) *SnapshotsGetIamPolicyCall
- func (r *SnapshotsService) Insert(project string, snapshot *Snapshot) *SnapshotsInsertCall
- func (r *SnapshotsService) List(project string) *SnapshotsListCall
- func (r *SnapshotsService) SetIamPolicy(project string, resource string, ...) *SnapshotsSetIamPolicyCall
- func (r *SnapshotsService) SetLabels(project string, resource string, ...) *SnapshotsSetLabelsCall
- func (r *SnapshotsService) TestIamPermissions(project string, resource string, ...) *SnapshotsTestIamPermissionsCall
- type SnapshotsSetIamPolicyCall
- func (c *SnapshotsSetIamPolicyCall) Context(ctx context.Context) *SnapshotsSetIamPolicyCall
- func (c *SnapshotsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *SnapshotsSetIamPolicyCall) Fields(s ...googleapi.Field) *SnapshotsSetIamPolicyCall
- func (c *SnapshotsSetIamPolicyCall) Header() http.Header
- type SnapshotsSetLabelsCall
- func (c *SnapshotsSetLabelsCall) Context(ctx context.Context) *SnapshotsSetLabelsCall
- func (c *SnapshotsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SnapshotsSetLabelsCall) Fields(s ...googleapi.Field) *SnapshotsSetLabelsCall
- func (c *SnapshotsSetLabelsCall) Header() http.Header
- type SnapshotsTestIamPermissionsCall
- func (c *SnapshotsTestIamPermissionsCall) Context(ctx context.Context) *SnapshotsTestIamPermissionsCall
- func (c *SnapshotsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *SnapshotsTestIamPermissionsCall) Fields(s ...googleapi.Field) *SnapshotsTestIamPermissionsCall
- func (c *SnapshotsTestIamPermissionsCall) Header() http.Header
- type SourceDiskEncryptionKey
- type SourceInstanceParams
- type SourceInstanceProperties
- type SslCertificate
- type SslCertificateAggregatedList
- type SslCertificateAggregatedListWarning
- type SslCertificateAggregatedListWarningData
- type SslCertificateList
- type SslCertificateListWarning
- type SslCertificateListWarningData
- type SslCertificateManagedSslCertificate
- type SslCertificateSelfManagedSslCertificate
- type SslCertificatesAggregatedListCall
- func (c *SslCertificatesAggregatedListCall) Context(ctx context.Context) *SslCertificatesAggregatedListCall
- func (c *SslCertificatesAggregatedListCall) Do(opts ...googleapi.CallOption) (*SslCertificateAggregatedList, error)
- func (c *SslCertificatesAggregatedListCall) Fields(s ...googleapi.Field) *SslCertificatesAggregatedListCall
- func (c *SslCertificatesAggregatedListCall) Filter(filter string) *SslCertificatesAggregatedListCall
- func (c *SslCertificatesAggregatedListCall) Header() http.Header
- func (c *SslCertificatesAggregatedListCall) IfNoneMatch(entityTag string) *SslCertificatesAggregatedListCall
- func (c *SslCertificatesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *SslCertificatesAggregatedListCall
- func (c *SslCertificatesAggregatedListCall) MaxResults(maxResults int64) *SslCertificatesAggregatedListCall
- func (c *SslCertificatesAggregatedListCall) OrderBy(orderBy string) *SslCertificatesAggregatedListCall
- func (c *SslCertificatesAggregatedListCall) PageToken(pageToken string) *SslCertificatesAggregatedListCall
- func (c *SslCertificatesAggregatedListCall) Pages(ctx context.Context, f func(*SslCertificateAggregatedList) error) error
- func (c *SslCertificatesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SslCertificatesAggregatedListCall
- func (c *SslCertificatesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *SslCertificatesAggregatedListCall
- type SslCertificatesDeleteCall
- func (c *SslCertificatesDeleteCall) Context(ctx context.Context) *SslCertificatesDeleteCall
- func (c *SslCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SslCertificatesDeleteCall) Fields(s ...googleapi.Field) *SslCertificatesDeleteCall
- func (c *SslCertificatesDeleteCall) Header() http.Header
- func (c *SslCertificatesDeleteCall) RequestId(requestId string) *SslCertificatesDeleteCall
- type SslCertificatesGetCall
- func (c *SslCertificatesGetCall) Context(ctx context.Context) *SslCertificatesGetCall
- func (c *SslCertificatesGetCall) Do(opts ...googleapi.CallOption) (*SslCertificate, error)
- func (c *SslCertificatesGetCall) Fields(s ...googleapi.Field) *SslCertificatesGetCall
- func (c *SslCertificatesGetCall) Header() http.Header
- func (c *SslCertificatesGetCall) IfNoneMatch(entityTag string) *SslCertificatesGetCall
- type SslCertificatesInsertCall
- func (c *SslCertificatesInsertCall) Context(ctx context.Context) *SslCertificatesInsertCall
- func (c *SslCertificatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SslCertificatesInsertCall) Fields(s ...googleapi.Field) *SslCertificatesInsertCall
- func (c *SslCertificatesInsertCall) Header() http.Header
- func (c *SslCertificatesInsertCall) RequestId(requestId string) *SslCertificatesInsertCall
- type SslCertificatesListCall
- func (c *SslCertificatesListCall) Context(ctx context.Context) *SslCertificatesListCall
- func (c *SslCertificatesListCall) Do(opts ...googleapi.CallOption) (*SslCertificateList, error)
- func (c *SslCertificatesListCall) Fields(s ...googleapi.Field) *SslCertificatesListCall
- func (c *SslCertificatesListCall) Filter(filter string) *SslCertificatesListCall
- func (c *SslCertificatesListCall) Header() http.Header
- func (c *SslCertificatesListCall) IfNoneMatch(entityTag string) *SslCertificatesListCall
- func (c *SslCertificatesListCall) MaxResults(maxResults int64) *SslCertificatesListCall
- func (c *SslCertificatesListCall) OrderBy(orderBy string) *SslCertificatesListCall
- func (c *SslCertificatesListCall) PageToken(pageToken string) *SslCertificatesListCall
- func (c *SslCertificatesListCall) Pages(ctx context.Context, f func(*SslCertificateList) error) error
- func (c *SslCertificatesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SslCertificatesListCall
- type SslCertificatesScopedList
- type SslCertificatesScopedListWarning
- type SslCertificatesScopedListWarningData
- type SslCertificatesService
- func (r *SslCertificatesService) AggregatedList(project string) *SslCertificatesAggregatedListCall
- func (r *SslCertificatesService) Delete(project string, sslCertificate string) *SslCertificatesDeleteCall
- func (r *SslCertificatesService) Get(project string, sslCertificate string) *SslCertificatesGetCall
- func (r *SslCertificatesService) Insert(project string, sslcertificate *SslCertificate) *SslCertificatesInsertCall
- func (r *SslCertificatesService) List(project string) *SslCertificatesListCall
- type SslPoliciesAggregatedList
- type SslPoliciesAggregatedListCall
- func (c *SslPoliciesAggregatedListCall) Context(ctx context.Context) *SslPoliciesAggregatedListCall
- func (c *SslPoliciesAggregatedListCall) Do(opts ...googleapi.CallOption) (*SslPoliciesAggregatedList, error)
- func (c *SslPoliciesAggregatedListCall) Fields(s ...googleapi.Field) *SslPoliciesAggregatedListCall
- func (c *SslPoliciesAggregatedListCall) Filter(filter string) *SslPoliciesAggregatedListCall
- func (c *SslPoliciesAggregatedListCall) Header() http.Header
- func (c *SslPoliciesAggregatedListCall) IfNoneMatch(entityTag string) *SslPoliciesAggregatedListCall
- func (c *SslPoliciesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *SslPoliciesAggregatedListCall
- func (c *SslPoliciesAggregatedListCall) MaxResults(maxResults int64) *SslPoliciesAggregatedListCall
- func (c *SslPoliciesAggregatedListCall) OrderBy(orderBy string) *SslPoliciesAggregatedListCall
- func (c *SslPoliciesAggregatedListCall) PageToken(pageToken string) *SslPoliciesAggregatedListCall
- func (c *SslPoliciesAggregatedListCall) Pages(ctx context.Context, f func(*SslPoliciesAggregatedList) error) error
- func (c *SslPoliciesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SslPoliciesAggregatedListCall
- func (c *SslPoliciesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *SslPoliciesAggregatedListCall
- type SslPoliciesAggregatedListWarning
- type SslPoliciesAggregatedListWarningData
- type SslPoliciesDeleteCall
- func (c *SslPoliciesDeleteCall) Context(ctx context.Context) *SslPoliciesDeleteCall
- func (c *SslPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SslPoliciesDeleteCall) Fields(s ...googleapi.Field) *SslPoliciesDeleteCall
- func (c *SslPoliciesDeleteCall) Header() http.Header
- func (c *SslPoliciesDeleteCall) RequestId(requestId string) *SslPoliciesDeleteCall
- type SslPoliciesGetCall
- func (c *SslPoliciesGetCall) Context(ctx context.Context) *SslPoliciesGetCall
- func (c *SslPoliciesGetCall) Do(opts ...googleapi.CallOption) (*SslPolicy, error)
- func (c *SslPoliciesGetCall) Fields(s ...googleapi.Field) *SslPoliciesGetCall
- func (c *SslPoliciesGetCall) Header() http.Header
- func (c *SslPoliciesGetCall) IfNoneMatch(entityTag string) *SslPoliciesGetCall
- type SslPoliciesInsertCall
- func (c *SslPoliciesInsertCall) Context(ctx context.Context) *SslPoliciesInsertCall
- func (c *SslPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SslPoliciesInsertCall) Fields(s ...googleapi.Field) *SslPoliciesInsertCall
- func (c *SslPoliciesInsertCall) Header() http.Header
- func (c *SslPoliciesInsertCall) RequestId(requestId string) *SslPoliciesInsertCall
- type SslPoliciesList
- type SslPoliciesListAvailableFeaturesCall
- func (c *SslPoliciesListAvailableFeaturesCall) Context(ctx context.Context) *SslPoliciesListAvailableFeaturesCall
- func (c *SslPoliciesListAvailableFeaturesCall) Do(opts ...googleapi.CallOption) (*SslPoliciesListAvailableFeaturesResponse, error)
- func (c *SslPoliciesListAvailableFeaturesCall) Fields(s ...googleapi.Field) *SslPoliciesListAvailableFeaturesCall
- func (c *SslPoliciesListAvailableFeaturesCall) Filter(filter string) *SslPoliciesListAvailableFeaturesCall
- func (c *SslPoliciesListAvailableFeaturesCall) Header() http.Header
- func (c *SslPoliciesListAvailableFeaturesCall) IfNoneMatch(entityTag string) *SslPoliciesListAvailableFeaturesCall
- func (c *SslPoliciesListAvailableFeaturesCall) MaxResults(maxResults int64) *SslPoliciesListAvailableFeaturesCall
- func (c *SslPoliciesListAvailableFeaturesCall) OrderBy(orderBy string) *SslPoliciesListAvailableFeaturesCall
- func (c *SslPoliciesListAvailableFeaturesCall) PageToken(pageToken string) *SslPoliciesListAvailableFeaturesCall
- func (c *SslPoliciesListAvailableFeaturesCall) ReturnPartialSuccess(returnPartialSuccess bool) *SslPoliciesListAvailableFeaturesCall
- type SslPoliciesListAvailableFeaturesResponse
- type SslPoliciesListCall
- func (c *SslPoliciesListCall) Context(ctx context.Context) *SslPoliciesListCall
- func (c *SslPoliciesListCall) Do(opts ...googleapi.CallOption) (*SslPoliciesList, error)
- func (c *SslPoliciesListCall) Fields(s ...googleapi.Field) *SslPoliciesListCall
- func (c *SslPoliciesListCall) Filter(filter string) *SslPoliciesListCall
- func (c *SslPoliciesListCall) Header() http.Header
- func (c *SslPoliciesListCall) IfNoneMatch(entityTag string) *SslPoliciesListCall
- func (c *SslPoliciesListCall) MaxResults(maxResults int64) *SslPoliciesListCall
- func (c *SslPoliciesListCall) OrderBy(orderBy string) *SslPoliciesListCall
- func (c *SslPoliciesListCall) PageToken(pageToken string) *SslPoliciesListCall
- func (c *SslPoliciesListCall) Pages(ctx context.Context, f func(*SslPoliciesList) error) error
- func (c *SslPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SslPoliciesListCall
- type SslPoliciesListWarning
- type SslPoliciesListWarningData
- type SslPoliciesPatchCall
- func (c *SslPoliciesPatchCall) Context(ctx context.Context) *SslPoliciesPatchCall
- func (c *SslPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SslPoliciesPatchCall) Fields(s ...googleapi.Field) *SslPoliciesPatchCall
- func (c *SslPoliciesPatchCall) Header() http.Header
- func (c *SslPoliciesPatchCall) RequestId(requestId string) *SslPoliciesPatchCall
- type SslPoliciesScopedList
- type SslPoliciesScopedListWarning
- type SslPoliciesScopedListWarningData
- type SslPoliciesService
- func (r *SslPoliciesService) AggregatedList(project string) *SslPoliciesAggregatedListCall
- func (r *SslPoliciesService) Delete(project string, sslPolicy string) *SslPoliciesDeleteCall
- func (r *SslPoliciesService) Get(project string, sslPolicy string) *SslPoliciesGetCall
- func (r *SslPoliciesService) Insert(project string, sslpolicy *SslPolicy) *SslPoliciesInsertCall
- func (r *SslPoliciesService) List(project string) *SslPoliciesListCall
- func (r *SslPoliciesService) ListAvailableFeatures(project string) *SslPoliciesListAvailableFeaturesCall
- func (r *SslPoliciesService) Patch(project string, sslPolicy string, sslpolicy *SslPolicy) *SslPoliciesPatchCall
- type SslPolicy
- type SslPolicyReference
- type SslPolicyWarnings
- type SslPolicyWarningsData
- type StatefulPolicy
- type StatefulPolicyPreservedState
- type StatefulPolicyPreservedStateDiskDevice
- type StatefulPolicyPreservedStateNetworkIp
- type Status
- type StoragePool
- type StoragePoolAggregatedList
- type StoragePoolAggregatedListWarning
- type StoragePoolAggregatedListWarningData
- type StoragePoolDisk
- type StoragePoolList
- type StoragePoolListDisks
- type StoragePoolListDisksWarning
- type StoragePoolListDisksWarningData
- type StoragePoolListWarning
- type StoragePoolListWarningData
- type StoragePoolResourceStatus
- type StoragePoolType
- type StoragePoolTypeAggregatedList
- type StoragePoolTypeAggregatedListWarning
- type StoragePoolTypeAggregatedListWarningData
- type StoragePoolTypeList
- type StoragePoolTypeListWarning
- type StoragePoolTypeListWarningData
- type StoragePoolTypesAggregatedListCall
- func (c *StoragePoolTypesAggregatedListCall) Context(ctx context.Context) *StoragePoolTypesAggregatedListCall
- func (c *StoragePoolTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*StoragePoolTypeAggregatedList, error)
- func (c *StoragePoolTypesAggregatedListCall) Fields(s ...googleapi.Field) *StoragePoolTypesAggregatedListCall
- func (c *StoragePoolTypesAggregatedListCall) Filter(filter string) *StoragePoolTypesAggregatedListCall
- func (c *StoragePoolTypesAggregatedListCall) Header() http.Header
- func (c *StoragePoolTypesAggregatedListCall) IfNoneMatch(entityTag string) *StoragePoolTypesAggregatedListCall
- func (c *StoragePoolTypesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *StoragePoolTypesAggregatedListCall
- func (c *StoragePoolTypesAggregatedListCall) MaxResults(maxResults int64) *StoragePoolTypesAggregatedListCall
- func (c *StoragePoolTypesAggregatedListCall) OrderBy(orderBy string) *StoragePoolTypesAggregatedListCall
- func (c *StoragePoolTypesAggregatedListCall) PageToken(pageToken string) *StoragePoolTypesAggregatedListCall
- func (c *StoragePoolTypesAggregatedListCall) Pages(ctx context.Context, f func(*StoragePoolTypeAggregatedList) error) error
- func (c *StoragePoolTypesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *StoragePoolTypesAggregatedListCall
- func (c *StoragePoolTypesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *StoragePoolTypesAggregatedListCall
- type StoragePoolTypesGetCall
- func (c *StoragePoolTypesGetCall) Context(ctx context.Context) *StoragePoolTypesGetCall
- func (c *StoragePoolTypesGetCall) Do(opts ...googleapi.CallOption) (*StoragePoolType, error)
- func (c *StoragePoolTypesGetCall) Fields(s ...googleapi.Field) *StoragePoolTypesGetCall
- func (c *StoragePoolTypesGetCall) Header() http.Header
- func (c *StoragePoolTypesGetCall) IfNoneMatch(entityTag string) *StoragePoolTypesGetCall
- type StoragePoolTypesListCall
- func (c *StoragePoolTypesListCall) Context(ctx context.Context) *StoragePoolTypesListCall
- func (c *StoragePoolTypesListCall) Do(opts ...googleapi.CallOption) (*StoragePoolTypeList, error)
- func (c *StoragePoolTypesListCall) Fields(s ...googleapi.Field) *StoragePoolTypesListCall
- func (c *StoragePoolTypesListCall) Filter(filter string) *StoragePoolTypesListCall
- func (c *StoragePoolTypesListCall) Header() http.Header
- func (c *StoragePoolTypesListCall) IfNoneMatch(entityTag string) *StoragePoolTypesListCall
- func (c *StoragePoolTypesListCall) MaxResults(maxResults int64) *StoragePoolTypesListCall
- func (c *StoragePoolTypesListCall) OrderBy(orderBy string) *StoragePoolTypesListCall
- func (c *StoragePoolTypesListCall) PageToken(pageToken string) *StoragePoolTypesListCall
- func (c *StoragePoolTypesListCall) Pages(ctx context.Context, f func(*StoragePoolTypeList) error) error
- func (c *StoragePoolTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *StoragePoolTypesListCall
- type StoragePoolTypesScopedList
- type StoragePoolTypesScopedListWarning
- type StoragePoolTypesScopedListWarningData
- type StoragePoolTypesService
- func (r *StoragePoolTypesService) AggregatedList(project string) *StoragePoolTypesAggregatedListCall
- func (r *StoragePoolTypesService) Get(project string, zone string, storagePoolType string) *StoragePoolTypesGetCall
- func (r *StoragePoolTypesService) List(project string, zone string) *StoragePoolTypesListCall
- type StoragePoolsAggregatedListCall
- func (c *StoragePoolsAggregatedListCall) Context(ctx context.Context) *StoragePoolsAggregatedListCall
- func (c *StoragePoolsAggregatedListCall) Do(opts ...googleapi.CallOption) (*StoragePoolAggregatedList, error)
- func (c *StoragePoolsAggregatedListCall) Fields(s ...googleapi.Field) *StoragePoolsAggregatedListCall
- func (c *StoragePoolsAggregatedListCall) Filter(filter string) *StoragePoolsAggregatedListCall
- func (c *StoragePoolsAggregatedListCall) Header() http.Header
- func (c *StoragePoolsAggregatedListCall) IfNoneMatch(entityTag string) *StoragePoolsAggregatedListCall
- func (c *StoragePoolsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *StoragePoolsAggregatedListCall
- func (c *StoragePoolsAggregatedListCall) MaxResults(maxResults int64) *StoragePoolsAggregatedListCall
- func (c *StoragePoolsAggregatedListCall) OrderBy(orderBy string) *StoragePoolsAggregatedListCall
- func (c *StoragePoolsAggregatedListCall) PageToken(pageToken string) *StoragePoolsAggregatedListCall
- func (c *StoragePoolsAggregatedListCall) Pages(ctx context.Context, f func(*StoragePoolAggregatedList) error) error
- func (c *StoragePoolsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *StoragePoolsAggregatedListCall
- func (c *StoragePoolsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *StoragePoolsAggregatedListCall
- type StoragePoolsDeleteCall
- func (c *StoragePoolsDeleteCall) Context(ctx context.Context) *StoragePoolsDeleteCall
- func (c *StoragePoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *StoragePoolsDeleteCall) Fields(s ...googleapi.Field) *StoragePoolsDeleteCall
- func (c *StoragePoolsDeleteCall) Header() http.Header
- func (c *StoragePoolsDeleteCall) RequestId(requestId string) *StoragePoolsDeleteCall
- type StoragePoolsGetCall
- func (c *StoragePoolsGetCall) Context(ctx context.Context) *StoragePoolsGetCall
- func (c *StoragePoolsGetCall) Do(opts ...googleapi.CallOption) (*StoragePool, error)
- func (c *StoragePoolsGetCall) Fields(s ...googleapi.Field) *StoragePoolsGetCall
- func (c *StoragePoolsGetCall) Header() http.Header
- func (c *StoragePoolsGetCall) IfNoneMatch(entityTag string) *StoragePoolsGetCall
- type StoragePoolsGetIamPolicyCall
- func (c *StoragePoolsGetIamPolicyCall) Context(ctx context.Context) *StoragePoolsGetIamPolicyCall
- func (c *StoragePoolsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *StoragePoolsGetIamPolicyCall) Fields(s ...googleapi.Field) *StoragePoolsGetIamPolicyCall
- func (c *StoragePoolsGetIamPolicyCall) Header() http.Header
- func (c *StoragePoolsGetIamPolicyCall) IfNoneMatch(entityTag string) *StoragePoolsGetIamPolicyCall
- func (c *StoragePoolsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *StoragePoolsGetIamPolicyCall
- type StoragePoolsInsertCall
- func (c *StoragePoolsInsertCall) Context(ctx context.Context) *StoragePoolsInsertCall
- func (c *StoragePoolsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *StoragePoolsInsertCall) Fields(s ...googleapi.Field) *StoragePoolsInsertCall
- func (c *StoragePoolsInsertCall) Header() http.Header
- func (c *StoragePoolsInsertCall) RequestId(requestId string) *StoragePoolsInsertCall
- type StoragePoolsListCall
- func (c *StoragePoolsListCall) Context(ctx context.Context) *StoragePoolsListCall
- func (c *StoragePoolsListCall) Do(opts ...googleapi.CallOption) (*StoragePoolList, error)
- func (c *StoragePoolsListCall) Fields(s ...googleapi.Field) *StoragePoolsListCall
- func (c *StoragePoolsListCall) Filter(filter string) *StoragePoolsListCall
- func (c *StoragePoolsListCall) Header() http.Header
- func (c *StoragePoolsListCall) IfNoneMatch(entityTag string) *StoragePoolsListCall
- func (c *StoragePoolsListCall) MaxResults(maxResults int64) *StoragePoolsListCall
- func (c *StoragePoolsListCall) OrderBy(orderBy string) *StoragePoolsListCall
- func (c *StoragePoolsListCall) PageToken(pageToken string) *StoragePoolsListCall
- func (c *StoragePoolsListCall) Pages(ctx context.Context, f func(*StoragePoolList) error) error
- func (c *StoragePoolsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *StoragePoolsListCall
- type StoragePoolsListDisksCall
- func (c *StoragePoolsListDisksCall) Context(ctx context.Context) *StoragePoolsListDisksCall
- func (c *StoragePoolsListDisksCall) Do(opts ...googleapi.CallOption) (*StoragePoolListDisks, error)
- func (c *StoragePoolsListDisksCall) Fields(s ...googleapi.Field) *StoragePoolsListDisksCall
- func (c *StoragePoolsListDisksCall) Filter(filter string) *StoragePoolsListDisksCall
- func (c *StoragePoolsListDisksCall) Header() http.Header
- func (c *StoragePoolsListDisksCall) IfNoneMatch(entityTag string) *StoragePoolsListDisksCall
- func (c *StoragePoolsListDisksCall) MaxResults(maxResults int64) *StoragePoolsListDisksCall
- func (c *StoragePoolsListDisksCall) OrderBy(orderBy string) *StoragePoolsListDisksCall
- func (c *StoragePoolsListDisksCall) PageToken(pageToken string) *StoragePoolsListDisksCall
- func (c *StoragePoolsListDisksCall) Pages(ctx context.Context, f func(*StoragePoolListDisks) error) error
- func (c *StoragePoolsListDisksCall) ReturnPartialSuccess(returnPartialSuccess bool) *StoragePoolsListDisksCall
- type StoragePoolsScopedList
- type StoragePoolsScopedListWarning
- type StoragePoolsScopedListWarningData
- type StoragePoolsService
- func (r *StoragePoolsService) AggregatedList(project string) *StoragePoolsAggregatedListCall
- func (r *StoragePoolsService) Delete(project string, zone string, storagePool string) *StoragePoolsDeleteCall
- func (r *StoragePoolsService) Get(project string, zone string, storagePool string) *StoragePoolsGetCall
- func (r *StoragePoolsService) GetIamPolicy(project string, zone string, resource string) *StoragePoolsGetIamPolicyCall
- func (r *StoragePoolsService) Insert(project string, zone string, storagepool *StoragePool) *StoragePoolsInsertCall
- func (r *StoragePoolsService) List(project string, zone string) *StoragePoolsListCall
- func (r *StoragePoolsService) ListDisks(project string, zone string, storagePool string) *StoragePoolsListDisksCall
- func (r *StoragePoolsService) SetIamPolicy(project string, zone string, resource string, ...) *StoragePoolsSetIamPolicyCall
- func (r *StoragePoolsService) TestIamPermissions(project string, zone string, resource string, ...) *StoragePoolsTestIamPermissionsCall
- func (r *StoragePoolsService) Update(project string, zone string, storagePool string, storagepool *StoragePool) *StoragePoolsUpdateCall
- type StoragePoolsSetIamPolicyCall
- func (c *StoragePoolsSetIamPolicyCall) Context(ctx context.Context) *StoragePoolsSetIamPolicyCall
- func (c *StoragePoolsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *StoragePoolsSetIamPolicyCall) Fields(s ...googleapi.Field) *StoragePoolsSetIamPolicyCall
- func (c *StoragePoolsSetIamPolicyCall) Header() http.Header
- type StoragePoolsTestIamPermissionsCall
- func (c *StoragePoolsTestIamPermissionsCall) Context(ctx context.Context) *StoragePoolsTestIamPermissionsCall
- func (c *StoragePoolsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *StoragePoolsTestIamPermissionsCall) Fields(s ...googleapi.Field) *StoragePoolsTestIamPermissionsCall
- func (c *StoragePoolsTestIamPermissionsCall) Header() http.Header
- type StoragePoolsUpdateCall
- func (c *StoragePoolsUpdateCall) Context(ctx context.Context) *StoragePoolsUpdateCall
- func (c *StoragePoolsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *StoragePoolsUpdateCall) Fields(s ...googleapi.Field) *StoragePoolsUpdateCall
- func (c *StoragePoolsUpdateCall) Header() http.Header
- func (c *StoragePoolsUpdateCall) RequestId(requestId string) *StoragePoolsUpdateCall
- func (c *StoragePoolsUpdateCall) UpdateMask(updateMask string) *StoragePoolsUpdateCall
- type Subnetwork
- type SubnetworkAggregatedList
- type SubnetworkAggregatedListWarning
- type SubnetworkAggregatedListWarningData
- type SubnetworkList
- type SubnetworkListWarning
- type SubnetworkListWarningData
- type SubnetworkLogConfig
- type SubnetworkSecondaryRange
- type SubnetworksAggregatedListCall
- func (c *SubnetworksAggregatedListCall) Context(ctx context.Context) *SubnetworksAggregatedListCall
- func (c *SubnetworksAggregatedListCall) Do(opts ...googleapi.CallOption) (*SubnetworkAggregatedList, error)
- func (c *SubnetworksAggregatedListCall) Fields(s ...googleapi.Field) *SubnetworksAggregatedListCall
- func (c *SubnetworksAggregatedListCall) Filter(filter string) *SubnetworksAggregatedListCall
- func (c *SubnetworksAggregatedListCall) Header() http.Header
- func (c *SubnetworksAggregatedListCall) IfNoneMatch(entityTag string) *SubnetworksAggregatedListCall
- func (c *SubnetworksAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *SubnetworksAggregatedListCall
- func (c *SubnetworksAggregatedListCall) MaxResults(maxResults int64) *SubnetworksAggregatedListCall
- func (c *SubnetworksAggregatedListCall) OrderBy(orderBy string) *SubnetworksAggregatedListCall
- func (c *SubnetworksAggregatedListCall) PageToken(pageToken string) *SubnetworksAggregatedListCall
- func (c *SubnetworksAggregatedListCall) Pages(ctx context.Context, f func(*SubnetworkAggregatedList) error) error
- func (c *SubnetworksAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SubnetworksAggregatedListCall
- func (c *SubnetworksAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *SubnetworksAggregatedListCall
- type SubnetworksDeleteCall
- func (c *SubnetworksDeleteCall) Context(ctx context.Context) *SubnetworksDeleteCall
- func (c *SubnetworksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SubnetworksDeleteCall) Fields(s ...googleapi.Field) *SubnetworksDeleteCall
- func (c *SubnetworksDeleteCall) Header() http.Header
- func (c *SubnetworksDeleteCall) RequestId(requestId string) *SubnetworksDeleteCall
- type SubnetworksExpandIpCidrRangeCall
- func (c *SubnetworksExpandIpCidrRangeCall) Context(ctx context.Context) *SubnetworksExpandIpCidrRangeCall
- func (c *SubnetworksExpandIpCidrRangeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SubnetworksExpandIpCidrRangeCall) Fields(s ...googleapi.Field) *SubnetworksExpandIpCidrRangeCall
- func (c *SubnetworksExpandIpCidrRangeCall) Header() http.Header
- func (c *SubnetworksExpandIpCidrRangeCall) RequestId(requestId string) *SubnetworksExpandIpCidrRangeCall
- type SubnetworksExpandIpCidrRangeRequest
- type SubnetworksGetCall
- func (c *SubnetworksGetCall) Context(ctx context.Context) *SubnetworksGetCall
- func (c *SubnetworksGetCall) Do(opts ...googleapi.CallOption) (*Subnetwork, error)
- func (c *SubnetworksGetCall) Fields(s ...googleapi.Field) *SubnetworksGetCall
- func (c *SubnetworksGetCall) Header() http.Header
- func (c *SubnetworksGetCall) IfNoneMatch(entityTag string) *SubnetworksGetCall
- type SubnetworksGetIamPolicyCall
- func (c *SubnetworksGetIamPolicyCall) Context(ctx context.Context) *SubnetworksGetIamPolicyCall
- func (c *SubnetworksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *SubnetworksGetIamPolicyCall) Fields(s ...googleapi.Field) *SubnetworksGetIamPolicyCall
- func (c *SubnetworksGetIamPolicyCall) Header() http.Header
- func (c *SubnetworksGetIamPolicyCall) IfNoneMatch(entityTag string) *SubnetworksGetIamPolicyCall
- func (c *SubnetworksGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *SubnetworksGetIamPolicyCall
- type SubnetworksInsertCall
- func (c *SubnetworksInsertCall) Context(ctx context.Context) *SubnetworksInsertCall
- func (c *SubnetworksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SubnetworksInsertCall) Fields(s ...googleapi.Field) *SubnetworksInsertCall
- func (c *SubnetworksInsertCall) Header() http.Header
- func (c *SubnetworksInsertCall) RequestId(requestId string) *SubnetworksInsertCall
- type SubnetworksListCall
- func (c *SubnetworksListCall) Context(ctx context.Context) *SubnetworksListCall
- func (c *SubnetworksListCall) Do(opts ...googleapi.CallOption) (*SubnetworkList, error)
- func (c *SubnetworksListCall) Fields(s ...googleapi.Field) *SubnetworksListCall
- func (c *SubnetworksListCall) Filter(filter string) *SubnetworksListCall
- func (c *SubnetworksListCall) Header() http.Header
- func (c *SubnetworksListCall) IfNoneMatch(entityTag string) *SubnetworksListCall
- func (c *SubnetworksListCall) MaxResults(maxResults int64) *SubnetworksListCall
- func (c *SubnetworksListCall) OrderBy(orderBy string) *SubnetworksListCall
- func (c *SubnetworksListCall) PageToken(pageToken string) *SubnetworksListCall
- func (c *SubnetworksListCall) Pages(ctx context.Context, f func(*SubnetworkList) error) error
- func (c *SubnetworksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SubnetworksListCall
- type SubnetworksListUsableCall
- func (c *SubnetworksListUsableCall) Context(ctx context.Context) *SubnetworksListUsableCall
- func (c *SubnetworksListUsableCall) Do(opts ...googleapi.CallOption) (*UsableSubnetworksAggregatedList, error)
- func (c *SubnetworksListUsableCall) Fields(s ...googleapi.Field) *SubnetworksListUsableCall
- func (c *SubnetworksListUsableCall) Filter(filter string) *SubnetworksListUsableCall
- func (c *SubnetworksListUsableCall) Header() http.Header
- func (c *SubnetworksListUsableCall) IfNoneMatch(entityTag string) *SubnetworksListUsableCall
- func (c *SubnetworksListUsableCall) MaxResults(maxResults int64) *SubnetworksListUsableCall
- func (c *SubnetworksListUsableCall) OrderBy(orderBy string) *SubnetworksListUsableCall
- func (c *SubnetworksListUsableCall) PageToken(pageToken string) *SubnetworksListUsableCall
- func (c *SubnetworksListUsableCall) Pages(ctx context.Context, f func(*UsableSubnetworksAggregatedList) error) error
- func (c *SubnetworksListUsableCall) ReturnPartialSuccess(returnPartialSuccess bool) *SubnetworksListUsableCall
- type SubnetworksPatchCall
- func (c *SubnetworksPatchCall) Context(ctx context.Context) *SubnetworksPatchCall
- func (c *SubnetworksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SubnetworksPatchCall) DrainTimeoutSeconds(drainTimeoutSeconds int64) *SubnetworksPatchCall
- func (c *SubnetworksPatchCall) Fields(s ...googleapi.Field) *SubnetworksPatchCall
- func (c *SubnetworksPatchCall) Header() http.Header
- func (c *SubnetworksPatchCall) RequestId(requestId string) *SubnetworksPatchCall
- type SubnetworksScopedList
- type SubnetworksScopedListWarning
- type SubnetworksScopedListWarningData
- type SubnetworksService
- func (r *SubnetworksService) AggregatedList(project string) *SubnetworksAggregatedListCall
- func (r *SubnetworksService) Delete(project string, region string, subnetwork string) *SubnetworksDeleteCall
- func (r *SubnetworksService) ExpandIpCidrRange(project string, region string, subnetwork string, ...) *SubnetworksExpandIpCidrRangeCall
- func (r *SubnetworksService) Get(project string, region string, subnetwork string) *SubnetworksGetCall
- func (r *SubnetworksService) GetIamPolicy(project string, region string, resource string) *SubnetworksGetIamPolicyCall
- func (r *SubnetworksService) Insert(project string, region string, subnetwork *Subnetwork) *SubnetworksInsertCall
- func (r *SubnetworksService) List(project string, region string) *SubnetworksListCall
- func (r *SubnetworksService) ListUsable(project string) *SubnetworksListUsableCall
- func (r *SubnetworksService) Patch(project string, region string, subnetwork string, subnetwork2 *Subnetwork) *SubnetworksPatchCall
- func (r *SubnetworksService) SetIamPolicy(project string, region string, resource string, ...) *SubnetworksSetIamPolicyCall
- func (r *SubnetworksService) SetPrivateIpGoogleAccess(project string, region string, subnetwork string, ...) *SubnetworksSetPrivateIpGoogleAccessCall
- func (r *SubnetworksService) TestIamPermissions(project string, region string, resource string, ...) *SubnetworksTestIamPermissionsCall
- type SubnetworksSetIamPolicyCall
- func (c *SubnetworksSetIamPolicyCall) Context(ctx context.Context) *SubnetworksSetIamPolicyCall
- func (c *SubnetworksSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *SubnetworksSetIamPolicyCall) Fields(s ...googleapi.Field) *SubnetworksSetIamPolicyCall
- func (c *SubnetworksSetIamPolicyCall) Header() http.Header
- type SubnetworksSetPrivateIpGoogleAccessCall
- func (c *SubnetworksSetPrivateIpGoogleAccessCall) Context(ctx context.Context) *SubnetworksSetPrivateIpGoogleAccessCall
- func (c *SubnetworksSetPrivateIpGoogleAccessCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SubnetworksSetPrivateIpGoogleAccessCall) Fields(s ...googleapi.Field) *SubnetworksSetPrivateIpGoogleAccessCall
- func (c *SubnetworksSetPrivateIpGoogleAccessCall) Header() http.Header
- func (c *SubnetworksSetPrivateIpGoogleAccessCall) RequestId(requestId string) *SubnetworksSetPrivateIpGoogleAccessCall
- type SubnetworksSetPrivateIpGoogleAccessRequest
- type SubnetworksTestIamPermissionsCall
- func (c *SubnetworksTestIamPermissionsCall) Context(ctx context.Context) *SubnetworksTestIamPermissionsCall
- func (c *SubnetworksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *SubnetworksTestIamPermissionsCall) Fields(s ...googleapi.Field) *SubnetworksTestIamPermissionsCall
- func (c *SubnetworksTestIamPermissionsCall) Header() http.Header
- type Subsetting
- type TCPHealthCheck
- type Tags
- type TargetGrpcProxiesDeleteCall
- func (c *TargetGrpcProxiesDeleteCall) Context(ctx context.Context) *TargetGrpcProxiesDeleteCall
- func (c *TargetGrpcProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetGrpcProxiesDeleteCall) Fields(s ...googleapi.Field) *TargetGrpcProxiesDeleteCall
- func (c *TargetGrpcProxiesDeleteCall) Header() http.Header
- func (c *TargetGrpcProxiesDeleteCall) RequestId(requestId string) *TargetGrpcProxiesDeleteCall
- type TargetGrpcProxiesGetCall
- func (c *TargetGrpcProxiesGetCall) Context(ctx context.Context) *TargetGrpcProxiesGetCall
- func (c *TargetGrpcProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetGrpcProxy, error)
- func (c *TargetGrpcProxiesGetCall) Fields(s ...googleapi.Field) *TargetGrpcProxiesGetCall
- func (c *TargetGrpcProxiesGetCall) Header() http.Header
- func (c *TargetGrpcProxiesGetCall) IfNoneMatch(entityTag string) *TargetGrpcProxiesGetCall
- type TargetGrpcProxiesInsertCall
- func (c *TargetGrpcProxiesInsertCall) Context(ctx context.Context) *TargetGrpcProxiesInsertCall
- func (c *TargetGrpcProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetGrpcProxiesInsertCall) Fields(s ...googleapi.Field) *TargetGrpcProxiesInsertCall
- func (c *TargetGrpcProxiesInsertCall) Header() http.Header
- func (c *TargetGrpcProxiesInsertCall) RequestId(requestId string) *TargetGrpcProxiesInsertCall
- type TargetGrpcProxiesListCall
- func (c *TargetGrpcProxiesListCall) Context(ctx context.Context) *TargetGrpcProxiesListCall
- func (c *TargetGrpcProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetGrpcProxyList, error)
- func (c *TargetGrpcProxiesListCall) Fields(s ...googleapi.Field) *TargetGrpcProxiesListCall
- func (c *TargetGrpcProxiesListCall) Filter(filter string) *TargetGrpcProxiesListCall
- func (c *TargetGrpcProxiesListCall) Header() http.Header
- func (c *TargetGrpcProxiesListCall) IfNoneMatch(entityTag string) *TargetGrpcProxiesListCall
- func (c *TargetGrpcProxiesListCall) MaxResults(maxResults int64) *TargetGrpcProxiesListCall
- func (c *TargetGrpcProxiesListCall) OrderBy(orderBy string) *TargetGrpcProxiesListCall
- func (c *TargetGrpcProxiesListCall) PageToken(pageToken string) *TargetGrpcProxiesListCall
- func (c *TargetGrpcProxiesListCall) Pages(ctx context.Context, f func(*TargetGrpcProxyList) error) error
- func (c *TargetGrpcProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetGrpcProxiesListCall
- type TargetGrpcProxiesPatchCall
- func (c *TargetGrpcProxiesPatchCall) Context(ctx context.Context) *TargetGrpcProxiesPatchCall
- func (c *TargetGrpcProxiesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetGrpcProxiesPatchCall) Fields(s ...googleapi.Field) *TargetGrpcProxiesPatchCall
- func (c *TargetGrpcProxiesPatchCall) Header() http.Header
- func (c *TargetGrpcProxiesPatchCall) RequestId(requestId string) *TargetGrpcProxiesPatchCall
- type TargetGrpcProxiesService
- func (r *TargetGrpcProxiesService) Delete(project string, targetGrpcProxy string) *TargetGrpcProxiesDeleteCall
- func (r *TargetGrpcProxiesService) Get(project string, targetGrpcProxy string) *TargetGrpcProxiesGetCall
- func (r *TargetGrpcProxiesService) Insert(project string, targetgrpcproxy *TargetGrpcProxy) *TargetGrpcProxiesInsertCall
- func (r *TargetGrpcProxiesService) List(project string) *TargetGrpcProxiesListCall
- func (r *TargetGrpcProxiesService) Patch(project string, targetGrpcProxy string, targetgrpcproxy *TargetGrpcProxy) *TargetGrpcProxiesPatchCall
- type TargetGrpcProxy
- type TargetGrpcProxyList
- type TargetGrpcProxyListWarning
- type TargetGrpcProxyListWarningData
- type TargetHttpProxiesAggregatedListCall
- func (c *TargetHttpProxiesAggregatedListCall) Context(ctx context.Context) *TargetHttpProxiesAggregatedListCall
- func (c *TargetHttpProxiesAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetHttpProxyAggregatedList, error)
- func (c *TargetHttpProxiesAggregatedListCall) Fields(s ...googleapi.Field) *TargetHttpProxiesAggregatedListCall
- func (c *TargetHttpProxiesAggregatedListCall) Filter(filter string) *TargetHttpProxiesAggregatedListCall
- func (c *TargetHttpProxiesAggregatedListCall) Header() http.Header
- func (c *TargetHttpProxiesAggregatedListCall) IfNoneMatch(entityTag string) *TargetHttpProxiesAggregatedListCall
- func (c *TargetHttpProxiesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *TargetHttpProxiesAggregatedListCall
- func (c *TargetHttpProxiesAggregatedListCall) MaxResults(maxResults int64) *TargetHttpProxiesAggregatedListCall
- func (c *TargetHttpProxiesAggregatedListCall) OrderBy(orderBy string) *TargetHttpProxiesAggregatedListCall
- func (c *TargetHttpProxiesAggregatedListCall) PageToken(pageToken string) *TargetHttpProxiesAggregatedListCall
- func (c *TargetHttpProxiesAggregatedListCall) Pages(ctx context.Context, f func(*TargetHttpProxyAggregatedList) error) error
- func (c *TargetHttpProxiesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetHttpProxiesAggregatedListCall
- func (c *TargetHttpProxiesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *TargetHttpProxiesAggregatedListCall
- type TargetHttpProxiesDeleteCall
- func (c *TargetHttpProxiesDeleteCall) Context(ctx context.Context) *TargetHttpProxiesDeleteCall
- func (c *TargetHttpProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetHttpProxiesDeleteCall) Fields(s ...googleapi.Field) *TargetHttpProxiesDeleteCall
- func (c *TargetHttpProxiesDeleteCall) Header() http.Header
- func (c *TargetHttpProxiesDeleteCall) RequestId(requestId string) *TargetHttpProxiesDeleteCall
- type TargetHttpProxiesGetCall
- func (c *TargetHttpProxiesGetCall) Context(ctx context.Context) *TargetHttpProxiesGetCall
- func (c *TargetHttpProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetHttpProxy, error)
- func (c *TargetHttpProxiesGetCall) Fields(s ...googleapi.Field) *TargetHttpProxiesGetCall
- func (c *TargetHttpProxiesGetCall) Header() http.Header
- func (c *TargetHttpProxiesGetCall) IfNoneMatch(entityTag string) *TargetHttpProxiesGetCall
- type TargetHttpProxiesInsertCall
- func (c *TargetHttpProxiesInsertCall) Context(ctx context.Context) *TargetHttpProxiesInsertCall
- func (c *TargetHttpProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetHttpProxiesInsertCall) Fields(s ...googleapi.Field) *TargetHttpProxiesInsertCall
- func (c *TargetHttpProxiesInsertCall) Header() http.Header
- func (c *TargetHttpProxiesInsertCall) RequestId(requestId string) *TargetHttpProxiesInsertCall
- type TargetHttpProxiesListCall
- func (c *TargetHttpProxiesListCall) Context(ctx context.Context) *TargetHttpProxiesListCall
- func (c *TargetHttpProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetHttpProxyList, error)
- func (c *TargetHttpProxiesListCall) Fields(s ...googleapi.Field) *TargetHttpProxiesListCall
- func (c *TargetHttpProxiesListCall) Filter(filter string) *TargetHttpProxiesListCall
- func (c *TargetHttpProxiesListCall) Header() http.Header
- func (c *TargetHttpProxiesListCall) IfNoneMatch(entityTag string) *TargetHttpProxiesListCall
- func (c *TargetHttpProxiesListCall) MaxResults(maxResults int64) *TargetHttpProxiesListCall
- func (c *TargetHttpProxiesListCall) OrderBy(orderBy string) *TargetHttpProxiesListCall
- func (c *TargetHttpProxiesListCall) PageToken(pageToken string) *TargetHttpProxiesListCall
- func (c *TargetHttpProxiesListCall) Pages(ctx context.Context, f func(*TargetHttpProxyList) error) error
- func (c *TargetHttpProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetHttpProxiesListCall
- type TargetHttpProxiesPatchCall
- func (c *TargetHttpProxiesPatchCall) Context(ctx context.Context) *TargetHttpProxiesPatchCall
- func (c *TargetHttpProxiesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetHttpProxiesPatchCall) Fields(s ...googleapi.Field) *TargetHttpProxiesPatchCall
- func (c *TargetHttpProxiesPatchCall) Header() http.Header
- func (c *TargetHttpProxiesPatchCall) RequestId(requestId string) *TargetHttpProxiesPatchCall
- type TargetHttpProxiesScopedList
- type TargetHttpProxiesScopedListWarning
- type TargetHttpProxiesScopedListWarningData
- type TargetHttpProxiesService
- func (r *TargetHttpProxiesService) AggregatedList(project string) *TargetHttpProxiesAggregatedListCall
- func (r *TargetHttpProxiesService) Delete(project string, targetHttpProxy string) *TargetHttpProxiesDeleteCall
- func (r *TargetHttpProxiesService) Get(project string, targetHttpProxy string) *TargetHttpProxiesGetCall
- func (r *TargetHttpProxiesService) Insert(project string, targethttpproxy *TargetHttpProxy) *TargetHttpProxiesInsertCall
- func (r *TargetHttpProxiesService) List(project string) *TargetHttpProxiesListCall
- func (r *TargetHttpProxiesService) Patch(project string, targetHttpProxy string, targethttpproxy *TargetHttpProxy) *TargetHttpProxiesPatchCall
- func (r *TargetHttpProxiesService) SetUrlMap(project string, targetHttpProxy string, urlmapreference *UrlMapReference) *TargetHttpProxiesSetUrlMapCall
- type TargetHttpProxiesSetUrlMapCall
- func (c *TargetHttpProxiesSetUrlMapCall) Context(ctx context.Context) *TargetHttpProxiesSetUrlMapCall
- func (c *TargetHttpProxiesSetUrlMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetHttpProxiesSetUrlMapCall) Fields(s ...googleapi.Field) *TargetHttpProxiesSetUrlMapCall
- func (c *TargetHttpProxiesSetUrlMapCall) Header() http.Header
- func (c *TargetHttpProxiesSetUrlMapCall) RequestId(requestId string) *TargetHttpProxiesSetUrlMapCall
- type TargetHttpProxy
- type TargetHttpProxyAggregatedList
- type TargetHttpProxyList
- type TargetHttpProxyListWarning
- type TargetHttpProxyListWarningData
- type TargetHttpsProxiesAggregatedListCall
- func (c *TargetHttpsProxiesAggregatedListCall) Context(ctx context.Context) *TargetHttpsProxiesAggregatedListCall
- func (c *TargetHttpsProxiesAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetHttpsProxyAggregatedList, error)
- func (c *TargetHttpsProxiesAggregatedListCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesAggregatedListCall
- func (c *TargetHttpsProxiesAggregatedListCall) Filter(filter string) *TargetHttpsProxiesAggregatedListCall
- func (c *TargetHttpsProxiesAggregatedListCall) Header() http.Header
- func (c *TargetHttpsProxiesAggregatedListCall) IfNoneMatch(entityTag string) *TargetHttpsProxiesAggregatedListCall
- func (c *TargetHttpsProxiesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *TargetHttpsProxiesAggregatedListCall
- func (c *TargetHttpsProxiesAggregatedListCall) MaxResults(maxResults int64) *TargetHttpsProxiesAggregatedListCall
- func (c *TargetHttpsProxiesAggregatedListCall) OrderBy(orderBy string) *TargetHttpsProxiesAggregatedListCall
- func (c *TargetHttpsProxiesAggregatedListCall) PageToken(pageToken string) *TargetHttpsProxiesAggregatedListCall
- func (c *TargetHttpsProxiesAggregatedListCall) Pages(ctx context.Context, f func(*TargetHttpsProxyAggregatedList) error) error
- func (c *TargetHttpsProxiesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetHttpsProxiesAggregatedListCall
- func (c *TargetHttpsProxiesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *TargetHttpsProxiesAggregatedListCall
- type TargetHttpsProxiesDeleteCall
- func (c *TargetHttpsProxiesDeleteCall) Context(ctx context.Context) *TargetHttpsProxiesDeleteCall
- func (c *TargetHttpsProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetHttpsProxiesDeleteCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesDeleteCall
- func (c *TargetHttpsProxiesDeleteCall) Header() http.Header
- func (c *TargetHttpsProxiesDeleteCall) RequestId(requestId string) *TargetHttpsProxiesDeleteCall
- type TargetHttpsProxiesGetCall
- func (c *TargetHttpsProxiesGetCall) Context(ctx context.Context) *TargetHttpsProxiesGetCall
- func (c *TargetHttpsProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetHttpsProxy, error)
- func (c *TargetHttpsProxiesGetCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesGetCall
- func (c *TargetHttpsProxiesGetCall) Header() http.Header
- func (c *TargetHttpsProxiesGetCall) IfNoneMatch(entityTag string) *TargetHttpsProxiesGetCall
- type TargetHttpsProxiesInsertCall
- func (c *TargetHttpsProxiesInsertCall) Context(ctx context.Context) *TargetHttpsProxiesInsertCall
- func (c *TargetHttpsProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetHttpsProxiesInsertCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesInsertCall
- func (c *TargetHttpsProxiesInsertCall) Header() http.Header
- func (c *TargetHttpsProxiesInsertCall) RequestId(requestId string) *TargetHttpsProxiesInsertCall
- type TargetHttpsProxiesListCall
- func (c *TargetHttpsProxiesListCall) Context(ctx context.Context) *TargetHttpsProxiesListCall
- func (c *TargetHttpsProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetHttpsProxyList, error)
- func (c *TargetHttpsProxiesListCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesListCall
- func (c *TargetHttpsProxiesListCall) Filter(filter string) *TargetHttpsProxiesListCall
- func (c *TargetHttpsProxiesListCall) Header() http.Header
- func (c *TargetHttpsProxiesListCall) IfNoneMatch(entityTag string) *TargetHttpsProxiesListCall
- func (c *TargetHttpsProxiesListCall) MaxResults(maxResults int64) *TargetHttpsProxiesListCall
- func (c *TargetHttpsProxiesListCall) OrderBy(orderBy string) *TargetHttpsProxiesListCall
- func (c *TargetHttpsProxiesListCall) PageToken(pageToken string) *TargetHttpsProxiesListCall
- func (c *TargetHttpsProxiesListCall) Pages(ctx context.Context, f func(*TargetHttpsProxyList) error) error
- func (c *TargetHttpsProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetHttpsProxiesListCall
- type TargetHttpsProxiesPatchCall
- func (c *TargetHttpsProxiesPatchCall) Context(ctx context.Context) *TargetHttpsProxiesPatchCall
- func (c *TargetHttpsProxiesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetHttpsProxiesPatchCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesPatchCall
- func (c *TargetHttpsProxiesPatchCall) Header() http.Header
- func (c *TargetHttpsProxiesPatchCall) RequestId(requestId string) *TargetHttpsProxiesPatchCall
- type TargetHttpsProxiesScopedList
- type TargetHttpsProxiesScopedListWarning
- type TargetHttpsProxiesScopedListWarningData
- type TargetHttpsProxiesService
- func (r *TargetHttpsProxiesService) AggregatedList(project string) *TargetHttpsProxiesAggregatedListCall
- func (r *TargetHttpsProxiesService) Delete(project string, targetHttpsProxy string) *TargetHttpsProxiesDeleteCall
- func (r *TargetHttpsProxiesService) Get(project string, targetHttpsProxy string) *TargetHttpsProxiesGetCall
- func (r *TargetHttpsProxiesService) Insert(project string, targethttpsproxy *TargetHttpsProxy) *TargetHttpsProxiesInsertCall
- func (r *TargetHttpsProxiesService) List(project string) *TargetHttpsProxiesListCall
- func (r *TargetHttpsProxiesService) Patch(project string, targetHttpsProxy string, targethttpsproxy *TargetHttpsProxy) *TargetHttpsProxiesPatchCall
- func (r *TargetHttpsProxiesService) SetCertificateMap(project string, targetHttpsProxy string, ...) *TargetHttpsProxiesSetCertificateMapCall
- func (r *TargetHttpsProxiesService) SetQuicOverride(project string, targetHttpsProxy string, ...) *TargetHttpsProxiesSetQuicOverrideCall
- func (r *TargetHttpsProxiesService) SetSslCertificates(project string, targetHttpsProxy string, ...) *TargetHttpsProxiesSetSslCertificatesCall
- func (r *TargetHttpsProxiesService) SetSslPolicy(project string, targetHttpsProxy string, ...) *TargetHttpsProxiesSetSslPolicyCall
- func (r *TargetHttpsProxiesService) SetUrlMap(project string, targetHttpsProxy string, urlmapreference *UrlMapReference) *TargetHttpsProxiesSetUrlMapCall
- type TargetHttpsProxiesSetCertificateMapCall
- func (c *TargetHttpsProxiesSetCertificateMapCall) Context(ctx context.Context) *TargetHttpsProxiesSetCertificateMapCall
- func (c *TargetHttpsProxiesSetCertificateMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetHttpsProxiesSetCertificateMapCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesSetCertificateMapCall
- func (c *TargetHttpsProxiesSetCertificateMapCall) Header() http.Header
- func (c *TargetHttpsProxiesSetCertificateMapCall) RequestId(requestId string) *TargetHttpsProxiesSetCertificateMapCall
- type TargetHttpsProxiesSetCertificateMapRequest
- type TargetHttpsProxiesSetQuicOverrideCall
- func (c *TargetHttpsProxiesSetQuicOverrideCall) Context(ctx context.Context) *TargetHttpsProxiesSetQuicOverrideCall
- func (c *TargetHttpsProxiesSetQuicOverrideCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetHttpsProxiesSetQuicOverrideCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesSetQuicOverrideCall
- func (c *TargetHttpsProxiesSetQuicOverrideCall) Header() http.Header
- func (c *TargetHttpsProxiesSetQuicOverrideCall) RequestId(requestId string) *TargetHttpsProxiesSetQuicOverrideCall
- type TargetHttpsProxiesSetQuicOverrideRequest
- type TargetHttpsProxiesSetSslCertificatesCall
- func (c *TargetHttpsProxiesSetSslCertificatesCall) Context(ctx context.Context) *TargetHttpsProxiesSetSslCertificatesCall
- func (c *TargetHttpsProxiesSetSslCertificatesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetHttpsProxiesSetSslCertificatesCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesSetSslCertificatesCall
- func (c *TargetHttpsProxiesSetSslCertificatesCall) Header() http.Header
- func (c *TargetHttpsProxiesSetSslCertificatesCall) RequestId(requestId string) *TargetHttpsProxiesSetSslCertificatesCall
- type TargetHttpsProxiesSetSslCertificatesRequest
- type TargetHttpsProxiesSetSslPolicyCall
- func (c *TargetHttpsProxiesSetSslPolicyCall) Context(ctx context.Context) *TargetHttpsProxiesSetSslPolicyCall
- func (c *TargetHttpsProxiesSetSslPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetHttpsProxiesSetSslPolicyCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesSetSslPolicyCall
- func (c *TargetHttpsProxiesSetSslPolicyCall) Header() http.Header
- func (c *TargetHttpsProxiesSetSslPolicyCall) RequestId(requestId string) *TargetHttpsProxiesSetSslPolicyCall
- type TargetHttpsProxiesSetUrlMapCall
- func (c *TargetHttpsProxiesSetUrlMapCall) Context(ctx context.Context) *TargetHttpsProxiesSetUrlMapCall
- func (c *TargetHttpsProxiesSetUrlMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetHttpsProxiesSetUrlMapCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesSetUrlMapCall
- func (c *TargetHttpsProxiesSetUrlMapCall) Header() http.Header
- func (c *TargetHttpsProxiesSetUrlMapCall) RequestId(requestId string) *TargetHttpsProxiesSetUrlMapCall
- type TargetHttpsProxy
- type TargetHttpsProxyAggregatedList
- type TargetHttpsProxyAggregatedListWarning
- type TargetHttpsProxyAggregatedListWarningData
- type TargetHttpsProxyList
- type TargetHttpsProxyListWarning
- type TargetHttpsProxyListWarningData
- type TargetInstance
- type TargetInstanceAggregatedList
- type TargetInstanceAggregatedListWarning
- type TargetInstanceAggregatedListWarningData
- type TargetInstanceList
- type TargetInstanceListWarning
- type TargetInstanceListWarningData
- type TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) Context(ctx context.Context) *TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetInstanceAggregatedList, error)
- func (c *TargetInstancesAggregatedListCall) Fields(s ...googleapi.Field) *TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) Filter(filter string) *TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) Header() http.Header
- func (c *TargetInstancesAggregatedListCall) IfNoneMatch(entityTag string) *TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) MaxResults(maxResults int64) *TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) OrderBy(orderBy string) *TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) PageToken(pageToken string) *TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) Pages(ctx context.Context, f func(*TargetInstanceAggregatedList) error) error
- func (c *TargetInstancesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *TargetInstancesAggregatedListCall
- type TargetInstancesDeleteCall
- func (c *TargetInstancesDeleteCall) Context(ctx context.Context) *TargetInstancesDeleteCall
- func (c *TargetInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetInstancesDeleteCall) Fields(s ...googleapi.Field) *TargetInstancesDeleteCall
- func (c *TargetInstancesDeleteCall) Header() http.Header
- func (c *TargetInstancesDeleteCall) RequestId(requestId string) *TargetInstancesDeleteCall
- type TargetInstancesGetCall
- func (c *TargetInstancesGetCall) Context(ctx context.Context) *TargetInstancesGetCall
- func (c *TargetInstancesGetCall) Do(opts ...googleapi.CallOption) (*TargetInstance, error)
- func (c *TargetInstancesGetCall) Fields(s ...googleapi.Field) *TargetInstancesGetCall
- func (c *TargetInstancesGetCall) Header() http.Header
- func (c *TargetInstancesGetCall) IfNoneMatch(entityTag string) *TargetInstancesGetCall
- type TargetInstancesInsertCall
- func (c *TargetInstancesInsertCall) Context(ctx context.Context) *TargetInstancesInsertCall
- func (c *TargetInstancesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetInstancesInsertCall) Fields(s ...googleapi.Field) *TargetInstancesInsertCall
- func (c *TargetInstancesInsertCall) Header() http.Header
- func (c *TargetInstancesInsertCall) RequestId(requestId string) *TargetInstancesInsertCall
- type TargetInstancesListCall
- func (c *TargetInstancesListCall) Context(ctx context.Context) *TargetInstancesListCall
- func (c *TargetInstancesListCall) Do(opts ...googleapi.CallOption) (*TargetInstanceList, error)
- func (c *TargetInstancesListCall) Fields(s ...googleapi.Field) *TargetInstancesListCall
- func (c *TargetInstancesListCall) Filter(filter string) *TargetInstancesListCall
- func (c *TargetInstancesListCall) Header() http.Header
- func (c *TargetInstancesListCall) IfNoneMatch(entityTag string) *TargetInstancesListCall
- func (c *TargetInstancesListCall) MaxResults(maxResults int64) *TargetInstancesListCall
- func (c *TargetInstancesListCall) OrderBy(orderBy string) *TargetInstancesListCall
- func (c *TargetInstancesListCall) PageToken(pageToken string) *TargetInstancesListCall
- func (c *TargetInstancesListCall) Pages(ctx context.Context, f func(*TargetInstanceList) error) error
- func (c *TargetInstancesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetInstancesListCall
- type TargetInstancesScopedList
- type TargetInstancesScopedListWarning
- type TargetInstancesScopedListWarningData
- type TargetInstancesService
- func (r *TargetInstancesService) AggregatedList(project string) *TargetInstancesAggregatedListCall
- func (r *TargetInstancesService) Delete(project string, zone string, targetInstance string) *TargetInstancesDeleteCall
- func (r *TargetInstancesService) Get(project string, zone string, targetInstance string) *TargetInstancesGetCall
- func (r *TargetInstancesService) Insert(project string, zone string, targetinstance *TargetInstance) *TargetInstancesInsertCall
- func (r *TargetInstancesService) List(project string, zone string) *TargetInstancesListCall
- func (r *TargetInstancesService) SetSecurityPolicy(project string, zone string, targetInstance string, ...) *TargetInstancesSetSecurityPolicyCall
- type TargetInstancesSetSecurityPolicyCall
- func (c *TargetInstancesSetSecurityPolicyCall) Context(ctx context.Context) *TargetInstancesSetSecurityPolicyCall
- func (c *TargetInstancesSetSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetInstancesSetSecurityPolicyCall) Fields(s ...googleapi.Field) *TargetInstancesSetSecurityPolicyCall
- func (c *TargetInstancesSetSecurityPolicyCall) Header() http.Header
- func (c *TargetInstancesSetSecurityPolicyCall) RequestId(requestId string) *TargetInstancesSetSecurityPolicyCall
- type TargetPool
- type TargetPoolAggregatedList
- type TargetPoolAggregatedListWarning
- type TargetPoolAggregatedListWarningData
- type TargetPoolInstanceHealth
- type TargetPoolList
- type TargetPoolListWarning
- type TargetPoolListWarningData
- type TargetPoolsAddHealthCheckCall
- func (c *TargetPoolsAddHealthCheckCall) Context(ctx context.Context) *TargetPoolsAddHealthCheckCall
- func (c *TargetPoolsAddHealthCheckCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetPoolsAddHealthCheckCall) Fields(s ...googleapi.Field) *TargetPoolsAddHealthCheckCall
- func (c *TargetPoolsAddHealthCheckCall) Header() http.Header
- func (c *TargetPoolsAddHealthCheckCall) RequestId(requestId string) *TargetPoolsAddHealthCheckCall
- type TargetPoolsAddHealthCheckRequest
- type TargetPoolsAddInstanceCall
- func (c *TargetPoolsAddInstanceCall) Context(ctx context.Context) *TargetPoolsAddInstanceCall
- func (c *TargetPoolsAddInstanceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetPoolsAddInstanceCall) Fields(s ...googleapi.Field) *TargetPoolsAddInstanceCall
- func (c *TargetPoolsAddInstanceCall) Header() http.Header
- func (c *TargetPoolsAddInstanceCall) RequestId(requestId string) *TargetPoolsAddInstanceCall
- type TargetPoolsAddInstanceRequest
- type TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) Context(ctx context.Context) *TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetPoolAggregatedList, error)
- func (c *TargetPoolsAggregatedListCall) Fields(s ...googleapi.Field) *TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) Filter(filter string) *TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) Header() http.Header
- func (c *TargetPoolsAggregatedListCall) IfNoneMatch(entityTag string) *TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) MaxResults(maxResults int64) *TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) OrderBy(orderBy string) *TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) PageToken(pageToken string) *TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) Pages(ctx context.Context, f func(*TargetPoolAggregatedList) error) error
- func (c *TargetPoolsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *TargetPoolsAggregatedListCall
- type TargetPoolsDeleteCall
- func (c *TargetPoolsDeleteCall) Context(ctx context.Context) *TargetPoolsDeleteCall
- func (c *TargetPoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetPoolsDeleteCall) Fields(s ...googleapi.Field) *TargetPoolsDeleteCall
- func (c *TargetPoolsDeleteCall) Header() http.Header
- func (c *TargetPoolsDeleteCall) RequestId(requestId string) *TargetPoolsDeleteCall
- type TargetPoolsGetCall
- func (c *TargetPoolsGetCall) Context(ctx context.Context) *TargetPoolsGetCall
- func (c *TargetPoolsGetCall) Do(opts ...googleapi.CallOption) (*TargetPool, error)
- func (c *TargetPoolsGetCall) Fields(s ...googleapi.Field) *TargetPoolsGetCall
- func (c *TargetPoolsGetCall) Header() http.Header
- func (c *TargetPoolsGetCall) IfNoneMatch(entityTag string) *TargetPoolsGetCall
- type TargetPoolsGetHealthCall
- func (c *TargetPoolsGetHealthCall) Context(ctx context.Context) *TargetPoolsGetHealthCall
- func (c *TargetPoolsGetHealthCall) Do(opts ...googleapi.CallOption) (*TargetPoolInstanceHealth, error)
- func (c *TargetPoolsGetHealthCall) Fields(s ...googleapi.Field) *TargetPoolsGetHealthCall
- func (c *TargetPoolsGetHealthCall) Header() http.Header
- type TargetPoolsInsertCall
- func (c *TargetPoolsInsertCall) Context(ctx context.Context) *TargetPoolsInsertCall
- func (c *TargetPoolsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetPoolsInsertCall) Fields(s ...googleapi.Field) *TargetPoolsInsertCall
- func (c *TargetPoolsInsertCall) Header() http.Header
- func (c *TargetPoolsInsertCall) RequestId(requestId string) *TargetPoolsInsertCall
- type TargetPoolsListCall
- func (c *TargetPoolsListCall) Context(ctx context.Context) *TargetPoolsListCall
- func (c *TargetPoolsListCall) Do(opts ...googleapi.CallOption) (*TargetPoolList, error)
- func (c *TargetPoolsListCall) Fields(s ...googleapi.Field) *TargetPoolsListCall
- func (c *TargetPoolsListCall) Filter(filter string) *TargetPoolsListCall
- func (c *TargetPoolsListCall) Header() http.Header
- func (c *TargetPoolsListCall) IfNoneMatch(entityTag string) *TargetPoolsListCall
- func (c *TargetPoolsListCall) MaxResults(maxResults int64) *TargetPoolsListCall
- func (c *TargetPoolsListCall) OrderBy(orderBy string) *TargetPoolsListCall
- func (c *TargetPoolsListCall) PageToken(pageToken string) *TargetPoolsListCall
- func (c *TargetPoolsListCall) Pages(ctx context.Context, f func(*TargetPoolList) error) error
- func (c *TargetPoolsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetPoolsListCall
- type TargetPoolsRemoveHealthCheckCall
- func (c *TargetPoolsRemoveHealthCheckCall) Context(ctx context.Context) *TargetPoolsRemoveHealthCheckCall
- func (c *TargetPoolsRemoveHealthCheckCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetPoolsRemoveHealthCheckCall) Fields(s ...googleapi.Field) *TargetPoolsRemoveHealthCheckCall
- func (c *TargetPoolsRemoveHealthCheckCall) Header() http.Header
- func (c *TargetPoolsRemoveHealthCheckCall) RequestId(requestId string) *TargetPoolsRemoveHealthCheckCall
- type TargetPoolsRemoveHealthCheckRequest
- type TargetPoolsRemoveInstanceCall
- func (c *TargetPoolsRemoveInstanceCall) Context(ctx context.Context) *TargetPoolsRemoveInstanceCall
- func (c *TargetPoolsRemoveInstanceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetPoolsRemoveInstanceCall) Fields(s ...googleapi.Field) *TargetPoolsRemoveInstanceCall
- func (c *TargetPoolsRemoveInstanceCall) Header() http.Header
- func (c *TargetPoolsRemoveInstanceCall) RequestId(requestId string) *TargetPoolsRemoveInstanceCall
- type TargetPoolsRemoveInstanceRequest
- type TargetPoolsScopedList
- type TargetPoolsScopedListWarning
- type TargetPoolsScopedListWarningData
- type TargetPoolsService
- func (r *TargetPoolsService) AddHealthCheck(project string, region string, targetPool string, ...) *TargetPoolsAddHealthCheckCall
- func (r *TargetPoolsService) AddInstance(project string, region string, targetPool string, ...) *TargetPoolsAddInstanceCall
- func (r *TargetPoolsService) AggregatedList(project string) *TargetPoolsAggregatedListCall
- func (r *TargetPoolsService) Delete(project string, region string, targetPool string) *TargetPoolsDeleteCall
- func (r *TargetPoolsService) Get(project string, region string, targetPool string) *TargetPoolsGetCall
- func (r *TargetPoolsService) GetHealth(project string, region string, targetPool string, ...) *TargetPoolsGetHealthCall
- func (r *TargetPoolsService) Insert(project string, region string, targetpool *TargetPool) *TargetPoolsInsertCall
- func (r *TargetPoolsService) List(project string, region string) *TargetPoolsListCall
- func (r *TargetPoolsService) RemoveHealthCheck(project string, region string, targetPool string, ...) *TargetPoolsRemoveHealthCheckCall
- func (r *TargetPoolsService) RemoveInstance(project string, region string, targetPool string, ...) *TargetPoolsRemoveInstanceCall
- func (r *TargetPoolsService) SetBackup(project string, region string, targetPool string, ...) *TargetPoolsSetBackupCall
- func (r *TargetPoolsService) SetSecurityPolicy(project string, region string, targetPool string, ...) *TargetPoolsSetSecurityPolicyCall
- type TargetPoolsSetBackupCall
- func (c *TargetPoolsSetBackupCall) Context(ctx context.Context) *TargetPoolsSetBackupCall
- func (c *TargetPoolsSetBackupCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetPoolsSetBackupCall) FailoverRatio(failoverRatio float64) *TargetPoolsSetBackupCall
- func (c *TargetPoolsSetBackupCall) Fields(s ...googleapi.Field) *TargetPoolsSetBackupCall
- func (c *TargetPoolsSetBackupCall) Header() http.Header
- func (c *TargetPoolsSetBackupCall) RequestId(requestId string) *TargetPoolsSetBackupCall
- type TargetPoolsSetSecurityPolicyCall
- func (c *TargetPoolsSetSecurityPolicyCall) Context(ctx context.Context) *TargetPoolsSetSecurityPolicyCall
- func (c *TargetPoolsSetSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetPoolsSetSecurityPolicyCall) Fields(s ...googleapi.Field) *TargetPoolsSetSecurityPolicyCall
- func (c *TargetPoolsSetSecurityPolicyCall) Header() http.Header
- func (c *TargetPoolsSetSecurityPolicyCall) RequestId(requestId string) *TargetPoolsSetSecurityPolicyCall
- type TargetReference
- type TargetSslProxiesDeleteCall
- func (c *TargetSslProxiesDeleteCall) Context(ctx context.Context) *TargetSslProxiesDeleteCall
- func (c *TargetSslProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetSslProxiesDeleteCall) Fields(s ...googleapi.Field) *TargetSslProxiesDeleteCall
- func (c *TargetSslProxiesDeleteCall) Header() http.Header
- func (c *TargetSslProxiesDeleteCall) RequestId(requestId string) *TargetSslProxiesDeleteCall
- type TargetSslProxiesGetCall
- func (c *TargetSslProxiesGetCall) Context(ctx context.Context) *TargetSslProxiesGetCall
- func (c *TargetSslProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetSslProxy, error)
- func (c *TargetSslProxiesGetCall) Fields(s ...googleapi.Field) *TargetSslProxiesGetCall
- func (c *TargetSslProxiesGetCall) Header() http.Header
- func (c *TargetSslProxiesGetCall) IfNoneMatch(entityTag string) *TargetSslProxiesGetCall
- type TargetSslProxiesInsertCall
- func (c *TargetSslProxiesInsertCall) Context(ctx context.Context) *TargetSslProxiesInsertCall
- func (c *TargetSslProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetSslProxiesInsertCall) Fields(s ...googleapi.Field) *TargetSslProxiesInsertCall
- func (c *TargetSslProxiesInsertCall) Header() http.Header
- func (c *TargetSslProxiesInsertCall) RequestId(requestId string) *TargetSslProxiesInsertCall
- type TargetSslProxiesListCall
- func (c *TargetSslProxiesListCall) Context(ctx context.Context) *TargetSslProxiesListCall
- func (c *TargetSslProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetSslProxyList, error)
- func (c *TargetSslProxiesListCall) Fields(s ...googleapi.Field) *TargetSslProxiesListCall
- func (c *TargetSslProxiesListCall) Filter(filter string) *TargetSslProxiesListCall
- func (c *TargetSslProxiesListCall) Header() http.Header
- func (c *TargetSslProxiesListCall) IfNoneMatch(entityTag string) *TargetSslProxiesListCall
- func (c *TargetSslProxiesListCall) MaxResults(maxResults int64) *TargetSslProxiesListCall
- func (c *TargetSslProxiesListCall) OrderBy(orderBy string) *TargetSslProxiesListCall
- func (c *TargetSslProxiesListCall) PageToken(pageToken string) *TargetSslProxiesListCall
- func (c *TargetSslProxiesListCall) Pages(ctx context.Context, f func(*TargetSslProxyList) error) error
- func (c *TargetSslProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetSslProxiesListCall
- type TargetSslProxiesService
- func (r *TargetSslProxiesService) Delete(project string, targetSslProxy string) *TargetSslProxiesDeleteCall
- func (r *TargetSslProxiesService) Get(project string, targetSslProxy string) *TargetSslProxiesGetCall
- func (r *TargetSslProxiesService) Insert(project string, targetsslproxy *TargetSslProxy) *TargetSslProxiesInsertCall
- func (r *TargetSslProxiesService) List(project string) *TargetSslProxiesListCall
- func (r *TargetSslProxiesService) SetBackendService(project string, targetSslProxy string, ...) *TargetSslProxiesSetBackendServiceCall
- func (r *TargetSslProxiesService) SetCertificateMap(project string, targetSslProxy string, ...) *TargetSslProxiesSetCertificateMapCall
- func (r *TargetSslProxiesService) SetProxyHeader(project string, targetSslProxy string, ...) *TargetSslProxiesSetProxyHeaderCall
- func (r *TargetSslProxiesService) SetSslCertificates(project string, targetSslProxy string, ...) *TargetSslProxiesSetSslCertificatesCall
- func (r *TargetSslProxiesService) SetSslPolicy(project string, targetSslProxy string, sslpolicyreference *SslPolicyReference) *TargetSslProxiesSetSslPolicyCall
- type TargetSslProxiesSetBackendServiceCall
- func (c *TargetSslProxiesSetBackendServiceCall) Context(ctx context.Context) *TargetSslProxiesSetBackendServiceCall
- func (c *TargetSslProxiesSetBackendServiceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetSslProxiesSetBackendServiceCall) Fields(s ...googleapi.Field) *TargetSslProxiesSetBackendServiceCall
- func (c *TargetSslProxiesSetBackendServiceCall) Header() http.Header
- func (c *TargetSslProxiesSetBackendServiceCall) RequestId(requestId string) *TargetSslProxiesSetBackendServiceCall
- type TargetSslProxiesSetBackendServiceRequest
- type TargetSslProxiesSetCertificateMapCall
- func (c *TargetSslProxiesSetCertificateMapCall) Context(ctx context.Context) *TargetSslProxiesSetCertificateMapCall
- func (c *TargetSslProxiesSetCertificateMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetSslProxiesSetCertificateMapCall) Fields(s ...googleapi.Field) *TargetSslProxiesSetCertificateMapCall
- func (c *TargetSslProxiesSetCertificateMapCall) Header() http.Header
- func (c *TargetSslProxiesSetCertificateMapCall) RequestId(requestId string) *TargetSslProxiesSetCertificateMapCall
- type TargetSslProxiesSetCertificateMapRequest
- type TargetSslProxiesSetProxyHeaderCall
- func (c *TargetSslProxiesSetProxyHeaderCall) Context(ctx context.Context) *TargetSslProxiesSetProxyHeaderCall
- func (c *TargetSslProxiesSetProxyHeaderCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetSslProxiesSetProxyHeaderCall) Fields(s ...googleapi.Field) *TargetSslProxiesSetProxyHeaderCall
- func (c *TargetSslProxiesSetProxyHeaderCall) Header() http.Header
- func (c *TargetSslProxiesSetProxyHeaderCall) RequestId(requestId string) *TargetSslProxiesSetProxyHeaderCall
- type TargetSslProxiesSetProxyHeaderRequest
- type TargetSslProxiesSetSslCertificatesCall
- func (c *TargetSslProxiesSetSslCertificatesCall) Context(ctx context.Context) *TargetSslProxiesSetSslCertificatesCall
- func (c *TargetSslProxiesSetSslCertificatesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetSslProxiesSetSslCertificatesCall) Fields(s ...googleapi.Field) *TargetSslProxiesSetSslCertificatesCall
- func (c *TargetSslProxiesSetSslCertificatesCall) Header() http.Header
- func (c *TargetSslProxiesSetSslCertificatesCall) RequestId(requestId string) *TargetSslProxiesSetSslCertificatesCall
- type TargetSslProxiesSetSslCertificatesRequest
- type TargetSslProxiesSetSslPolicyCall
- func (c *TargetSslProxiesSetSslPolicyCall) Context(ctx context.Context) *TargetSslProxiesSetSslPolicyCall
- func (c *TargetSslProxiesSetSslPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetSslProxiesSetSslPolicyCall) Fields(s ...googleapi.Field) *TargetSslProxiesSetSslPolicyCall
- func (c *TargetSslProxiesSetSslPolicyCall) Header() http.Header
- func (c *TargetSslProxiesSetSslPolicyCall) RequestId(requestId string) *TargetSslProxiesSetSslPolicyCall
- type TargetSslProxy
- type TargetSslProxyList
- type TargetSslProxyListWarning
- type TargetSslProxyListWarningData
- type TargetTcpProxiesAggregatedListCall
- func (c *TargetTcpProxiesAggregatedListCall) Context(ctx context.Context) *TargetTcpProxiesAggregatedListCall
- func (c *TargetTcpProxiesAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetTcpProxyAggregatedList, error)
- func (c *TargetTcpProxiesAggregatedListCall) Fields(s ...googleapi.Field) *TargetTcpProxiesAggregatedListCall
- func (c *TargetTcpProxiesAggregatedListCall) Filter(filter string) *TargetTcpProxiesAggregatedListCall
- func (c *TargetTcpProxiesAggregatedListCall) Header() http.Header
- func (c *TargetTcpProxiesAggregatedListCall) IfNoneMatch(entityTag string) *TargetTcpProxiesAggregatedListCall
- func (c *TargetTcpProxiesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *TargetTcpProxiesAggregatedListCall
- func (c *TargetTcpProxiesAggregatedListCall) MaxResults(maxResults int64) *TargetTcpProxiesAggregatedListCall
- func (c *TargetTcpProxiesAggregatedListCall) OrderBy(orderBy string) *TargetTcpProxiesAggregatedListCall
- func (c *TargetTcpProxiesAggregatedListCall) PageToken(pageToken string) *TargetTcpProxiesAggregatedListCall
- func (c *TargetTcpProxiesAggregatedListCall) Pages(ctx context.Context, f func(*TargetTcpProxyAggregatedList) error) error
- func (c *TargetTcpProxiesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetTcpProxiesAggregatedListCall
- func (c *TargetTcpProxiesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *TargetTcpProxiesAggregatedListCall
- type TargetTcpProxiesDeleteCall
- func (c *TargetTcpProxiesDeleteCall) Context(ctx context.Context) *TargetTcpProxiesDeleteCall
- func (c *TargetTcpProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetTcpProxiesDeleteCall) Fields(s ...googleapi.Field) *TargetTcpProxiesDeleteCall
- func (c *TargetTcpProxiesDeleteCall) Header() http.Header
- func (c *TargetTcpProxiesDeleteCall) RequestId(requestId string) *TargetTcpProxiesDeleteCall
- type TargetTcpProxiesGetCall
- func (c *TargetTcpProxiesGetCall) Context(ctx context.Context) *TargetTcpProxiesGetCall
- func (c *TargetTcpProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetTcpProxy, error)
- func (c *TargetTcpProxiesGetCall) Fields(s ...googleapi.Field) *TargetTcpProxiesGetCall
- func (c *TargetTcpProxiesGetCall) Header() http.Header
- func (c *TargetTcpProxiesGetCall) IfNoneMatch(entityTag string) *TargetTcpProxiesGetCall
- type TargetTcpProxiesInsertCall
- func (c *TargetTcpProxiesInsertCall) Context(ctx context.Context) *TargetTcpProxiesInsertCall
- func (c *TargetTcpProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetTcpProxiesInsertCall) Fields(s ...googleapi.Field) *TargetTcpProxiesInsertCall
- func (c *TargetTcpProxiesInsertCall) Header() http.Header
- func (c *TargetTcpProxiesInsertCall) RequestId(requestId string) *TargetTcpProxiesInsertCall
- type TargetTcpProxiesListCall
- func (c *TargetTcpProxiesListCall) Context(ctx context.Context) *TargetTcpProxiesListCall
- func (c *TargetTcpProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetTcpProxyList, error)
- func (c *TargetTcpProxiesListCall) Fields(s ...googleapi.Field) *TargetTcpProxiesListCall
- func (c *TargetTcpProxiesListCall) Filter(filter string) *TargetTcpProxiesListCall
- func (c *TargetTcpProxiesListCall) Header() http.Header
- func (c *TargetTcpProxiesListCall) IfNoneMatch(entityTag string) *TargetTcpProxiesListCall
- func (c *TargetTcpProxiesListCall) MaxResults(maxResults int64) *TargetTcpProxiesListCall
- func (c *TargetTcpProxiesListCall) OrderBy(orderBy string) *TargetTcpProxiesListCall
- func (c *TargetTcpProxiesListCall) PageToken(pageToken string) *TargetTcpProxiesListCall
- func (c *TargetTcpProxiesListCall) Pages(ctx context.Context, f func(*TargetTcpProxyList) error) error
- func (c *TargetTcpProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetTcpProxiesListCall
- type TargetTcpProxiesScopedList
- type TargetTcpProxiesScopedListWarning
- type TargetTcpProxiesScopedListWarningData
- type TargetTcpProxiesService
- func (r *TargetTcpProxiesService) AggregatedList(project string) *TargetTcpProxiesAggregatedListCall
- func (r *TargetTcpProxiesService) Delete(project string, targetTcpProxy string) *TargetTcpProxiesDeleteCall
- func (r *TargetTcpProxiesService) Get(project string, targetTcpProxy string) *TargetTcpProxiesGetCall
- func (r *TargetTcpProxiesService) Insert(project string, targettcpproxy *TargetTcpProxy) *TargetTcpProxiesInsertCall
- func (r *TargetTcpProxiesService) List(project string) *TargetTcpProxiesListCall
- func (r *TargetTcpProxiesService) SetBackendService(project string, targetTcpProxy string, ...) *TargetTcpProxiesSetBackendServiceCall
- func (r *TargetTcpProxiesService) SetProxyHeader(project string, targetTcpProxy string, ...) *TargetTcpProxiesSetProxyHeaderCall
- type TargetTcpProxiesSetBackendServiceCall
- func (c *TargetTcpProxiesSetBackendServiceCall) Context(ctx context.Context) *TargetTcpProxiesSetBackendServiceCall
- func (c *TargetTcpProxiesSetBackendServiceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetTcpProxiesSetBackendServiceCall) Fields(s ...googleapi.Field) *TargetTcpProxiesSetBackendServiceCall
- func (c *TargetTcpProxiesSetBackendServiceCall) Header() http.Header
- func (c *TargetTcpProxiesSetBackendServiceCall) RequestId(requestId string) *TargetTcpProxiesSetBackendServiceCall
- type TargetTcpProxiesSetBackendServiceRequest
- type TargetTcpProxiesSetProxyHeaderCall
- func (c *TargetTcpProxiesSetProxyHeaderCall) Context(ctx context.Context) *TargetTcpProxiesSetProxyHeaderCall
- func (c *TargetTcpProxiesSetProxyHeaderCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetTcpProxiesSetProxyHeaderCall) Fields(s ...googleapi.Field) *TargetTcpProxiesSetProxyHeaderCall
- func (c *TargetTcpProxiesSetProxyHeaderCall) Header() http.Header
- func (c *TargetTcpProxiesSetProxyHeaderCall) RequestId(requestId string) *TargetTcpProxiesSetProxyHeaderCall
- type TargetTcpProxiesSetProxyHeaderRequest
- type TargetTcpProxy
- type TargetTcpProxyAggregatedList
- type TargetTcpProxyAggregatedListWarning
- type TargetTcpProxyAggregatedListWarningData
- type TargetTcpProxyList
- type TargetTcpProxyListWarning
- type TargetTcpProxyListWarningData
- type TargetVpnGateway
- type TargetVpnGatewayAggregatedList
- type TargetVpnGatewayAggregatedListWarning
- type TargetVpnGatewayAggregatedListWarningData
- type TargetVpnGatewayList
- type TargetVpnGatewayListWarning
- type TargetVpnGatewayListWarningData
- type TargetVpnGatewaysAggregatedListCall
- func (c *TargetVpnGatewaysAggregatedListCall) Context(ctx context.Context) *TargetVpnGatewaysAggregatedListCall
- func (c *TargetVpnGatewaysAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetVpnGatewayAggregatedList, error)
- func (c *TargetVpnGatewaysAggregatedListCall) Fields(s ...googleapi.Field) *TargetVpnGatewaysAggregatedListCall
- func (c *TargetVpnGatewaysAggregatedListCall) Filter(filter string) *TargetVpnGatewaysAggregatedListCall
- func (c *TargetVpnGatewaysAggregatedListCall) Header() http.Header
- func (c *TargetVpnGatewaysAggregatedListCall) IfNoneMatch(entityTag string) *TargetVpnGatewaysAggregatedListCall
- func (c *TargetVpnGatewaysAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *TargetVpnGatewaysAggregatedListCall
- func (c *TargetVpnGatewaysAggregatedListCall) MaxResults(maxResults int64) *TargetVpnGatewaysAggregatedListCall
- func (c *TargetVpnGatewaysAggregatedListCall) OrderBy(orderBy string) *TargetVpnGatewaysAggregatedListCall
- func (c *TargetVpnGatewaysAggregatedListCall) PageToken(pageToken string) *TargetVpnGatewaysAggregatedListCall
- func (c *TargetVpnGatewaysAggregatedListCall) Pages(ctx context.Context, f func(*TargetVpnGatewayAggregatedList) error) error
- func (c *TargetVpnGatewaysAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetVpnGatewaysAggregatedListCall
- func (c *TargetVpnGatewaysAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *TargetVpnGatewaysAggregatedListCall
- type TargetVpnGatewaysDeleteCall
- func (c *TargetVpnGatewaysDeleteCall) Context(ctx context.Context) *TargetVpnGatewaysDeleteCall
- func (c *TargetVpnGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetVpnGatewaysDeleteCall) Fields(s ...googleapi.Field) *TargetVpnGatewaysDeleteCall
- func (c *TargetVpnGatewaysDeleteCall) Header() http.Header
- func (c *TargetVpnGatewaysDeleteCall) RequestId(requestId string) *TargetVpnGatewaysDeleteCall
- type TargetVpnGatewaysGetCall
- func (c *TargetVpnGatewaysGetCall) Context(ctx context.Context) *TargetVpnGatewaysGetCall
- func (c *TargetVpnGatewaysGetCall) Do(opts ...googleapi.CallOption) (*TargetVpnGateway, error)
- func (c *TargetVpnGatewaysGetCall) Fields(s ...googleapi.Field) *TargetVpnGatewaysGetCall
- func (c *TargetVpnGatewaysGetCall) Header() http.Header
- func (c *TargetVpnGatewaysGetCall) IfNoneMatch(entityTag string) *TargetVpnGatewaysGetCall
- type TargetVpnGatewaysInsertCall
- func (c *TargetVpnGatewaysInsertCall) Context(ctx context.Context) *TargetVpnGatewaysInsertCall
- func (c *TargetVpnGatewaysInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetVpnGatewaysInsertCall) Fields(s ...googleapi.Field) *TargetVpnGatewaysInsertCall
- func (c *TargetVpnGatewaysInsertCall) Header() http.Header
- func (c *TargetVpnGatewaysInsertCall) RequestId(requestId string) *TargetVpnGatewaysInsertCall
- type TargetVpnGatewaysListCall
- func (c *TargetVpnGatewaysListCall) Context(ctx context.Context) *TargetVpnGatewaysListCall
- func (c *TargetVpnGatewaysListCall) Do(opts ...googleapi.CallOption) (*TargetVpnGatewayList, error)
- func (c *TargetVpnGatewaysListCall) Fields(s ...googleapi.Field) *TargetVpnGatewaysListCall
- func (c *TargetVpnGatewaysListCall) Filter(filter string) *TargetVpnGatewaysListCall
- func (c *TargetVpnGatewaysListCall) Header() http.Header
- func (c *TargetVpnGatewaysListCall) IfNoneMatch(entityTag string) *TargetVpnGatewaysListCall
- func (c *TargetVpnGatewaysListCall) MaxResults(maxResults int64) *TargetVpnGatewaysListCall
- func (c *TargetVpnGatewaysListCall) OrderBy(orderBy string) *TargetVpnGatewaysListCall
- func (c *TargetVpnGatewaysListCall) PageToken(pageToken string) *TargetVpnGatewaysListCall
- func (c *TargetVpnGatewaysListCall) Pages(ctx context.Context, f func(*TargetVpnGatewayList) error) error
- func (c *TargetVpnGatewaysListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetVpnGatewaysListCall
- type TargetVpnGatewaysScopedList
- type TargetVpnGatewaysScopedListWarning
- type TargetVpnGatewaysScopedListWarningData
- type TargetVpnGatewaysService
- func (r *TargetVpnGatewaysService) AggregatedList(project string) *TargetVpnGatewaysAggregatedListCall
- func (r *TargetVpnGatewaysService) Delete(project string, region string, targetVpnGateway string) *TargetVpnGatewaysDeleteCall
- func (r *TargetVpnGatewaysService) Get(project string, region string, targetVpnGateway string) *TargetVpnGatewaysGetCall
- func (r *TargetVpnGatewaysService) Insert(project string, region string, targetvpngateway *TargetVpnGateway) *TargetVpnGatewaysInsertCall
- func (r *TargetVpnGatewaysService) List(project string, region string) *TargetVpnGatewaysListCall
- func (r *TargetVpnGatewaysService) SetLabels(project string, region string, resource string, ...) *TargetVpnGatewaysSetLabelsCall
- type TargetVpnGatewaysSetLabelsCall
- func (c *TargetVpnGatewaysSetLabelsCall) Context(ctx context.Context) *TargetVpnGatewaysSetLabelsCall
- func (c *TargetVpnGatewaysSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *TargetVpnGatewaysSetLabelsCall) Fields(s ...googleapi.Field) *TargetVpnGatewaysSetLabelsCall
- func (c *TargetVpnGatewaysSetLabelsCall) Header() http.Header
- func (c *TargetVpnGatewaysSetLabelsCall) RequestId(requestId string) *TargetVpnGatewaysSetLabelsCall
- type TestFailure
- type TestPermissionsRequest
- type TestPermissionsResponse
- type Uint128
- type UpcomingMaintenance
- type UrlMap
- type UrlMapList
- type UrlMapListWarning
- type UrlMapListWarningData
- type UrlMapReference
- type UrlMapTest
- type UrlMapTestHeader
- type UrlMapValidationResult
- type UrlMapsAggregatedList
- type UrlMapsAggregatedListCall
- func (c *UrlMapsAggregatedListCall) Context(ctx context.Context) *UrlMapsAggregatedListCall
- func (c *UrlMapsAggregatedListCall) Do(opts ...googleapi.CallOption) (*UrlMapsAggregatedList, error)
- func (c *UrlMapsAggregatedListCall) Fields(s ...googleapi.Field) *UrlMapsAggregatedListCall
- func (c *UrlMapsAggregatedListCall) Filter(filter string) *UrlMapsAggregatedListCall
- func (c *UrlMapsAggregatedListCall) Header() http.Header
- func (c *UrlMapsAggregatedListCall) IfNoneMatch(entityTag string) *UrlMapsAggregatedListCall
- func (c *UrlMapsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *UrlMapsAggregatedListCall
- func (c *UrlMapsAggregatedListCall) MaxResults(maxResults int64) *UrlMapsAggregatedListCall
- func (c *UrlMapsAggregatedListCall) OrderBy(orderBy string) *UrlMapsAggregatedListCall
- func (c *UrlMapsAggregatedListCall) PageToken(pageToken string) *UrlMapsAggregatedListCall
- func (c *UrlMapsAggregatedListCall) Pages(ctx context.Context, f func(*UrlMapsAggregatedList) error) error
- func (c *UrlMapsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *UrlMapsAggregatedListCall
- func (c *UrlMapsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *UrlMapsAggregatedListCall
- type UrlMapsAggregatedListWarning
- type UrlMapsAggregatedListWarningData
- type UrlMapsDeleteCall
- func (c *UrlMapsDeleteCall) Context(ctx context.Context) *UrlMapsDeleteCall
- func (c *UrlMapsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *UrlMapsDeleteCall) Fields(s ...googleapi.Field) *UrlMapsDeleteCall
- func (c *UrlMapsDeleteCall) Header() http.Header
- func (c *UrlMapsDeleteCall) RequestId(requestId string) *UrlMapsDeleteCall
- type UrlMapsGetCall
- func (c *UrlMapsGetCall) Context(ctx context.Context) *UrlMapsGetCall
- func (c *UrlMapsGetCall) Do(opts ...googleapi.CallOption) (*UrlMap, error)
- func (c *UrlMapsGetCall) Fields(s ...googleapi.Field) *UrlMapsGetCall
- func (c *UrlMapsGetCall) Header() http.Header
- func (c *UrlMapsGetCall) IfNoneMatch(entityTag string) *UrlMapsGetCall
- type UrlMapsInsertCall
- func (c *UrlMapsInsertCall) Context(ctx context.Context) *UrlMapsInsertCall
- func (c *UrlMapsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *UrlMapsInsertCall) Fields(s ...googleapi.Field) *UrlMapsInsertCall
- func (c *UrlMapsInsertCall) Header() http.Header
- func (c *UrlMapsInsertCall) RequestId(requestId string) *UrlMapsInsertCall
- type UrlMapsInvalidateCacheCall
- func (c *UrlMapsInvalidateCacheCall) Context(ctx context.Context) *UrlMapsInvalidateCacheCall
- func (c *UrlMapsInvalidateCacheCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *UrlMapsInvalidateCacheCall) Fields(s ...googleapi.Field) *UrlMapsInvalidateCacheCall
- func (c *UrlMapsInvalidateCacheCall) Header() http.Header
- func (c *UrlMapsInvalidateCacheCall) RequestId(requestId string) *UrlMapsInvalidateCacheCall
- type UrlMapsListCall
- func (c *UrlMapsListCall) Context(ctx context.Context) *UrlMapsListCall
- func (c *UrlMapsListCall) Do(opts ...googleapi.CallOption) (*UrlMapList, error)
- func (c *UrlMapsListCall) Fields(s ...googleapi.Field) *UrlMapsListCall
- func (c *UrlMapsListCall) Filter(filter string) *UrlMapsListCall
- func (c *UrlMapsListCall) Header() http.Header
- func (c *UrlMapsListCall) IfNoneMatch(entityTag string) *UrlMapsListCall
- func (c *UrlMapsListCall) MaxResults(maxResults int64) *UrlMapsListCall
- func (c *UrlMapsListCall) OrderBy(orderBy string) *UrlMapsListCall
- func (c *UrlMapsListCall) PageToken(pageToken string) *UrlMapsListCall
- func (c *UrlMapsListCall) Pages(ctx context.Context, f func(*UrlMapList) error) error
- func (c *UrlMapsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *UrlMapsListCall
- type UrlMapsPatchCall
- func (c *UrlMapsPatchCall) Context(ctx context.Context) *UrlMapsPatchCall
- func (c *UrlMapsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *UrlMapsPatchCall) Fields(s ...googleapi.Field) *UrlMapsPatchCall
- func (c *UrlMapsPatchCall) Header() http.Header
- func (c *UrlMapsPatchCall) RequestId(requestId string) *UrlMapsPatchCall
- type UrlMapsScopedList
- type UrlMapsScopedListWarning
- type UrlMapsScopedListWarningData
- type UrlMapsService
- func (r *UrlMapsService) AggregatedList(project string) *UrlMapsAggregatedListCall
- func (r *UrlMapsService) Delete(project string, urlMap string) *UrlMapsDeleteCall
- func (r *UrlMapsService) Get(project string, urlMap string) *UrlMapsGetCall
- func (r *UrlMapsService) Insert(project string, urlmap *UrlMap) *UrlMapsInsertCall
- func (r *UrlMapsService) InvalidateCache(project string, urlMap string, cacheinvalidationrule *CacheInvalidationRule) *UrlMapsInvalidateCacheCall
- func (r *UrlMapsService) List(project string) *UrlMapsListCall
- func (r *UrlMapsService) Patch(project string, urlMap string, urlmap *UrlMap) *UrlMapsPatchCall
- func (r *UrlMapsService) Update(project string, urlMap string, urlmap *UrlMap) *UrlMapsUpdateCall
- func (r *UrlMapsService) Validate(project string, urlMap string, urlmapsvalidaterequest *UrlMapsValidateRequest) *UrlMapsValidateCall
- type UrlMapsUpdateCall
- func (c *UrlMapsUpdateCall) Context(ctx context.Context) *UrlMapsUpdateCall
- func (c *UrlMapsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *UrlMapsUpdateCall) Fields(s ...googleapi.Field) *UrlMapsUpdateCall
- func (c *UrlMapsUpdateCall) Header() http.Header
- func (c *UrlMapsUpdateCall) RequestId(requestId string) *UrlMapsUpdateCall
- type UrlMapsValidateCall
- func (c *UrlMapsValidateCall) Context(ctx context.Context) *UrlMapsValidateCall
- func (c *UrlMapsValidateCall) Do(opts ...googleapi.CallOption) (*UrlMapsValidateResponse, error)
- func (c *UrlMapsValidateCall) Fields(s ...googleapi.Field) *UrlMapsValidateCall
- func (c *UrlMapsValidateCall) Header() http.Header
- type UrlMapsValidateRequest
- type UrlMapsValidateResponse
- type UrlRewrite
- type UsableSubnetwork
- type UsableSubnetworkSecondaryRange
- type UsableSubnetworksAggregatedList
- type UsableSubnetworksAggregatedListWarning
- type UsableSubnetworksAggregatedListWarningData
- type UsageExportLocation
- type VmEndpointNatMappings
- type VmEndpointNatMappingsInterfaceNatMappings
- type VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
- type VmEndpointNatMappingsList
- type VmEndpointNatMappingsListWarning
- type VmEndpointNatMappingsListWarningData
- type VpnGateway
- type VpnGatewayAggregatedList
- type VpnGatewayAggregatedListWarning
- type VpnGatewayAggregatedListWarningData
- type VpnGatewayList
- type VpnGatewayListWarning
- type VpnGatewayListWarningData
- type VpnGatewayStatus
- type VpnGatewayStatusHighAvailabilityRequirementState
- type VpnGatewayStatusTunnel
- type VpnGatewayStatusVpnConnection
- type VpnGatewayVpnGatewayInterface
- type VpnGatewaysAggregatedListCall
- func (c *VpnGatewaysAggregatedListCall) Context(ctx context.Context) *VpnGatewaysAggregatedListCall
- func (c *VpnGatewaysAggregatedListCall) Do(opts ...googleapi.CallOption) (*VpnGatewayAggregatedList, error)
- func (c *VpnGatewaysAggregatedListCall) Fields(s ...googleapi.Field) *VpnGatewaysAggregatedListCall
- func (c *VpnGatewaysAggregatedListCall) Filter(filter string) *VpnGatewaysAggregatedListCall
- func (c *VpnGatewaysAggregatedListCall) Header() http.Header
- func (c *VpnGatewaysAggregatedListCall) IfNoneMatch(entityTag string) *VpnGatewaysAggregatedListCall
- func (c *VpnGatewaysAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *VpnGatewaysAggregatedListCall
- func (c *VpnGatewaysAggregatedListCall) MaxResults(maxResults int64) *VpnGatewaysAggregatedListCall
- func (c *VpnGatewaysAggregatedListCall) OrderBy(orderBy string) *VpnGatewaysAggregatedListCall
- func (c *VpnGatewaysAggregatedListCall) PageToken(pageToken string) *VpnGatewaysAggregatedListCall
- func (c *VpnGatewaysAggregatedListCall) Pages(ctx context.Context, f func(*VpnGatewayAggregatedList) error) error
- func (c *VpnGatewaysAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *VpnGatewaysAggregatedListCall
- func (c *VpnGatewaysAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *VpnGatewaysAggregatedListCall
- type VpnGatewaysDeleteCall
- func (c *VpnGatewaysDeleteCall) Context(ctx context.Context) *VpnGatewaysDeleteCall
- func (c *VpnGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *VpnGatewaysDeleteCall) Fields(s ...googleapi.Field) *VpnGatewaysDeleteCall
- func (c *VpnGatewaysDeleteCall) Header() http.Header
- func (c *VpnGatewaysDeleteCall) RequestId(requestId string) *VpnGatewaysDeleteCall
- type VpnGatewaysGetCall
- func (c *VpnGatewaysGetCall) Context(ctx context.Context) *VpnGatewaysGetCall
- func (c *VpnGatewaysGetCall) Do(opts ...googleapi.CallOption) (*VpnGateway, error)
- func (c *VpnGatewaysGetCall) Fields(s ...googleapi.Field) *VpnGatewaysGetCall
- func (c *VpnGatewaysGetCall) Header() http.Header
- func (c *VpnGatewaysGetCall) IfNoneMatch(entityTag string) *VpnGatewaysGetCall
- type VpnGatewaysGetStatusCall
- func (c *VpnGatewaysGetStatusCall) Context(ctx context.Context) *VpnGatewaysGetStatusCall
- func (c *VpnGatewaysGetStatusCall) Do(opts ...googleapi.CallOption) (*VpnGatewaysGetStatusResponse, error)
- func (c *VpnGatewaysGetStatusCall) Fields(s ...googleapi.Field) *VpnGatewaysGetStatusCall
- func (c *VpnGatewaysGetStatusCall) Header() http.Header
- func (c *VpnGatewaysGetStatusCall) IfNoneMatch(entityTag string) *VpnGatewaysGetStatusCall
- type VpnGatewaysGetStatusResponse
- type VpnGatewaysInsertCall
- func (c *VpnGatewaysInsertCall) Context(ctx context.Context) *VpnGatewaysInsertCall
- func (c *VpnGatewaysInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *VpnGatewaysInsertCall) Fields(s ...googleapi.Field) *VpnGatewaysInsertCall
- func (c *VpnGatewaysInsertCall) Header() http.Header
- func (c *VpnGatewaysInsertCall) RequestId(requestId string) *VpnGatewaysInsertCall
- type VpnGatewaysListCall
- func (c *VpnGatewaysListCall) Context(ctx context.Context) *VpnGatewaysListCall
- func (c *VpnGatewaysListCall) Do(opts ...googleapi.CallOption) (*VpnGatewayList, error)
- func (c *VpnGatewaysListCall) Fields(s ...googleapi.Field) *VpnGatewaysListCall
- func (c *VpnGatewaysListCall) Filter(filter string) *VpnGatewaysListCall
- func (c *VpnGatewaysListCall) Header() http.Header
- func (c *VpnGatewaysListCall) IfNoneMatch(entityTag string) *VpnGatewaysListCall
- func (c *VpnGatewaysListCall) MaxResults(maxResults int64) *VpnGatewaysListCall
- func (c *VpnGatewaysListCall) OrderBy(orderBy string) *VpnGatewaysListCall
- func (c *VpnGatewaysListCall) PageToken(pageToken string) *VpnGatewaysListCall
- func (c *VpnGatewaysListCall) Pages(ctx context.Context, f func(*VpnGatewayList) error) error
- func (c *VpnGatewaysListCall) ReturnPartialSuccess(returnPartialSuccess bool) *VpnGatewaysListCall
- type VpnGatewaysScopedList
- type VpnGatewaysScopedListWarning
- type VpnGatewaysScopedListWarningData
- type VpnGatewaysService
- func (r *VpnGatewaysService) AggregatedList(project string) *VpnGatewaysAggregatedListCall
- func (r *VpnGatewaysService) Delete(project string, region string, vpnGateway string) *VpnGatewaysDeleteCall
- func (r *VpnGatewaysService) Get(project string, region string, vpnGateway string) *VpnGatewaysGetCall
- func (r *VpnGatewaysService) GetStatus(project string, region string, vpnGateway string) *VpnGatewaysGetStatusCall
- func (r *VpnGatewaysService) Insert(project string, region string, vpngateway *VpnGateway) *VpnGatewaysInsertCall
- func (r *VpnGatewaysService) List(project string, region string) *VpnGatewaysListCall
- func (r *VpnGatewaysService) SetLabels(project string, region string, resource string, ...) *VpnGatewaysSetLabelsCall
- func (r *VpnGatewaysService) TestIamPermissions(project string, region string, resource string, ...) *VpnGatewaysTestIamPermissionsCall
- type VpnGatewaysSetLabelsCall
- func (c *VpnGatewaysSetLabelsCall) Context(ctx context.Context) *VpnGatewaysSetLabelsCall
- func (c *VpnGatewaysSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *VpnGatewaysSetLabelsCall) Fields(s ...googleapi.Field) *VpnGatewaysSetLabelsCall
- func (c *VpnGatewaysSetLabelsCall) Header() http.Header
- func (c *VpnGatewaysSetLabelsCall) RequestId(requestId string) *VpnGatewaysSetLabelsCall
- type VpnGatewaysTestIamPermissionsCall
- func (c *VpnGatewaysTestIamPermissionsCall) Context(ctx context.Context) *VpnGatewaysTestIamPermissionsCall
- func (c *VpnGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *VpnGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *VpnGatewaysTestIamPermissionsCall
- func (c *VpnGatewaysTestIamPermissionsCall) Header() http.Header
- type VpnTunnel
- type VpnTunnelAggregatedList
- type VpnTunnelAggregatedListWarning
- type VpnTunnelAggregatedListWarningData
- type VpnTunnelList
- type VpnTunnelListWarning
- type VpnTunnelListWarningData
- type VpnTunnelsAggregatedListCall
- func (c *VpnTunnelsAggregatedListCall) Context(ctx context.Context) *VpnTunnelsAggregatedListCall
- func (c *VpnTunnelsAggregatedListCall) Do(opts ...googleapi.CallOption) (*VpnTunnelAggregatedList, error)
- func (c *VpnTunnelsAggregatedListCall) Fields(s ...googleapi.Field) *VpnTunnelsAggregatedListCall
- func (c *VpnTunnelsAggregatedListCall) Filter(filter string) *VpnTunnelsAggregatedListCall
- func (c *VpnTunnelsAggregatedListCall) Header() http.Header
- func (c *VpnTunnelsAggregatedListCall) IfNoneMatch(entityTag string) *VpnTunnelsAggregatedListCall
- func (c *VpnTunnelsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *VpnTunnelsAggregatedListCall
- func (c *VpnTunnelsAggregatedListCall) MaxResults(maxResults int64) *VpnTunnelsAggregatedListCall
- func (c *VpnTunnelsAggregatedListCall) OrderBy(orderBy string) *VpnTunnelsAggregatedListCall
- func (c *VpnTunnelsAggregatedListCall) PageToken(pageToken string) *VpnTunnelsAggregatedListCall
- func (c *VpnTunnelsAggregatedListCall) Pages(ctx context.Context, f func(*VpnTunnelAggregatedList) error) error
- func (c *VpnTunnelsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *VpnTunnelsAggregatedListCall
- func (c *VpnTunnelsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *VpnTunnelsAggregatedListCall
- type VpnTunnelsDeleteCall
- func (c *VpnTunnelsDeleteCall) Context(ctx context.Context) *VpnTunnelsDeleteCall
- func (c *VpnTunnelsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *VpnTunnelsDeleteCall) Fields(s ...googleapi.Field) *VpnTunnelsDeleteCall
- func (c *VpnTunnelsDeleteCall) Header() http.Header
- func (c *VpnTunnelsDeleteCall) RequestId(requestId string) *VpnTunnelsDeleteCall
- type VpnTunnelsGetCall
- func (c *VpnTunnelsGetCall) Context(ctx context.Context) *VpnTunnelsGetCall
- func (c *VpnTunnelsGetCall) Do(opts ...googleapi.CallOption) (*VpnTunnel, error)
- func (c *VpnTunnelsGetCall) Fields(s ...googleapi.Field) *VpnTunnelsGetCall
- func (c *VpnTunnelsGetCall) Header() http.Header
- func (c *VpnTunnelsGetCall) IfNoneMatch(entityTag string) *VpnTunnelsGetCall
- type VpnTunnelsInsertCall
- func (c *VpnTunnelsInsertCall) Context(ctx context.Context) *VpnTunnelsInsertCall
- func (c *VpnTunnelsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *VpnTunnelsInsertCall) Fields(s ...googleapi.Field) *VpnTunnelsInsertCall
- func (c *VpnTunnelsInsertCall) Header() http.Header
- func (c *VpnTunnelsInsertCall) RequestId(requestId string) *VpnTunnelsInsertCall
- type VpnTunnelsListCall
- func (c *VpnTunnelsListCall) Context(ctx context.Context) *VpnTunnelsListCall
- func (c *VpnTunnelsListCall) Do(opts ...googleapi.CallOption) (*VpnTunnelList, error)
- func (c *VpnTunnelsListCall) Fields(s ...googleapi.Field) *VpnTunnelsListCall
- func (c *VpnTunnelsListCall) Filter(filter string) *VpnTunnelsListCall
- func (c *VpnTunnelsListCall) Header() http.Header
- func (c *VpnTunnelsListCall) IfNoneMatch(entityTag string) *VpnTunnelsListCall
- func (c *VpnTunnelsListCall) MaxResults(maxResults int64) *VpnTunnelsListCall
- func (c *VpnTunnelsListCall) OrderBy(orderBy string) *VpnTunnelsListCall
- func (c *VpnTunnelsListCall) PageToken(pageToken string) *VpnTunnelsListCall
- func (c *VpnTunnelsListCall) Pages(ctx context.Context, f func(*VpnTunnelList) error) error
- func (c *VpnTunnelsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *VpnTunnelsListCall
- type VpnTunnelsScopedList
- type VpnTunnelsScopedListWarning
- type VpnTunnelsScopedListWarningData
- type VpnTunnelsService
- func (r *VpnTunnelsService) AggregatedList(project string) *VpnTunnelsAggregatedListCall
- func (r *VpnTunnelsService) Delete(project string, region string, vpnTunnel string) *VpnTunnelsDeleteCall
- func (r *VpnTunnelsService) Get(project string, region string, vpnTunnel string) *VpnTunnelsGetCall
- func (r *VpnTunnelsService) Insert(project string, region string, vpntunnel *VpnTunnel) *VpnTunnelsInsertCall
- func (r *VpnTunnelsService) List(project string, region string) *VpnTunnelsListCall
- func (r *VpnTunnelsService) SetLabels(project string, region string, resource string, ...) *VpnTunnelsSetLabelsCall
- type VpnTunnelsSetLabelsCall
- func (c *VpnTunnelsSetLabelsCall) Context(ctx context.Context) *VpnTunnelsSetLabelsCall
- func (c *VpnTunnelsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *VpnTunnelsSetLabelsCall) Fields(s ...googleapi.Field) *VpnTunnelsSetLabelsCall
- func (c *VpnTunnelsSetLabelsCall) Header() http.Header
- func (c *VpnTunnelsSetLabelsCall) RequestId(requestId string) *VpnTunnelsSetLabelsCall
- type WafExpressionSet
- type WafExpressionSetExpression
- type WeightedBackendService
- type XpnHostList
- type XpnHostListWarning
- type XpnHostListWarningData
- type XpnResourceId
- type Zone
- type ZoneList
- type ZoneListWarning
- type ZoneListWarningData
- type ZoneOperationsDeleteCall
- func (c *ZoneOperationsDeleteCall) Context(ctx context.Context) *ZoneOperationsDeleteCall
- func (c *ZoneOperationsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *ZoneOperationsDeleteCall) Fields(s ...googleapi.Field) *ZoneOperationsDeleteCall
- func (c *ZoneOperationsDeleteCall) Header() http.Header
- type ZoneOperationsGetCall
- func (c *ZoneOperationsGetCall) Context(ctx context.Context) *ZoneOperationsGetCall
- func (c *ZoneOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ZoneOperationsGetCall) Fields(s ...googleapi.Field) *ZoneOperationsGetCall
- func (c *ZoneOperationsGetCall) Header() http.Header
- func (c *ZoneOperationsGetCall) IfNoneMatch(entityTag string) *ZoneOperationsGetCall
- type ZoneOperationsListCall
- func (c *ZoneOperationsListCall) Context(ctx context.Context) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList, error)
- func (c *ZoneOperationsListCall) Fields(s ...googleapi.Field) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) Filter(filter string) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) Header() http.Header
- func (c *ZoneOperationsListCall) IfNoneMatch(entityTag string) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) MaxResults(maxResults int64) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) OrderBy(orderBy string) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) PageToken(pageToken string) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) Pages(ctx context.Context, f func(*OperationList) error) error
- func (c *ZoneOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ZoneOperationsListCall
- type ZoneOperationsService
- func (r *ZoneOperationsService) Delete(project string, zone string, operationid string) *ZoneOperationsDeleteCall
- func (r *ZoneOperationsService) Get(project string, zone string, operationid string) *ZoneOperationsGetCall
- func (r *ZoneOperationsService) List(project string, zone string) *ZoneOperationsListCall
- func (r *ZoneOperationsService) Wait(project string, zone string, operationid string) *ZoneOperationsWaitCall
- type ZoneOperationsWaitCall
- func (c *ZoneOperationsWaitCall) Context(ctx context.Context) *ZoneOperationsWaitCall
- func (c *ZoneOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ZoneOperationsWaitCall) Fields(s ...googleapi.Field) *ZoneOperationsWaitCall
- func (c *ZoneOperationsWaitCall) Header() http.Header
- type ZoneSetLabelsRequest
- type ZoneSetPolicyRequest
- type ZonesGetCall
- func (c *ZonesGetCall) Context(ctx context.Context) *ZonesGetCall
- func (c *ZonesGetCall) Do(opts ...googleapi.CallOption) (*Zone, error)
- func (c *ZonesGetCall) Fields(s ...googleapi.Field) *ZonesGetCall
- func (c *ZonesGetCall) Header() http.Header
- func (c *ZonesGetCall) IfNoneMatch(entityTag string) *ZonesGetCall
- type ZonesListCall
- func (c *ZonesListCall) Context(ctx context.Context) *ZonesListCall
- func (c *ZonesListCall) Do(opts ...googleapi.CallOption) (*ZoneList, error)
- func (c *ZonesListCall) Fields(s ...googleapi.Field) *ZonesListCall
- func (c *ZonesListCall) Filter(filter string) *ZonesListCall
- func (c *ZonesListCall) Header() http.Header
- func (c *ZonesListCall) IfNoneMatch(entityTag string) *ZonesListCall
- func (c *ZonesListCall) MaxResults(maxResults int64) *ZonesListCall
- func (c *ZonesListCall) OrderBy(orderBy string) *ZonesListCall
- func (c *ZonesListCall) PageToken(pageToken string) *ZonesListCall
- func (c *ZonesListCall) Pages(ctx context.Context, f func(*ZoneList) error) error
- func (c *ZonesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ZonesListCall
- type ZonesService
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" // View and manage your Google Compute Engine resources ComputeScope = "https://www.googleapis.com/auth/compute" // View your Google Compute Engine resources ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.readonly" // Manage your data and permissions in Cloud Storage and see the email address // for your Google Account DevstorageFullControlScope = "https://www.googleapis.com/auth/devstorage.full_control" // View your data in Google Cloud Storage DevstorageReadOnlyScope = "https://www.googleapis.com/auth/devstorage.read_only" // Manage your data in Cloud Storage and see the email address of your Google // Account DevstorageReadWriteScope = "https://www.googleapis.com/auth/devstorage.read_write" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSV4Signature ¶ added in v0.135.0
type AWSV4Signature struct { // AccessKey: The access key used for s3 bucket authentication. Required for // updating or creating a backend that uses AWS v4 signature authentication, // but will not be returned as part of the configuration when queried with a // REST API GET request. @InputOnly AccessKey string `json:"accessKey,omitempty"` // AccessKeyId: The identifier of an access key used for s3 bucket // authentication. AccessKeyId string `json:"accessKeyId,omitempty"` // AccessKeyVersion: The optional version identifier for the access key. You // can use this to keep track of different iterations of your access key. AccessKeyVersion string `json:"accessKeyVersion,omitempty"` // OriginRegion: The name of the cloud region of your origin. This is a // free-form field with the name of the region your cloud uses to host your // origin. For example, "us-east-1" for AWS or "us-ashburn-1" for OCI. OriginRegion string `json:"originRegion,omitempty"` // ForceSendFields is a list of field names (e.g. "AccessKey") 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. "AccessKey") 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:"-"` }
AWSV4Signature: Contains the configurations necessary to generate a signature for access to private storage buckets that support Signature Version 4 for authentication. The service name for generating the authentication header will always default to 's3'.
func (AWSV4Signature) MarshalJSON ¶ added in v0.135.0
func (s AWSV4Signature) MarshalJSON() ([]byte, error)
type AcceleratorConfig ¶
type AcceleratorConfig struct { // AcceleratorCount: The number of the guest accelerator cards exposed to this // instance. AcceleratorCount int64 `json:"acceleratorCount,omitempty"` // AcceleratorType: Full or partial URL of the accelerator type resource to // attach to this instance. For example: // projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 // If you are creating an instance template, specify only the accelerator name. // See GPUs on Compute Engine for a full list of accelerator types. AcceleratorType string `json:"acceleratorType,omitempty"` // ForceSendFields is a list of field names (e.g. "AcceleratorCount") 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. "AcceleratorCount") 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:"-"` }
AcceleratorConfig: A specification of the type and number of accelerator cards attached to the instance.
func (AcceleratorConfig) MarshalJSON ¶
func (s AcceleratorConfig) MarshalJSON() ([]byte, error)
type AcceleratorType ¶
type AcceleratorType struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Deprecated -- [Output Only] The deprecation status associated with this // accelerator type. Deprecated *DeprecationStatus `json:"deprecated,omitempty"` // Description: [Output Only] An optional textual description of the resource. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] The type of the resource. Always compute#acceleratorType // for accelerator types. Kind string `json:"kind,omitempty"` // MaximumCardsPerInstance: [Output Only] Maximum number of accelerator cards // allowed per instance. MaximumCardsPerInstance int64 `json:"maximumCardsPerInstance,omitempty"` // Name: [Output Only] Name of the resource. Name string `json:"name,omitempty"` // SelfLink: [Output Only] Server-defined, fully qualified URL for this // resource. SelfLink string `json:"selfLink,omitempty"` // Zone: [Output Only] The name of the zone where the accelerator type resides, // such as us-central1-a. You must specify this field as part of the HTTP // request URL. It is not settable as a field in the request body. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
AcceleratorType: Represents an Accelerator Type resource. Google Cloud Platform provides graphics processing units (accelerators) that you can add to VM instances to improve or accelerate performance when working with intensive workloads. For more information, read GPUs on Compute Engine.
func (AcceleratorType) MarshalJSON ¶
func (s AcceleratorType) MarshalJSON() ([]byte, error)
type AcceleratorTypeAggregatedList ¶
type AcceleratorTypeAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of AcceleratorTypesScopedList resources. Items map[string]AcceleratorTypesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#acceleratorTypeAggregatedList for aggregated lists of accelerator // types. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *AcceleratorTypeAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (AcceleratorTypeAggregatedList) MarshalJSON ¶
func (s AcceleratorTypeAggregatedList) MarshalJSON() ([]byte, error)
type AcceleratorTypeAggregatedListWarning ¶
type AcceleratorTypeAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*AcceleratorTypeAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
AcceleratorTypeAggregatedListWarning: [Output Only] Informational warning message.
func (AcceleratorTypeAggregatedListWarning) MarshalJSON ¶
func (s AcceleratorTypeAggregatedListWarning) MarshalJSON() ([]byte, error)
type AcceleratorTypeAggregatedListWarningData ¶
type AcceleratorTypeAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (AcceleratorTypeAggregatedListWarningData) MarshalJSON ¶
func (s AcceleratorTypeAggregatedListWarningData) MarshalJSON() ([]byte, error)
type AcceleratorTypeList ¶
type AcceleratorTypeList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of AcceleratorType resources. Items []*AcceleratorType `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#acceleratorTypeList for // lists of accelerator types. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *AcceleratorTypeListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
AcceleratorTypeList: Contains a list of accelerator types.
func (AcceleratorTypeList) MarshalJSON ¶
func (s AcceleratorTypeList) MarshalJSON() ([]byte, error)
type AcceleratorTypeListWarning ¶
type AcceleratorTypeListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*AcceleratorTypeListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
AcceleratorTypeListWarning: [Output Only] Informational warning message.
func (AcceleratorTypeListWarning) MarshalJSON ¶
func (s AcceleratorTypeListWarning) MarshalJSON() ([]byte, error)
type AcceleratorTypeListWarningData ¶
type AcceleratorTypeListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (AcceleratorTypeListWarningData) MarshalJSON ¶
func (s AcceleratorTypeListWarningData) MarshalJSON() ([]byte, error)
type AcceleratorTypesAggregatedListCall ¶
type AcceleratorTypesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*AcceleratorTypesAggregatedListCall) Context ¶
func (c *AcceleratorTypesAggregatedListCall) Context(ctx context.Context) *AcceleratorTypesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*AcceleratorTypesAggregatedListCall) Do ¶
func (c *AcceleratorTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*AcceleratorTypeAggregatedList, error)
Do executes the "compute.acceleratorTypes.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *AcceleratorTypeAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AcceleratorTypesAggregatedListCall) Fields ¶
func (c *AcceleratorTypesAggregatedListCall) Fields(s ...googleapi.Field) *AcceleratorTypesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AcceleratorTypesAggregatedListCall) Filter ¶
func (c *AcceleratorTypesAggregatedListCall) Filter(filter string) *AcceleratorTypesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*AcceleratorTypesAggregatedListCall) Header ¶
func (c *AcceleratorTypesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AcceleratorTypesAggregatedListCall) IfNoneMatch ¶
func (c *AcceleratorTypesAggregatedListCall) IfNoneMatch(entityTag string) *AcceleratorTypesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*AcceleratorTypesAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *AcceleratorTypesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *AcceleratorTypesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*AcceleratorTypesAggregatedListCall) MaxResults ¶
func (c *AcceleratorTypesAggregatedListCall) MaxResults(maxResults int64) *AcceleratorTypesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*AcceleratorTypesAggregatedListCall) OrderBy ¶
func (c *AcceleratorTypesAggregatedListCall) OrderBy(orderBy string) *AcceleratorTypesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*AcceleratorTypesAggregatedListCall) PageToken ¶
func (c *AcceleratorTypesAggregatedListCall) PageToken(pageToken string) *AcceleratorTypesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*AcceleratorTypesAggregatedListCall) Pages ¶
func (c *AcceleratorTypesAggregatedListCall) Pages(ctx context.Context, f func(*AcceleratorTypeAggregatedList) 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 (*AcceleratorTypesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *AcceleratorTypesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AcceleratorTypesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*AcceleratorTypesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *AcceleratorTypesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *AcceleratorTypesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type AcceleratorTypesGetCall ¶
type AcceleratorTypesGetCall struct {
// contains filtered or unexported fields
}
func (*AcceleratorTypesGetCall) Context ¶
func (c *AcceleratorTypesGetCall) Context(ctx context.Context) *AcceleratorTypesGetCall
Context sets the context to be used in this call's Do method.
func (*AcceleratorTypesGetCall) Do ¶
func (c *AcceleratorTypesGetCall) Do(opts ...googleapi.CallOption) (*AcceleratorType, error)
Do executes the "compute.acceleratorTypes.get" call. Any non-2xx status code is an error. Response headers are in either *AcceleratorType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AcceleratorTypesGetCall) Fields ¶
func (c *AcceleratorTypesGetCall) Fields(s ...googleapi.Field) *AcceleratorTypesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AcceleratorTypesGetCall) Header ¶
func (c *AcceleratorTypesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AcceleratorTypesGetCall) IfNoneMatch ¶
func (c *AcceleratorTypesGetCall) IfNoneMatch(entityTag string) *AcceleratorTypesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type AcceleratorTypesListCall ¶
type AcceleratorTypesListCall struct {
// contains filtered or unexported fields
}
func (*AcceleratorTypesListCall) Context ¶
func (c *AcceleratorTypesListCall) Context(ctx context.Context) *AcceleratorTypesListCall
Context sets the context to be used in this call's Do method.
func (*AcceleratorTypesListCall) Do ¶
func (c *AcceleratorTypesListCall) Do(opts ...googleapi.CallOption) (*AcceleratorTypeList, error)
Do executes the "compute.acceleratorTypes.list" call. Any non-2xx status code is an error. Response headers are in either *AcceleratorTypeList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AcceleratorTypesListCall) Fields ¶
func (c *AcceleratorTypesListCall) Fields(s ...googleapi.Field) *AcceleratorTypesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AcceleratorTypesListCall) Filter ¶
func (c *AcceleratorTypesListCall) Filter(filter string) *AcceleratorTypesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*AcceleratorTypesListCall) Header ¶
func (c *AcceleratorTypesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AcceleratorTypesListCall) IfNoneMatch ¶
func (c *AcceleratorTypesListCall) IfNoneMatch(entityTag string) *AcceleratorTypesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*AcceleratorTypesListCall) MaxResults ¶
func (c *AcceleratorTypesListCall) MaxResults(maxResults int64) *AcceleratorTypesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*AcceleratorTypesListCall) OrderBy ¶
func (c *AcceleratorTypesListCall) OrderBy(orderBy string) *AcceleratorTypesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*AcceleratorTypesListCall) PageToken ¶
func (c *AcceleratorTypesListCall) PageToken(pageToken string) *AcceleratorTypesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*AcceleratorTypesListCall) Pages ¶
func (c *AcceleratorTypesListCall) Pages(ctx context.Context, f func(*AcceleratorTypeList) 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 (*AcceleratorTypesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *AcceleratorTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AcceleratorTypesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type AcceleratorTypesScopedList ¶
type AcceleratorTypesScopedList struct { // AcceleratorTypes: [Output Only] A list of accelerator types contained in // this scope. AcceleratorTypes []*AcceleratorType `json:"acceleratorTypes,omitempty"` // Warning: [Output Only] An informational warning that appears when the // accelerator types list is empty. Warning *AcceleratorTypesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "AcceleratorTypes") 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. "AcceleratorTypes") 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:"-"` }
func (AcceleratorTypesScopedList) MarshalJSON ¶
func (s AcceleratorTypesScopedList) MarshalJSON() ([]byte, error)
type AcceleratorTypesScopedListWarning ¶
type AcceleratorTypesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*AcceleratorTypesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
AcceleratorTypesScopedListWarning: [Output Only] An informational warning that appears when the accelerator types list is empty.
func (AcceleratorTypesScopedListWarning) MarshalJSON ¶
func (s AcceleratorTypesScopedListWarning) MarshalJSON() ([]byte, error)
type AcceleratorTypesScopedListWarningData ¶
type AcceleratorTypesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (AcceleratorTypesScopedListWarningData) MarshalJSON ¶
func (s AcceleratorTypesScopedListWarningData) MarshalJSON() ([]byte, error)
type AcceleratorTypesService ¶
type AcceleratorTypesService struct {
// contains filtered or unexported fields
}
func NewAcceleratorTypesService ¶
func NewAcceleratorTypesService(s *Service) *AcceleratorTypesService
func (*AcceleratorTypesService) AggregatedList ¶
func (r *AcceleratorTypesService) AggregatedList(project string) *AcceleratorTypesAggregatedListCall
AggregatedList: Retrieves an aggregated list of accelerator types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*AcceleratorTypesService) Get ¶
func (r *AcceleratorTypesService) Get(project string, zone string, acceleratorType string) *AcceleratorTypesGetCall
Get: Returns the specified accelerator type.
- acceleratorType: Name of the accelerator type to return. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*AcceleratorTypesService) List ¶
func (r *AcceleratorTypesService) List(project string, zone string) *AcceleratorTypesListCall
List: Retrieves a list of accelerator types that are available to the specified project.
- project: Project ID for this request. - zone: The name of the zone for this request.
type AccessConfig ¶
type AccessConfig struct { // ExternalIpv6: Applies to ipv6AccessConfigs only. The first IPv6 address of // the external IPv6 range associated with this instance, prefix length is // stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static // external IP address, it must be unused and in the same region as the // instance's zone. If not specified, Google Cloud will automatically assign an // external IPv6 address from the instance's subnetwork. ExternalIpv6 string `json:"externalIpv6,omitempty"` // ExternalIpv6PrefixLength: Applies to ipv6AccessConfigs only. The prefix // length of the external IPv6 range. ExternalIpv6PrefixLength int64 `json:"externalIpv6PrefixLength,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#accessConfig for // access configs. Kind string `json:"kind,omitempty"` // Name: The name of this access configuration. In accessConfigs (IPv4), the // default and recommended name is External NAT, but you can use any arbitrary // string, such as My external IP or Network Access. In ipv6AccessConfigs, the // recommend name is External IPv6. Name string `json:"name,omitempty"` // NatIP: Applies to accessConfigs (IPv4) only. An external IP address // associated with this instance. Specify an unused static external IP address // available to the project or leave this field undefined to use an IP from a // shared ephemeral IP address pool. If you specify a static external IP // address, it must live in the same region as the zone of the instance. NatIP string `json:"natIP,omitempty"` // NetworkTier: This signifies the networking tier used for configuring this // access configuration and can only take the following values: PREMIUM, // STANDARD. If an AccessConfig is specified without a valid external IP // address, an ephemeral IP will be created with this networkTier. If an // AccessConfig with a valid external IP address is specified, it must match // that of the networkTier associated with the Address resource owning that IP. // // Possible values: // "FIXED_STANDARD" - Public internet quality with fixed bandwidth. // "PREMIUM" - High quality, Google-grade network tier, support for all // networking products. // "STANDARD" - Public internet quality, only limited support for other // networking products. // "STANDARD_OVERRIDES_FIXED_STANDARD" - (Output only) Temporary tier for // FIXED_STANDARD when fixed standard tier is expired or not configured. NetworkTier string `json:"networkTier,omitempty"` // PublicPtrDomainName: The DNS domain name for the public PTR record. You can // set this field only if the `setPublicPtr` field is enabled in accessConfig. // If this field is unspecified in ipv6AccessConfig, a default PTR record will // be created for first IP in associated external IPv6 range. PublicPtrDomainName string `json:"publicPtrDomainName,omitempty"` // SecurityPolicy: [Output Only] The resource URL for the security policy // associated with this access config. SecurityPolicy string `json:"securityPolicy,omitempty"` // SetPublicPtr: Specifies whether a public DNS 'PTR' record should be created // to map the external IP address of the instance to a DNS domain name. This // field is not used in ipv6AccessConfig. A default PTR record will be created // if the VM has external IPv6 range associated. SetPublicPtr bool `json:"setPublicPtr,omitempty"` // Type: The type of configuration. In accessConfigs (IPv4), the default and // only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only // option is DIRECT_IPV6. // // Possible values: // "DIRECT_IPV6" // "ONE_TO_ONE_NAT" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "ExternalIpv6") 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. "ExternalIpv6") 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:"-"` }
AccessConfig: An access configuration attached to an instance's network interface. Only one access config per instance is supported.
func (AccessConfig) MarshalJSON ¶
func (s AccessConfig) MarshalJSON() ([]byte, error)
type Address ¶
type Address struct { // Address: The static IP address represented by this resource. Address string `json:"address,omitempty"` // AddressType: The type of address to reserve, either INTERNAL or EXTERNAL. If // unspecified, defaults to EXTERNAL. // // Possible values: // "EXTERNAL" - A publicly visible external IP address. // "INTERNAL" - A private network IP address, for use with an Instance or // Internal Load Balancer forwarding rule. // "UNSPECIFIED_TYPE" AddressType string `json:"addressType,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this field // when you create the resource. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // IpVersion: The IP version that will be used by this address. Valid options // are IPV4 or IPV6. // // Possible values: // "IPV4" // "IPV6" // "UNSPECIFIED_VERSION" IpVersion string `json:"ipVersion,omitempty"` // Ipv6EndpointType: The endpoint type of this address, which should be VM or // NETLB. This is used for deciding which type of endpoint this address can be // used after the external IPv6 address reservation. // // Possible values: // "NETLB" - Reserved IPv6 address can be used on network load balancer. // "VM" - Reserved IPv6 address can be used on VM. Ipv6EndpointType string `json:"ipv6EndpointType,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#address for // addresses. Kind string `json:"kind,omitempty"` // LabelFingerprint: A fingerprint for the labels being applied to this // Address, which is essentially a hash of the labels set used for optimistic // locking. The fingerprint is initially generated by Compute Engine and // changes after every request to modify or update labels. You must always // provide an up-to-date fingerprint hash in order to update or change labels, // otherwise the request will fail with error 412 conditionNotMet. To see the // latest fingerprint, make a get() request to retrieve an Address. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels for this resource. These can only be added or modified by the // setLabels method. Each label key/value pair must comply with RFC1035. Label // values may be empty. Labels map[string]string `json:"labels,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a // lowercase letter, and all following characters (except for the last // character) must be a dash, lowercase letter, or digit. The last character // must be a lowercase letter or digit. Name string `json:"name,omitempty"` // Network: The URL of the network in which to reserve the address. This field // can only be used with INTERNAL type with the VPC_PEERING purpose. Network string `json:"network,omitempty"` // NetworkTier: This signifies the networking tier used for configuring this // address and can only take the following values: PREMIUM or STANDARD. // Internal IP addresses are always Premium Tier; global external IP addresses // are always Premium Tier; regional external IP addresses can be either // Standard or Premium Tier. If this field is not specified, it is assumed to // be PREMIUM. // // Possible values: // "FIXED_STANDARD" - Public internet quality with fixed bandwidth. // "PREMIUM" - High quality, Google-grade network tier, support for all // networking products. // "STANDARD" - Public internet quality, only limited support for other // networking products. // "STANDARD_OVERRIDES_FIXED_STANDARD" - (Output only) Temporary tier for // FIXED_STANDARD when fixed standard tier is expired or not configured. NetworkTier string `json:"networkTier,omitempty"` // PrefixLength: The prefix length if the resource represents an IP range. PrefixLength int64 `json:"prefixLength,omitempty"` // Purpose: The purpose of this resource, which can be one of the following // values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP // ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS // resolver address in a subnetwork for a Cloud DNS inbound forwarder IP // addresses (regional internal IP address in a subnet of a VPC network) - // VPC_PEERING for global internal IP addresses used for private services // access allocated ranges. - NAT_AUTO for the regional external IP addresses // used by Cloud NAT when allocating addresses using automatic NAT IP address // allocation. - IPSEC_INTERCONNECT for addresses created from a private IP // range that are reserved for a VLAN attachment in an *HA VPN over Cloud // Interconnect* configuration. These addresses are regional resources. - // `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to // multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a // private network address that is used to configure Private Service Connect. // Only global internal addresses can use this purpose. // // Possible values: // "DNS_RESOLVER" - DNS resolver address in the subnetwork. // "GCE_ENDPOINT" - VM internal/alias IP, Internal LB service IP, etc. // "IPSEC_INTERCONNECT" - A regional internal IP address range reserved for // the VLAN attachment that is used in HA VPN over Cloud Interconnect. This // regional internal IP address range must not overlap with any IP address // range of subnet/route in the VPC network and its peering networks. After the // VLAN attachment is created with the reserved IP address range, when creating // a new VPN gateway, its interface IP address is allocated from the associated // VLAN attachment’s IP address range. // "NAT_AUTO" - External IP automatically reserved for Cloud NAT. // "PRIVATE_SERVICE_CONNECT" - A private network IP address that can be used // to configure Private Service Connect. This purpose can be specified only for // GLOBAL addresses of Type INTERNAL // "SERVERLESS" - A regional internal IP address range reserved for // Serverless. // "SHARED_LOADBALANCER_VIP" - A private network IP address that can be // shared by multiple Internal Load Balancer forwarding rules. // "VPC_PEERING" - IP range for peer networks. Purpose string `json:"purpose,omitempty"` // Region: [Output Only] The URL of the region where a regional address // resides. For regional addresses, you must specify the region as a path // parameter in the HTTP request URL. *This field is not applicable to global // addresses.* Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Status: [Output Only] The status of the address, which can be one of // RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in // the process of being reserved. A RESERVED address is currently reserved and // available to use. An IN_USE address is currently being used by another // resource and is not available. // // Possible values: // "IN_USE" - Address is being used by another resource and is not available. // "RESERVED" - Address is reserved and available to use. // "RESERVING" - Address is being reserved. Status string `json:"status,omitempty"` // Subnetwork: The URL of the subnetwork in which to reserve the address. If an // IP address is specified, it must be within the subnetwork's IP range. This // field can only be used with INTERNAL type with a GCE_ENDPOINT or // DNS_RESOLVER purpose. Subnetwork string `json:"subnetwork,omitempty"` // Users: [Output Only] The URLs of the resources that are using this address. Users []string `json:"users,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Address") 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. "Address") 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:"-"` }
Address: Represents an IP Address resource. Google Compute Engine has two IP Address resources: * Global (external and internal) (https://cloud.google.com/compute/docs/reference/rest/v1/globalAddresses) * Regional (external and internal) (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) For more information, see Reserving a static external IP address.
func (Address) MarshalJSON ¶
type AddressAggregatedList ¶
type AddressAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of AddressesScopedList resources. Items map[string]AddressesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#addressAggregatedList // for aggregated lists of addresses. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *AddressAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (AddressAggregatedList) MarshalJSON ¶
func (s AddressAggregatedList) MarshalJSON() ([]byte, error)
type AddressAggregatedListWarning ¶
type AddressAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*AddressAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
AddressAggregatedListWarning: [Output Only] Informational warning message.
func (AddressAggregatedListWarning) MarshalJSON ¶
func (s AddressAggregatedListWarning) MarshalJSON() ([]byte, error)
type AddressAggregatedListWarningData ¶
type AddressAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (AddressAggregatedListWarningData) MarshalJSON ¶
func (s AddressAggregatedListWarningData) MarshalJSON() ([]byte, error)
type AddressList ¶
type AddressList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Address resources. Items []*Address `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#addressList for lists // of addresses. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *AddressListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
AddressList: Contains a list of addresses.
func (AddressList) MarshalJSON ¶
func (s AddressList) MarshalJSON() ([]byte, error)
type AddressListWarning ¶
type AddressListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*AddressListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
AddressListWarning: [Output Only] Informational warning message.
func (AddressListWarning) MarshalJSON ¶
func (s AddressListWarning) MarshalJSON() ([]byte, error)
type AddressListWarningData ¶
type AddressListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (AddressListWarningData) MarshalJSON ¶
func (s AddressListWarningData) MarshalJSON() ([]byte, error)
type AddressesAggregatedListCall ¶
type AddressesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*AddressesAggregatedListCall) Context ¶
func (c *AddressesAggregatedListCall) Context(ctx context.Context) *AddressesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*AddressesAggregatedListCall) Do ¶
func (c *AddressesAggregatedListCall) Do(opts ...googleapi.CallOption) (*AddressAggregatedList, error)
Do executes the "compute.addresses.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *AddressAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AddressesAggregatedListCall) Fields ¶
func (c *AddressesAggregatedListCall) Fields(s ...googleapi.Field) *AddressesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AddressesAggregatedListCall) Filter ¶
func (c *AddressesAggregatedListCall) Filter(filter string) *AddressesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*AddressesAggregatedListCall) Header ¶
func (c *AddressesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AddressesAggregatedListCall) IfNoneMatch ¶
func (c *AddressesAggregatedListCall) IfNoneMatch(entityTag string) *AddressesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*AddressesAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *AddressesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *AddressesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*AddressesAggregatedListCall) MaxResults ¶
func (c *AddressesAggregatedListCall) MaxResults(maxResults int64) *AddressesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*AddressesAggregatedListCall) OrderBy ¶
func (c *AddressesAggregatedListCall) OrderBy(orderBy string) *AddressesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*AddressesAggregatedListCall) PageToken ¶
func (c *AddressesAggregatedListCall) PageToken(pageToken string) *AddressesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*AddressesAggregatedListCall) Pages ¶
func (c *AddressesAggregatedListCall) Pages(ctx context.Context, f func(*AddressAggregatedList) 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 (*AddressesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *AddressesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AddressesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*AddressesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *AddressesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *AddressesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type AddressesDeleteCall ¶
type AddressesDeleteCall struct {
// contains filtered or unexported fields
}
func (*AddressesDeleteCall) Context ¶
func (c *AddressesDeleteCall) Context(ctx context.Context) *AddressesDeleteCall
Context sets the context to be used in this call's Do method.
func (*AddressesDeleteCall) Do ¶
func (c *AddressesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.addresses.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AddressesDeleteCall) Fields ¶
func (c *AddressesDeleteCall) Fields(s ...googleapi.Field) *AddressesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AddressesDeleteCall) Header ¶
func (c *AddressesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AddressesDeleteCall) RequestId ¶
func (c *AddressesDeleteCall) RequestId(requestId string) *AddressesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type AddressesGetCall ¶
type AddressesGetCall struct {
// contains filtered or unexported fields
}
func (*AddressesGetCall) Context ¶
func (c *AddressesGetCall) Context(ctx context.Context) *AddressesGetCall
Context sets the context to be used in this call's Do method.
func (*AddressesGetCall) Do ¶
func (c *AddressesGetCall) Do(opts ...googleapi.CallOption) (*Address, error)
Do executes the "compute.addresses.get" call. Any non-2xx status code is an error. Response headers are in either *Address.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AddressesGetCall) Fields ¶
func (c *AddressesGetCall) Fields(s ...googleapi.Field) *AddressesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AddressesGetCall) Header ¶
func (c *AddressesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AddressesGetCall) IfNoneMatch ¶
func (c *AddressesGetCall) IfNoneMatch(entityTag string) *AddressesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type AddressesInsertCall ¶
type AddressesInsertCall struct {
// contains filtered or unexported fields
}
func (*AddressesInsertCall) Context ¶
func (c *AddressesInsertCall) Context(ctx context.Context) *AddressesInsertCall
Context sets the context to be used in this call's Do method.
func (*AddressesInsertCall) Do ¶
func (c *AddressesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.addresses.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AddressesInsertCall) Fields ¶
func (c *AddressesInsertCall) Fields(s ...googleapi.Field) *AddressesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AddressesInsertCall) Header ¶
func (c *AddressesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AddressesInsertCall) RequestId ¶
func (c *AddressesInsertCall) RequestId(requestId string) *AddressesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type AddressesListCall ¶
type AddressesListCall struct {
// contains filtered or unexported fields
}
func (*AddressesListCall) Context ¶
func (c *AddressesListCall) Context(ctx context.Context) *AddressesListCall
Context sets the context to be used in this call's Do method.
func (*AddressesListCall) Do ¶
func (c *AddressesListCall) Do(opts ...googleapi.CallOption) (*AddressList, error)
Do executes the "compute.addresses.list" call. Any non-2xx status code is an error. Response headers are in either *AddressList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AddressesListCall) Fields ¶
func (c *AddressesListCall) Fields(s ...googleapi.Field) *AddressesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AddressesListCall) Filter ¶
func (c *AddressesListCall) Filter(filter string) *AddressesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*AddressesListCall) Header ¶
func (c *AddressesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AddressesListCall) IfNoneMatch ¶
func (c *AddressesListCall) IfNoneMatch(entityTag string) *AddressesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*AddressesListCall) MaxResults ¶
func (c *AddressesListCall) MaxResults(maxResults int64) *AddressesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*AddressesListCall) OrderBy ¶
func (c *AddressesListCall) OrderBy(orderBy string) *AddressesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*AddressesListCall) PageToken ¶
func (c *AddressesListCall) PageToken(pageToken string) *AddressesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*AddressesListCall) Pages ¶
func (c *AddressesListCall) Pages(ctx context.Context, f func(*AddressList) 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 (*AddressesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *AddressesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AddressesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type AddressesMoveCall ¶ added in v0.121.0
type AddressesMoveCall struct {
// contains filtered or unexported fields
}
func (*AddressesMoveCall) Context ¶ added in v0.121.0
func (c *AddressesMoveCall) Context(ctx context.Context) *AddressesMoveCall
Context sets the context to be used in this call's Do method.
func (*AddressesMoveCall) Do ¶ added in v0.121.0
func (c *AddressesMoveCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.addresses.move" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AddressesMoveCall) Fields ¶ added in v0.121.0
func (c *AddressesMoveCall) Fields(s ...googleapi.Field) *AddressesMoveCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AddressesMoveCall) Header ¶ added in v0.121.0
func (c *AddressesMoveCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AddressesMoveCall) RequestId ¶ added in v0.121.0
func (c *AddressesMoveCall) RequestId(requestId string) *AddressesMoveCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type AddressesScopedList ¶
type AddressesScopedList struct { // Addresses: [Output Only] A list of addresses contained in this scope. Addresses []*Address `json:"addresses,omitempty"` // Warning: [Output Only] Informational warning which replaces the list of // addresses when the list is empty. Warning *AddressesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "Addresses") 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. "Addresses") 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:"-"` }
func (AddressesScopedList) MarshalJSON ¶
func (s AddressesScopedList) MarshalJSON() ([]byte, error)
type AddressesScopedListWarning ¶
type AddressesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*AddressesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
AddressesScopedListWarning: [Output Only] Informational warning which replaces the list of addresses when the list is empty.
func (AddressesScopedListWarning) MarshalJSON ¶
func (s AddressesScopedListWarning) MarshalJSON() ([]byte, error)
type AddressesScopedListWarningData ¶
type AddressesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (AddressesScopedListWarningData) MarshalJSON ¶
func (s AddressesScopedListWarningData) MarshalJSON() ([]byte, error)
type AddressesService ¶
type AddressesService struct {
// contains filtered or unexported fields
}
func NewAddressesService ¶
func NewAddressesService(s *Service) *AddressesService
func (*AddressesService) AggregatedList ¶
func (r *AddressesService) AggregatedList(project string) *AddressesAggregatedListCall
AggregatedList: Retrieves an aggregated list of addresses. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*AddressesService) Delete ¶
func (r *AddressesService) Delete(project string, region string, address string) *AddressesDeleteCall
Delete: Deletes the specified address resource.
- address: Name of the address resource to delete. - project: Project ID for this request. - region: Name of the region for this request.
func (*AddressesService) Get ¶
func (r *AddressesService) Get(project string, region string, address string) *AddressesGetCall
Get: Returns the specified address resource.
- address: Name of the address resource to return. - project: Project ID for this request. - region: Name of the region for this request.
func (*AddressesService) Insert ¶
func (r *AddressesService) Insert(project string, region string, address *Address) *AddressesInsertCall
Insert: Creates an address resource in the specified project by using the data included in the request.
- project: Project ID for this request. - region: Name of the region for this request.
func (*AddressesService) List ¶
func (r *AddressesService) List(project string, region string) *AddressesListCall
List: Retrieves a list of addresses contained within the specified region.
- project: Project ID for this request. - region: Name of the region for this request.
func (*AddressesService) Move ¶ added in v0.121.0
func (r *AddressesService) Move(project string, region string, address string, regionaddressesmoverequest *RegionAddressesMoveRequest) *AddressesMoveCall
Move: Moves the specified address resource.
- address: Name of the address resource to move. - project: Source project ID which the Address is moved from. - region: Name of the region for this request.
func (*AddressesService) SetLabels ¶ added in v0.96.0
func (r *AddressesService) SetLabels(project string, region string, resource string, regionsetlabelsrequest *RegionSetLabelsRequest) *AddressesSetLabelsCall
SetLabels: Sets the labels on an Address. To learn more about labels, read the Labeling Resources documentation.
- project: Project ID for this request. - region: The region for this request. - resource: Name or id of the resource for this request.
type AddressesSetLabelsCall ¶ added in v0.96.0
type AddressesSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*AddressesSetLabelsCall) Context ¶ added in v0.96.0
func (c *AddressesSetLabelsCall) Context(ctx context.Context) *AddressesSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*AddressesSetLabelsCall) Do ¶ added in v0.96.0
func (c *AddressesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.addresses.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AddressesSetLabelsCall) Fields ¶ added in v0.96.0
func (c *AddressesSetLabelsCall) Fields(s ...googleapi.Field) *AddressesSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AddressesSetLabelsCall) Header ¶ added in v0.96.0
func (c *AddressesSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AddressesSetLabelsCall) RequestId ¶ added in v0.96.0
func (c *AddressesSetLabelsCall) RequestId(requestId string) *AddressesSetLabelsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type AdvancedMachineFeatures ¶ added in v0.37.0
type AdvancedMachineFeatures struct { // EnableNestedVirtualization: Whether to enable nested virtualization or not // (default is false). EnableNestedVirtualization bool `json:"enableNestedVirtualization,omitempty"` // EnableUefiNetworking: Whether to enable UEFI networking for instance // creation. EnableUefiNetworking bool `json:"enableUefiNetworking,omitempty"` // PerformanceMonitoringUnit: Type of Performance Monitoring Unit requested on // instance. // // Possible values: // "ARCHITECTURAL" - Architecturally defined non-LLC events. // "ENHANCED" - Most documented core/L2 and LLC events. // "PERFORMANCE_MONITORING_UNIT_UNSPECIFIED" // "STANDARD" - Most documented core/L2 events. PerformanceMonitoringUnit string `json:"performanceMonitoringUnit,omitempty"` // ThreadsPerCore: The number of threads per physical core. To disable // simultaneous multithreading (SMT) set this to 1. If unset, the maximum // number of threads supported per core by the underlying processor is assumed. ThreadsPerCore int64 `json:"threadsPerCore,omitempty"` // TurboMode: Turbo frequency mode to use for the instance. Supported modes // include: * ALL_CORE_MAX Using empty string or not setting this field will // use the platform-specific default turbo mode. TurboMode string `json:"turboMode,omitempty"` // VisibleCoreCount: The number of physical cores to expose to an instance. // Multiply by the number of threads per core to compute the total number of // virtual CPUs to expose to the instance. If unset, the number of cores is // inferred from the instance's nominal CPU count and the underlying platform's // SMT width. VisibleCoreCount int64 `json:"visibleCoreCount,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableNestedVirtualization") // 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. "EnableNestedVirtualization") 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:"-"` }
AdvancedMachineFeatures: Specifies options for controlling advanced machine features. Options that would traditionally be configured in a BIOS belong here. Features that require operating system support may have corresponding entries in the GuestOsFeatures of an Image (e.g., whether or not the OS in the Image supports nested virtualization being enabled or disabled).
func (AdvancedMachineFeatures) MarshalJSON ¶ added in v0.37.0
func (s AdvancedMachineFeatures) MarshalJSON() ([]byte, error)
type AliasIpRange ¶
type AliasIpRange struct { // IpCidrRange: The IP alias ranges to allocate for this interface. This IP // CIDR range must belong to the specified subnetwork and cannot contain IP // addresses reserved by system or used by other network interfaces. This range // may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a // CIDR-formatted string (such as 10.1.2.0/24). IpCidrRange string `json:"ipCidrRange,omitempty"` // SubnetworkRangeName: The name of a subnetwork secondary IP range from which // to allocate an IP alias range. If not specified, the primary range of the // subnetwork is used. SubnetworkRangeName string `json:"subnetworkRangeName,omitempty"` // ForceSendFields is a list of field names (e.g. "IpCidrRange") 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. "IpCidrRange") 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:"-"` }
AliasIpRange: An alias IP range attached to an instance's network interface.
func (AliasIpRange) MarshalJSON ¶
func (s AliasIpRange) MarshalJSON() ([]byte, error)
type AllocationAggregateReservation ¶ added in v0.154.0
type AllocationAggregateReservation struct { // InUseResources: [Output only] List of resources currently in use. InUseResources []*AllocationAggregateReservationReservedResourceInfo `json:"inUseResources,omitempty"` // ReservedResources: List of reserved resources (CPUs, memory, accelerators). ReservedResources []*AllocationAggregateReservationReservedResourceInfo `json:"reservedResources,omitempty"` // VmFamily: The VM family that all instances scheduled against this // reservation must belong to. // // Possible values: // "VM_FAMILY_CLOUD_TPU_DEVICE_CT3" // "VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L" // "VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP" // "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P" // "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P" VmFamily string `json:"vmFamily,omitempty"` // WorkloadType: The workload type of the instances that will target this // reservation. // // Possible values: // "BATCH" - Reserved resources will be optimized for BATCH workloads, such // as ML training. // "SERVING" - Reserved resources will be optimized for SERVING workloads, // such as ML inference. // "UNSPECIFIED" WorkloadType string `json:"workloadType,omitempty"` // ForceSendFields is a list of field names (e.g. "InUseResources") 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. "InUseResources") 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:"-"` }
AllocationAggregateReservation: This reservation type is specified by total resource amounts (e.g. total count of CPUs) and can account for multiple instance SKUs. In other words, one can create instances of varying shapes against this reservation.
func (AllocationAggregateReservation) MarshalJSON ¶ added in v0.154.0
func (s AllocationAggregateReservation) MarshalJSON() ([]byte, error)
type AllocationAggregateReservationReservedResourceInfo ¶ added in v0.154.0
type AllocationAggregateReservationReservedResourceInfo struct { // Accelerator: Properties of accelerator resources in this reservation. Accelerator *AllocationAggregateReservationReservedResourceInfoAccelerator `json:"accelerator,omitempty"` // ForceSendFields is a list of field names (e.g. "Accelerator") 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. "Accelerator") 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:"-"` }
func (AllocationAggregateReservationReservedResourceInfo) MarshalJSON ¶ added in v0.154.0
func (s AllocationAggregateReservationReservedResourceInfo) MarshalJSON() ([]byte, error)
type AllocationAggregateReservationReservedResourceInfoAccelerator ¶ added in v0.154.0
type AllocationAggregateReservationReservedResourceInfoAccelerator struct { // AcceleratorCount: Number of accelerators of specified type. AcceleratorCount int64 `json:"acceleratorCount,omitempty"` // AcceleratorType: Full or partial URL to accelerator type. e.g. // "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l" AcceleratorType string `json:"acceleratorType,omitempty"` // ForceSendFields is a list of field names (e.g. "AcceleratorCount") 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. "AcceleratorCount") 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:"-"` }
func (AllocationAggregateReservationReservedResourceInfoAccelerator) MarshalJSON ¶ added in v0.154.0
func (s AllocationAggregateReservationReservedResourceInfoAccelerator) MarshalJSON() ([]byte, error)
type AllocationResourceStatus ¶ added in v0.108.0
type AllocationResourceStatus struct { // SpecificSkuAllocation: Allocation Properties of this reservation. SpecificSkuAllocation *AllocationResourceStatusSpecificSKUAllocation `json:"specificSkuAllocation,omitempty"` // ForceSendFields is a list of field names (e.g. "SpecificSkuAllocation") 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. "SpecificSkuAllocation") 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:"-"` }
AllocationResourceStatus: [Output Only] Contains output only fields.
func (AllocationResourceStatus) MarshalJSON ¶ added in v0.108.0
func (s AllocationResourceStatus) MarshalJSON() ([]byte, error)
type AllocationResourceStatusSpecificSKUAllocation ¶ added in v0.108.0
type AllocationResourceStatusSpecificSKUAllocation struct { // SourceInstanceTemplateId: ID of the instance template used to populate // reservation properties. SourceInstanceTemplateId string `json:"sourceInstanceTemplateId,omitempty"` // ForceSendFields is a list of field names (e.g. "SourceInstanceTemplateId") // 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. "SourceInstanceTemplateId") 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:"-"` }
AllocationResourceStatusSpecificSKUAllocation: Contains Properties set for the reservation.
func (AllocationResourceStatusSpecificSKUAllocation) MarshalJSON ¶ added in v0.108.0
func (s AllocationResourceStatusSpecificSKUAllocation) MarshalJSON() ([]byte, error)
type AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk ¶ added in v0.7.0
type AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk struct { // DiskSizeGb: Specifies the size of the disk in base-2 GB. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` // Interface: Specifies the disk interface to use for attaching this disk, // which is either SCSI or NVME. The default is SCSI. For performance // characteristics of SCSI over NVMe, see Local SSD performance. // // Possible values: // "NVME" // "SCSI" Interface string `json:"interface,omitempty"` // ForceSendFields is a list of field names (e.g. "DiskSizeGb") 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. "DiskSizeGb") 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:"-"` }
func (AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk) MarshalJSON ¶ added in v0.7.0
func (s AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk) MarshalJSON() ([]byte, error)
type AllocationSpecificSKUAllocationReservedInstanceProperties ¶ added in v0.7.0
type AllocationSpecificSKUAllocationReservedInstanceProperties struct { // GuestAccelerators: Specifies accelerator type and count. GuestAccelerators []*AcceleratorConfig `json:"guestAccelerators,omitempty"` // LocalSsds: Specifies amount of local ssd to reserve with each instance. The // type of disk is local-ssd. LocalSsds []*AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk `json:"localSsds,omitempty"` // LocationHint: An opaque location hint used to place the allocation close to // other resources. This field is for use by internal tools that use the public // API. LocationHint string `json:"locationHint,omitempty"` // MachineType: Specifies type of machine (name only) which has fixed number of // vCPUs and fixed amount of memory. This also includes specifying custom // machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. MachineType string `json:"machineType,omitempty"` // MinCpuPlatform: Minimum cpu platform the reservation. MinCpuPlatform string `json:"minCpuPlatform,omitempty"` // ForceSendFields is a list of field names (e.g. "GuestAccelerators") 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. "GuestAccelerators") 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:"-"` }
AllocationSpecificSKUAllocationReservedInstanceProperties: Properties of the SKU instances being reserved. Next ID: 9
func (AllocationSpecificSKUAllocationReservedInstanceProperties) MarshalJSON ¶ added in v0.7.0
func (s AllocationSpecificSKUAllocationReservedInstanceProperties) MarshalJSON() ([]byte, error)
type AllocationSpecificSKUReservation ¶ added in v0.7.0
type AllocationSpecificSKUReservation struct { // AssuredCount: [Output Only] Indicates how many instances are actually usable // currently. AssuredCount int64 `json:"assuredCount,omitempty,string"` // Count: Specifies the number of resources that are allocated. Count int64 `json:"count,omitempty,string"` // InUseCount: [Output Only] Indicates how many instances are in use. InUseCount int64 `json:"inUseCount,omitempty,string"` // InstanceProperties: The instance properties for the reservation. InstanceProperties *AllocationSpecificSKUAllocationReservedInstanceProperties `json:"instanceProperties,omitempty"` // SourceInstanceTemplate: Specifies the instance template to create the // reservation. If you use this field, you must exclude the instanceProperties // field. This field is optional, and it can be a full or partial URL. For // example, the following are all valid URLs to an instance template: - // https://www.googleapis.com/compute/v1/projects/project // /global/instanceTemplates/instanceTemplate - // projects/project/global/instanceTemplates/instanceTemplate - // global/instanceTemplates/instanceTemplate SourceInstanceTemplate string `json:"sourceInstanceTemplate,omitempty"` // ForceSendFields is a list of field names (e.g. "AssuredCount") 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. "AssuredCount") 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:"-"` }
AllocationSpecificSKUReservation: This reservation type allows to pre allocate specific instance configuration.
func (AllocationSpecificSKUReservation) MarshalJSON ¶ added in v0.7.0
func (s AllocationSpecificSKUReservation) MarshalJSON() ([]byte, error)
type AttachedDisk ¶
type AttachedDisk struct { // Architecture: [Output Only] The architecture of the attached disk. Valid // values are ARM64 or X86_64. // // Possible values: // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture is not // set. // "ARM64" - Machines with architecture ARM64 // "X86_64" - Machines with architecture X86_64 Architecture string `json:"architecture,omitempty"` // AutoDelete: Specifies whether the disk will be auto-deleted when the // instance is deleted (but not when the disk is detached from the instance). AutoDelete bool `json:"autoDelete,omitempty"` // Boot: Indicates that this is a boot disk. The virtual machine will use the // first partition of the disk for its root filesystem. Boot bool `json:"boot,omitempty"` // DeviceName: Specifies a unique device name of your choice that is reflected // into the /dev/disk/by-id/google-* tree of a Linux operating system running // within the instance. This name can be used to reference the device for // mounting, resizing, and so on, from within the instance. If not specified, // the server chooses a default device name to apply to this disk, in the form // persistent-disk-x, where x is a number assigned by Google Compute Engine. // This field is only applicable for persistent disks. DeviceName string `json:"deviceName,omitempty"` // DiskEncryptionKey: Encrypts or decrypts a disk using a customer-supplied // encryption key. If you are creating a new disk, this field encrypts the new // disk using an encryption key that you provide. If you are attaching an // existing disk that is already encrypted, this field decrypts the disk using // the customer-supplied encryption key. If you encrypt a disk using a // customer-supplied key, you must provide the same key again when you attempt // to use this resource at a later time. For example, you must provide the key // when you create a snapshot or an image from the disk or when you attach the // disk to a virtual machine instance. If you do not provide an encryption key, // then the disk will be encrypted using an automatically generated key and you // do not need to provide a key to use the disk later. Note: Instance templates // do not store customer-supplied encryption keys, so you cannot use your own // keys to encrypt disks in a managed instance group. You cannot create VMs // that have disks with customer-supplied keys using the bulk insert method. DiskEncryptionKey *CustomerEncryptionKey `json:"diskEncryptionKey,omitempty"` // DiskSizeGb: The size of the disk in GB. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` // ForceAttach: [Input Only] Whether to force attach the regional disk even if // it's currently attached to another instance. If you try to force attach a // zonal disk to an instance, you will receive an error. ForceAttach bool `json:"forceAttach,omitempty"` // GuestOsFeatures: A list of features to enable on the guest operating system. // Applicable only for bootable images. Read Enabling guest operating system // features to see a list of available options. GuestOsFeatures []*GuestOsFeature `json:"guestOsFeatures,omitempty"` // Index: [Output Only] A zero-based index to this disk, where 0 is reserved // for the boot disk. If you have many disks attached to an instance, each disk // would have a unique index number. Index int64 `json:"index,omitempty"` // InitializeParams: [Input Only] Specifies the parameters for a new disk that // will be created alongside the new instance. Use initialization parameters to // create boot disks or local SSDs attached to the new instance. This property // is mutually exclusive with the source property; you can only define one or // the other, but not both. InitializeParams *AttachedDiskInitializeParams `json:"initializeParams,omitempty"` // Interface: Specifies the disk interface to use for attaching this disk, // which is either SCSI or NVME. For most machine types, the default is SCSI. // Local SSDs can use either NVME or SCSI. In certain configurations, // persistent disks can use NVMe. For more information, see About persistent // disks. // // Possible values: // "NVME" // "SCSI" Interface string `json:"interface,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#attachedDisk for // attached disks. Kind string `json:"kind,omitempty"` // Licenses: [Output Only] Any valid publicly visible licenses. Licenses []string `json:"licenses,omitempty"` // Mode: The mode in which to attach this disk, either READ_WRITE or READ_ONLY. // If not specified, the default is to attach the disk in READ_WRITE mode. // // Possible values: // "READ_ONLY" - Attaches this disk in read-only mode. Multiple virtual // machines can use a disk in read-only mode at a time. // "READ_WRITE" - *[Default]* Attaches this disk in read-write mode. Only one // virtual machine at a time can be attached to a disk in read-write mode. Mode string `json:"mode,omitempty"` // SavedState: For LocalSSD disks on VM Instances in STOPPED or SUSPENDED // state, this field is set to PRESERVED if the LocalSSD data has been saved to // a persistent location by customer request. (see the discard_local_ssd option // on Stop/Suspend). Read-only in the api. // // Possible values: // "DISK_SAVED_STATE_UNSPECIFIED" - *[Default]* Disk state has not been // preserved. // "PRESERVED" - Disk state has been preserved. SavedState string `json:"savedState,omitempty"` // ShieldedInstanceInitialState: [Output Only] shielded vm initial state stored // on disk ShieldedInstanceInitialState *InitialStateConfig `json:"shieldedInstanceInitialState,omitempty"` // Source: Specifies a valid partial or full URL to an existing Persistent Disk // resource. When creating a new instance boot disk, one of // initializeParams.sourceImage or initializeParams.sourceSnapshot or // disks.source is required. If desired, you can also attach existing non-root // persistent disks using this property. This field is only applicable for // persistent disks. Note that for InstanceTemplate, specify the disk name for // zonal disk, and the URL for regional disk. Source string `json:"source,omitempty"` // Type: Specifies the type of the disk, either SCRATCH or PERSISTENT. If not // specified, the default is PERSISTENT. // // Possible values: // "PERSISTENT" // "SCRATCH" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Architecture") 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. "Architecture") 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:"-"` }
AttachedDisk: An instance-attached disk resource.
func (AttachedDisk) MarshalJSON ¶
func (s AttachedDisk) MarshalJSON() ([]byte, error)
type AttachedDiskInitializeParams ¶
type AttachedDiskInitializeParams struct { // Architecture: The architecture of the attached disk. Valid values are arm64 // or x86_64. // // Possible values: // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture is not // set. // "ARM64" - Machines with architecture ARM64 // "X86_64" - Machines with architecture X86_64 Architecture string `json:"architecture,omitempty"` // Description: An optional description. Provide this property when creating // the disk. Description string `json:"description,omitempty"` // DiskName: Specifies the disk name. If not specified, the default is to use // the name of the instance. If a disk with the same name already exists in the // given region, the existing disk is attached to the new instance and the new // disk is not created. DiskName string `json:"diskName,omitempty"` // DiskSizeGb: Specifies the size of the disk in base-2 GB. The size must be at // least 10 GB. If you specify a sourceImage, which is required for boot disks, // the default size is the size of the sourceImage. If you do not specify a // sourceImage, the default disk size is 500 GB. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` // DiskType: Specifies the disk type to use to create the instance. If not // specified, the default is pd-standard, specified using the full URL. For // example: https://www.googleapis.com/compute/v1/projects/project/zones/zone // /diskTypes/pd-standard For a full list of acceptable values, see Persistent // disk types. If you specify this field when creating a VM, you can provide // either the full or partial URL. For example, the following values are valid: // - https://www.googleapis.com/compute/v1/projects/project/zones/zone // /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - // zones/zone/diskTypes/diskType If you specify this field when creating or // updating an instance template or all-instances configuration, specify the // type of the disk, not the URL. For example: pd-standard. DiskType string `json:"diskType,omitempty"` // EnableConfidentialCompute: Whether this disk is using confidential compute // mode. EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"` // Labels: Labels to apply to this disk. These can be later modified by the // disks.setLabels method. This field is only applicable for persistent disks. Labels map[string]string `json:"labels,omitempty"` // Licenses: A list of publicly visible licenses. Reserved for Google's use. Licenses []string `json:"licenses,omitempty"` // OnUpdateAction: Specifies which action to take on instance update with this // disk. Default is to use the existing disk. // // Possible values: // "RECREATE_DISK" - Always recreate the disk. // "RECREATE_DISK_IF_SOURCE_CHANGED" - Recreate the disk if source (image, // snapshot) of this disk is different from source of existing disk. // "USE_EXISTING_DISK" - Use the existing disk, this is the default // behaviour. OnUpdateAction string `json:"onUpdateAction,omitempty"` // ProvisionedIops: Indicates how many IOPS to provision for the disk. This // sets the number of I/O operations per second that the disk can handle. // Values must be between 10,000 and 120,000. For more details, see the Extreme // persistent disk documentation. ProvisionedIops int64 `json:"provisionedIops,omitempty,string"` // ProvisionedThroughput: Indicates how much throughput to provision for the // disk. This sets the number of throughput mb per second that the disk can // handle. Values must greater than or equal to 1. ProvisionedThroughput int64 `json:"provisionedThroughput,omitempty,string"` // ReplicaZones: Required for each regional disk associated with the instance. // Specify the URLs of the zones where the disk should be replicated to. You // must provide exactly two replica zones, and one zone must be the same as the // instance zone. ReplicaZones []string `json:"replicaZones,omitempty"` // ResourceManagerTags: Resource manager tags to be bound to the disk. Tag keys // and values have the same definition as resource manager tags. Keys must be // in the format `tagKeys/{tag_key_id}`, and values are in the format // `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. ResourceManagerTags map[string]string `json:"resourceManagerTags,omitempty"` // ResourcePolicies: Resource policies applied to this disk for automatic // snapshot creations. Specified using the full or partial URL. For instance // template, specify only the resource policy name. ResourcePolicies []string `json:"resourcePolicies,omitempty"` // SourceImage: The source image to create this disk. When creating a new // instance boot disk, one of initializeParams.sourceImage or // initializeParams.sourceSnapshot or disks.source is required. To create a // disk with one of the public operating system images, specify the image by // its family name. For example, specify family/debian-9 to use the latest // Debian 9 image: projects/debian-cloud/global/images/family/debian-9 // Alternatively, use a specific version of a public operating system image: // projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a // disk with a custom image that you created, specify the image name in the // following format: global/images/my-custom-image You can also specify a // custom image by its image family, which returns the latest version of the // image in that family. Replace the image name with family/family-name: // global/images/family/my-image-family If the source image is deleted later, // this field will not be set. SourceImage string `json:"sourceImage,omitempty"` // SourceImageEncryptionKey: The customer-supplied encryption key of the source // image. Required if the source image is protected by a customer-supplied // encryption key. InstanceTemplate and InstancePropertiesPatch do not store // customer-supplied encryption keys, so you cannot create disks for instances // in a managed instance group if the source images are encrypted with your own // keys. SourceImageEncryptionKey *CustomerEncryptionKey `json:"sourceImageEncryptionKey,omitempty"` // SourceSnapshot: The source snapshot to create this disk. When creating a new // instance boot disk, one of initializeParams.sourceSnapshot or // initializeParams.sourceImage or disks.source is required. To create a disk // with a snapshot that you created, specify the snapshot name in the following // format: global/snapshots/my-backup If the source snapshot is deleted later, // this field will not be set. SourceSnapshot string `json:"sourceSnapshot,omitempty"` // SourceSnapshotEncryptionKey: The customer-supplied encryption key of the // source snapshot. SourceSnapshotEncryptionKey *CustomerEncryptionKey `json:"sourceSnapshotEncryptionKey,omitempty"` // StoragePool: The storage pool in which the new disk is created. You can // provide this as a partial or full URL to the resource. For example, the // following are valid values: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /storagePools/storagePool - // projects/project/zones/zone/storagePools/storagePool - // zones/zone/storagePools/storagePool StoragePool string `json:"storagePool,omitempty"` // ForceSendFields is a list of field names (e.g. "Architecture") 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. "Architecture") 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:"-"` }
AttachedDiskInitializeParams: [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This field is persisted and returned for instanceTemplate and not returned in the context of instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
func (AttachedDiskInitializeParams) MarshalJSON ¶
func (s AttachedDiskInitializeParams) MarshalJSON() ([]byte, error)
type AuditConfig ¶
type AuditConfig struct { // AuditLogConfigs: The configuration for logging of each type of permission. AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` // ExemptedMembers: This is deprecated and has no effect. Do not use. ExemptedMembers []string `json:"exemptedMembers,omitempty"` // Service: Specifies a service that will be enabled for audit logging. For // example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` // is a special value that covers all services. Service string `json:"service,omitempty"` // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") 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. "AuditLogConfigs") 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:"-"` }
AuditConfig: Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
func (AuditConfig) MarshalJSON ¶
func (s AuditConfig) MarshalJSON() ([]byte, error)
type AuditLogConfig ¶
type AuditLogConfig struct { // ExemptedMembers: Specifies the identities that do not cause logging for this // type of permission. Follows the same format of Binding.members. ExemptedMembers []string `json:"exemptedMembers,omitempty"` // IgnoreChildExemptions: This is deprecated and has no effect. Do not use. IgnoreChildExemptions bool `json:"ignoreChildExemptions,omitempty"` // LogType: The log type that this config enables. // // Possible values: // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy // "DATA_READ" - Data reads. Example: CloudSQL Users list // "DATA_WRITE" - Data writes. Example: CloudSQL Users create // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. LogType string `json:"logType,omitempty"` // ForceSendFields is a list of field names (e.g. "ExemptedMembers") 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. "ExemptedMembers") 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:"-"` }
AuditLogConfig: Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.
func (AuditLogConfig) MarshalJSON ¶
func (s AuditLogConfig) MarshalJSON() ([]byte, error)
type Autoscaler ¶
type Autoscaler struct { // AutoscalingPolicy: The configuration parameters for the autoscaling // algorithm. You can define one or more signals for an autoscaler: // cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If // none of these are specified, the default will be to autoscale based on // cpuUtilization to 0.6 or 60%. AutoscalingPolicy *AutoscalingPolicy `json:"autoscalingPolicy,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#autoscaler for // autoscalers. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // RecommendedSize: [Output Only] Target recommended MIG size (number of // instances) computed by autoscaler. Autoscaler calculates the recommended MIG // size even when the autoscaling policy mode is different from ON. This field // is empty when autoscaler is not connected to an existing managed instance // group or autoscaler did not generate its prediction. RecommendedSize int64 `json:"recommendedSize,omitempty"` // Region: [Output Only] URL of the region where the instance group resides // (for autoscalers living in regional scope). Region string `json:"region,omitempty"` // ScalingScheduleStatus: [Output Only] Status information of existing scaling // schedules. ScalingScheduleStatus map[string]ScalingScheduleStatus `json:"scalingScheduleStatus,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Status: [Output Only] The status of the autoscaler configuration. Current // set of possible values: - PENDING: Autoscaler backend hasn't read // new/updated configuration. - DELETING: Configuration is being deleted. - // ACTIVE: Configuration is acknowledged to be effective. Some warnings might // be present in the statusDetails field. - ERROR: Configuration has errors. // Actionable for users. Details are present in the statusDetails field. New // values might be added in the future. // // Possible values: // "ACTIVE" - Configuration is acknowledged to be effective // "DELETING" - Configuration is being deleted // "ERROR" - Configuration has errors. Actionable for users. // "PENDING" - Autoscaler backend hasn't read new/updated configuration Status string `json:"status,omitempty"` // StatusDetails: [Output Only] Human-readable details about the current state // of the autoscaler. Read the documentation for Commonly returned status // messages for examples of status messages you might encounter. StatusDetails []*AutoscalerStatusDetails `json:"statusDetails,omitempty"` // Target: URL of the managed instance group that this autoscaler will scale. // This field is required when creating an autoscaler. Target string `json:"target,omitempty"` // Zone: [Output Only] URL of the zone where the instance group resides (for // autoscalers living in zonal scope). Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AutoscalingPolicy") 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. "AutoscalingPolicy") 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:"-"` }
Autoscaler: Represents an Autoscaler resource. Google Compute Engine has two Autoscaler resources: * Zonal (/compute/docs/reference/rest/v1/autoscalers) * Regional (/compute/docs/reference/rest/v1/regionAutoscalers) Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances. For zonal managed instance groups resource, use the autoscaler resource. For regional managed instance groups, use the regionAutoscalers resource.
func (Autoscaler) MarshalJSON ¶
func (s Autoscaler) MarshalJSON() ([]byte, error)
type AutoscalerAggregatedList ¶
type AutoscalerAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of AutoscalersScopedList resources. Items map[string]AutoscalersScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#autoscalerAggregatedList for aggregated lists of autoscalers. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. end_interface: // MixerListResponseWithEtagBuilder Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *AutoscalerAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (AutoscalerAggregatedList) MarshalJSON ¶
func (s AutoscalerAggregatedList) MarshalJSON() ([]byte, error)
type AutoscalerAggregatedListWarning ¶
type AutoscalerAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*AutoscalerAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
AutoscalerAggregatedListWarning: [Output Only] Informational warning message.
func (AutoscalerAggregatedListWarning) MarshalJSON ¶
func (s AutoscalerAggregatedListWarning) MarshalJSON() ([]byte, error)
type AutoscalerAggregatedListWarningData ¶
type AutoscalerAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (AutoscalerAggregatedListWarningData) MarshalJSON ¶
func (s AutoscalerAggregatedListWarningData) MarshalJSON() ([]byte, error)
type AutoscalerList ¶
type AutoscalerList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Autoscaler resources. Items []*Autoscaler `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#autoscalerList for // lists of autoscalers. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *AutoscalerListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
AutoscalerList: Contains a list of Autoscaler resources.
func (AutoscalerList) MarshalJSON ¶
func (s AutoscalerList) MarshalJSON() ([]byte, error)
type AutoscalerListWarning ¶
type AutoscalerListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*AutoscalerListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
AutoscalerListWarning: [Output Only] Informational warning message.
func (AutoscalerListWarning) MarshalJSON ¶
func (s AutoscalerListWarning) MarshalJSON() ([]byte, error)
type AutoscalerListWarningData ¶
type AutoscalerListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (AutoscalerListWarningData) MarshalJSON ¶
func (s AutoscalerListWarningData) MarshalJSON() ([]byte, error)
type AutoscalerStatusDetails ¶
type AutoscalerStatusDetails struct { // Message: The status message. Message string `json:"message,omitempty"` // Type: The type of error, warning, or notice returned. Current set of // possible values: - ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the // instance group are unhealthy (not in RUNNING state). - // BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service attached // to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler // recommends a size greater than maxNumReplicas. - // CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric samples // are not exported often enough to be a credible base for autoscaling. - // CUSTOM_METRIC_INVALID (ERROR): The custom metric that was specified does not // exist or does not have the necessary labels. - MIN_EQUALS_MAX (WARNING): The // minNumReplicas is equal to maxNumReplicas. This means the autoscaler cannot // add or remove instances from the instance group. - // MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive // any data from the custom metric configured for autoscaling. - // MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The autoscaler is configured // to scale based on a load balancing signal but the instance group has not // received any requests from the load balancer. - MODE_OFF (WARNING): // Autoscaling is turned off. The number of instances in the group won't change // automatically. The autoscaling configuration is preserved. - MODE_ONLY_UP // (WARNING): Autoscaling is in the "Autoscale only out" mode. The autoscaler // can add instances but not remove any. - MORE_THAN_ONE_BACKEND_SERVICE // (ERROR): The instance group cannot be autoscaled because it has more than // one backend service attached to it. - NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): // There is insufficient quota for the necessary resources, such as CPU or // number of instances. - REGION_RESOURCE_STOCKOUT (ERROR): Shown only for // regional autoscalers: there is a resource stockout in the chosen region. - // SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled does not // exist. - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): // Autoscaling does not work with an HTTP/S load balancer that has been // configured for maxRate. - ZONE_RESOURCE_STOCKOUT (ERROR): For zonal // autoscalers: there is a resource stockout in the chosen zone. For regional // autoscalers: in at least one of the zones you're using there is a resource // stockout. New values might be added in the future. Some of the values might // not be available in all API versions. // // Possible values: // "ALL_INSTANCES_UNHEALTHY" - All instances in the instance group are // unhealthy (not in RUNNING state). // "BACKEND_SERVICE_DOES_NOT_EXIST" - There is no backend service attached to // the instance group. // "CAPPED_AT_MAX_NUM_REPLICAS" - Autoscaler recommends a size greater than // maxNumReplicas. // "CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE" - The custom metric samples are not // exported often enough to be a credible base for autoscaling. // "CUSTOM_METRIC_INVALID" - The custom metric that was specified does not // exist or does not have the necessary labels. // "MIN_EQUALS_MAX" - The minNumReplicas is equal to maxNumReplicas. This // means the autoscaler cannot add or remove instances from the instance group. // "MISSING_CUSTOM_METRIC_DATA_POINTS" - The autoscaler did not receive any // data from the custom metric configured for autoscaling. // "MISSING_LOAD_BALANCING_DATA_POINTS" - The autoscaler is configured to // scale based on a load balancing signal but the instance group has not // received any requests from the load balancer. // "MODE_OFF" - Autoscaling is turned off. The number of instances in the // group won't change automatically. The autoscaling configuration is // preserved. // "MODE_ONLY_SCALE_OUT" - Autoscaling is in the "Autoscale only scale out" // mode. Instances in the group will be only added. // "MODE_ONLY_UP" - Autoscaling is in the "Autoscale only out" mode. // Instances in the group will be only added. // "MORE_THAN_ONE_BACKEND_SERVICE" - The instance group cannot be autoscaled // because it has more than one backend service attached to it. // "NOT_ENOUGH_QUOTA_AVAILABLE" - There is insufficient quota for the // necessary resources, such as CPU or number of instances. // "REGION_RESOURCE_STOCKOUT" - Showed only for regional autoscalers: there // is a resource stockout in the chosen region. // "SCALING_TARGET_DOES_NOT_EXIST" - The target to be scaled does not exist. // "SCHEDULED_INSTANCES_GREATER_THAN_AUTOSCALER_MAX" - For some scaling // schedules minRequiredReplicas is greater than maxNumReplicas. Autoscaler // always recommends at most maxNumReplicas instances. // "SCHEDULED_INSTANCES_LESS_THAN_AUTOSCALER_MIN" - For some scaling // schedules minRequiredReplicas is less than minNumReplicas. Autoscaler always // recommends at least minNumReplicas instances. // "UNKNOWN" // "UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION" - Autoscaling does not // work with an HTTP/S load balancer that has been configured for maxRate. // "ZONE_RESOURCE_STOCKOUT" - For zonal autoscalers: there is a resource // stockout in the chosen zone. For regional autoscalers: in at least one of // the zones you're using there is a resource stockout. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Message") 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. "Message") 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:"-"` }
func (AutoscalerStatusDetails) MarshalJSON ¶
func (s AutoscalerStatusDetails) MarshalJSON() ([]byte, error)
type AutoscalersAggregatedListCall ¶
type AutoscalersAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*AutoscalersAggregatedListCall) Context ¶
func (c *AutoscalersAggregatedListCall) Context(ctx context.Context) *AutoscalersAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*AutoscalersAggregatedListCall) Do ¶
func (c *AutoscalersAggregatedListCall) Do(opts ...googleapi.CallOption) (*AutoscalerAggregatedList, error)
Do executes the "compute.autoscalers.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *AutoscalerAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AutoscalersAggregatedListCall) Fields ¶
func (c *AutoscalersAggregatedListCall) Fields(s ...googleapi.Field) *AutoscalersAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AutoscalersAggregatedListCall) Filter ¶
func (c *AutoscalersAggregatedListCall) Filter(filter string) *AutoscalersAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*AutoscalersAggregatedListCall) Header ¶
func (c *AutoscalersAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AutoscalersAggregatedListCall) IfNoneMatch ¶
func (c *AutoscalersAggregatedListCall) IfNoneMatch(entityTag string) *AutoscalersAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*AutoscalersAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *AutoscalersAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *AutoscalersAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*AutoscalersAggregatedListCall) MaxResults ¶
func (c *AutoscalersAggregatedListCall) MaxResults(maxResults int64) *AutoscalersAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*AutoscalersAggregatedListCall) OrderBy ¶
func (c *AutoscalersAggregatedListCall) OrderBy(orderBy string) *AutoscalersAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*AutoscalersAggregatedListCall) PageToken ¶
func (c *AutoscalersAggregatedListCall) PageToken(pageToken string) *AutoscalersAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*AutoscalersAggregatedListCall) Pages ¶
func (c *AutoscalersAggregatedListCall) Pages(ctx context.Context, f func(*AutoscalerAggregatedList) 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 (*AutoscalersAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *AutoscalersAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AutoscalersAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*AutoscalersAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *AutoscalersAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *AutoscalersAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type AutoscalersDeleteCall ¶
type AutoscalersDeleteCall struct {
// contains filtered or unexported fields
}
func (*AutoscalersDeleteCall) Context ¶
func (c *AutoscalersDeleteCall) Context(ctx context.Context) *AutoscalersDeleteCall
Context sets the context to be used in this call's Do method.
func (*AutoscalersDeleteCall) Do ¶
func (c *AutoscalersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.autoscalers.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AutoscalersDeleteCall) Fields ¶
func (c *AutoscalersDeleteCall) Fields(s ...googleapi.Field) *AutoscalersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AutoscalersDeleteCall) Header ¶
func (c *AutoscalersDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AutoscalersDeleteCall) RequestId ¶
func (c *AutoscalersDeleteCall) RequestId(requestId string) *AutoscalersDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type AutoscalersGetCall ¶
type AutoscalersGetCall struct {
// contains filtered or unexported fields
}
func (*AutoscalersGetCall) Context ¶
func (c *AutoscalersGetCall) Context(ctx context.Context) *AutoscalersGetCall
Context sets the context to be used in this call's Do method.
func (*AutoscalersGetCall) Do ¶
func (c *AutoscalersGetCall) Do(opts ...googleapi.CallOption) (*Autoscaler, error)
Do executes the "compute.autoscalers.get" call. Any non-2xx status code is an error. Response headers are in either *Autoscaler.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AutoscalersGetCall) Fields ¶
func (c *AutoscalersGetCall) Fields(s ...googleapi.Field) *AutoscalersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AutoscalersGetCall) Header ¶
func (c *AutoscalersGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AutoscalersGetCall) IfNoneMatch ¶
func (c *AutoscalersGetCall) IfNoneMatch(entityTag string) *AutoscalersGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type AutoscalersInsertCall ¶
type AutoscalersInsertCall struct {
// contains filtered or unexported fields
}
func (*AutoscalersInsertCall) Context ¶
func (c *AutoscalersInsertCall) Context(ctx context.Context) *AutoscalersInsertCall
Context sets the context to be used in this call's Do method.
func (*AutoscalersInsertCall) Do ¶
func (c *AutoscalersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.autoscalers.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AutoscalersInsertCall) Fields ¶
func (c *AutoscalersInsertCall) Fields(s ...googleapi.Field) *AutoscalersInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AutoscalersInsertCall) Header ¶
func (c *AutoscalersInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AutoscalersInsertCall) RequestId ¶
func (c *AutoscalersInsertCall) RequestId(requestId string) *AutoscalersInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type AutoscalersListCall ¶
type AutoscalersListCall struct {
// contains filtered or unexported fields
}
func (*AutoscalersListCall) Context ¶
func (c *AutoscalersListCall) Context(ctx context.Context) *AutoscalersListCall
Context sets the context to be used in this call's Do method.
func (*AutoscalersListCall) Do ¶
func (c *AutoscalersListCall) Do(opts ...googleapi.CallOption) (*AutoscalerList, error)
Do executes the "compute.autoscalers.list" call. Any non-2xx status code is an error. Response headers are in either *AutoscalerList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AutoscalersListCall) Fields ¶
func (c *AutoscalersListCall) Fields(s ...googleapi.Field) *AutoscalersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AutoscalersListCall) Filter ¶
func (c *AutoscalersListCall) Filter(filter string) *AutoscalersListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*AutoscalersListCall) Header ¶
func (c *AutoscalersListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AutoscalersListCall) IfNoneMatch ¶
func (c *AutoscalersListCall) IfNoneMatch(entityTag string) *AutoscalersListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*AutoscalersListCall) MaxResults ¶
func (c *AutoscalersListCall) MaxResults(maxResults int64) *AutoscalersListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*AutoscalersListCall) OrderBy ¶
func (c *AutoscalersListCall) OrderBy(orderBy string) *AutoscalersListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*AutoscalersListCall) PageToken ¶
func (c *AutoscalersListCall) PageToken(pageToken string) *AutoscalersListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*AutoscalersListCall) Pages ¶
func (c *AutoscalersListCall) Pages(ctx context.Context, f func(*AutoscalerList) 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 (*AutoscalersListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *AutoscalersListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AutoscalersListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type AutoscalersPatchCall ¶
type AutoscalersPatchCall struct {
// contains filtered or unexported fields
}
func (*AutoscalersPatchCall) Autoscaler ¶
func (c *AutoscalersPatchCall) Autoscaler(autoscaler string) *AutoscalersPatchCall
Autoscaler sets the optional parameter "autoscaler": Name of the autoscaler to patch.
func (*AutoscalersPatchCall) Context ¶
func (c *AutoscalersPatchCall) Context(ctx context.Context) *AutoscalersPatchCall
Context sets the context to be used in this call's Do method.
func (*AutoscalersPatchCall) Do ¶
func (c *AutoscalersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.autoscalers.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AutoscalersPatchCall) Fields ¶
func (c *AutoscalersPatchCall) Fields(s ...googleapi.Field) *AutoscalersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AutoscalersPatchCall) Header ¶
func (c *AutoscalersPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AutoscalersPatchCall) RequestId ¶
func (c *AutoscalersPatchCall) RequestId(requestId string) *AutoscalersPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type AutoscalersScopedList ¶
type AutoscalersScopedList struct { // Autoscalers: [Output Only] A list of autoscalers contained in this scope. Autoscalers []*Autoscaler `json:"autoscalers,omitempty"` // Warning: [Output Only] Informational warning which replaces the list of // autoscalers when the list is empty. Warning *AutoscalersScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "Autoscalers") 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. "Autoscalers") 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:"-"` }
func (AutoscalersScopedList) MarshalJSON ¶
func (s AutoscalersScopedList) MarshalJSON() ([]byte, error)
type AutoscalersScopedListWarning ¶
type AutoscalersScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*AutoscalersScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
AutoscalersScopedListWarning: [Output Only] Informational warning which replaces the list of autoscalers when the list is empty.
func (AutoscalersScopedListWarning) MarshalJSON ¶
func (s AutoscalersScopedListWarning) MarshalJSON() ([]byte, error)
type AutoscalersScopedListWarningData ¶
type AutoscalersScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (AutoscalersScopedListWarningData) MarshalJSON ¶
func (s AutoscalersScopedListWarningData) MarshalJSON() ([]byte, error)
type AutoscalersService ¶
type AutoscalersService struct {
// contains filtered or unexported fields
}
func NewAutoscalersService ¶
func NewAutoscalersService(s *Service) *AutoscalersService
func (*AutoscalersService) AggregatedList ¶
func (r *AutoscalersService) AggregatedList(project string) *AutoscalersAggregatedListCall
AggregatedList: Retrieves an aggregated list of autoscalers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*AutoscalersService) Delete ¶
func (r *AutoscalersService) Delete(project string, zone string, autoscaler string) *AutoscalersDeleteCall
Delete: Deletes the specified autoscaler.
- autoscaler: Name of the autoscaler to delete. - project: Project ID for this request. - zone: Name of the zone for this request.
func (*AutoscalersService) Get ¶
func (r *AutoscalersService) Get(project string, zone string, autoscaler string) *AutoscalersGetCall
Get: Returns the specified autoscaler resource.
- autoscaler: Name of the autoscaler to return. - project: Project ID for this request. - zone: Name of the zone for this request.
func (*AutoscalersService) Insert ¶
func (r *AutoscalersService) Insert(project string, zone string, autoscaler *Autoscaler) *AutoscalersInsertCall
Insert: Creates an autoscaler in the specified project using the data included in the request.
- project: Project ID for this request. - zone: Name of the zone for this request.
func (*AutoscalersService) List ¶
func (r *AutoscalersService) List(project string, zone string) *AutoscalersListCall
List: Retrieves a list of autoscalers contained within the specified zone.
- project: Project ID for this request. - zone: Name of the zone for this request.
func (*AutoscalersService) Patch ¶
func (r *AutoscalersService) Patch(project string, zone string, autoscaler *Autoscaler) *AutoscalersPatchCall
Patch: Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- project: Project ID for this request. - zone: Name of the zone for this request.
func (*AutoscalersService) Update ¶
func (r *AutoscalersService) Update(project string, zone string, autoscaler *Autoscaler) *AutoscalersUpdateCall
Update: Updates an autoscaler in the specified project using the data included in the request.
- project: Project ID for this request. - zone: Name of the zone for this request.
type AutoscalersUpdateCall ¶
type AutoscalersUpdateCall struct {
// contains filtered or unexported fields
}
func (*AutoscalersUpdateCall) Autoscaler ¶
func (c *AutoscalersUpdateCall) Autoscaler(autoscaler string) *AutoscalersUpdateCall
Autoscaler sets the optional parameter "autoscaler": Name of the autoscaler to update.
func (*AutoscalersUpdateCall) Context ¶
func (c *AutoscalersUpdateCall) Context(ctx context.Context) *AutoscalersUpdateCall
Context sets the context to be used in this call's Do method.
func (*AutoscalersUpdateCall) Do ¶
func (c *AutoscalersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.autoscalers.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AutoscalersUpdateCall) Fields ¶
func (c *AutoscalersUpdateCall) Fields(s ...googleapi.Field) *AutoscalersUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AutoscalersUpdateCall) Header ¶
func (c *AutoscalersUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AutoscalersUpdateCall) RequestId ¶
func (c *AutoscalersUpdateCall) RequestId(requestId string) *AutoscalersUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type AutoscalingPolicy ¶
type AutoscalingPolicy struct { // CoolDownPeriodSec: The number of seconds that your application takes to // initialize on a VM instance. This is referred to as the initialization // period (/compute/docs/autoscaler#cool_down_period). Specifying an accurate // initialization period improves autoscaler decisions. For example, when // scaling out, the autoscaler ignores data from VMs that are still // initializing because those VMs might not yet represent normal usage of your // application. The default initialization period is 60 seconds. Initialization // periods might vary because of numerous factors. We recommend that you test // how long your application takes to initialize. To do this, create a VM and // time your application's startup process. CoolDownPeriodSec int64 `json:"coolDownPeriodSec,omitempty"` // CpuUtilization: Defines the CPU utilization policy that allows the // autoscaler to scale based on the average CPU utilization of a managed // instance group. CpuUtilization *AutoscalingPolicyCpuUtilization `json:"cpuUtilization,omitempty"` // CustomMetricUtilizations: Configuration parameters of autoscaling based on a // custom metric. CustomMetricUtilizations []*AutoscalingPolicyCustomMetricUtilization `json:"customMetricUtilizations,omitempty"` // LoadBalancingUtilization: Configuration parameters of autoscaling based on // load balancer. LoadBalancingUtilization *AutoscalingPolicyLoadBalancingUtilization `json:"loadBalancingUtilization,omitempty"` // MaxNumReplicas: The maximum number of instances that the autoscaler can // scale out to. This is required when creating or updating an autoscaler. The // maximum number of replicas must not be lower than minimal number of // replicas. MaxNumReplicas int64 `json:"maxNumReplicas,omitempty"` // MinNumReplicas: The minimum number of replicas that the autoscaler can scale // in to. This cannot be less than 0. If not provided, autoscaler chooses a // default value depending on maximum number of instances allowed. MinNumReplicas int64 `json:"minNumReplicas,omitempty"` // Mode: Defines the operating mode for this policy. The following modes are // available: - OFF: Disables the autoscaler but maintains its configuration. - // ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: // Enables all autoscaler activities according to its policy. For more // information, see "Turning off or restricting an autoscaler" // // Possible values: // "OFF" - Do not automatically scale the MIG in or out. The recommended_size // field contains the size of MIG that would be set if the actuation mode was // enabled. // "ON" - Automatically scale the MIG in and out according to the policy. // "ONLY_SCALE_OUT" - Automatically create VMs according to the policy, but // do not scale the MIG in. // "ONLY_UP" - Automatically create VMs according to the policy, but do not // scale the MIG in. Mode string `json:"mode,omitempty"` ScaleInControl *AutoscalingPolicyScaleInControl `json:"scaleInControl,omitempty"` // ScalingSchedules: Scaling schedules defined for an autoscaler. Multiple // schedules can be set on an autoscaler, and they can overlap. During // overlapping periods the greatest min_required_replicas of all scaling // schedules is applied. Up to 128 scaling schedules are allowed. ScalingSchedules map[string]AutoscalingPolicyScalingSchedule `json:"scalingSchedules,omitempty"` // ForceSendFields is a list of field names (e.g. "CoolDownPeriodSec") 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. "CoolDownPeriodSec") 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:"-"` }
AutoscalingPolicy: Cloud Autoscaler policy.
func (AutoscalingPolicy) MarshalJSON ¶
func (s AutoscalingPolicy) MarshalJSON() ([]byte, error)
type AutoscalingPolicyCpuUtilization ¶
type AutoscalingPolicyCpuUtilization struct { // PredictiveMethod: Indicates whether predictive autoscaling based on CPU // metric is enabled. Valid values are: * NONE (default). No predictive method // is used. The autoscaler scales the group to meet current demand based on // real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves // availability by monitoring daily and weekly load patterns and scaling out // ahead of anticipated demand. // // Possible values: // "NONE" - No predictive method is used. The autoscaler scales the group to // meet current demand based on real-time metrics // "OPTIMIZE_AVAILABILITY" - Predictive autoscaling improves availability by // monitoring daily and weekly load patterns and scaling out ahead of // anticipated demand. PredictiveMethod string `json:"predictiveMethod,omitempty"` // UtilizationTarget: The target CPU utilization that the autoscaler maintains. // Must be a float value in the range (0, 1]. If not specified, the default is // 0.6. If the CPU level is below the target utilization, the autoscaler scales // in the number of instances until it reaches the minimum number of instances // you specified or until the average CPU of your instances reaches the target // utilization. If the average CPU is above the target utilization, the // autoscaler scales out until it reaches the maximum number of instances you // specified or until the average utilization reaches the target utilization. UtilizationTarget float64 `json:"utilizationTarget,omitempty"` // ForceSendFields is a list of field names (e.g. "PredictiveMethod") 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. "PredictiveMethod") 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:"-"` }
AutoscalingPolicyCpuUtilization: CPU utilization policy.
func (AutoscalingPolicyCpuUtilization) MarshalJSON ¶
func (s AutoscalingPolicyCpuUtilization) MarshalJSON() ([]byte, error)
func (*AutoscalingPolicyCpuUtilization) UnmarshalJSON ¶
func (s *AutoscalingPolicyCpuUtilization) UnmarshalJSON(data []byte) error
type AutoscalingPolicyCustomMetricUtilization ¶
type AutoscalingPolicyCustomMetricUtilization struct { // Filter: A filter string, compatible with a Stackdriver Monitoring filter // string for TimeSeries.list API call. This filter is used to select a // specific TimeSeries for the purpose of autoscaling and to determine whether // the metric is exporting per-instance or per-group data. For the filter to be // valid for autoscaling purposes, the following rules apply: - You can only // use the AND operator for joining selectors. - You can only use direct // equality comparison operator (=) without any functions for each selector. - // You can specify the metric in both the filter string and in the metric // field. However, if specified in both places, the metric must be identical. - // The monitored resource type determines what kind of values are expected for // the metric. If it is a gce_instance, the autoscaler expects the metric to // include a separate TimeSeries for each instance in a group. In such a case, // you cannot filter on resource labels. If the resource type is any other // value, the autoscaler expects this metric to contain values that apply to // the entire autoscaled instance group and resource label filtering can be // performed to point autoscaler at the correct TimeSeries to scale upon. This // is called a *per-group metric* for the purpose of autoscaling. If not // specified, the type defaults to gce_instance. Try to provide a filter that // is selective enough to pick just one TimeSeries for the autoscaled group or // for each of the instances (if you are using gce_instance resource type). If // multiple TimeSeries are returned upon the query execution, the autoscaler // will sum their respective values to obtain its scaling value. Filter string `json:"filter,omitempty"` // Metric: The identifier (type) of the Stackdriver Monitoring metric. The // metric cannot have negative values. The metric must have a value type of // INT64 or DOUBLE. Metric string `json:"metric,omitempty"` // SingleInstanceAssignment: If scaling is based on a per-group metric value // that represents the total amount of work to be done or resource usage, set // this value to an amount assigned for a single instance of the scaled group. // Autoscaler keeps the number of instances proportional to the value of this // metric. The metric itself does not change value due to group resizing. A // good metric to use with the target is for example // pubsub.googleapis.com/subscription/num_undelivered_messages or a custom // metric exporting the total number of requests coming to your instances. A // bad example would be a metric exporting an average or median latency, since // this value can't include a chunk assignable to a single instance, it could // be better used with utilization_target instead. SingleInstanceAssignment float64 `json:"singleInstanceAssignment,omitempty"` // UtilizationTarget: The target value of the metric that autoscaler maintains. // This must be a positive value. A utilization metric scales number of virtual // machines handling requests to increase or decrease proportionally to the // metric. For example, a good metric to use as a utilization_target is // https://www.googleapis.com/compute/v1/instance/network/received_bytes_count. // The autoscaler works to keep this value constant for each of the instances. UtilizationTarget float64 `json:"utilizationTarget,omitempty"` // UtilizationTargetType: Defines how target utilization value is expressed for // a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or // DELTA_PER_MINUTE. // // Possible values: // "DELTA_PER_MINUTE" - Sets the utilization target value for a cumulative or // delta metric, expressed as the rate of growth per minute. // "DELTA_PER_SECOND" - Sets the utilization target value for a cumulative or // delta metric, expressed as the rate of growth per second. // "GAUGE" - Sets the utilization target value for a gauge metric. The // autoscaler will collect the average utilization of the virtual machines from // the last couple of minutes, and compare the value to the utilization target // value to perform autoscaling. UtilizationTargetType string `json:"utilizationTargetType,omitempty"` // ForceSendFields is a list of field names (e.g. "Filter") 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. "Filter") 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:"-"` }
AutoscalingPolicyCustomMetricUtilization: Custom utilization metric policy.
func (AutoscalingPolicyCustomMetricUtilization) MarshalJSON ¶
func (s AutoscalingPolicyCustomMetricUtilization) MarshalJSON() ([]byte, error)
func (*AutoscalingPolicyCustomMetricUtilization) UnmarshalJSON ¶
func (s *AutoscalingPolicyCustomMetricUtilization) UnmarshalJSON(data []byte) error
type AutoscalingPolicyLoadBalancingUtilization ¶
type AutoscalingPolicyLoadBalancingUtilization struct { // UtilizationTarget: Fraction of backend capacity utilization (set in HTTP(S) // load balancing configuration) that the autoscaler maintains. Must be a // positive float value. If not defined, the default is 0.8. UtilizationTarget float64 `json:"utilizationTarget,omitempty"` // ForceSendFields is a list of field names (e.g. "UtilizationTarget") 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. "UtilizationTarget") 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:"-"` }
AutoscalingPolicyLoadBalancingUtilization: Configuration parameters of autoscaling based on load balancing.
func (AutoscalingPolicyLoadBalancingUtilization) MarshalJSON ¶
func (s AutoscalingPolicyLoadBalancingUtilization) MarshalJSON() ([]byte, error)
func (*AutoscalingPolicyLoadBalancingUtilization) UnmarshalJSON ¶
func (s *AutoscalingPolicyLoadBalancingUtilization) UnmarshalJSON(data []byte) error
type AutoscalingPolicyScaleInControl ¶ added in v0.30.0
type AutoscalingPolicyScaleInControl struct { // MaxScaledInReplicas: Maximum allowed number (or %) of VMs that can be // deducted from the peak recommendation during the window autoscaler looks at // when computing recommendations. Possibly all these VMs can be deleted at // once so user service needs to be prepared to lose that many VMs in one step. MaxScaledInReplicas *FixedOrPercent `json:"maxScaledInReplicas,omitempty"` // TimeWindowSec: How far back autoscaling looks when computing recommendations // to include directives regarding slower scale in, as described above. TimeWindowSec int64 `json:"timeWindowSec,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxScaledInReplicas") 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. "MaxScaledInReplicas") 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:"-"` }
AutoscalingPolicyScaleInControl: Configuration that allows for slower scale in so that even if Autoscaler recommends an abrupt scale in of a MIG, it will be throttled as specified by the parameters below.
func (AutoscalingPolicyScaleInControl) MarshalJSON ¶ added in v0.30.0
func (s AutoscalingPolicyScaleInControl) MarshalJSON() ([]byte, error)
type AutoscalingPolicyScalingSchedule ¶ added in v0.43.0
type AutoscalingPolicyScalingSchedule struct { // Description: A description of a scaling schedule. Description string `json:"description,omitempty"` // Disabled: A boolean value that specifies whether a scaling schedule can // influence autoscaler recommendations. If set to true, then a scaling // schedule has no effect. This field is optional, and its value is false by // default. Disabled bool `json:"disabled,omitempty"` // DurationSec: The duration of time intervals, in seconds, for which this // scaling schedule is to run. The minimum allowed value is 300. This field is // required. DurationSec int64 `json:"durationSec,omitempty"` // MinRequiredReplicas: The minimum number of VM instances that the autoscaler // will recommend in time intervals starting according to schedule. This field // is required. MinRequiredReplicas int64 `json:"minRequiredReplicas,omitempty"` // Schedule: The start timestamps of time intervals when this scaling schedule // is to provide a scaling signal. This field uses the extended cron format // (with an optional year field). The expression can describe a single // timestamp if the optional year is set, in which case the scaling schedule // runs once. The schedule is interpreted with respect to time_zone. This field // is required. Note: These timestamps only describe when autoscaler starts // providing the scaling signal. The VMs need additional time to become // serving. Schedule string `json:"schedule,omitempty"` // TimeZone: The time zone to use when interpreting the schedule. The value of // this field must be a time zone name from the tz database: // https://en.wikipedia.org/wiki/Tz_database. This field is assigned a default // value of "UTC" if left empty. TimeZone string `json:"timeZone,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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:"-"` }
AutoscalingPolicyScalingSchedule: Scaling based on user-defined schedule. The message describes a single scaling schedule. A scaling schedule changes the minimum number of VM instances an autoscaler can recommend, which can trigger scaling out.
func (AutoscalingPolicyScalingSchedule) MarshalJSON ¶ added in v0.43.0
func (s AutoscalingPolicyScalingSchedule) MarshalJSON() ([]byte, error)
type Backend ¶
type Backend struct { // BalancingMode: Specifies how to determine whether the backend of a load // balancer can handle additional traffic or is fully loaded. For usage // guidelines, see Connection balancing mode. Backends must use compatible // balancing modes. For more information, see Supported balancing modes and // target capacity settings and Restrictions and guidance for instance groups. // Note: Currently, if you use the API to configure incompatible balancing // modes, the configuration might be accepted even though it has no impact and // is ignored. Specifically, Backend.maxUtilization is ignored when // Backend.balancingMode is RATE. In the future, this incompatible combination // will be rejected. // // Possible values: // "CONNECTION" - Balance based on the number of simultaneous connections. // "RATE" - Balance based on requests per second (RPS). // "UTILIZATION" - Balance based on the backend utilization. BalancingMode string `json:"balancingMode,omitempty"` // CapacityScaler: A multiplier applied to the backend's target capacity of its // balancing mode. The default value is 1, which means the group serves up to // 100% of its configured capacity (depending on balancingMode). A setting of 0 // means the group is completely drained, offering 0% of its available // capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a // setting larger than 0 and smaller than 0.1. You cannot configure a setting // of 0 when there is only one backend attached to the backend service. Not // available with backends that don't support using a balancingMode. This // includes backends such as global internet NEGs, regional serverless NEGs, // and PSC NEGs. CapacityScaler float64 `json:"capacityScaler,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Failover: This field designates whether this is a failover backend. More // than one failover backend can be configured for a given BackendService. Failover bool `json:"failover,omitempty"` // Group: The fully-qualified URL of an instance group or network endpoint // group (NEG) resource. To determine what types of backends a load balancer // supports, see the Backend services overview // (https://cloud.google.com/load-balancing/docs/backend-service#backends). You // must use the *fully-qualified* URL (starting with // https://www.googleapis.com/) to specify the instance group or NEG. Partial // URLs are not supported. Group string `json:"group,omitempty"` // MaxConnections: Defines a target maximum number of simultaneous connections. // For usage guidelines, see Connection balancing mode and Utilization // balancing mode. Not available if the backend's balancingMode is RATE. MaxConnections int64 `json:"maxConnections,omitempty"` // MaxConnectionsPerEndpoint: Defines a target maximum number of simultaneous // connections. For usage guidelines, see Connection balancing mode and // Utilization balancing mode. Not available if the backend's balancingMode is // RATE. MaxConnectionsPerEndpoint int64 `json:"maxConnectionsPerEndpoint,omitempty"` // MaxConnectionsPerInstance: Defines a target maximum number of simultaneous // connections. For usage guidelines, see Connection balancing mode and // Utilization balancing mode. Not available if the backend's balancingMode is // RATE. MaxConnectionsPerInstance int64 `json:"maxConnectionsPerInstance,omitempty"` // MaxRate: Defines a maximum number of HTTP requests per second (RPS). For // usage guidelines, see Rate balancing mode and Utilization balancing mode. // Not available if the backend's balancingMode is CONNECTION. MaxRate int64 `json:"maxRate,omitempty"` // MaxRatePerEndpoint: Defines a maximum target for requests per second (RPS). // For usage guidelines, see Rate balancing mode and Utilization balancing // mode. Not available if the backend's balancingMode is CONNECTION. MaxRatePerEndpoint float64 `json:"maxRatePerEndpoint,omitempty"` // MaxRatePerInstance: Defines a maximum target for requests per second (RPS). // For usage guidelines, see Rate balancing mode and Utilization balancing // mode. Not available if the backend's balancingMode is CONNECTION. MaxRatePerInstance float64 `json:"maxRatePerInstance,omitempty"` // MaxUtilization: Optional parameter to define a target capacity for the // UTILIZATION balancing mode. The valid range is [0.0, 1.0]. For usage // guidelines, see Utilization balancing mode. MaxUtilization float64 `json:"maxUtilization,omitempty"` // Preference: This field indicates whether this backend should be fully // utilized before sending traffic to backends with default preference. The // possible values are: - PREFERRED: Backends with this preference level will // be filled up to their capacity limits first, based on RTT. - DEFAULT: If // preferred backends don't have enough capacity, backends in this layer would // be used and traffic would be assigned based on the load balancing algorithm // you use. This is the default // // Possible values: // "DEFAULT" - No preference. // "PREFERENCE_UNSPECIFIED" - If preference is unspecified, we set it to the // DEFAULT value // "PREFERRED" - Traffic will be sent to this backend first. Preference string `json:"preference,omitempty"` // ForceSendFields is a list of field names (e.g. "BalancingMode") 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. "BalancingMode") 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:"-"` }
Backend: Message containing information of one individual backend.
func (Backend) MarshalJSON ¶
func (*Backend) UnmarshalJSON ¶
type BackendBucket ¶
type BackendBucket struct { // BucketName: Cloud Storage bucket name. BucketName string `json:"bucketName,omitempty"` // CdnPolicy: Cloud CDN configuration for this BackendBucket. CdnPolicy *BackendBucketCdnPolicy `json:"cdnPolicy,omitempty"` // CompressionMode: Compress text responses using Brotli or gzip compression, // based on the client's Accept-Encoding header. // // Possible values: // "AUTOMATIC" - Automatically uses the best compression based on the // Accept-Encoding header sent by the client. // "DISABLED" - Disables compression. Existing compressed responses cached by // Cloud CDN will not be served to clients. CompressionMode string `json:"compressionMode,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // CustomResponseHeaders: Headers that the Application Load Balancer should add // to proxied responses. CustomResponseHeaders []string `json:"customResponseHeaders,omitempty"` // Description: An optional textual description of the resource; provided by // the client when the resource is created. Description string `json:"description,omitempty"` // EdgeSecurityPolicy: [Output Only] The resource URL for the edge security // policy associated with this backend bucket. EdgeSecurityPolicy string `json:"edgeSecurityPolicy,omitempty"` // EnableCdn: If true, enable Cloud CDN for this BackendBucket. EnableCdn bool `json:"enableCdn,omitempty"` // Id: [Output Only] Unique identifier for the resource; defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: Type of the resource. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // UsedBy: [Output Only] List of resources referencing that backend bucket. UsedBy []*BackendBucketUsedBy `json:"usedBy,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "BucketName") 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. "BucketName") 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:"-"` }
BackendBucket: Represents a Cloud Storage Bucket resource. This Cloud Storage bucket resource is referenced by a URL map of a load balancer. For more information, read Backend Buckets.
func (BackendBucket) MarshalJSON ¶
func (s BackendBucket) MarshalJSON() ([]byte, error)
type BackendBucketCdnPolicy ¶
type BackendBucketCdnPolicy struct { // BypassCacheOnRequestHeaders: Bypass the cache when the specified request // headers are matched - e.g. Pragma or Authorization headers. Up to 5 headers // can be specified. The cache is bypassed for all cdnPolicy.cacheMode // settings. BypassCacheOnRequestHeaders []*BackendBucketCdnPolicyBypassCacheOnRequestHeader `json:"bypassCacheOnRequestHeaders,omitempty"` // CacheKeyPolicy: The CacheKeyPolicy for this CdnPolicy. CacheKeyPolicy *BackendBucketCdnPolicyCacheKeyPolicy `json:"cacheKeyPolicy,omitempty"` // CacheMode: Specifies the cache setting for all responses from this backend. // The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid // caching headers to cache content. Responses without these headers will not // be cached at Google's edge, and will require a full trip to the origin on // every request, potentially impacting performance and increasing load on the // origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", // "no-store" or "no-cache" directives in Cache-Control response headers. // Warning: this may result in Cloud CDN caching private, per-user (user // identifiable) content. CACHE_ALL_STATIC Automatically cache static content, // including common image formats, media (video and audio), and web assets // (JavaScript and CSS). Requests and responses that are marked as uncacheable, // as well as dynamic content (including HTML), will not be cached. // // Possible values: // "CACHE_ALL_STATIC" - Automatically cache static content, including common // image formats, media (video and audio), and web assets (JavaScript and CSS). // Requests and responses that are marked as uncacheable, as well as dynamic // content (including HTML), will not be cached. // "FORCE_CACHE_ALL" - Cache all content, ignoring any "private", "no-store" // or "no-cache" directives in Cache-Control response headers. Warning: this // may result in Cloud CDN caching private, per-user (user identifiable) // content. // "INVALID_CACHE_MODE" // "USE_ORIGIN_HEADERS" - Requires the origin to set valid caching headers to // cache content. Responses without these headers will not be cached at // Google's edge, and will require a full trip to the origin on every request, // potentially impacting performance and increasing load on the origin server. CacheMode string `json:"cacheMode,omitempty"` // ClientTtl: Specifies a separate client (e.g. browser client) maximum TTL. // This is used to clamp the max-age (or Expires) value sent to the client. // With FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for // the response max-age directive, along with a "public" directive. For // cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age // from the origin (if specified), or else sets the response max-age directive // to the lesser of the client_ttl and default_ttl, and also ensures a "public" // cache-control directive is present. If a client TTL is not specified, a // default value (1 hour) will be used. The maximum allowed value is // 31,622,400s (1 year). ClientTtl int64 `json:"clientTtl,omitempty"` // DefaultTtl: Specifies the default TTL for cached content served by this // origin for responses that do not have an existing valid TTL (max-age or // s-max-age). Setting a TTL of "0" means "always revalidate". The value of // defaultTTL cannot be set to a value greater than that of maxTTL, but can be // equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will // overwrite the TTL set in all responses. The maximum allowed value is // 31,622,400s (1 year), noting that infrequently accessed objects may be // evicted from the cache before the defined TTL. DefaultTtl int64 `json:"defaultTtl,omitempty"` // MaxTtl: Specifies the maximum allowed TTL for cached content served by this // origin. Cache directives that attempt to set a max-age or s-maxage higher // than this, or an Expires header more than maxTTL seconds in the future will // be capped at the value of maxTTL, as if it were the value of an s-maxage // Cache-Control directive. Headers sent to the client will not be modified. // Setting a TTL of "0" means "always revalidate". The maximum allowed value is // 31,622,400s (1 year), noting that infrequently accessed objects may be // evicted from the cache before the defined TTL. MaxTtl int64 `json:"maxTtl,omitempty"` // NegativeCaching: Negative caching allows per-status code TTLs to be set, in // order to apply fine-grained caching for common errors or redirects. This can // reduce the load on your origin and improve end-user experience by reducing // response latency. When the cache mode is set to CACHE_ALL_STATIC or // USE_ORIGIN_HEADERS, negative caching applies to responses with the specified // response code that lack any Cache-Control, Expires, or Pragma: no-cache // directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching // applies to all responses with the specified response code, and override any // caching headers. By default, Cloud CDN will apply the following default TTLs // to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent // Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal // Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 // (Not Implemented): 60s. These defaults can be overridden in // negative_caching_policy. NegativeCaching bool `json:"negativeCaching,omitempty"` // NegativeCachingPolicy: Sets a cache TTL for the specified HTTP status code. // negative_caching must be enabled to configure negative_caching_policy. // Omitting the policy and leaving negative_caching enabled will use Cloud // CDN's default cache TTLs. Note that when specifying an explicit // negative_caching_policy, you should take care to specify a cache TTL for all // response codes that you wish to cache. Cloud CDN will not apply any default // negative caching when a policy exists. NegativeCachingPolicy []*BackendBucketCdnPolicyNegativeCachingPolicy `json:"negativeCachingPolicy,omitempty"` // RequestCoalescing: If true then Cloud CDN will combine multiple concurrent // cache fill requests into a small number of requests to the origin. RequestCoalescing bool `json:"requestCoalescing,omitempty"` // ServeWhileStale: Serve existing content from the cache (if available) when // revalidating content with the origin, or when an error is encountered when // refreshing the cache. This setting defines the default "max-stale" duration // for any cached responses that do not specify a max-stale directive. Stale // responses that exceed the TTL configured here will not be served. The // default limit (max-stale) is 86400s (1 day), which will allow stale content // to be served up to this limit beyond the max-age (or s-max-age) of a cached // response. The maximum allowed value is 604800 (1 week). Set this to zero (0) // to disable serve-while-stale. ServeWhileStale int64 `json:"serveWhileStale,omitempty"` // SignedUrlCacheMaxAgeSec: Maximum number of seconds the response to a signed // URL request will be considered fresh. After this time period, the response // will be revalidated before being served. Defaults to 1hr (3600s). When // serving responses to signed URL requests, Cloud CDN will internally behave // as though all responses from this backend had a "Cache-Control: public, // max-age=[TTL]" header, regardless of any existing Cache-Control header. The // actual headers served in responses will not be altered. SignedUrlCacheMaxAgeSec int64 `json:"signedUrlCacheMaxAgeSec,omitempty,string"` // SignedUrlKeyNames: [Output Only] Names of the keys for signing request URLs. SignedUrlKeyNames []string `json:"signedUrlKeyNames,omitempty"` // ForceSendFields is a list of field names (e.g. // "BypassCacheOnRequestHeaders") 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. "BypassCacheOnRequestHeaders") 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:"-"` }
BackendBucketCdnPolicy: Message containing Cloud CDN configuration for a backend bucket.
func (BackendBucketCdnPolicy) MarshalJSON ¶
func (s BackendBucketCdnPolicy) MarshalJSON() ([]byte, error)
type BackendBucketCdnPolicyBypassCacheOnRequestHeader ¶ added in v0.43.0
type BackendBucketCdnPolicyBypassCacheOnRequestHeader struct { // HeaderName: The header field name to match on when bypassing cache. Values // are case-insensitive. HeaderName string `json:"headerName,omitempty"` // ForceSendFields is a list of field names (e.g. "HeaderName") 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. "HeaderName") 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:"-"` }
BackendBucketCdnPolicyBypassCacheOnRequestHeader: Bypass the cache when the specified request headers are present, e.g. Pragma or Authorization headers. Values are case insensitive. The presence of such a header overrides the cache_mode setting.
func (BackendBucketCdnPolicyBypassCacheOnRequestHeader) MarshalJSON ¶ added in v0.43.0
func (s BackendBucketCdnPolicyBypassCacheOnRequestHeader) MarshalJSON() ([]byte, error)
type BackendBucketCdnPolicyCacheKeyPolicy ¶ added in v0.62.0
type BackendBucketCdnPolicyCacheKeyPolicy struct { // IncludeHttpHeaders: Allows HTTP request headers (by name) to be used in the // cache key. IncludeHttpHeaders []string `json:"includeHttpHeaders,omitempty"` // QueryStringWhitelist: Names of query string parameters to include in cache // keys. Default parameters are always included. '&' and '=' will be percent // encoded and not treated as delimiters. QueryStringWhitelist []string `json:"queryStringWhitelist,omitempty"` // ForceSendFields is a list of field names (e.g. "IncludeHttpHeaders") 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. "IncludeHttpHeaders") 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:"-"` }
BackendBucketCdnPolicyCacheKeyPolicy: Message containing what to include in the cache key for a request for Cloud CDN.
func (BackendBucketCdnPolicyCacheKeyPolicy) MarshalJSON ¶ added in v0.62.0
func (s BackendBucketCdnPolicyCacheKeyPolicy) MarshalJSON() ([]byte, error)
type BackendBucketCdnPolicyNegativeCachingPolicy ¶ added in v0.43.0
type BackendBucketCdnPolicyNegativeCachingPolicy struct { // Code: The HTTP status code to define a TTL against. Only HTTP status codes // 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 are can be // specified as values, and you cannot specify a status code more than once. Code int64 `json:"code,omitempty"` // Ttl: The TTL (in seconds) for which to cache responses with the // corresponding status code. The maximum allowed value is 1800s (30 minutes), // noting that infrequently accessed objects may be evicted from the cache // before the defined TTL. Ttl int64 `json:"ttl,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:"-"` }
BackendBucketCdnPolicyNegativeCachingPolicy: Specify CDN TTLs for response error codes.
func (BackendBucketCdnPolicyNegativeCachingPolicy) MarshalJSON ¶ added in v0.43.0
func (s BackendBucketCdnPolicyNegativeCachingPolicy) MarshalJSON() ([]byte, error)
type BackendBucketList ¶
type BackendBucketList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of BackendBucket resources. Items []*BackendBucket `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *BackendBucketListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
BackendBucketList: Contains a list of BackendBucket resources.
func (BackendBucketList) MarshalJSON ¶
func (s BackendBucketList) MarshalJSON() ([]byte, error)
type BackendBucketListWarning ¶
type BackendBucketListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*BackendBucketListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
BackendBucketListWarning: [Output Only] Informational warning message.
func (BackendBucketListWarning) MarshalJSON ¶
func (s BackendBucketListWarning) MarshalJSON() ([]byte, error)
type BackendBucketListWarningData ¶
type BackendBucketListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (BackendBucketListWarningData) MarshalJSON ¶
func (s BackendBucketListWarningData) MarshalJSON() ([]byte, error)
type BackendBucketUsedBy ¶ added in v0.198.0
type BackendBucketUsedBy struct { // Reference: [Output Only] Server-defined URL for UrlMaps referencing that // BackendBucket. Reference string `json:"reference,omitempty"` // ForceSendFields is a list of field names (e.g. "Reference") 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. "Reference") 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:"-"` }
func (BackendBucketUsedBy) MarshalJSON ¶ added in v0.198.0
func (s BackendBucketUsedBy) MarshalJSON() ([]byte, error)
type BackendBucketsAddSignedUrlKeyCall ¶
type BackendBucketsAddSignedUrlKeyCall struct {
// contains filtered or unexported fields
}
func (*BackendBucketsAddSignedUrlKeyCall) Context ¶
func (c *BackendBucketsAddSignedUrlKeyCall) Context(ctx context.Context) *BackendBucketsAddSignedUrlKeyCall
Context sets the context to be used in this call's Do method.
func (*BackendBucketsAddSignedUrlKeyCall) Do ¶
func (c *BackendBucketsAddSignedUrlKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendBuckets.addSignedUrlKey" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendBucketsAddSignedUrlKeyCall) Fields ¶
func (c *BackendBucketsAddSignedUrlKeyCall) Fields(s ...googleapi.Field) *BackendBucketsAddSignedUrlKeyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendBucketsAddSignedUrlKeyCall) Header ¶
func (c *BackendBucketsAddSignedUrlKeyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendBucketsAddSignedUrlKeyCall) RequestId ¶
func (c *BackendBucketsAddSignedUrlKeyCall) RequestId(requestId string) *BackendBucketsAddSignedUrlKeyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type BackendBucketsDeleteCall ¶
type BackendBucketsDeleteCall struct {
// contains filtered or unexported fields
}
func (*BackendBucketsDeleteCall) Context ¶
func (c *BackendBucketsDeleteCall) Context(ctx context.Context) *BackendBucketsDeleteCall
Context sets the context to be used in this call's Do method.
func (*BackendBucketsDeleteCall) Do ¶
func (c *BackendBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendBuckets.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendBucketsDeleteCall) Fields ¶
func (c *BackendBucketsDeleteCall) Fields(s ...googleapi.Field) *BackendBucketsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendBucketsDeleteCall) Header ¶
func (c *BackendBucketsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendBucketsDeleteCall) RequestId ¶
func (c *BackendBucketsDeleteCall) RequestId(requestId string) *BackendBucketsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type BackendBucketsDeleteSignedUrlKeyCall ¶
type BackendBucketsDeleteSignedUrlKeyCall struct {
// contains filtered or unexported fields
}
func (*BackendBucketsDeleteSignedUrlKeyCall) Context ¶
func (c *BackendBucketsDeleteSignedUrlKeyCall) Context(ctx context.Context) *BackendBucketsDeleteSignedUrlKeyCall
Context sets the context to be used in this call's Do method.
func (*BackendBucketsDeleteSignedUrlKeyCall) Do ¶
func (c *BackendBucketsDeleteSignedUrlKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendBuckets.deleteSignedUrlKey" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendBucketsDeleteSignedUrlKeyCall) Fields ¶
func (c *BackendBucketsDeleteSignedUrlKeyCall) Fields(s ...googleapi.Field) *BackendBucketsDeleteSignedUrlKeyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendBucketsDeleteSignedUrlKeyCall) Header ¶
func (c *BackendBucketsDeleteSignedUrlKeyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendBucketsDeleteSignedUrlKeyCall) RequestId ¶
func (c *BackendBucketsDeleteSignedUrlKeyCall) RequestId(requestId string) *BackendBucketsDeleteSignedUrlKeyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type BackendBucketsGetCall ¶
type BackendBucketsGetCall struct {
// contains filtered or unexported fields
}
func (*BackendBucketsGetCall) Context ¶
func (c *BackendBucketsGetCall) Context(ctx context.Context) *BackendBucketsGetCall
Context sets the context to be used in this call's Do method.
func (*BackendBucketsGetCall) Do ¶
func (c *BackendBucketsGetCall) Do(opts ...googleapi.CallOption) (*BackendBucket, error)
Do executes the "compute.backendBuckets.get" call. Any non-2xx status code is an error. Response headers are in either *BackendBucket.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendBucketsGetCall) Fields ¶
func (c *BackendBucketsGetCall) Fields(s ...googleapi.Field) *BackendBucketsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendBucketsGetCall) Header ¶
func (c *BackendBucketsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendBucketsGetCall) IfNoneMatch ¶
func (c *BackendBucketsGetCall) IfNoneMatch(entityTag string) *BackendBucketsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type BackendBucketsGetIamPolicyCall ¶ added in v0.148.0
type BackendBucketsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*BackendBucketsGetIamPolicyCall) Context ¶ added in v0.148.0
func (c *BackendBucketsGetIamPolicyCall) Context(ctx context.Context) *BackendBucketsGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*BackendBucketsGetIamPolicyCall) Do ¶ added in v0.148.0
func (c *BackendBucketsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.backendBuckets.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendBucketsGetIamPolicyCall) Fields ¶ added in v0.148.0
func (c *BackendBucketsGetIamPolicyCall) Fields(s ...googleapi.Field) *BackendBucketsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendBucketsGetIamPolicyCall) Header ¶ added in v0.148.0
func (c *BackendBucketsGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendBucketsGetIamPolicyCall) IfNoneMatch ¶ added in v0.148.0
func (c *BackendBucketsGetIamPolicyCall) IfNoneMatch(entityTag string) *BackendBucketsGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*BackendBucketsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.148.0
func (c *BackendBucketsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *BackendBucketsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type BackendBucketsInsertCall ¶
type BackendBucketsInsertCall struct {
// contains filtered or unexported fields
}
func (*BackendBucketsInsertCall) Context ¶
func (c *BackendBucketsInsertCall) Context(ctx context.Context) *BackendBucketsInsertCall
Context sets the context to be used in this call's Do method.
func (*BackendBucketsInsertCall) Do ¶
func (c *BackendBucketsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendBuckets.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendBucketsInsertCall) Fields ¶
func (c *BackendBucketsInsertCall) Fields(s ...googleapi.Field) *BackendBucketsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendBucketsInsertCall) Header ¶
func (c *BackendBucketsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendBucketsInsertCall) RequestId ¶
func (c *BackendBucketsInsertCall) RequestId(requestId string) *BackendBucketsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type BackendBucketsListCall ¶
type BackendBucketsListCall struct {
// contains filtered or unexported fields
}
func (*BackendBucketsListCall) Context ¶
func (c *BackendBucketsListCall) Context(ctx context.Context) *BackendBucketsListCall
Context sets the context to be used in this call's Do method.
func (*BackendBucketsListCall) Do ¶
func (c *BackendBucketsListCall) Do(opts ...googleapi.CallOption) (*BackendBucketList, error)
Do executes the "compute.backendBuckets.list" call. Any non-2xx status code is an error. Response headers are in either *BackendBucketList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendBucketsListCall) Fields ¶
func (c *BackendBucketsListCall) Fields(s ...googleapi.Field) *BackendBucketsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendBucketsListCall) Filter ¶
func (c *BackendBucketsListCall) Filter(filter string) *BackendBucketsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*BackendBucketsListCall) Header ¶
func (c *BackendBucketsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendBucketsListCall) IfNoneMatch ¶
func (c *BackendBucketsListCall) IfNoneMatch(entityTag string) *BackendBucketsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*BackendBucketsListCall) MaxResults ¶
func (c *BackendBucketsListCall) MaxResults(maxResults int64) *BackendBucketsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*BackendBucketsListCall) OrderBy ¶
func (c *BackendBucketsListCall) OrderBy(orderBy string) *BackendBucketsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*BackendBucketsListCall) PageToken ¶
func (c *BackendBucketsListCall) PageToken(pageToken string) *BackendBucketsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*BackendBucketsListCall) Pages ¶
func (c *BackendBucketsListCall) Pages(ctx context.Context, f func(*BackendBucketList) 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 (*BackendBucketsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *BackendBucketsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *BackendBucketsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type BackendBucketsPatchCall ¶
type BackendBucketsPatchCall struct {
// contains filtered or unexported fields
}
func (*BackendBucketsPatchCall) Context ¶
func (c *BackendBucketsPatchCall) Context(ctx context.Context) *BackendBucketsPatchCall
Context sets the context to be used in this call's Do method.
func (*BackendBucketsPatchCall) Do ¶
func (c *BackendBucketsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendBuckets.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendBucketsPatchCall) Fields ¶
func (c *BackendBucketsPatchCall) Fields(s ...googleapi.Field) *BackendBucketsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendBucketsPatchCall) Header ¶
func (c *BackendBucketsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendBucketsPatchCall) RequestId ¶
func (c *BackendBucketsPatchCall) RequestId(requestId string) *BackendBucketsPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type BackendBucketsService ¶
type BackendBucketsService struct {
// contains filtered or unexported fields
}
func NewBackendBucketsService ¶
func NewBackendBucketsService(s *Service) *BackendBucketsService
func (*BackendBucketsService) AddSignedUrlKey ¶
func (r *BackendBucketsService) AddSignedUrlKey(project string, backendBucket string, signedurlkey *SignedUrlKey) *BackendBucketsAddSignedUrlKeyCall
AddSignedUrlKey: Adds a key for validating requests with signed URLs for this backend bucket.
- backendBucket: Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035.
- project: Project ID for this request.
func (*BackendBucketsService) Delete ¶
func (r *BackendBucketsService) Delete(project string, backendBucket string) *BackendBucketsDeleteCall
Delete: Deletes the specified BackendBucket resource.
- backendBucket: Name of the BackendBucket resource to delete. - project: Project ID for this request.
func (*BackendBucketsService) DeleteSignedUrlKey ¶
func (r *BackendBucketsService) DeleteSignedUrlKey(project string, backendBucket string, keyName string) *BackendBucketsDeleteSignedUrlKeyCall
DeleteSignedUrlKey: Deletes a key for validating requests with signed URLs for this backend bucket.
- backendBucket: Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035.
- keyName: The name of the Signed URL Key to delete.
- project: Project ID for this request.
func (*BackendBucketsService) Get ¶
func (r *BackendBucketsService) Get(project string, backendBucket string) *BackendBucketsGetCall
Get: Returns the specified BackendBucket resource.
- backendBucket: Name of the BackendBucket resource to return. - project: Project ID for this request.
func (*BackendBucketsService) GetIamPolicy ¶ added in v0.148.0
func (r *BackendBucketsService) GetIamPolicy(project string, resource string) *BackendBucketsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*BackendBucketsService) Insert ¶
func (r *BackendBucketsService) Insert(project string, backendbucket *BackendBucket) *BackendBucketsInsertCall
Insert: Creates a BackendBucket resource in the specified project using the data included in the request.
- project: Project ID for this request.
func (*BackendBucketsService) List ¶
func (r *BackendBucketsService) List(project string) *BackendBucketsListCall
List: Retrieves the list of BackendBucket resources available to the specified project.
- project: Project ID for this request.
func (*BackendBucketsService) Patch ¶
func (r *BackendBucketsService) Patch(project string, backendBucket string, backendbucket *BackendBucket) *BackendBucketsPatchCall
Patch: Updates the specified BackendBucket resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- backendBucket: Name of the BackendBucket resource to patch. - project: Project ID for this request.
func (*BackendBucketsService) SetEdgeSecurityPolicy ¶ added in v0.62.0
func (r *BackendBucketsService) SetEdgeSecurityPolicy(project string, backendBucket string, securitypolicyreference *SecurityPolicyReference) *BackendBucketsSetEdgeSecurityPolicyCall
SetEdgeSecurityPolicy: Sets the edge security policy for the specified backend bucket.
- backendBucket: Name of the BackendBucket resource to which the security policy should be set. The name should conform to RFC1035.
- project: Project ID for this request.
func (*BackendBucketsService) SetIamPolicy ¶ added in v0.148.0
func (r *BackendBucketsService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *BackendBucketsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*BackendBucketsService) TestIamPermissions ¶ added in v0.148.0
func (r *BackendBucketsService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *BackendBucketsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*BackendBucketsService) Update ¶
func (r *BackendBucketsService) Update(project string, backendBucket string, backendbucket *BackendBucket) *BackendBucketsUpdateCall
Update: Updates the specified BackendBucket resource with the data included in the request.
- backendBucket: Name of the BackendBucket resource to update. - project: Project ID for this request.
type BackendBucketsSetEdgeSecurityPolicyCall ¶ added in v0.62.0
type BackendBucketsSetEdgeSecurityPolicyCall struct {
// contains filtered or unexported fields
}
func (*BackendBucketsSetEdgeSecurityPolicyCall) Context ¶ added in v0.62.0
func (c *BackendBucketsSetEdgeSecurityPolicyCall) Context(ctx context.Context) *BackendBucketsSetEdgeSecurityPolicyCall
Context sets the context to be used in this call's Do method.
func (*BackendBucketsSetEdgeSecurityPolicyCall) Do ¶ added in v0.62.0
func (c *BackendBucketsSetEdgeSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendBuckets.setEdgeSecurityPolicy" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendBucketsSetEdgeSecurityPolicyCall) Fields ¶ added in v0.62.0
func (c *BackendBucketsSetEdgeSecurityPolicyCall) Fields(s ...googleapi.Field) *BackendBucketsSetEdgeSecurityPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendBucketsSetEdgeSecurityPolicyCall) Header ¶ added in v0.62.0
func (c *BackendBucketsSetEdgeSecurityPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendBucketsSetEdgeSecurityPolicyCall) RequestId ¶ added in v0.62.0
func (c *BackendBucketsSetEdgeSecurityPolicyCall) RequestId(requestId string) *BackendBucketsSetEdgeSecurityPolicyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type BackendBucketsSetIamPolicyCall ¶ added in v0.148.0
type BackendBucketsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*BackendBucketsSetIamPolicyCall) Context ¶ added in v0.148.0
func (c *BackendBucketsSetIamPolicyCall) Context(ctx context.Context) *BackendBucketsSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*BackendBucketsSetIamPolicyCall) Do ¶ added in v0.148.0
func (c *BackendBucketsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.backendBuckets.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendBucketsSetIamPolicyCall) Fields ¶ added in v0.148.0
func (c *BackendBucketsSetIamPolicyCall) Fields(s ...googleapi.Field) *BackendBucketsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendBucketsSetIamPolicyCall) Header ¶ added in v0.148.0
func (c *BackendBucketsSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type BackendBucketsTestIamPermissionsCall ¶ added in v0.148.0
type BackendBucketsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*BackendBucketsTestIamPermissionsCall) Context ¶ added in v0.148.0
func (c *BackendBucketsTestIamPermissionsCall) Context(ctx context.Context) *BackendBucketsTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*BackendBucketsTestIamPermissionsCall) Do ¶ added in v0.148.0
func (c *BackendBucketsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.backendBuckets.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendBucketsTestIamPermissionsCall) Fields ¶ added in v0.148.0
func (c *BackendBucketsTestIamPermissionsCall) Fields(s ...googleapi.Field) *BackendBucketsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendBucketsTestIamPermissionsCall) Header ¶ added in v0.148.0
func (c *BackendBucketsTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type BackendBucketsUpdateCall ¶
type BackendBucketsUpdateCall struct {
// contains filtered or unexported fields
}
func (*BackendBucketsUpdateCall) Context ¶
func (c *BackendBucketsUpdateCall) Context(ctx context.Context) *BackendBucketsUpdateCall
Context sets the context to be used in this call's Do method.
func (*BackendBucketsUpdateCall) Do ¶
func (c *BackendBucketsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendBuckets.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendBucketsUpdateCall) Fields ¶
func (c *BackendBucketsUpdateCall) Fields(s ...googleapi.Field) *BackendBucketsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendBucketsUpdateCall) Header ¶
func (c *BackendBucketsUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendBucketsUpdateCall) RequestId ¶
func (c *BackendBucketsUpdateCall) RequestId(requestId string) *BackendBucketsUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type BackendService ¶
type BackendService struct { // AffinityCookieTtlSec: Lifetime of cookies in seconds. This setting is // applicable to Application Load Balancers and Traffic Director and requires // GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is // non-persistent and lasts only until the end of the browser session (or // equivalent). The maximum allowed value is two weeks (1,209,600). Not // supported when the backend service is referenced by a URL map that is bound // to target gRPC proxy that has validateForProxyless field set to true. AffinityCookieTtlSec int64 `json:"affinityCookieTtlSec,omitempty"` // Backends: The list of backends that serve this BackendService. Backends []*Backend `json:"backends,omitempty"` // CdnPolicy: Cloud CDN configuration for this BackendService. Only available // for specified load balancer types. CdnPolicy *BackendServiceCdnPolicy `json:"cdnPolicy,omitempty"` CircuitBreakers *CircuitBreakers `json:"circuitBreakers,omitempty"` // CompressionMode: Compress text responses using Brotli or gzip compression, // based on the client's Accept-Encoding header. // // Possible values: // "AUTOMATIC" - Automatically uses the best compression based on the // Accept-Encoding header sent by the client. // "DISABLED" - Disables compression. Existing compressed responses cached by // Cloud CDN will not be served to clients. CompressionMode string `json:"compressionMode,omitempty"` ConnectionDraining *ConnectionDraining `json:"connectionDraining,omitempty"` // ConnectionTrackingPolicy: Connection Tracking configuration for this // BackendService. Connection tracking policy settings are only available for // external passthrough Network Load Balancers and internal passthrough Network // Load Balancers. ConnectionTrackingPolicy *BackendServiceConnectionTrackingPolicy `json:"connectionTrackingPolicy,omitempty"` // ConsistentHash: Consistent Hash-based load balancing can be used to provide // soft session affinity based on HTTP headers, cookies or other properties. // This load balancing policy is applicable only for HTTP connections. The // affinity to a particular destination host will be lost when one or more // hosts are added/removed from the destination service. This field specifies // parameters that control consistent hashing. This field is only applicable // when localityLbPolicy is set to MAGLEV or RING_HASH. This field is // applicable to either: - A regional backend service with the service_protocol // set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to // INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme // set to INTERNAL_SELF_MANAGED. ConsistentHash *ConsistentHashLoadBalancerSettings `json:"consistentHash,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // CustomRequestHeaders: Headers that the load balancer adds to proxied // requests. See Creating custom headers // (https://cloud.google.com/load-balancing/docs/custom-headers). CustomRequestHeaders []string `json:"customRequestHeaders,omitempty"` // CustomResponseHeaders: Headers that the load balancer adds to proxied // responses. See Creating custom headers // (https://cloud.google.com/load-balancing/docs/custom-headers). CustomResponseHeaders []string `json:"customResponseHeaders,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // EdgeSecurityPolicy: [Output Only] The resource URL for the edge security // policy associated with this backend service. EdgeSecurityPolicy string `json:"edgeSecurityPolicy,omitempty"` // EnableCDN: If true, enables Cloud CDN for the backend service of a global // external Application Load Balancer. EnableCDN bool `json:"enableCDN,omitempty"` // FailoverPolicy: Requires at least one backend instance group to be defined // as a backup (failover) backend. For load balancers that have configurable // failover: Internal passthrough Network Load Balancers // (https://cloud.google.com/load-balancing/docs/internal/failover-overview) // and external passthrough Network Load Balancers // (https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). FailoverPolicy *BackendServiceFailoverPolicy `json:"failoverPolicy,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents stored in // this object. This field is used in optimistic locking. This field will be // ignored when inserting a BackendService. An up-to-date fingerprint must be // provided in order to update the BackendService, otherwise the request will // fail with error 412 conditionNotMet. To see the latest fingerprint, make a // get() request to retrieve a BackendService. Fingerprint string `json:"fingerprint,omitempty"` // HealthChecks: The list of URLs to the healthChecks, httpHealthChecks // (legacy), or httpsHealthChecks (legacy) resource for health checking this // backend service. Not all backend services support legacy health checks. See // Load balancer guide. Currently, at most one health check can be specified // for each backend service. Backend services with instance group or zonal NEG // backends must have a health check. Backend services with internet or // serverless NEG backends must not have a health check. HealthChecks []string `json:"healthChecks,omitempty"` // Iap: The configurations for Identity-Aware Proxy on this resource. Not // available for internal passthrough Network Load Balancers and external // passthrough Network Load Balancers. Iap *BackendServiceIAP `json:"iap,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of resource. Always compute#backendService for // backend services. Kind string `json:"kind,omitempty"` // LoadBalancingScheme: Specifies the load balancer type. A backend service // created for one type of load balancer cannot be used with another. For more // information, refer to Choosing a load balancer. // // Possible values: // "EXTERNAL" - Signifies that this will be used for classic Application Load // Balancers, global external proxy Network Load Balancers, or external // passthrough Network Load Balancers. // "EXTERNAL_MANAGED" - Signifies that this will be used for global external // Application Load Balancers, regional external Application Load Balancers, or // regional external proxy Network Load Balancers. // "INTERNAL" - Signifies that this will be used for internal passthrough // Network Load Balancers. // "INTERNAL_MANAGED" - Signifies that this will be used for internal // Application Load Balancers. // "INTERNAL_SELF_MANAGED" - Signifies that this will be used by Traffic // Director. // "INVALID_LOAD_BALANCING_SCHEME" LoadBalancingScheme string `json:"loadBalancingScheme,omitempty"` // LocalityLbPolicies: A list of locality load-balancing policies to be used in // order of preference. When you use localityLbPolicies, you must set at least // one value for either the localityLbPolicies[].policy or the // localityLbPolicies[].customPolicy field. localityLbPolicies overrides any // value set in the localityLbPolicy field. For an example of how to use this // field, see Define a list of preferred policies. Caution: This field and its // children are intended for use in a service mesh that includes gRPC clients // only. Envoy proxies can't use backend services that have this configuration. LocalityLbPolicies []*BackendServiceLocalityLoadBalancingPolicyConfig `json:"localityLbPolicies,omitempty"` // LocalityLbPolicy: The load balancing algorithm used within the scope of the // locality. The possible values are: - ROUND_ROBIN: This is a simple policy in // which each healthy backend is selected in round robin order. This is the // default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy // hosts and picks the host which has fewer active requests. - RING_HASH: The // ring/modulo hash load balancer implements consistent hashing to backends. // The algorithm has the property that the addition/removal of a host from a // set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer // selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is // selected based on the client connection metadata, i.e., connections are // opened to the same address as the destination address of the incoming // connection before the connection was redirected to the load balancer. - // MAGLEV: used as a drop in replacement for the ring hash load balancer. // Maglev is not as stable as ring hash but has faster table lookup build times // and host selection times. For more information about Maglev, see // https://ai.google/research/pubs/pub44824 This field is applicable to either: // - A regional backend service with the service_protocol set to HTTP, HTTPS, // or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global // backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED, // INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is not // configured—that is, if session affinity remains at the default value of // NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If // session affinity is set to a value other than NONE, then the default value // for localityLbPolicy is MAGLEV. Only ROUND_ROBIN and RING_HASH are supported // when the backend service is referenced by a URL map that is bound to target // gRPC proxy that has validateForProxyless field set to true. // // Possible values: // "INVALID_LB_POLICY" // "LEAST_REQUEST" - An O(1) algorithm which selects two random healthy hosts // and picks the host which has fewer active requests. // "MAGLEV" - This algorithm implements consistent hashing to backends. // Maglev can be used as a drop in replacement for the ring hash load balancer. // Maglev is not as stable as ring hash but has faster table lookup build times // and host selection times. For more information about Maglev, see // https://ai.google/research/pubs/pub44824 // "ORIGINAL_DESTINATION" - Backend host is selected based on the client // connection metadata, i.e., connections are opened to the same address as the // destination address of the incoming connection before the connection was // redirected to the load balancer. // "RANDOM" - The load balancer selects a random healthy host. // "RING_HASH" - The ring/modulo hash load balancer implements consistent // hashing to backends. The algorithm has the property that the // addition/removal of a host from a set of N hosts only affects 1/N of the // requests. // "ROUND_ROBIN" - This is a simple policy in which each healthy backend is // selected in round robin order. This is the default. // "WEIGHTED_MAGLEV" - Per-instance weighted Load Balancing via health check // reported weights. If set, the Backend Service must configure a non legacy // HTTP-based Health Check, and health check replies are expected to contain // non-standard HTTP response header field X-Load-Balancing-Endpoint-Weight to // specify the per-instance weights. If set, Load Balancing is weighted based // on the per-instance weights reported in the last processed health check // replies, as long as every instance either reported a valid weight or had // UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. This // option is only supported in Network Load Balancing. LocalityLbPolicy string `json:"localityLbPolicy,omitempty"` // LogConfig: This field denotes the logging options for the load balancer // traffic served by this backend service. If logging is enabled, logs will be // exported to Stackdriver. LogConfig *BackendServiceLogConfig `json:"logConfig,omitempty"` // MaxStreamDuration: Specifies the default maximum duration (timeout) for // streams to this service. Duration is computed from the beginning of the // stream until the response has been completely processed, including all // retries. A stream that does not complete in this duration is closed. If not // specified, there will be no timeout limit, i.e. the maximum duration is // infinite. This value can be overridden in the PathMatcher configuration of // the UrlMap that references this backend service. This field is only allowed // when the loadBalancingScheme of the backend service is // INTERNAL_SELF_MANAGED. MaxStreamDuration *Duration `json:"maxStreamDuration,omitempty"` // Metadatas: Deployment metadata associated with the resource to be set by a // GKE hub controller and read by the backend RCTH Metadatas map[string]string `json:"metadatas,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Network: The URL of the network to which this backend service belongs. This // field can only be specified when the load balancing scheme is set to // INTERNAL. Network string `json:"network,omitempty"` // OutlierDetection: Settings controlling the ejection of unhealthy backend // endpoints from the load balancing pool of each individual proxy instance // that processes the traffic for the given backend service. If not set, this // feature is considered disabled. Results of the outlier detection algorithm // (ejection of endpoints from the load balancing pool and returning them back // to the pool) are executed independently by each proxy instance of the load // balancer. In most cases, more than one proxy instance handles the traffic // received by a backend service. Thus, it is possible that an unhealthy // endpoint is detected and ejected by only some of the proxies, and while this // happens, other proxies may continue to send requests to the same unhealthy // endpoint until they detect and eject the unhealthy endpoint. Applicable // backend endpoints can be: - VM instances in an Instance Group - Endpoints in // a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity // NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, // App Engine, or Cloud Functions Services - Private Service Connect NEGs, that // resolve to Google-managed regional API endpoints or managed services // published using Private Service Connect Applicable backend service types can // be: - A global backend service with the loadBalancingScheme set to // INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with // the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme // set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless // NEGs. Not supported when the backend service is referenced by a URL map that // is bound to target gRPC proxy that has validateForProxyless field set to // true. OutlierDetection *OutlierDetection `json:"outlierDetection,omitempty"` // Port: Deprecated in favor of portName. The TCP port to connect on the // backend. The default value is 80. For internal passthrough Network Load // Balancers and external passthrough Network Load Balancers, omit port. Port int64 `json:"port,omitempty"` // PortName: A named port on a backend instance group representing the port for // communication to the backend VMs in that group. The named port must be // defined on each backend instance group // (https://cloud.google.com/load-balancing/docs/backend-service#named_ports). // This parameter has no meaning if the backends are NEGs. For internal // passthrough Network Load Balancers and external passthrough Network Load // Balancers, omit port_name. PortName string `json:"portName,omitempty"` // Protocol: The protocol this BackendService uses to communicate with // backends. Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. // depending on the chosen load balancer or Traffic Director configuration. // Refer to the documentation for the load balancers or for Traffic Director // for more information. Must be set to GRPC when the backend service is // referenced by a URL map that is bound to target gRPC proxy. // // Possible values: // "GRPC" - gRPC (available for Traffic Director). // "HTTP" // "HTTP2" - HTTP/2 with SSL. // "HTTPS" // "SSL" - TCP proxying with SSL. // "TCP" - TCP proxying or TCP pass-through. // "UDP" - UDP. // "UNSPECIFIED" - If a Backend Service has UNSPECIFIED as its protocol, it // can be used with any L3/L4 Forwarding Rules. Protocol string `json:"protocol,omitempty"` // Region: [Output Only] URL of the region where the regional backend service // resides. This field is not applicable to global backend services. You must // specify this field as part of the HTTP request URL. It is not settable as a // field in the request body. Region string `json:"region,omitempty"` // SecurityPolicy: [Output Only] The resource URL for the security policy // associated with this backend service. SecurityPolicy string `json:"securityPolicy,omitempty"` // SecuritySettings: This field specifies the security settings that apply to // this backend service. This field is applicable to a global backend service // with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. SecuritySettings *SecuritySettings `json:"securitySettings,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ServiceBindings: URLs of networkservices.ServiceBinding resources. Can only // be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of // backends and health checks must be both empty. ServiceBindings []string `json:"serviceBindings,omitempty"` // ServiceLbPolicy: URL to networkservices.ServiceLbPolicy resource. Can only // be set if load balancing scheme is EXTERNAL, EXTERNAL_MANAGED, // INTERNAL_MANAGED or INTERNAL_SELF_MANAGED and the scope is global. ServiceLbPolicy string `json:"serviceLbPolicy,omitempty"` // SessionAffinity: Type of session affinity to use. The default is NONE. Only // NONE and HEADER_FIELD are supported when the backend service is referenced // by a URL map that is bound to target gRPC proxy that has // validateForProxyless field set to true. For more details, see: Session // Affinity // (https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). // // Possible values: // "CLIENT_IP" - 2-tuple hash on packet's source and destination IP // addresses. Connections from the same source IP address to the same // destination IP address will be served by the same backend VM while that VM // remains healthy. // "CLIENT_IP_NO_DESTINATION" - 1-tuple hash only on packet's source IP // address. Connections from the same source IP address will be served by the // same backend VM while that VM remains healthy. This option can only be used // for Internal TCP/UDP Load Balancing. // "CLIENT_IP_PORT_PROTO" - 5-tuple hash on packet's source and destination // IP addresses, IP protocol, and source and destination ports. Connections for // the same IP protocol from the same source IP address and port to the same // destination IP address and port will be served by the same backend VM while // that VM remains healthy. This option cannot be used for HTTP(S) load // balancing. // "CLIENT_IP_PROTO" - 3-tuple hash on packet's source and destination IP // addresses, and IP protocol. Connections for the same IP protocol from the // same source IP address to the same destination IP address will be served by // the same backend VM while that VM remains healthy. This option cannot be // used for HTTP(S) load balancing. // "GENERATED_COOKIE" - Hash based on a cookie generated by the L7 // loadbalancer. Only valid for HTTP(S) load balancing. // "HEADER_FIELD" - The hash is based on a user specified header field. // "HTTP_COOKIE" - The hash is based on a user provided cookie. // "NONE" - No session affinity. Connections from the same client IP may go // to any instance in the pool. SessionAffinity string `json:"sessionAffinity,omitempty"` Subsetting *Subsetting `json:"subsetting,omitempty"` // TimeoutSec: The backend service timeout has a different meaning depending on // the type of load balancer. For more information see, Backend service // settings. The default is 30 seconds. The full range of timeout values // allowed goes from 1 through 2,147,483,647 seconds. This value can be // overridden in the PathMatcher configuration of the UrlMap that references // this backend service. Not supported when the backend service is referenced // by a URL map that is bound to target gRPC proxy that has // validateForProxyless field set to true. Instead, use maxStreamDuration. TimeoutSec int64 `json:"timeoutSec,omitempty"` // UsedBy: [Output Only] List of resources referencing given backend service. UsedBy []*BackendServiceUsedBy `json:"usedBy,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AffinityCookieTtlSec") 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. "AffinityCookieTtlSec") 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:"-"` }
BackendService: Represents a Backend Service resource. A backend service defines how Google Cloud load balancers distribute traffic. The backend service configuration contains a set of values, such as the protocol used to connect to backends, various distribution and session settings, health checks, and timeouts. These settings provide fine-grained control over how your load balancer behaves. Most of the settings have default values that allow for easy configuration if you need to get started quickly. Backend services in Google Compute Engine can be either regionally or globally scoped. * Global (https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) * Regional (https://cloud.google.com/compute/docs/reference/rest/v1/regionBackendServices) For more information, see Backend Services.
func (BackendService) MarshalJSON ¶
func (s BackendService) MarshalJSON() ([]byte, error)
type BackendServiceAggregatedList ¶
type BackendServiceAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of BackendServicesScopedList resources. Items map[string]BackendServicesScopedList `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *BackendServiceAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
BackendServiceAggregatedList: Contains a list of BackendServicesScopedList.
func (BackendServiceAggregatedList) MarshalJSON ¶
func (s BackendServiceAggregatedList) MarshalJSON() ([]byte, error)
type BackendServiceAggregatedListWarning ¶
type BackendServiceAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*BackendServiceAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
BackendServiceAggregatedListWarning: [Output Only] Informational warning message.
func (BackendServiceAggregatedListWarning) MarshalJSON ¶
func (s BackendServiceAggregatedListWarning) MarshalJSON() ([]byte, error)
type BackendServiceAggregatedListWarningData ¶
type BackendServiceAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (BackendServiceAggregatedListWarningData) MarshalJSON ¶
func (s BackendServiceAggregatedListWarningData) MarshalJSON() ([]byte, error)
type BackendServiceCdnPolicy ¶
type BackendServiceCdnPolicy struct { // BypassCacheOnRequestHeaders: Bypass the cache when the specified request // headers are matched - e.g. Pragma or Authorization headers. Up to 5 headers // can be specified. The cache is bypassed for all cdnPolicy.cacheMode // settings. BypassCacheOnRequestHeaders []*BackendServiceCdnPolicyBypassCacheOnRequestHeader `json:"bypassCacheOnRequestHeaders,omitempty"` // CacheKeyPolicy: The CacheKeyPolicy for this CdnPolicy. CacheKeyPolicy *CacheKeyPolicy `json:"cacheKeyPolicy,omitempty"` // CacheMode: Specifies the cache setting for all responses from this backend. // The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid // caching headers to cache content. Responses without these headers will not // be cached at Google's edge, and will require a full trip to the origin on // every request, potentially impacting performance and increasing load on the // origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", // "no-store" or "no-cache" directives in Cache-Control response headers. // Warning: this may result in Cloud CDN caching private, per-user (user // identifiable) content. CACHE_ALL_STATIC Automatically cache static content, // including common image formats, media (video and audio), and web assets // (JavaScript and CSS). Requests and responses that are marked as uncacheable, // as well as dynamic content (including HTML), will not be cached. // // Possible values: // "CACHE_ALL_STATIC" - Automatically cache static content, including common // image formats, media (video and audio), and web assets (JavaScript and CSS). // Requests and responses that are marked as uncacheable, as well as dynamic // content (including HTML), will not be cached. // "FORCE_CACHE_ALL" - Cache all content, ignoring any "private", "no-store" // or "no-cache" directives in Cache-Control response headers. Warning: this // may result in Cloud CDN caching private, per-user (user identifiable) // content. // "INVALID_CACHE_MODE" // "USE_ORIGIN_HEADERS" - Requires the origin to set valid caching headers to // cache content. Responses without these headers will not be cached at // Google's edge, and will require a full trip to the origin on every request, // potentially impacting performance and increasing load on the origin server. CacheMode string `json:"cacheMode,omitempty"` // ClientTtl: Specifies a separate client (e.g. browser client) maximum TTL. // This is used to clamp the max-age (or Expires) value sent to the client. // With FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for // the response max-age directive, along with a "public" directive. For // cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age // from the origin (if specified), or else sets the response max-age directive // to the lesser of the client_ttl and default_ttl, and also ensures a "public" // cache-control directive is present. If a client TTL is not specified, a // default value (1 hour) will be used. The maximum allowed value is // 31,622,400s (1 year). ClientTtl int64 `json:"clientTtl,omitempty"` // DefaultTtl: Specifies the default TTL for cached content served by this // origin for responses that do not have an existing valid TTL (max-age or // s-max-age). Setting a TTL of "0" means "always revalidate". The value of // defaultTTL cannot be set to a value greater than that of maxTTL, but can be // equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will // overwrite the TTL set in all responses. The maximum allowed value is // 31,622,400s (1 year), noting that infrequently accessed objects may be // evicted from the cache before the defined TTL. DefaultTtl int64 `json:"defaultTtl,omitempty"` // MaxTtl: Specifies the maximum allowed TTL for cached content served by this // origin. Cache directives that attempt to set a max-age or s-maxage higher // than this, or an Expires header more than maxTTL seconds in the future will // be capped at the value of maxTTL, as if it were the value of an s-maxage // Cache-Control directive. Headers sent to the client will not be modified. // Setting a TTL of "0" means "always revalidate". The maximum allowed value is // 31,622,400s (1 year), noting that infrequently accessed objects may be // evicted from the cache before the defined TTL. MaxTtl int64 `json:"maxTtl,omitempty"` // NegativeCaching: Negative caching allows per-status code TTLs to be set, in // order to apply fine-grained caching for common errors or redirects. This can // reduce the load on your origin and improve end-user experience by reducing // response latency. When the cache mode is set to CACHE_ALL_STATIC or // USE_ORIGIN_HEADERS, negative caching applies to responses with the specified // response code that lack any Cache-Control, Expires, or Pragma: no-cache // directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching // applies to all responses with the specified response code, and override any // caching headers. By default, Cloud CDN will apply the following default TTLs // to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent // Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal // Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 // (Not Implemented): 60s. These defaults can be overridden in // negative_caching_policy. NegativeCaching bool `json:"negativeCaching,omitempty"` // NegativeCachingPolicy: Sets a cache TTL for the specified HTTP status code. // negative_caching must be enabled to configure negative_caching_policy. // Omitting the policy and leaving negative_caching enabled will use Cloud // CDN's default cache TTLs. Note that when specifying an explicit // negative_caching_policy, you should take care to specify a cache TTL for all // response codes that you wish to cache. Cloud CDN will not apply any default // negative caching when a policy exists. NegativeCachingPolicy []*BackendServiceCdnPolicyNegativeCachingPolicy `json:"negativeCachingPolicy,omitempty"` // RequestCoalescing: If true then Cloud CDN will combine multiple concurrent // cache fill requests into a small number of requests to the origin. RequestCoalescing bool `json:"requestCoalescing,omitempty"` // ServeWhileStale: Serve existing content from the cache (if available) when // revalidating content with the origin, or when an error is encountered when // refreshing the cache. This setting defines the default "max-stale" duration // for any cached responses that do not specify a max-stale directive. Stale // responses that exceed the TTL configured here will not be served. The // default limit (max-stale) is 86400s (1 day), which will allow stale content // to be served up to this limit beyond the max-age (or s-max-age) of a cached // response. The maximum allowed value is 604800 (1 week). Set this to zero (0) // to disable serve-while-stale. ServeWhileStale int64 `json:"serveWhileStale,omitempty"` // SignedUrlCacheMaxAgeSec: Maximum number of seconds the response to a signed // URL request will be considered fresh. After this time period, the response // will be revalidated before being served. Defaults to 1hr (3600s). When // serving responses to signed URL requests, Cloud CDN will internally behave // as though all responses from this backend had a "Cache-Control: public, // max-age=[TTL]" header, regardless of any existing Cache-Control header. The // actual headers served in responses will not be altered. SignedUrlCacheMaxAgeSec int64 `json:"signedUrlCacheMaxAgeSec,omitempty,string"` // SignedUrlKeyNames: [Output Only] Names of the keys for signing request URLs. SignedUrlKeyNames []string `json:"signedUrlKeyNames,omitempty"` // ForceSendFields is a list of field names (e.g. // "BypassCacheOnRequestHeaders") 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. "BypassCacheOnRequestHeaders") 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:"-"` }
BackendServiceCdnPolicy: Message containing Cloud CDN configuration for a backend service.
func (BackendServiceCdnPolicy) MarshalJSON ¶
func (s BackendServiceCdnPolicy) MarshalJSON() ([]byte, error)
type BackendServiceCdnPolicyBypassCacheOnRequestHeader ¶ added in v0.43.0
type BackendServiceCdnPolicyBypassCacheOnRequestHeader struct { // HeaderName: The header field name to match on when bypassing cache. Values // are case-insensitive. HeaderName string `json:"headerName,omitempty"` // ForceSendFields is a list of field names (e.g. "HeaderName") 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. "HeaderName") 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:"-"` }
BackendServiceCdnPolicyBypassCacheOnRequestHeader: Bypass the cache when the specified request headers are present, e.g. Pragma or Authorization headers. Values are case insensitive. The presence of such a header overrides the cache_mode setting.
func (BackendServiceCdnPolicyBypassCacheOnRequestHeader) MarshalJSON ¶ added in v0.43.0
func (s BackendServiceCdnPolicyBypassCacheOnRequestHeader) MarshalJSON() ([]byte, error)
type BackendServiceCdnPolicyNegativeCachingPolicy ¶ added in v0.43.0
type BackendServiceCdnPolicyNegativeCachingPolicy struct { // Code: The HTTP status code to define a TTL against. Only HTTP status codes // 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 are can be // specified as values, and you cannot specify a status code more than once. Code int64 `json:"code,omitempty"` // Ttl: The TTL (in seconds) for which to cache responses with the // corresponding status code. The maximum allowed value is 1800s (30 minutes), // noting that infrequently accessed objects may be evicted from the cache // before the defined TTL. Ttl int64 `json:"ttl,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:"-"` }
BackendServiceCdnPolicyNegativeCachingPolicy: Specify CDN TTLs for response error codes.
func (BackendServiceCdnPolicyNegativeCachingPolicy) MarshalJSON ¶ added in v0.43.0
func (s BackendServiceCdnPolicyNegativeCachingPolicy) MarshalJSON() ([]byte, error)
type BackendServiceConnectionTrackingPolicy ¶ added in v0.62.0
type BackendServiceConnectionTrackingPolicy struct { // ConnectionPersistenceOnUnhealthyBackends: Specifies connection persistence // when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL. If // set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy // backends only for connection-oriented protocols (TCP and SCTP) and only if // the Tracking Mode is PER_CONNECTION (default tracking mode) or the Session // Affinity is configured for 5-tuple. They do not persist for UDP. If set to // NEVER_PERSIST, after a backend becomes unhealthy, the existing connections // on the unhealthy backend are never persisted on the unhealthy backend. They // are always diverted to newly selected healthy backends (unless all backends // are unhealthy). If set to ALWAYS_PERSIST, existing connections always // persist on unhealthy backends regardless of protocol and session affinity. // It is generally not recommended to use this mode overriding the default. For // more details, see Connection Persistence for Network Load Balancing // (https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#connection-persistence) // and Connection Persistence for Internal TCP/UDP Load Balancing // (https://cloud.google.com/load-balancing/docs/internal#connection-persistence). // // Possible values: // "ALWAYS_PERSIST" // "DEFAULT_FOR_PROTOCOL" // "NEVER_PERSIST" ConnectionPersistenceOnUnhealthyBackends string `json:"connectionPersistenceOnUnhealthyBackends,omitempty"` // EnableStrongAffinity: Enable Strong Session Affinity for external // passthrough Network Load Balancers. This option is not available publicly. EnableStrongAffinity bool `json:"enableStrongAffinity,omitempty"` // IdleTimeoutSec: Specifies how long to keep a Connection Tracking entry while // there is no matching traffic (in seconds). For internal passthrough Network // Load Balancers: - The minimum (default) is 10 minutes and the maximum is 16 // hours. - It can be set only if Connection Tracking is less than 5-tuple // (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION, CLIENT_IP or // CLIENT_IP_PROTO, and Tracking Mode is PER_SESSION). For external passthrough // Network Load Balancers the default is 60 seconds. This option is not // available publicly. IdleTimeoutSec int64 `json:"idleTimeoutSec,omitempty"` // TrackingMode: Specifies the key used for connection tracking. There are two // options: - PER_CONNECTION: This is the default mode. The Connection Tracking // is performed as per the Connection Key (default Hash Method) for the // specific protocol. - PER_SESSION: The Connection Tracking is performed as // per the configured Session Affinity. It matches the configured Session // Affinity. For more details, see Tracking Mode for Network Load Balancing // (https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#tracking-mode) // and Tracking Mode for Internal TCP/UDP Load Balancing // (https://cloud.google.com/load-balancing/docs/internal#tracking-mode). // // Possible values: // "INVALID_TRACKING_MODE" // "PER_CONNECTION" // "PER_SESSION" TrackingMode string `json:"trackingMode,omitempty"` // ForceSendFields is a list of field names (e.g. // "ConnectionPersistenceOnUnhealthyBackends") 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. // "ConnectionPersistenceOnUnhealthyBackends") 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:"-"` }
BackendServiceConnectionTrackingPolicy: Connection Tracking configuration for this BackendService.
func (BackendServiceConnectionTrackingPolicy) MarshalJSON ¶ added in v0.62.0
func (s BackendServiceConnectionTrackingPolicy) MarshalJSON() ([]byte, error)
type BackendServiceFailoverPolicy ¶ added in v0.21.0
type BackendServiceFailoverPolicy struct { // DisableConnectionDrainOnFailover: This can be set to true only if the // protocol is TCP. The default is false. DisableConnectionDrainOnFailover bool `json:"disableConnectionDrainOnFailover,omitempty"` // DropTrafficIfUnhealthy: If set to true, connections to the load balancer are // dropped when all primary and all backup backend VMs are unhealthy.If set to // false, connections are distributed among all primary VMs when all primary // and all backup backend VMs are unhealthy. For load balancers that have // configurable failover: Internal passthrough Network Load Balancers // (https://cloud.google.com/load-balancing/docs/internal/failover-overview) // and external passthrough Network Load Balancers // (https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). // The default is false. DropTrafficIfUnhealthy bool `json:"dropTrafficIfUnhealthy,omitempty"` // FailoverRatio: The value of the field must be in the range [0, 1]. If the // value is 0, the load balancer performs a failover when the number of healthy // primary VMs equals zero. For all other values, the load balancer performs a // failover when the total number of healthy primary VMs is less than this // ratio. For load balancers that have configurable failover: Internal TCP/UDP // Load Balancing // (https://cloud.google.com/load-balancing/docs/internal/failover-overview) // and external TCP/UDP Load Balancing // (https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). FailoverRatio float64 `json:"failoverRatio,omitempty"` // ForceSendFields is a list of field names (e.g. // "DisableConnectionDrainOnFailover") 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. // "DisableConnectionDrainOnFailover") 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:"-"` }
BackendServiceFailoverPolicy: For load balancers that have configurable failover: Internal passthrough Network Load Balancers (https://cloud.google.com/load-balancing/docs/internal/failover-overview) and external passthrough Network Load Balancers (https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). On failover or failback, this field indicates whether connection draining will be honored. Google Cloud has a fixed connection draining timeout of 10 minutes. A setting of true terminates existing TCP connections to the active pool during failover and failback, immediately draining traffic. A setting of false allows existing TCP connections to persist, even on VMs no longer in the active pool, for up to the duration of the connection draining timeout (10 minutes).
func (BackendServiceFailoverPolicy) MarshalJSON ¶ added in v0.21.0
func (s BackendServiceFailoverPolicy) MarshalJSON() ([]byte, error)
func (*BackendServiceFailoverPolicy) UnmarshalJSON ¶ added in v0.21.0
func (s *BackendServiceFailoverPolicy) UnmarshalJSON(data []byte) error
type BackendServiceGroupHealth ¶
type BackendServiceGroupHealth struct { // Annotations: Metadata defined as annotations on the network endpoint group. Annotations map[string]string `json:"annotations,omitempty"` // HealthStatus: Health state of the backend instances or endpoints in // requested instance or network endpoint group, determined based on configured // health checks. HealthStatus []*HealthStatus `json:"healthStatus,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#backendServiceGroupHealth for the health of backend services. Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Annotations") 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. "Annotations") 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:"-"` }
func (BackendServiceGroupHealth) MarshalJSON ¶
func (s BackendServiceGroupHealth) MarshalJSON() ([]byte, error)
type BackendServiceIAP ¶
type BackendServiceIAP struct { // Enabled: Whether the serving infrastructure will authenticate and authorize // all incoming requests. Enabled bool `json:"enabled,omitempty"` // Oauth2ClientId: OAuth2 client ID to use for the authentication flow. Oauth2ClientId string `json:"oauth2ClientId,omitempty"` // Oauth2ClientSecret: OAuth2 client secret to use for the authentication flow. // For security reasons, this value cannot be retrieved via the API. Instead, // the SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 // field. @InputOnly Oauth2ClientSecret string `json:"oauth2ClientSecret,omitempty"` // Oauth2ClientSecretSha256: [Output Only] SHA256 hash value for the field // oauth2_client_secret above. Oauth2ClientSecretSha256 string `json:"oauth2ClientSecretSha256,omitempty"` // ForceSendFields is a list of field names (e.g. "Enabled") 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. "Enabled") 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:"-"` }
BackendServiceIAP: Identity-Aware Proxy
func (BackendServiceIAP) MarshalJSON ¶
func (s BackendServiceIAP) MarshalJSON() ([]byte, error)
type BackendServiceList ¶
type BackendServiceList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of BackendService resources. Items []*BackendService `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#backendServiceList for // lists of backend services. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *BackendServiceListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
BackendServiceList: Contains a list of BackendService resources.
func (BackendServiceList) MarshalJSON ¶
func (s BackendServiceList) MarshalJSON() ([]byte, error)
type BackendServiceListUsable ¶ added in v0.146.0
type BackendServiceListUsable struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of BackendService resources. Items []*BackendService `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#usableBackendServiceList for lists of usable backend services. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *BackendServiceListUsableWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
BackendServiceListUsable: Contains a list of usable BackendService resources.
func (BackendServiceListUsable) MarshalJSON ¶ added in v0.146.0
func (s BackendServiceListUsable) MarshalJSON() ([]byte, error)
type BackendServiceListUsableWarning ¶ added in v0.146.0
type BackendServiceListUsableWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*BackendServiceListUsableWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
BackendServiceListUsableWarning: [Output Only] Informational warning message.
func (BackendServiceListUsableWarning) MarshalJSON ¶ added in v0.146.0
func (s BackendServiceListUsableWarning) MarshalJSON() ([]byte, error)
type BackendServiceListUsableWarningData ¶ added in v0.146.0
type BackendServiceListUsableWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (BackendServiceListUsableWarningData) MarshalJSON ¶ added in v0.146.0
func (s BackendServiceListUsableWarningData) MarshalJSON() ([]byte, error)
type BackendServiceListWarning ¶
type BackendServiceListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*BackendServiceListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
BackendServiceListWarning: [Output Only] Informational warning message.
func (BackendServiceListWarning) MarshalJSON ¶
func (s BackendServiceListWarning) MarshalJSON() ([]byte, error)
type BackendServiceListWarningData ¶
type BackendServiceListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (BackendServiceListWarningData) MarshalJSON ¶
func (s BackendServiceListWarningData) MarshalJSON() ([]byte, error)
type BackendServiceLocalityLoadBalancingPolicyConfig ¶ added in v0.74.0
type BackendServiceLocalityLoadBalancingPolicyConfig struct { CustomPolicy *BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy `json:"customPolicy,omitempty"` Policy *BackendServiceLocalityLoadBalancingPolicyConfigPolicy `json:"policy,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomPolicy") 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. "CustomPolicy") 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:"-"` }
BackendServiceLocalityLoadBalancingPolicyConfig: Container for either a built-in LB policy supported by gRPC or Envoy or a custom one implemented by the end user.
func (BackendServiceLocalityLoadBalancingPolicyConfig) MarshalJSON ¶ added in v0.74.0
func (s BackendServiceLocalityLoadBalancingPolicyConfig) MarshalJSON() ([]byte, error)
type BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy ¶ added in v0.74.0
type BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy struct { // Data: An optional, arbitrary JSON object with configuration data, understood // by a locally installed custom policy implementation. Data string `json:"data,omitempty"` // Name: Identifies the custom policy. The value should match the name of a // custom implementation registered on the gRPC clients. It should follow // protocol buffer message naming conventions and include the full path (for // example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not // specify the same custom policy more than once for a backend. If you do, the // configuration is rejected. For an example of how to use this field, see Use // a custom policy. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Data") 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. "Data") 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:"-"` }
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy: The configuration for a custom policy implemented by the user and deployed with the client.
func (BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy) MarshalJSON ¶ added in v0.74.0
func (s BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy) MarshalJSON() ([]byte, error)
type BackendServiceLocalityLoadBalancingPolicyConfigPolicy ¶ added in v0.74.0
type BackendServiceLocalityLoadBalancingPolicyConfigPolicy struct { // Name: The name of a locality load-balancing policy. Valid values include // ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about // these values, see the description of localityLbPolicy. Do not specify the // same policy more than once for a backend. If you do, the configuration is // rejected. // // Possible values: // "INVALID_LB_POLICY" // "LEAST_REQUEST" - An O(1) algorithm which selects two random healthy hosts // and picks the host which has fewer active requests. // "MAGLEV" - This algorithm implements consistent hashing to backends. // Maglev can be used as a drop in replacement for the ring hash load balancer. // Maglev is not as stable as ring hash but has faster table lookup build times // and host selection times. For more information about Maglev, see // https://ai.google/research/pubs/pub44824 // "ORIGINAL_DESTINATION" - Backend host is selected based on the client // connection metadata, i.e., connections are opened to the same address as the // destination address of the incoming connection before the connection was // redirected to the load balancer. // "RANDOM" - The load balancer selects a random healthy host. // "RING_HASH" - The ring/modulo hash load balancer implements consistent // hashing to backends. The algorithm has the property that the // addition/removal of a host from a set of N hosts only affects 1/N of the // requests. // "ROUND_ROBIN" - This is a simple policy in which each healthy backend is // selected in round robin order. This is the default. // "WEIGHTED_MAGLEV" - Per-instance weighted Load Balancing via health check // reported weights. If set, the Backend Service must configure a non legacy // HTTP-based Health Check, and health check replies are expected to contain // non-standard HTTP response header field X-Load-Balancing-Endpoint-Weight to // specify the per-instance weights. If set, Load Balancing is weighted based // on the per-instance weights reported in the last processed health check // replies, as long as every instance either reported a valid weight or had // UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. This // option is only supported in Network Load Balancing. Name string `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:"-"` }
BackendServiceLocalityLoadBalancingPolicyConfigPolicy: The configuration for a built-in load balancing policy.
func (BackendServiceLocalityLoadBalancingPolicyConfigPolicy) MarshalJSON ¶ added in v0.74.0
func (s BackendServiceLocalityLoadBalancingPolicyConfigPolicy) MarshalJSON() ([]byte, error)
type BackendServiceLogConfig ¶ added in v0.18.0
type BackendServiceLogConfig struct { // Enable: Denotes whether to enable logging for the load balancer traffic // served by this backend service. The default value is false. Enable bool `json:"enable,omitempty"` // OptionalFields: This field can only be specified if logging is enabled for // this backend service and "logConfig.optionalMode" was set to CUSTOM. // Contains a list of optional fields you want to include in the logs. For // example: serverInstance, serverGkeDetails.cluster, // serverGkeDetails.pod.podNamespace OptionalFields []string `json:"optionalFields,omitempty"` // OptionalMode: This field can only be specified if logging is enabled for // this backend service. Configures whether all, none or a subset of optional // fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, // EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. // // Possible values: // "CUSTOM" - A subset of optional fields. // "EXCLUDE_ALL_OPTIONAL" - None optional fields. // "INCLUDE_ALL_OPTIONAL" - All optional fields. OptionalMode string `json:"optionalMode,omitempty"` // SampleRate: This field can only be specified if logging is enabled for this // backend service. The value of the field must be in [0, 1]. This configures // the sampling rate of requests to the load balancer where 1.0 means all // logged requests are reported and 0.0 means no logged requests are reported. // The default value is 1.0. SampleRate float64 `json:"sampleRate,omitempty"` // ForceSendFields is a list of field names (e.g. "Enable") 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. "Enable") 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:"-"` }
BackendServiceLogConfig: The available logging options for the load balancer traffic served by this backend service.
func (BackendServiceLogConfig) MarshalJSON ¶ added in v0.18.0
func (s BackendServiceLogConfig) MarshalJSON() ([]byte, error)
func (*BackendServiceLogConfig) UnmarshalJSON ¶ added in v0.18.0
func (s *BackendServiceLogConfig) UnmarshalJSON(data []byte) error
type BackendServiceReference ¶ added in v0.3.1
type BackendServiceReference struct { BackendService string `json:"backendService,omitempty"` // ForceSendFields is a list of field names (e.g. "BackendService") 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. "BackendService") 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:"-"` }
func (BackendServiceReference) MarshalJSON ¶ added in v0.3.1
func (s BackendServiceReference) MarshalJSON() ([]byte, error)
type BackendServiceUsedBy ¶ added in v0.146.0
type BackendServiceUsedBy struct { // Reference: [Output Only] Server-defined URL for resources referencing given // BackendService like UrlMaps, TargetTcpProxies, TargetSslProxies and // ForwardingRule. Reference string `json:"reference,omitempty"` // ForceSendFields is a list of field names (e.g. "Reference") 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. "Reference") 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:"-"` }
func (BackendServiceUsedBy) MarshalJSON ¶ added in v0.146.0
func (s BackendServiceUsedBy) MarshalJSON() ([]byte, error)
type BackendServicesAddSignedUrlKeyCall ¶
type BackendServicesAddSignedUrlKeyCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesAddSignedUrlKeyCall) Context ¶
func (c *BackendServicesAddSignedUrlKeyCall) Context(ctx context.Context) *BackendServicesAddSignedUrlKeyCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesAddSignedUrlKeyCall) Do ¶
func (c *BackendServicesAddSignedUrlKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendServices.addSignedUrlKey" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesAddSignedUrlKeyCall) Fields ¶
func (c *BackendServicesAddSignedUrlKeyCall) Fields(s ...googleapi.Field) *BackendServicesAddSignedUrlKeyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesAddSignedUrlKeyCall) Header ¶
func (c *BackendServicesAddSignedUrlKeyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendServicesAddSignedUrlKeyCall) RequestId ¶
func (c *BackendServicesAddSignedUrlKeyCall) RequestId(requestId string) *BackendServicesAddSignedUrlKeyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type BackendServicesAggregatedListCall ¶
type BackendServicesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesAggregatedListCall) Context ¶
func (c *BackendServicesAggregatedListCall) Context(ctx context.Context) *BackendServicesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesAggregatedListCall) Do ¶
func (c *BackendServicesAggregatedListCall) Do(opts ...googleapi.CallOption) (*BackendServiceAggregatedList, error)
Do executes the "compute.backendServices.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *BackendServiceAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesAggregatedListCall) Fields ¶
func (c *BackendServicesAggregatedListCall) Fields(s ...googleapi.Field) *BackendServicesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesAggregatedListCall) Filter ¶
func (c *BackendServicesAggregatedListCall) Filter(filter string) *BackendServicesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*BackendServicesAggregatedListCall) Header ¶
func (c *BackendServicesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendServicesAggregatedListCall) IfNoneMatch ¶
func (c *BackendServicesAggregatedListCall) IfNoneMatch(entityTag string) *BackendServicesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*BackendServicesAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *BackendServicesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *BackendServicesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*BackendServicesAggregatedListCall) MaxResults ¶
func (c *BackendServicesAggregatedListCall) MaxResults(maxResults int64) *BackendServicesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*BackendServicesAggregatedListCall) OrderBy ¶
func (c *BackendServicesAggregatedListCall) OrderBy(orderBy string) *BackendServicesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*BackendServicesAggregatedListCall) PageToken ¶
func (c *BackendServicesAggregatedListCall) PageToken(pageToken string) *BackendServicesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*BackendServicesAggregatedListCall) Pages ¶
func (c *BackendServicesAggregatedListCall) Pages(ctx context.Context, f func(*BackendServiceAggregatedList) 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 (*BackendServicesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *BackendServicesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *BackendServicesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*BackendServicesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *BackendServicesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *BackendServicesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type BackendServicesDeleteCall ¶
type BackendServicesDeleteCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesDeleteCall) Context ¶
func (c *BackendServicesDeleteCall) Context(ctx context.Context) *BackendServicesDeleteCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesDeleteCall) Do ¶
func (c *BackendServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendServices.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesDeleteCall) Fields ¶
func (c *BackendServicesDeleteCall) Fields(s ...googleapi.Field) *BackendServicesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesDeleteCall) Header ¶
func (c *BackendServicesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendServicesDeleteCall) RequestId ¶
func (c *BackendServicesDeleteCall) RequestId(requestId string) *BackendServicesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type BackendServicesDeleteSignedUrlKeyCall ¶
type BackendServicesDeleteSignedUrlKeyCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesDeleteSignedUrlKeyCall) Context ¶
func (c *BackendServicesDeleteSignedUrlKeyCall) Context(ctx context.Context) *BackendServicesDeleteSignedUrlKeyCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesDeleteSignedUrlKeyCall) Do ¶
func (c *BackendServicesDeleteSignedUrlKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendServices.deleteSignedUrlKey" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesDeleteSignedUrlKeyCall) Fields ¶
func (c *BackendServicesDeleteSignedUrlKeyCall) Fields(s ...googleapi.Field) *BackendServicesDeleteSignedUrlKeyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesDeleteSignedUrlKeyCall) Header ¶
func (c *BackendServicesDeleteSignedUrlKeyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendServicesDeleteSignedUrlKeyCall) RequestId ¶
func (c *BackendServicesDeleteSignedUrlKeyCall) RequestId(requestId string) *BackendServicesDeleteSignedUrlKeyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type BackendServicesGetCall ¶
type BackendServicesGetCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesGetCall) Context ¶
func (c *BackendServicesGetCall) Context(ctx context.Context) *BackendServicesGetCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesGetCall) Do ¶
func (c *BackendServicesGetCall) Do(opts ...googleapi.CallOption) (*BackendService, error)
Do executes the "compute.backendServices.get" call. Any non-2xx status code is an error. Response headers are in either *BackendService.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesGetCall) Fields ¶
func (c *BackendServicesGetCall) Fields(s ...googleapi.Field) *BackendServicesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesGetCall) Header ¶
func (c *BackendServicesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendServicesGetCall) IfNoneMatch ¶
func (c *BackendServicesGetCall) IfNoneMatch(entityTag string) *BackendServicesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type BackendServicesGetHealthCall ¶
type BackendServicesGetHealthCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesGetHealthCall) Context ¶
func (c *BackendServicesGetHealthCall) Context(ctx context.Context) *BackendServicesGetHealthCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesGetHealthCall) Do ¶
func (c *BackendServicesGetHealthCall) Do(opts ...googleapi.CallOption) (*BackendServiceGroupHealth, error)
Do executes the "compute.backendServices.getHealth" call. Any non-2xx status code is an error. Response headers are in either *BackendServiceGroupHealth.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesGetHealthCall) Fields ¶
func (c *BackendServicesGetHealthCall) Fields(s ...googleapi.Field) *BackendServicesGetHealthCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesGetHealthCall) Header ¶
func (c *BackendServicesGetHealthCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type BackendServicesGetIamPolicyCall ¶ added in v0.96.0
type BackendServicesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesGetIamPolicyCall) Context ¶ added in v0.96.0
func (c *BackendServicesGetIamPolicyCall) Context(ctx context.Context) *BackendServicesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesGetIamPolicyCall) Do ¶ added in v0.96.0
func (c *BackendServicesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.backendServices.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesGetIamPolicyCall) Fields ¶ added in v0.96.0
func (c *BackendServicesGetIamPolicyCall) Fields(s ...googleapi.Field) *BackendServicesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesGetIamPolicyCall) Header ¶ added in v0.96.0
func (c *BackendServicesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendServicesGetIamPolicyCall) IfNoneMatch ¶ added in v0.96.0
func (c *BackendServicesGetIamPolicyCall) IfNoneMatch(entityTag string) *BackendServicesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*BackendServicesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.96.0
func (c *BackendServicesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *BackendServicesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type BackendServicesInsertCall ¶
type BackendServicesInsertCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesInsertCall) Context ¶
func (c *BackendServicesInsertCall) Context(ctx context.Context) *BackendServicesInsertCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesInsertCall) Do ¶
func (c *BackendServicesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendServices.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesInsertCall) Fields ¶
func (c *BackendServicesInsertCall) Fields(s ...googleapi.Field) *BackendServicesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesInsertCall) Header ¶
func (c *BackendServicesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendServicesInsertCall) RequestId ¶
func (c *BackendServicesInsertCall) RequestId(requestId string) *BackendServicesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type BackendServicesListCall ¶
type BackendServicesListCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesListCall) Context ¶
func (c *BackendServicesListCall) Context(ctx context.Context) *BackendServicesListCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesListCall) Do ¶
func (c *BackendServicesListCall) Do(opts ...googleapi.CallOption) (*BackendServiceList, error)
Do executes the "compute.backendServices.list" call. Any non-2xx status code is an error. Response headers are in either *BackendServiceList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesListCall) Fields ¶
func (c *BackendServicesListCall) Fields(s ...googleapi.Field) *BackendServicesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesListCall) Filter ¶
func (c *BackendServicesListCall) Filter(filter string) *BackendServicesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*BackendServicesListCall) Header ¶
func (c *BackendServicesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendServicesListCall) IfNoneMatch ¶
func (c *BackendServicesListCall) IfNoneMatch(entityTag string) *BackendServicesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*BackendServicesListCall) MaxResults ¶
func (c *BackendServicesListCall) MaxResults(maxResults int64) *BackendServicesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*BackendServicesListCall) OrderBy ¶
func (c *BackendServicesListCall) OrderBy(orderBy string) *BackendServicesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*BackendServicesListCall) PageToken ¶
func (c *BackendServicesListCall) PageToken(pageToken string) *BackendServicesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*BackendServicesListCall) Pages ¶
func (c *BackendServicesListCall) Pages(ctx context.Context, f func(*BackendServiceList) 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 (*BackendServicesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *BackendServicesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *BackendServicesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type BackendServicesListUsableCall ¶ added in v0.146.0
type BackendServicesListUsableCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesListUsableCall) Context ¶ added in v0.146.0
func (c *BackendServicesListUsableCall) Context(ctx context.Context) *BackendServicesListUsableCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesListUsableCall) Do ¶ added in v0.146.0
func (c *BackendServicesListUsableCall) Do(opts ...googleapi.CallOption) (*BackendServiceListUsable, error)
Do executes the "compute.backendServices.listUsable" call. Any non-2xx status code is an error. Response headers are in either *BackendServiceListUsable.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesListUsableCall) Fields ¶ added in v0.146.0
func (c *BackendServicesListUsableCall) Fields(s ...googleapi.Field) *BackendServicesListUsableCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesListUsableCall) Filter ¶ added in v0.146.0
func (c *BackendServicesListUsableCall) Filter(filter string) *BackendServicesListUsableCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*BackendServicesListUsableCall) Header ¶ added in v0.146.0
func (c *BackendServicesListUsableCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendServicesListUsableCall) IfNoneMatch ¶ added in v0.146.0
func (c *BackendServicesListUsableCall) IfNoneMatch(entityTag string) *BackendServicesListUsableCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*BackendServicesListUsableCall) MaxResults ¶ added in v0.146.0
func (c *BackendServicesListUsableCall) MaxResults(maxResults int64) *BackendServicesListUsableCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*BackendServicesListUsableCall) OrderBy ¶ added in v0.146.0
func (c *BackendServicesListUsableCall) OrderBy(orderBy string) *BackendServicesListUsableCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*BackendServicesListUsableCall) PageToken ¶ added in v0.146.0
func (c *BackendServicesListUsableCall) PageToken(pageToken string) *BackendServicesListUsableCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*BackendServicesListUsableCall) Pages ¶ added in v0.146.0
func (c *BackendServicesListUsableCall) Pages(ctx context.Context, f func(*BackendServiceListUsable) 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 (*BackendServicesListUsableCall) ReturnPartialSuccess ¶ added in v0.146.0
func (c *BackendServicesListUsableCall) ReturnPartialSuccess(returnPartialSuccess bool) *BackendServicesListUsableCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type BackendServicesPatchCall ¶
type BackendServicesPatchCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesPatchCall) Context ¶
func (c *BackendServicesPatchCall) Context(ctx context.Context) *BackendServicesPatchCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesPatchCall) Do ¶
func (c *BackendServicesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendServices.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesPatchCall) Fields ¶
func (c *BackendServicesPatchCall) Fields(s ...googleapi.Field) *BackendServicesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesPatchCall) Header ¶
func (c *BackendServicesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendServicesPatchCall) RequestId ¶
func (c *BackendServicesPatchCall) RequestId(requestId string) *BackendServicesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type BackendServicesScopedList ¶
type BackendServicesScopedList struct { // BackendServices: A list of BackendServices contained in this scope. BackendServices []*BackendService `json:"backendServices,omitempty"` // Warning: Informational warning which replaces the list of backend services // when the list is empty. Warning *BackendServicesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "BackendServices") 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. "BackendServices") 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:"-"` }
func (BackendServicesScopedList) MarshalJSON ¶
func (s BackendServicesScopedList) MarshalJSON() ([]byte, error)
type BackendServicesScopedListWarning ¶
type BackendServicesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*BackendServicesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
BackendServicesScopedListWarning: Informational warning which replaces the list of backend services when the list is empty.
func (BackendServicesScopedListWarning) MarshalJSON ¶
func (s BackendServicesScopedListWarning) MarshalJSON() ([]byte, error)
type BackendServicesScopedListWarningData ¶
type BackendServicesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (BackendServicesScopedListWarningData) MarshalJSON ¶
func (s BackendServicesScopedListWarningData) MarshalJSON() ([]byte, error)
type BackendServicesService ¶
type BackendServicesService struct {
// contains filtered or unexported fields
}
func NewBackendServicesService ¶
func NewBackendServicesService(s *Service) *BackendServicesService
func (*BackendServicesService) AddSignedUrlKey ¶
func (r *BackendServicesService) AddSignedUrlKey(project string, backendService string, signedurlkey *SignedUrlKey) *BackendServicesAddSignedUrlKeyCall
AddSignedUrlKey: Adds a key for validating requests with signed URLs for this backend service.
- backendService: Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035.
- project: Project ID for this request.
func (*BackendServicesService) AggregatedList ¶
func (r *BackendServicesService) AggregatedList(project string) *BackendServicesAggregatedListCall
AggregatedList: Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Name of the project scoping this request.
func (*BackendServicesService) Delete ¶
func (r *BackendServicesService) Delete(project string, backendService string) *BackendServicesDeleteCall
Delete: Deletes the specified BackendService resource.
- backendService: Name of the BackendService resource to delete. - project: Project ID for this request.
func (*BackendServicesService) DeleteSignedUrlKey ¶
func (r *BackendServicesService) DeleteSignedUrlKey(project string, backendService string, keyName string) *BackendServicesDeleteSignedUrlKeyCall
DeleteSignedUrlKey: Deletes a key for validating requests with signed URLs for this backend service.
- backendService: Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035.
- keyName: The name of the Signed URL Key to delete.
- project: Project ID for this request.
func (*BackendServicesService) Get ¶
func (r *BackendServicesService) Get(project string, backendService string) *BackendServicesGetCall
Get: Returns the specified BackendService resource.
- backendService: Name of the BackendService resource to return. - project: Project ID for this request.
func (*BackendServicesService) GetHealth ¶
func (r *BackendServicesService) GetHealth(project string, backendService string, resourcegroupreference *ResourceGroupReference) *BackendServicesGetHealthCall
GetHealth: Gets the most recent health check results for this BackendService. Example request body: { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" }
- backendService: Name of the BackendService resource to which the queried instance belongs.
- project: .
func (*BackendServicesService) GetIamPolicy ¶ added in v0.96.0
func (r *BackendServicesService) GetIamPolicy(project string, resource string) *BackendServicesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*BackendServicesService) Insert ¶
func (r *BackendServicesService) Insert(project string, backendservice *BackendService) *BackendServicesInsertCall
Insert: Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview .
- project: Project ID for this request.
func (*BackendServicesService) List ¶
func (r *BackendServicesService) List(project string) *BackendServicesListCall
List: Retrieves the list of BackendService resources available to the specified project.
- project: Project ID for this request.
func (*BackendServicesService) ListUsable ¶ added in v0.146.0
func (r *BackendServicesService) ListUsable(project string) *BackendServicesListUsableCall
ListUsable: Retrieves a list of all usable backend services in the specified project.
- project: Project ID for this request.
func (*BackendServicesService) Patch ¶
func (r *BackendServicesService) Patch(project string, backendService string, backendservice *BackendService) *BackendServicesPatchCall
Patch: Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- backendService: Name of the BackendService resource to patch. - project: Project ID for this request.
func (*BackendServicesService) SetEdgeSecurityPolicy ¶ added in v0.62.0
func (r *BackendServicesService) SetEdgeSecurityPolicy(project string, backendService string, securitypolicyreference *SecurityPolicyReference) *BackendServicesSetEdgeSecurityPolicyCall
SetEdgeSecurityPolicy: Sets the edge security policy for the specified backend service.
- backendService: Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035.
- project: Project ID for this request.
func (*BackendServicesService) SetIamPolicy ¶ added in v0.96.0
func (r *BackendServicesService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *BackendServicesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*BackendServicesService) SetSecurityPolicy ¶
func (r *BackendServicesService) SetSecurityPolicy(project string, backendService string, securitypolicyreference *SecurityPolicyReference) *BackendServicesSetSecurityPolicyCall
SetSecurityPolicy: Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview
- backendService: Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035.
- project: Project ID for this request.
func (*BackendServicesService) TestIamPermissions ¶ added in v0.148.0
func (r *BackendServicesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *BackendServicesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*BackendServicesService) Update ¶
func (r *BackendServicesService) Update(project string, backendService string, backendservice *BackendService) *BackendServicesUpdateCall
Update: Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview.
- backendService: Name of the BackendService resource to update. - project: Project ID for this request.
type BackendServicesSetEdgeSecurityPolicyCall ¶ added in v0.62.0
type BackendServicesSetEdgeSecurityPolicyCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesSetEdgeSecurityPolicyCall) Context ¶ added in v0.62.0
func (c *BackendServicesSetEdgeSecurityPolicyCall) Context(ctx context.Context) *BackendServicesSetEdgeSecurityPolicyCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesSetEdgeSecurityPolicyCall) Do ¶ added in v0.62.0
func (c *BackendServicesSetEdgeSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendServices.setEdgeSecurityPolicy" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesSetEdgeSecurityPolicyCall) Fields ¶ added in v0.62.0
func (c *BackendServicesSetEdgeSecurityPolicyCall) Fields(s ...googleapi.Field) *BackendServicesSetEdgeSecurityPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesSetEdgeSecurityPolicyCall) Header ¶ added in v0.62.0
func (c *BackendServicesSetEdgeSecurityPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendServicesSetEdgeSecurityPolicyCall) RequestId ¶ added in v0.62.0
func (c *BackendServicesSetEdgeSecurityPolicyCall) RequestId(requestId string) *BackendServicesSetEdgeSecurityPolicyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type BackendServicesSetIamPolicyCall ¶ added in v0.96.0
type BackendServicesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesSetIamPolicyCall) Context ¶ added in v0.96.0
func (c *BackendServicesSetIamPolicyCall) Context(ctx context.Context) *BackendServicesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesSetIamPolicyCall) Do ¶ added in v0.96.0
func (c *BackendServicesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.backendServices.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesSetIamPolicyCall) Fields ¶ added in v0.96.0
func (c *BackendServicesSetIamPolicyCall) Fields(s ...googleapi.Field) *BackendServicesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesSetIamPolicyCall) Header ¶ added in v0.96.0
func (c *BackendServicesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type BackendServicesSetSecurityPolicyCall ¶
type BackendServicesSetSecurityPolicyCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesSetSecurityPolicyCall) Context ¶
func (c *BackendServicesSetSecurityPolicyCall) Context(ctx context.Context) *BackendServicesSetSecurityPolicyCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesSetSecurityPolicyCall) Do ¶
func (c *BackendServicesSetSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendServices.setSecurityPolicy" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesSetSecurityPolicyCall) Fields ¶
func (c *BackendServicesSetSecurityPolicyCall) Fields(s ...googleapi.Field) *BackendServicesSetSecurityPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesSetSecurityPolicyCall) Header ¶
func (c *BackendServicesSetSecurityPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendServicesSetSecurityPolicyCall) RequestId ¶
func (c *BackendServicesSetSecurityPolicyCall) RequestId(requestId string) *BackendServicesSetSecurityPolicyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type BackendServicesTestIamPermissionsCall ¶ added in v0.148.0
type BackendServicesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesTestIamPermissionsCall) Context ¶ added in v0.148.0
func (c *BackendServicesTestIamPermissionsCall) Context(ctx context.Context) *BackendServicesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesTestIamPermissionsCall) Do ¶ added in v0.148.0
func (c *BackendServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.backendServices.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesTestIamPermissionsCall) Fields ¶ added in v0.148.0
func (c *BackendServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *BackendServicesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesTestIamPermissionsCall) Header ¶ added in v0.148.0
func (c *BackendServicesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type BackendServicesUpdateCall ¶
type BackendServicesUpdateCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesUpdateCall) Context ¶
func (c *BackendServicesUpdateCall) Context(ctx context.Context) *BackendServicesUpdateCall
Context sets the context to be used in this call's Do method.
func (*BackendServicesUpdateCall) Do ¶
func (c *BackendServicesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendServices.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BackendServicesUpdateCall) Fields ¶
func (c *BackendServicesUpdateCall) Fields(s ...googleapi.Field) *BackendServicesUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BackendServicesUpdateCall) Header ¶
func (c *BackendServicesUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BackendServicesUpdateCall) RequestId ¶
func (c *BackendServicesUpdateCall) RequestId(requestId string) *BackendServicesUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type BfdPacket ¶ added in v0.62.0
type BfdPacket struct { // AuthenticationPresent: The Authentication Present bit of the BFD packet. // This is specified in section 4.1 of RFC5880 AuthenticationPresent bool `json:"authenticationPresent,omitempty"` // ControlPlaneIndependent: The Control Plane Independent bit of the BFD // packet. This is specified in section 4.1 of RFC5880 ControlPlaneIndependent bool `json:"controlPlaneIndependent,omitempty"` // Demand: The demand bit of the BFD packet. This is specified in section 4.1 // of RFC5880 Demand bool `json:"demand,omitempty"` // Diagnostic: The diagnostic code specifies the local system's reason for the // last change in session state. This allows remote systems to determine the // reason that the previous session failed, for example. These diagnostic codes // are specified in section 4.1 of RFC5880 // // Possible values: // "ADMINISTRATIVELY_DOWN" // "CONCATENATED_PATH_DOWN" // "CONTROL_DETECTION_TIME_EXPIRED" // "DIAGNOSTIC_UNSPECIFIED" // "ECHO_FUNCTION_FAILED" // "FORWARDING_PLANE_RESET" // "NEIGHBOR_SIGNALED_SESSION_DOWN" // "NO_DIAGNOSTIC" // "PATH_DOWN" // "REVERSE_CONCATENATED_PATH_DOWN" Diagnostic string `json:"diagnostic,omitempty"` // Final: The Final bit of the BFD packet. This is specified in section 4.1 of // RFC5880 Final bool `json:"final,omitempty"` // Length: The length of the BFD Control packet in bytes. This is specified in // section 4.1 of RFC5880 Length int64 `json:"length,omitempty"` // MinEchoRxIntervalMs: The Required Min Echo RX Interval value in the BFD // packet. This is specified in section 4.1 of RFC5880 MinEchoRxIntervalMs int64 `json:"minEchoRxIntervalMs,omitempty"` // MinRxIntervalMs: The Required Min RX Interval value in the BFD packet. This // is specified in section 4.1 of RFC5880 MinRxIntervalMs int64 `json:"minRxIntervalMs,omitempty"` // MinTxIntervalMs: The Desired Min TX Interval value in the BFD packet. This // is specified in section 4.1 of RFC5880 MinTxIntervalMs int64 `json:"minTxIntervalMs,omitempty"` // Multiplier: The detection time multiplier of the BFD packet. This is // specified in section 4.1 of RFC5880 Multiplier int64 `json:"multiplier,omitempty"` // Multipoint: The multipoint bit of the BFD packet. This is specified in // section 4.1 of RFC5880 Multipoint bool `json:"multipoint,omitempty"` // MyDiscriminator: The My Discriminator value in the BFD packet. This is // specified in section 4.1 of RFC5880 MyDiscriminator int64 `json:"myDiscriminator,omitempty"` // Poll: The Poll bit of the BFD packet. This is specified in section 4.1 of // RFC5880 Poll bool `json:"poll,omitempty"` // State: The current BFD session state as seen by the transmitting system. // These states are specified in section 4.1 of RFC5880 // // Possible values: // "ADMIN_DOWN" // "DOWN" // "INIT" // "STATE_UNSPECIFIED" // "UP" State string `json:"state,omitempty"` // Version: The version number of the BFD protocol, as specified in section 4.1 // of RFC5880. Version int64 `json:"version,omitempty"` // YourDiscriminator: The Your Discriminator value in the BFD packet. This is // specified in section 4.1 of RFC5880 YourDiscriminator int64 `json:"yourDiscriminator,omitempty"` // ForceSendFields is a list of field names (e.g. "AuthenticationPresent") 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. "AuthenticationPresent") 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:"-"` }
func (BfdPacket) MarshalJSON ¶ added in v0.62.0
type BfdStatus ¶ added in v0.62.0
type BfdStatus struct { // BfdSessionInitializationMode: The BFD session initialization mode for this // BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session // for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the // peer router to initiate the BFD session for this BGP peer. If set to // DISABLED, BFD is disabled for this BGP peer. // // Possible values: // "ACTIVE" // "DISABLED" // "PASSIVE" BfdSessionInitializationMode string `json:"bfdSessionInitializationMode,omitempty"` // ConfigUpdateTimestampMicros: Unix timestamp of the most recent config // update. ConfigUpdateTimestampMicros int64 `json:"configUpdateTimestampMicros,omitempty,string"` // ControlPacketCounts: Control packet counts for the current BFD session. ControlPacketCounts *BfdStatusPacketCounts `json:"controlPacketCounts,omitempty"` // ControlPacketIntervals: Inter-packet time interval statistics for control // packets. ControlPacketIntervals []*PacketIntervals `json:"controlPacketIntervals,omitempty"` // LocalDiagnostic: The diagnostic code specifies the local system's reason for // the last change in session state. This allows remote systems to determine // the reason that the previous session failed, for example. These diagnostic // codes are specified in section 4.1 of RFC5880 // // Possible values: // "ADMINISTRATIVELY_DOWN" // "CONCATENATED_PATH_DOWN" // "CONTROL_DETECTION_TIME_EXPIRED" // "DIAGNOSTIC_UNSPECIFIED" // "ECHO_FUNCTION_FAILED" // "FORWARDING_PLANE_RESET" // "NEIGHBOR_SIGNALED_SESSION_DOWN" // "NO_DIAGNOSTIC" // "PATH_DOWN" // "REVERSE_CONCATENATED_PATH_DOWN" LocalDiagnostic string `json:"localDiagnostic,omitempty"` // LocalState: The current BFD session state as seen by the transmitting // system. These states are specified in section 4.1 of RFC5880 // // Possible values: // "ADMIN_DOWN" // "DOWN" // "INIT" // "STATE_UNSPECIFIED" // "UP" LocalState string `json:"localState,omitempty"` // NegotiatedLocalControlTxIntervalMs: Negotiated transmit interval for control // packets. NegotiatedLocalControlTxIntervalMs int64 `json:"negotiatedLocalControlTxIntervalMs,omitempty"` // RxPacket: The most recent Rx control packet for this BFD session. RxPacket *BfdPacket `json:"rxPacket,omitempty"` // TxPacket: The most recent Tx control packet for this BFD session. TxPacket *BfdPacket `json:"txPacket,omitempty"` // UptimeMs: Session uptime in milliseconds. Value will be 0 if session is not // up. UptimeMs int64 `json:"uptimeMs,omitempty,string"` // ForceSendFields is a list of field names (e.g. // "BfdSessionInitializationMode") 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. "BfdSessionInitializationMode") 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:"-"` }
BfdStatus: Next free: 15
func (BfdStatus) MarshalJSON ¶ added in v0.62.0
type BfdStatusPacketCounts ¶ added in v0.62.0
type BfdStatusPacketCounts struct { // NumRx: Number of packets received since the beginning of the current BFD // session. NumRx int64 `json:"numRx,omitempty"` // NumRxRejected: Number of packets received that were rejected because of // errors since the beginning of the current BFD session. NumRxRejected int64 `json:"numRxRejected,omitempty"` // NumRxSuccessful: Number of packets received that were successfully processed // since the beginning of the current BFD session. NumRxSuccessful int64 `json:"numRxSuccessful,omitempty"` // NumTx: Number of packets transmitted since the beginning of the current BFD // session. NumTx int64 `json:"numTx,omitempty"` // ForceSendFields is a list of field names (e.g. "NumRx") 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. "NumRx") 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:"-"` }
func (BfdStatusPacketCounts) MarshalJSON ¶ added in v0.62.0
func (s BfdStatusPacketCounts) MarshalJSON() ([]byte, error)
type Binding ¶
type Binding struct { // BindingId: This is deprecated and has no effect. Do not use. BindingId string `json:"bindingId,omitempty"` // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the current // request. If the condition evaluates to `false`, then this binding does not // apply to the current request. However, a different role binding might grant // the same role to one or more of the principals in this binding. To learn // which resources support conditions in their IAM policies, see the IAM // documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Condition *Expr `json:"condition,omitempty"` // Members: Specifies the principals requesting access for a Google Cloud // resource. `members` can have the following values: * `allUsers`: A special // identifier that represents anyone who is on the internet; with or without a // Google account. * `allAuthenticatedUsers`: A special identifier that // represents anyone who is authenticated with a Google account or a service // account. Does not include identities that come from external identity // providers (IdPs) through identity federation. * `user:{emailid}`: An email // address that represents a specific Google account. For example, // `alice@example.com` . * `serviceAccount:{emailid}`: An email address that // represents a Google service account. For example, // `my-other-app@appspot.gserviceaccount.com`. * // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An // identifier for a Kubernetes service account // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * // `group:{emailid}`: An email address that represents a Google group. For // example, `admins@example.com`. * `domain:{domain}`: The G Suite domain // (primary) that represents all the users of that domain. For example, // `google.com` or `example.com`. * // `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub // ject/{subject_attribute_value}`: A single identity in a workforce identity // pool. * // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ // group/{group_id}`: All workforce identities in a group. * // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ // attribute.{attribute_name}/{attribute_value}`: All workforce identities with // a specific attribute value. * // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ // *`: All identities in a workforce identity pool. * // `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo // rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single // identity in a workload identity pool. * // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global // /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool // group. * // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global // /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value} // `: All identities in a workload identity pool with a certain attribute. * // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global // /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity // pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently deleted. For // example, `alice@example.com?uid=123456789012345678901`. If the user is // recovered, this value reverts to `user:{emailid}` and the recovered user // retains the role in the binding. * // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a service account that has been recently // deleted. For example, // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the // service account is undeleted, this value reverts to // `serviceAccount:{emailid}` and the undeleted service account retains the // role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email // address (plus unique identifier) representing a Google group that has been // recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is recovered, // this value reverts to `group:{emailid}` and the recovered group retains the // role in the binding. * // `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool // _id}/subject/{subject_attribute_value}`: Deleted single identity in a // workforce identity pool. For example, // `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po // ol-id/subject/my-subject-attribute-value`. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. For // example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview // of the IAM roles and permissions, see the IAM documentation // (https://cloud.google.com/iam/docs/roles-overview). For a list of the // available pre-defined roles, see here // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "BindingId") 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. "BindingId") 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:"-"` }
Binding: Associates `members`, or principals, with a `role`.
func (Binding) MarshalJSON ¶
type BulkInsertDiskResource ¶ added in v0.127.0
type BulkInsertDiskResource struct { // SourceConsistencyGroupPolicy: The URL of the DiskConsistencyGroupPolicy for // the group of disks to clone. This may be a full or partial URL, such as: - // https://www.googleapis.com/compute/v1/projects/project/regions/region // /resourcePolicies/resourcePolicy - // projects/project/regions/region/resourcePolicies/resourcePolicy - // regions/region/resourcePolicies/resourcePolicy SourceConsistencyGroupPolicy string `json:"sourceConsistencyGroupPolicy,omitempty"` // ForceSendFields is a list of field names (e.g. // "SourceConsistencyGroupPolicy") 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. "SourceConsistencyGroupPolicy") 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:"-"` }
BulkInsertDiskResource: A transient resource used in compute.disks.bulkInsert and compute.regionDisks.bulkInsert. It is only used to process requests and is not persisted.
func (BulkInsertDiskResource) MarshalJSON ¶ added in v0.127.0
func (s BulkInsertDiskResource) MarshalJSON() ([]byte, error)
type BulkInsertInstanceResource ¶ added in v0.41.0
type BulkInsertInstanceResource struct { // Count: The maximum number of instances to create. Count int64 `json:"count,omitempty,string"` // InstanceProperties: The instance properties defining the VM instances to be // created. Required if sourceInstanceTemplate is not provided. InstanceProperties *InstanceProperties `json:"instanceProperties,omitempty"` // LocationPolicy: Policy for choosing target zone. For more information, see // Create VMs in bulk. LocationPolicy *LocationPolicy `json:"locationPolicy,omitempty"` // MinCount: The minimum number of instances to create. If no min_count is // specified then count is used as the default value. If min_count instances // cannot be created, then no instances will be created and instances already // created will be deleted. MinCount int64 `json:"minCount,omitempty,string"` // NamePattern: The string pattern used for the names of the VMs. Either // name_pattern or per_instance_properties must be set. The pattern must // contain one continuous sequence of placeholder hash characters (#) with each // character corresponding to one digit of the generated instance name. // Example: a name_pattern of inst-#### generates instance names such as // inst-0001 and inst-0002. If existing instances in the same project and zone // have names that match the name pattern then the generated instance numbers // start after the biggest existing number. For example, if there exists an // instance with name inst-0050, then instance names generated using the // pattern inst-#### begin with inst-0051. The name pattern placeholder #...# // can contain up to 18 characters. NamePattern string `json:"namePattern,omitempty"` // PerInstanceProperties: Per-instance properties to be set on individual // instances. Keys of this map specify requested instance names. Can be empty // if name_pattern is used. PerInstanceProperties map[string]BulkInsertInstanceResourcePerInstanceProperties `json:"perInstanceProperties,omitempty"` // SourceInstanceTemplate: Specifies the instance template from which to create // instances. You may combine sourceInstanceTemplate with instanceProperties to // override specific values from an existing instance template. Bulk API // follows the semantics of JSON Merge Patch described by RFC 7396. It can be a // full or partial URL. For example, the following are all valid URLs to an // instance template: - https://www.googleapis.com/compute/v1/projects/project // /global/instanceTemplates/instanceTemplate - // projects/project/global/instanceTemplates/instanceTemplate - // global/instanceTemplates/instanceTemplate This field is optional. SourceInstanceTemplate string `json:"sourceInstanceTemplate,omitempty"` // ForceSendFields is a list of field names (e.g. "Count") 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. "Count") 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:"-"` }
BulkInsertInstanceResource: A transient resource used in compute.instances.bulkInsert and compute.regionInstances.bulkInsert . This resource is not persisted anywhere, it is used only for processing the requests.
func (BulkInsertInstanceResource) MarshalJSON ¶ added in v0.41.0
func (s BulkInsertInstanceResource) MarshalJSON() ([]byte, error)
type BulkInsertInstanceResourcePerInstanceProperties ¶ added in v0.41.0
type BulkInsertInstanceResourcePerInstanceProperties struct { // Hostname: Specifies the hostname of the instance. More details in: // https://cloud.google.com/compute/docs/instances/custom-hostname-vm#naming_convention Hostname string `json:"hostname,omitempty"` // Name: This field is only temporary. It will be removed. Do not use it. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Hostname") 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. "Hostname") 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:"-"` }
BulkInsertInstanceResourcePerInstanceProperties: Per-instance properties to be set on individual instances. To be extended in the future.
func (BulkInsertInstanceResourcePerInstanceProperties) MarshalJSON ¶ added in v0.41.0
func (s BulkInsertInstanceResourcePerInstanceProperties) MarshalJSON() ([]byte, error)
type BulkInsertOperationStatus ¶ added in v0.139.0
type BulkInsertOperationStatus struct { // CreatedVmCount: [Output Only] Count of VMs successfully created so far. CreatedVmCount int64 `json:"createdVmCount,omitempty"` // DeletedVmCount: [Output Only] Count of VMs that got deleted during rollback. DeletedVmCount int64 `json:"deletedVmCount,omitempty"` // FailedToCreateVmCount: [Output Only] Count of VMs that started creating but // encountered an error. FailedToCreateVmCount int64 `json:"failedToCreateVmCount,omitempty"` // Status: [Output Only] Creation status of BulkInsert operation - information // if the flow is rolling forward or rolling back. // // Possible values: // "CREATING" - Rolling forward - creating VMs. // "DONE" - Done // "ROLLING_BACK" - Rolling back - cleaning up after an error. // "STATUS_UNSPECIFIED" Status string `json:"status,omitempty"` // TargetVmCount: [Output Only] Count of VMs originally planned to be created. TargetVmCount int64 `json:"targetVmCount,omitempty"` // ForceSendFields is a list of field names (e.g. "CreatedVmCount") 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. "CreatedVmCount") 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:"-"` }
func (BulkInsertOperationStatus) MarshalJSON ¶ added in v0.139.0
func (s BulkInsertOperationStatus) MarshalJSON() ([]byte, error)
type CacheInvalidationRule ¶
type CacheInvalidationRule struct { // Host: If set, this invalidation rule will only apply to requests with a Host // header matching host. Host string `json:"host,omitempty"` Path string `json:"path,omitempty"` // ForceSendFields is a list of field names (e.g. "Host") 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. "Host") 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:"-"` }
func (CacheInvalidationRule) MarshalJSON ¶
func (s CacheInvalidationRule) MarshalJSON() ([]byte, error)
type CacheKeyPolicy ¶
type CacheKeyPolicy struct { // IncludeHost: If true, requests to different hosts will be cached separately. IncludeHost bool `json:"includeHost,omitempty"` // IncludeHttpHeaders: Allows HTTP request headers (by name) to be used in the // cache key. IncludeHttpHeaders []string `json:"includeHttpHeaders,omitempty"` // IncludeNamedCookies: Allows HTTP cookies (by name) to be used in the cache // key. The name=value pair will be used in the cache key Cloud CDN generates. IncludeNamedCookies []string `json:"includeNamedCookies,omitempty"` // IncludeProtocol: If true, http and https requests will be cached separately. IncludeProtocol bool `json:"includeProtocol,omitempty"` // IncludeQueryString: If true, include query string parameters in the cache // key according to query_string_whitelist and query_string_blacklist. If // neither is set, the entire query string will be included. If false, the // query string will be excluded from the cache key entirely. IncludeQueryString bool `json:"includeQueryString,omitempty"` // QueryStringBlacklist: Names of query string parameters to exclude in cache // keys. All other parameters will be included. Either specify // query_string_whitelist or query_string_blacklist, not both. '&' and '=' will // be percent encoded and not treated as delimiters. QueryStringBlacklist []string `json:"queryStringBlacklist,omitempty"` // QueryStringWhitelist: Names of query string parameters to include in cache // keys. All other parameters will be excluded. Either specify // query_string_whitelist or query_string_blacklist, not both. '&' and '=' will // be percent encoded and not treated as delimiters. QueryStringWhitelist []string `json:"queryStringWhitelist,omitempty"` // ForceSendFields is a list of field names (e.g. "IncludeHost") 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. "IncludeHost") 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:"-"` }
CacheKeyPolicy: Message containing what to include in the cache key for a request for Cloud CDN.
func (CacheKeyPolicy) MarshalJSON ¶
func (s CacheKeyPolicy) MarshalJSON() ([]byte, error)
type CircuitBreakers ¶ added in v0.11.0
type CircuitBreakers struct { // MaxConnections: The maximum number of connections to the backend service. If // not specified, there is no limit. Not supported when the backend service is // referenced by a URL map that is bound to target gRPC proxy that has // validateForProxyless field set to true. MaxConnections int64 `json:"maxConnections,omitempty"` // MaxPendingRequests: The maximum number of pending requests allowed to the // backend service. If not specified, there is no limit. Not supported when the // backend service is referenced by a URL map that is bound to target gRPC // proxy that has validateForProxyless field set to true. MaxPendingRequests int64 `json:"maxPendingRequests,omitempty"` // MaxRequests: The maximum number of parallel requests that allowed to the // backend service. If not specified, there is no limit. MaxRequests int64 `json:"maxRequests,omitempty"` // MaxRequestsPerConnection: Maximum requests for a single connection to the // backend service. This parameter is respected by both the HTTP/1.1 and HTTP/2 // implementations. If not specified, there is no limit. Setting this parameter // to 1 will effectively disable keep alive. Not supported when the backend // service is referenced by a URL map that is bound to target gRPC proxy that // has validateForProxyless field set to true. MaxRequestsPerConnection int64 `json:"maxRequestsPerConnection,omitempty"` // MaxRetries: The maximum number of parallel retries allowed to the backend // cluster. If not specified, the default is 1. Not supported when the backend // service is referenced by a URL map that is bound to target gRPC proxy that // has validateForProxyless field set to true. MaxRetries int64 `json:"maxRetries,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxConnections") 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. "MaxConnections") 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:"-"` }
CircuitBreakers: Settings controlling the volume of requests, connections and retries to this backend service.
func (CircuitBreakers) MarshalJSON ¶ added in v0.11.0
func (s CircuitBreakers) MarshalJSON() ([]byte, error)
type Commitment ¶
type Commitment struct { // AutoRenew: Specifies whether to enable automatic renewal for the commitment. // The default value is false if not specified. The field can be updated until // the day of the commitment expiration at 12:00am PST. If the field is set to // true, the commitment will be automatically renewed for either one or three // years according to the terms of the existing commitment. AutoRenew bool `json:"autoRenew,omitempty"` // Category: The category of the commitment. Category MACHINE specifies // commitments composed of machine resources such as VCPU or MEMORY, listed in // resources. Category LICENSE specifies commitments composed of software // licenses, listed in licenseResources. Note that only MACHINE commitments // should have a Type specified. // // Possible values: // "CATEGORY_UNSPECIFIED" // "LICENSE" // "MACHINE" Category string `json:"category,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // EndTimestamp: [Output Only] Commitment end time in RFC3339 text format. EndTimestamp string `json:"endTimestamp,omitempty"` // ExistingReservations: Specifies the already existing reservations to attach // to the Commitment. This field is optional, and it can be a full or partial // URL. For example, the following are valid URLs to an reservation: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /reservations/reservation - // projects/project/zones/zone/reservations/reservation ExistingReservations []string `json:"existingReservations,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#commitment for // commitments. Kind string `json:"kind,omitempty"` // LicenseResource: The license specification required as part of a license // commitment. LicenseResource *LicenseResourceCommitment `json:"licenseResource,omitempty"` // MergeSourceCommitments: List of source commitments to be merged into a new // commitment. MergeSourceCommitments []string `json:"mergeSourceCommitments,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Plan: The plan for this commitment, which determines duration and discount // rate. The currently supported plans are TWELVE_MONTH (1 year), and // THIRTY_SIX_MONTH (3 years). // // Possible values: // "INVALID" // "THIRTY_SIX_MONTH" // "TWELVE_MONTH" Plan string `json:"plan,omitempty"` // Region: [Output Only] URL of the region where this commitment may be used. Region string `json:"region,omitempty"` // Reservations: List of create-on-create reservations for this commitment. Reservations []*Reservation `json:"reservations,omitempty"` // Resources: A list of commitment amounts for particular resources. Note that // VCPU and MEMORY resource commitments must occur together. Resources []*ResourceCommitment `json:"resources,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SplitSourceCommitment: Source commitment to be split into a new commitment. SplitSourceCommitment string `json:"splitSourceCommitment,omitempty"` // StartTimestamp: [Output Only] Commitment start time in RFC3339 text format. StartTimestamp string `json:"startTimestamp,omitempty"` // Status: [Output Only] Status of the commitment with regards to eventual // expiration (each commitment has an end date defined). One of the following // values: NOT_YET_ACTIVE, ACTIVE, EXPIRED. // // Possible values: // "ACTIVE" // "CANCELLED" - Deprecate CANCELED status. Will use separate status to // differentiate cancel by mergeCud or manual cancellation. // "CREATING" // "EXPIRED" // "NOT_YET_ACTIVE" Status string `json:"status,omitempty"` // StatusMessage: [Output Only] An optional, human-readable explanation of the // status. StatusMessage string `json:"statusMessage,omitempty"` // Type: The type of commitment, which affects the discount rate and the // eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will // only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED // specifies a commitment that will only apply to accelerator optimized // machines. // // Possible values: // "ACCELERATOR_OPTIMIZED" // "ACCELERATOR_OPTIMIZED_A3" // "ACCELERATOR_OPTIMIZED_A3_MEGA" // "COMPUTE_OPTIMIZED" // "COMPUTE_OPTIMIZED_C2D" // "COMPUTE_OPTIMIZED_C3" // "COMPUTE_OPTIMIZED_C3D" // "COMPUTE_OPTIMIZED_H3" // "GENERAL_PURPOSE" // "GENERAL_PURPOSE_C4" // "GENERAL_PURPOSE_E2" // "GENERAL_PURPOSE_N2" // "GENERAL_PURPOSE_N2D" // "GENERAL_PURPOSE_N4" // "GENERAL_PURPOSE_T2D" // "GRAPHICS_OPTIMIZED" // "MEMORY_OPTIMIZED" // "MEMORY_OPTIMIZED_M3" // "STORAGE_OPTIMIZED_Z3" // "TYPE_UNSPECIFIED" Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AutoRenew") 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. "AutoRenew") 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:"-"` }
Commitment: Represents a regional Commitment resource. Creating a commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts.
func (Commitment) MarshalJSON ¶
func (s Commitment) MarshalJSON() ([]byte, error)
type CommitmentAggregatedList ¶
type CommitmentAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of CommitmentsScopedList resources. Items map[string]CommitmentsScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#commitmentAggregatedList for aggregated lists of commitments. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *CommitmentAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (CommitmentAggregatedList) MarshalJSON ¶
func (s CommitmentAggregatedList) MarshalJSON() ([]byte, error)
type CommitmentAggregatedListWarning ¶
type CommitmentAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*CommitmentAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
CommitmentAggregatedListWarning: [Output Only] Informational warning message.
func (CommitmentAggregatedListWarning) MarshalJSON ¶
func (s CommitmentAggregatedListWarning) MarshalJSON() ([]byte, error)
type CommitmentAggregatedListWarningData ¶
type CommitmentAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (CommitmentAggregatedListWarningData) MarshalJSON ¶
func (s CommitmentAggregatedListWarningData) MarshalJSON() ([]byte, error)
type CommitmentList ¶
type CommitmentList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Commitment resources. Items []*Commitment `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#commitmentList for // lists of commitments. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *CommitmentListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
CommitmentList: Contains a list of Commitment resources.
func (CommitmentList) MarshalJSON ¶
func (s CommitmentList) MarshalJSON() ([]byte, error)
type CommitmentListWarning ¶
type CommitmentListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*CommitmentListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
CommitmentListWarning: [Output Only] Informational warning message.
func (CommitmentListWarning) MarshalJSON ¶
func (s CommitmentListWarning) MarshalJSON() ([]byte, error)
type CommitmentListWarningData ¶
type CommitmentListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (CommitmentListWarningData) MarshalJSON ¶
func (s CommitmentListWarningData) MarshalJSON() ([]byte, error)
type CommitmentsScopedList ¶
type CommitmentsScopedList struct { // Commitments: [Output Only] A list of commitments contained in this scope. Commitments []*Commitment `json:"commitments,omitempty"` // Warning: [Output Only] Informational warning which replaces the list of // commitments when the list is empty. Warning *CommitmentsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "Commitments") 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. "Commitments") 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:"-"` }
func (CommitmentsScopedList) MarshalJSON ¶
func (s CommitmentsScopedList) MarshalJSON() ([]byte, error)
type CommitmentsScopedListWarning ¶
type CommitmentsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*CommitmentsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
CommitmentsScopedListWarning: [Output Only] Informational warning which replaces the list of commitments when the list is empty.
func (CommitmentsScopedListWarning) MarshalJSON ¶
func (s CommitmentsScopedListWarning) MarshalJSON() ([]byte, error)
type CommitmentsScopedListWarningData ¶
type CommitmentsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (CommitmentsScopedListWarningData) MarshalJSON ¶
func (s CommitmentsScopedListWarningData) MarshalJSON() ([]byte, error)
type Condition ¶
type Condition struct { // Iam: This is deprecated and has no effect. Do not use. // // Possible values: // "APPROVER" - This is deprecated and has no effect. Do not use. // "ATTRIBUTION" - This is deprecated and has no effect. Do not use. // "AUTHORITY" - This is deprecated and has no effect. Do not use. // "CREDENTIALS_TYPE" - This is deprecated and has no effect. Do not use. // "CREDS_ASSERTION" - This is deprecated and has no effect. Do not use. // "JUSTIFICATION_TYPE" - This is deprecated and has no effect. Do not use. // "NO_ATTR" - This is deprecated and has no effect. Do not use. // "SECURITY_REALM" - This is deprecated and has no effect. Do not use. Iam string `json:"iam,omitempty"` // Op: This is deprecated and has no effect. Do not use. // // Possible values: // "DISCHARGED" - This is deprecated and has no effect. Do not use. // "EQUALS" - This is deprecated and has no effect. Do not use. // "IN" - This is deprecated and has no effect. Do not use. // "NOT_EQUALS" - This is deprecated and has no effect. Do not use. // "NOT_IN" - This is deprecated and has no effect. Do not use. // "NO_OP" - This is deprecated and has no effect. Do not use. Op string `json:"op,omitempty"` // Svc: This is deprecated and has no effect. Do not use. Svc string `json:"svc,omitempty"` // Sys: This is deprecated and has no effect. Do not use. // // Possible values: // "IP" - This is deprecated and has no effect. Do not use. // "NAME" - This is deprecated and has no effect. Do not use. // "NO_ATTR" - This is deprecated and has no effect. Do not use. // "REGION" - This is deprecated and has no effect. Do not use. // "SERVICE" - This is deprecated and has no effect. Do not use. Sys string `json:"sys,omitempty"` // Values: This is deprecated and has no effect. Do not use. Values []string `json:"values,omitempty"` // ForceSendFields is a list of field names (e.g. "Iam") 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. "Iam") 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:"-"` }
Condition: This is deprecated and has no effect. Do not use.
func (Condition) MarshalJSON ¶
type ConfidentialInstanceConfig ¶ added in v0.33.0
type ConfidentialInstanceConfig struct { // ConfidentialInstanceType: Defines the type of technology used by the // confidential instance. // // Possible values: // "CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED" - No type specified. Do not use // this value. // "SEV" - AMD Secure Encrypted Virtualization. // "SEV_SNP" - AMD Secure Encrypted Virtualization - Secure Nested Paging. // "TDX" - Intel Trust Domain eXtension. ConfidentialInstanceType string `json:"confidentialInstanceType,omitempty"` // EnableConfidentialCompute: Defines whether the instance should have // confidential compute enabled. EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"` // ForceSendFields is a list of field names (e.g. "ConfidentialInstanceType") // 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. "ConfidentialInstanceType") 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:"-"` }
ConfidentialInstanceConfig: A set of Confidential Instance options.
func (ConfidentialInstanceConfig) MarshalJSON ¶ added in v0.33.0
func (s ConfidentialInstanceConfig) MarshalJSON() ([]byte, error)
type ConnectionDraining ¶
type ConnectionDraining struct { // DrainingTimeoutSec: Configures a duration timeout for existing requests on a // removed backend instance. For supported load balancers and protocols, as // described in Enabling connection draining. DrainingTimeoutSec int64 `json:"drainingTimeoutSec,omitempty"` // ForceSendFields is a list of field names (e.g. "DrainingTimeoutSec") 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. "DrainingTimeoutSec") 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:"-"` }
ConnectionDraining: Message containing connection draining configuration.
func (ConnectionDraining) MarshalJSON ¶
func (s ConnectionDraining) MarshalJSON() ([]byte, error)
type ConsistentHashLoadBalancerSettings ¶ added in v0.11.0
type ConsistentHashLoadBalancerSettings struct { // HttpCookie: Hash is based on HTTP Cookie. This field describes a HTTP cookie // that will be used as the hash key for the consistent hash load balancer. If // the cookie is not present, it will be generated. This field is applicable if // the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend // service is referenced by a URL map that is bound to target gRPC proxy that // has validateForProxyless field set to true. HttpCookie *ConsistentHashLoadBalancerSettingsHttpCookie `json:"httpCookie,omitempty"` // HttpHeaderName: The hash based on the value of the specified header field. // This field is applicable if the sessionAffinity is set to HEADER_FIELD. HttpHeaderName string `json:"httpHeaderName,omitempty"` // MinimumRingSize: The minimum number of virtual nodes to use for the hash // ring. Defaults to 1024. Larger ring sizes result in more granular load // distributions. If the number of hosts in the load balancing pool is larger // than the ring size, each host will be assigned a single virtual node. MinimumRingSize int64 `json:"minimumRingSize,omitempty,string"` // ForceSendFields is a list of field names (e.g. "HttpCookie") 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. "HttpCookie") 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:"-"` }
ConsistentHashLoadBalancerSettings: This message defines settings for a consistent hash style load balancer.
func (ConsistentHashLoadBalancerSettings) MarshalJSON ¶ added in v0.11.0
func (s ConsistentHashLoadBalancerSettings) MarshalJSON() ([]byte, error)
type ConsistentHashLoadBalancerSettingsHttpCookie ¶ added in v0.11.0
type ConsistentHashLoadBalancerSettingsHttpCookie struct { // Name: Name of the cookie. Name string `json:"name,omitempty"` // Path: Path to set for the cookie. Path string `json:"path,omitempty"` // Ttl: Lifetime of the cookie. Ttl *Duration `json:"ttl,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:"-"` }
ConsistentHashLoadBalancerSettingsHttpCookie: The information about the HTTP Cookie on which the hash function is based for load balancing policies that use a consistent hash.
func (ConsistentHashLoadBalancerSettingsHttpCookie) MarshalJSON ¶ added in v0.11.0
func (s ConsistentHashLoadBalancerSettingsHttpCookie) MarshalJSON() ([]byte, error)
type CorsPolicy ¶ added in v0.11.0
type CorsPolicy struct { // AllowCredentials: In response to a preflight request, setting this to true // indicates that the actual request can include user credentials. This field // translates to the Access-Control-Allow-Credentials header. Default is false. AllowCredentials bool `json:"allowCredentials,omitempty"` // AllowHeaders: Specifies the content for the Access-Control-Allow-Headers // header. AllowHeaders []string `json:"allowHeaders,omitempty"` // AllowMethods: Specifies the content for the Access-Control-Allow-Methods // header. AllowMethods []string `json:"allowMethods,omitempty"` // AllowOriginRegexes: Specifies a regular expression that matches allowed // origins. For more information, see regular expression syntax . An origin is // allowed if it matches either an item in allowOrigins or an item in // allowOriginRegexes. Regular expressions can only be used when the // loadBalancingScheme is set to INTERNAL_SELF_MANAGED. AllowOriginRegexes []string `json:"allowOriginRegexes,omitempty"` // AllowOrigins: Specifies the list of origins that is allowed to do CORS // requests. An origin is allowed if it matches either an item in allowOrigins // or an item in allowOriginRegexes. AllowOrigins []string `json:"allowOrigins,omitempty"` // Disabled: If true, disables the CORS policy. The default value is false, // which indicates that the CORS policy is in effect. Disabled bool `json:"disabled,omitempty"` // ExposeHeaders: Specifies the content for the Access-Control-Expose-Headers // header. ExposeHeaders []string `json:"exposeHeaders,omitempty"` // MaxAge: Specifies how long results of a preflight request can be cached in // seconds. This field translates to the Access-Control-Max-Age header. MaxAge int64 `json:"maxAge,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowCredentials") 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. "AllowCredentials") 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:"-"` }
CorsPolicy: The specification for allowing client-side cross-origin requests. For more information about the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard.
func (CorsPolicy) MarshalJSON ¶ added in v0.11.0
func (s CorsPolicy) MarshalJSON() ([]byte, error)
type CustomErrorResponsePolicy ¶ added in v0.187.0
type CustomErrorResponsePolicy struct { // ErrorResponseRules: Specifies rules for returning error responses. In a // given policy, if you specify rules for both a range of error codes as well // as rules for specific error codes then rules with specific error codes have // a higher priority. For example, assume that you configure a rule for 401 // (Un-authorized) code, and another for all 4 series error codes (4XX). If the // backend service returns a 401, then the rule for 401 will be applied. // However if the backend service returns a 403, the rule for 4xx takes effect. ErrorResponseRules []*CustomErrorResponsePolicyCustomErrorResponseRule `json:"errorResponseRules,omitempty"` // ErrorService: The full or partial URL to the BackendBucket resource that // contains the custom error content. Examples are: - // https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket // - compute/v1/projects/project/global/backendBuckets/myBackendBucket - // global/backendBuckets/myBackendBucket If errorService is not specified at // lower levels like pathMatcher, pathRule and routeRule, an errorService // specified at a higher level in the UrlMap will be used. If // UrlMap.defaultCustomErrorResponsePolicy contains one or more // errorResponseRules[], it must specify errorService. If load balancer cannot // reach the backendBucket, a simple Not Found Error will be returned, with the // original response code (or overrideResponseCode if configured). errorService // is not supported for internal or regional HTTP/HTTPS load balancers. ErrorService string `json:"errorService,omitempty"` // ForceSendFields is a list of field names (e.g. "ErrorResponseRules") 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. "ErrorResponseRules") 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:"-"` }
CustomErrorResponsePolicy: Specifies the custom error response policy that must be applied when the backend service or backend bucket responds with an error.
func (CustomErrorResponsePolicy) MarshalJSON ¶ added in v0.187.0
func (s CustomErrorResponsePolicy) MarshalJSON() ([]byte, error)
type CustomErrorResponsePolicyCustomErrorResponseRule ¶ added in v0.187.0
type CustomErrorResponsePolicyCustomErrorResponseRule struct { // MatchResponseCodes: Valid values include: - A number between 400 and 599: // For example 401 or 503, in which case the load balancer applies the policy // if the error code exactly matches this value. - 5xx: Load Balancer will // apply the policy if the backend service responds with any response code in // the range of 500 to 599. - 4xx: Load Balancer will apply the policy if the // backend service responds with any response code in the range of 400 to 499. // Values must be unique within matchResponseCodes and across all // errorResponseRules of CustomErrorResponsePolicy. MatchResponseCodes []string `json:"matchResponseCodes,omitempty"` // OverrideResponseCode: The HTTP status code returned with the response // containing the custom error content. If overrideResponseCode is not // supplied, the same response code returned by the original backend bucket or // backend service is returned to the client. OverrideResponseCode int64 `json:"overrideResponseCode,omitempty"` // Path: The full path to a file within backendBucket . For example: // /errors/defaultError.html path must start with a leading slash. path cannot // have trailing slashes. If the file is not available in backendBucket or the // load balancer cannot reach the BackendBucket, a simple Not Found Error is // returned to the client. The value must be from 1 to 1024 characters Path string `json:"path,omitempty"` // ForceSendFields is a list of field names (e.g. "MatchResponseCodes") 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. "MatchResponseCodes") 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:"-"` }
CustomErrorResponsePolicyCustomErrorResponseRule: Specifies the mapping between the response code that will be returned along with the custom error content and the response code returned by the backend service.
func (CustomErrorResponsePolicyCustomErrorResponseRule) MarshalJSON ¶ added in v0.187.0
func (s CustomErrorResponsePolicyCustomErrorResponseRule) MarshalJSON() ([]byte, error)
type CustomerEncryptionKey ¶
type CustomerEncryptionKey struct { // KmsKeyName: The name of the encryption key that is stored in Google Cloud // KMS. For example: "kmsKeyName": // "projects/kms_project_id/locations/region/keyRings/ // key_region/cryptoKeys/key The fully-qualifed key name may be returned for // resource GET requests. For example: "kmsKeyName": // "projects/kms_project_id/locations/region/keyRings/ // key_region/cryptoKeys/key /cryptoKeyVersions/1 KmsKeyName string `json:"kmsKeyName,omitempty"` // KmsKeyServiceAccount: The service account being used for the encryption // request for the given KMS key. If absent, the Compute Engine default service // account is used. For example: "kmsKeyServiceAccount": // "name@project_id.iam.gserviceaccount.com/ KmsKeyServiceAccount string `json:"kmsKeyServiceAccount,omitempty"` // RawKey: Specifies a 256-bit customer-supplied encryption key, encoded in RFC // 4648 base64 to either encrypt or decrypt this resource. You can provide // either the rawKey or the rsaEncryptedKey. For example: "rawKey": // "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" RawKey string `json:"rawKey,omitempty"` // RsaEncryptedKey: Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit // customer-supplied encryption key to either encrypt or decrypt this resource. // You can provide either the rawKey or the rsaEncryptedKey. For example: // "rsaEncryptedKey": // "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH // z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD // D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" The // key must meet the following requirements before you can provide it to // Compute Engine: 1. The key is wrapped using a RSA public key certificate // provided by Google. 2. After being wrapped, the key must be encoded in RFC // 4648 base64 encoding. Gets the RSA public key certificate provided by Google // at: https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem RsaEncryptedKey string `json:"rsaEncryptedKey,omitempty"` // Sha256: [Output only] The RFC 4648 base64 encoded SHA-256 hash of the // customer-supplied encryption key that protects this resource. Sha256 string `json:"sha256,omitempty"` // ForceSendFields is a list of field names (e.g. "KmsKeyName") 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. "KmsKeyName") 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:"-"` }
func (CustomerEncryptionKey) MarshalJSON ¶
func (s CustomerEncryptionKey) MarshalJSON() ([]byte, error)
type CustomerEncryptionKeyProtectedDisk ¶
type CustomerEncryptionKeyProtectedDisk struct { // DiskEncryptionKey: Decrypts data associated with the disk with a // customer-supplied encryption key. DiskEncryptionKey *CustomerEncryptionKey `json:"diskEncryptionKey,omitempty"` // Source: Specifies a valid partial or full URL to an existing Persistent Disk // resource. This field is only applicable for persistent disks. For example: // "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name Source string `json:"source,omitempty"` // ForceSendFields is a list of field names (e.g. "DiskEncryptionKey") 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. "DiskEncryptionKey") 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:"-"` }
func (CustomerEncryptionKeyProtectedDisk) MarshalJSON ¶
func (s CustomerEncryptionKeyProtectedDisk) MarshalJSON() ([]byte, error)
type DeprecationStatus ¶
type DeprecationStatus struct { // Deleted: An optional RFC3339 timestamp on or after which the state of this // resource is intended to change to DELETED. This is only informational and // the status will not change unless the client explicitly changes it. Deleted string `json:"deleted,omitempty"` // Deprecated -- An optional RFC3339 timestamp on or after which the state of // this resource is intended to change to DEPRECATED. This is only // informational and the status will not change unless the client explicitly // changes it. Deprecated string `json:"deprecated,omitempty"` // Obsolete: An optional RFC3339 timestamp on or after which the state of this // resource is intended to change to OBSOLETE. This is only informational and // the status will not change unless the client explicitly changes it. Obsolete string `json:"obsolete,omitempty"` // Replacement: The URL of the suggested replacement for a deprecated resource. // The suggested replacement resource must be the same kind of resource as the // deprecated resource. Replacement string `json:"replacement,omitempty"` // State: The deprecation state of this resource. This can be ACTIVE, // DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of // life date for an image, can use ACTIVE. Operations which create a new // resource using a DEPRECATED resource will return successfully, but with a // warning indicating the deprecated resource and recommending its replacement. // Operations which use OBSOLETE or DELETED resources will be rejected and // result in an error. // // Possible values: // "ACTIVE" // "DELETED" // "DEPRECATED" // "OBSOLETE" State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "Deleted") 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. "Deleted") 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:"-"` }
DeprecationStatus: Deprecation status for a public resource.
func (DeprecationStatus) MarshalJSON ¶
func (s DeprecationStatus) MarshalJSON() ([]byte, error)
type Disk ¶
type Disk struct { // AccessMode: The access mode of the disk. - READ_WRITE_SINGLE: The default // AccessMode, means the disk can be attached to single instance in RW mode. - // READ_WRITE_MANY: The AccessMode means the disk can be attached to multiple // instances in RW mode. - READ_ONLY_MANY: The AccessMode means the disk can be // attached to multiple instances in RO mode. The AccessMode is only valid for // Hyperdisk disk types. // // Possible values: // "READ_ONLY_MANY" - The AccessMode means the disk can be attached to // multiple instances in RO mode. // "READ_WRITE_MANY" - The AccessMode means the disk can be attached to // multiple instances in RW mode. // "READ_WRITE_SINGLE" - The default AccessMode, means the disk can be // attached to single instance in RW mode. AccessMode string `json:"accessMode,omitempty"` // Architecture: The architecture of the disk. Valid values are ARM64 or // X86_64. // // Possible values: // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture is not // set. // "ARM64" - Machines with architecture ARM64 // "X86_64" - Machines with architecture X86_64 Architecture string `json:"architecture,omitempty"` // AsyncPrimaryDisk: Disk asynchronously replicated into this disk. AsyncPrimaryDisk *DiskAsyncReplication `json:"asyncPrimaryDisk,omitempty"` // AsyncSecondaryDisks: [Output Only] A list of disks this disk is // asynchronously replicated to. AsyncSecondaryDisks map[string]DiskAsyncReplicationList `json:"asyncSecondaryDisks,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // DiskEncryptionKey: Encrypts the disk using a customer-supplied encryption // key or a customer-managed encryption key. Encryption keys do not protect // access to metadata of the disk. After you encrypt a disk with a // customer-supplied key, you must provide the same key if you use the disk // later. For example, to create a disk snapshot, to create a disk image, to // create a machine image, or to attach the disk to a virtual machine. After // you encrypt a disk with a customer-managed key, the // diskEncryptionKey.kmsKeyName is set to a key *version* name once the disk is // created. The disk is encrypted with this version of the key. In the // response, diskEncryptionKey.kmsKeyName appears in the following format: // "diskEncryptionKey.kmsKeyName": // "projects/kms_project_id/locations/region/keyRings/ // key_region/cryptoKeys/key /cryptoKeysVersions/version If you do not provide // an encryption key when creating the disk, then the disk is encrypted using // an automatically generated key and you don't need to provide a key to use // the disk later. DiskEncryptionKey *CustomerEncryptionKey `json:"diskEncryptionKey,omitempty"` // EnableConfidentialCompute: Whether this disk is using confidential compute // mode. EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"` // GuestOsFeatures: A list of features to enable on the guest operating system. // Applicable only for bootable images. Read Enabling guest operating system // features to see a list of available options. GuestOsFeatures []*GuestOsFeature `json:"guestOsFeatures,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#disk for disks. Kind string `json:"kind,omitempty"` // LabelFingerprint: A fingerprint for the labels being applied to this disk, // which is essentially a hash of the labels set used for optimistic locking. // The fingerprint is initially generated by Compute Engine and changes after // every request to modify or update labels. You must always provide an // up-to-date fingerprint hash in order to update or change labels, otherwise // the request will fail with error 412 conditionNotMet. To see the latest // fingerprint, make a get() request to retrieve a disk. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels to apply to this disk. These can be later modified by the // setLabels method. Labels map[string]string `json:"labels,omitempty"` // LastAttachTimestamp: [Output Only] Last attach timestamp in RFC3339 text // format. LastAttachTimestamp string `json:"lastAttachTimestamp,omitempty"` // LastDetachTimestamp: [Output Only] Last detach timestamp in RFC3339 text // format. LastDetachTimestamp string `json:"lastDetachTimestamp,omitempty"` // LicenseCodes: Integer license codes indicating which licenses are attached // to this disk. LicenseCodes googleapi.Int64s `json:"licenseCodes,omitempty"` // Licenses: A list of publicly visible licenses. Reserved for Google's use. Licenses []string `json:"licenses,omitempty"` // LocationHint: An opaque location hint used to place the disk close to other // resources. This field is for use by internal tools that use the public API. LocationHint string `json:"locationHint,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Options: Internal use only. Options string `json:"options,omitempty"` // Params: Input only. [Input Only] Additional params passed with the request, // but not persisted as part of resource payload. Params *DiskParams `json:"params,omitempty"` // PhysicalBlockSizeBytes: Physical block size of the persistent disk, in // bytes. If not present in a request, a default value is used. The currently // supported size is 4096, other sizes may be added in the future. If an // unsupported value is requested, the error message will list the supported // values for the caller's project. PhysicalBlockSizeBytes int64 `json:"physicalBlockSizeBytes,omitempty,string"` // ProvisionedIops: Indicates how many IOPS to provision for the disk. This // sets the number of I/O operations per second that the disk can handle. // Values must be between 10,000 and 120,000. For more details, see the Extreme // persistent disk documentation. ProvisionedIops int64 `json:"provisionedIops,omitempty,string"` // ProvisionedThroughput: Indicates how much throughput to provision for the // disk. This sets the number of throughput mb per second that the disk can // handle. Values must be greater than or equal to 1. ProvisionedThroughput int64 `json:"provisionedThroughput,omitempty,string"` // Region: [Output Only] URL of the region where the disk resides. Only // applicable for regional resources. You must specify this field as part of // the HTTP request URL. It is not settable as a field in the request body. Region string `json:"region,omitempty"` // ReplicaZones: URLs of the zones where the disk should be replicated to. Only // applicable for regional resources. ReplicaZones []string `json:"replicaZones,omitempty"` // ResourcePolicies: Resource policies applied to this disk for automatic // snapshot creations. ResourcePolicies []string `json:"resourcePolicies,omitempty"` // ResourceStatus: [Output Only] Status information for the disk resource. ResourceStatus *DiskResourceStatus `json:"resourceStatus,omitempty"` // SatisfiesPzi: Output only. Reserved for future use. SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: [Output Only] Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SelfLink: [Output Only] Server-defined fully-qualified URL for this // resource. SelfLink string `json:"selfLink,omitempty"` // SizeGb: Size, in GB, of the persistent disk. You can specify this field when // creating a persistent disk using the sourceImage, sourceSnapshot, or // sourceDisk parameter, or specify it alone to create an empty persistent // disk. If you specify this field along with a source, the value of sizeGb // must not be less than the size of the source. Acceptable values are greater // than 0. SizeGb int64 `json:"sizeGb,omitempty,string"` // SourceConsistencyGroupPolicy: [Output Only] URL of the // DiskConsistencyGroupPolicy for a secondary disk that was created using a // consistency group. SourceConsistencyGroupPolicy string `json:"sourceConsistencyGroupPolicy,omitempty"` // SourceConsistencyGroupPolicyId: [Output Only] ID of the // DiskConsistencyGroupPolicy for a secondary disk that was created using a // consistency group. SourceConsistencyGroupPolicyId string `json:"sourceConsistencyGroupPolicyId,omitempty"` // SourceDisk: The source disk used to create this disk. You can provide this // as a partial or full URL to the resource. For example, the following are // valid values: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /disks/disk - // https://www.googleapis.com/compute/v1/projects/project/regions/region // /disks/disk - projects/project/zones/zone/disks/disk - // projects/project/regions/region/disks/disk - zones/zone/disks/disk - // regions/region/disks/disk SourceDisk string `json:"sourceDisk,omitempty"` // SourceDiskId: [Output Only] The unique ID of the disk used to create this // disk. This value identifies the exact disk that was used to create this // persistent disk. For example, if you created the persistent disk from a disk // that was later deleted and recreated under the same name, the source disk ID // would identify the exact version of the disk that was used. SourceDiskId string `json:"sourceDiskId,omitempty"` // SourceImage: The source image used to create this disk. If the source image // is deleted, this field will not be set. To create a disk with one of the // public operating system images, specify the image by its family name. For // example, specify family/debian-9 to use the latest Debian 9 image: // projects/debian-cloud/global/images/family/debian-9 Alternatively, use a // specific version of a public operating system image: // projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a // disk with a custom image that you created, specify the image name in the // following format: global/images/my-custom-image You can also specify a // custom image by its image family, which returns the latest version of the // image in that family. Replace the image name with family/family-name: // global/images/family/my-image-family SourceImage string `json:"sourceImage,omitempty"` // SourceImageEncryptionKey: The customer-supplied encryption key of the source // image. Required if the source image is protected by a customer-supplied // encryption key. SourceImageEncryptionKey *CustomerEncryptionKey `json:"sourceImageEncryptionKey,omitempty"` // SourceImageId: [Output Only] The ID value of the image used to create this // disk. This value identifies the exact image that was used to create this // persistent disk. For example, if you created the persistent disk from an // image that was later deleted and recreated under the same name, the source // image ID would identify the exact version of the image that was used. SourceImageId string `json:"sourceImageId,omitempty"` // SourceInstantSnapshot: The source instant snapshot used to create this disk. // You can provide this as a partial or full URL to the resource. For example, // the following are valid values: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /instantSnapshots/instantSnapshot - // projects/project/zones/zone/instantSnapshots/instantSnapshot - // zones/zone/instantSnapshots/instantSnapshot SourceInstantSnapshot string `json:"sourceInstantSnapshot,omitempty"` // SourceInstantSnapshotId: [Output Only] The unique ID of the instant snapshot // used to create this disk. This value identifies the exact instant snapshot // that was used to create this persistent disk. For example, if you created // the persistent disk from an instant snapshot that was later deleted and // recreated under the same name, the source instant snapshot ID would identify // the exact version of the instant snapshot that was used. SourceInstantSnapshotId string `json:"sourceInstantSnapshotId,omitempty"` // SourceSnapshot: The source snapshot used to create this disk. You can // provide this as a partial or full URL to the resource. For example, the // following are valid values: - // https://www.googleapis.com/compute/v1/projects/project // /global/snapshots/snapshot - projects/project/global/snapshots/snapshot - // global/snapshots/snapshot SourceSnapshot string `json:"sourceSnapshot,omitempty"` // SourceSnapshotEncryptionKey: The customer-supplied encryption key of the // source snapshot. Required if the source snapshot is protected by a // customer-supplied encryption key. SourceSnapshotEncryptionKey *CustomerEncryptionKey `json:"sourceSnapshotEncryptionKey,omitempty"` // SourceSnapshotId: [Output Only] The unique ID of the snapshot used to create // this disk. This value identifies the exact snapshot that was used to create // this persistent disk. For example, if you created the persistent disk from a // snapshot that was later deleted and recreated under the same name, the // source snapshot ID would identify the exact version of the snapshot that was // used. SourceSnapshotId string `json:"sourceSnapshotId,omitempty"` // SourceStorageObject: The full Google Cloud Storage URI where the disk image // is stored. This file must be a gzip-compressed tarball whose name ends in // .tar.gz or virtual machine disk whose name ends in vmdk. Valid URIs may // start with gs:// or https://storage.googleapis.com/. This flag is not // optimized for creating multiple disks from a source storage object. To // create many disks from a source storage object, use gcloud compute images // import instead. SourceStorageObject string `json:"sourceStorageObject,omitempty"` // Status: [Output Only] The status of disk creation. - CREATING: Disk is // provisioning. - RESTORING: Source data is being copied into the disk. - // FAILED: Disk creation failed. - READY: Disk is ready for use. - DELETING: // Disk is deleting. // // Possible values: // "CREATING" - Disk is provisioning // "DELETING" - Disk is deleting. // "FAILED" - Disk creation failed. // "READY" - Disk is ready for use. // "RESTORING" - Source data is being copied into the disk. // "UNAVAILABLE" - Disk is currently unavailable and cannot be accessed, // attached or detached. Status string `json:"status,omitempty"` // StoragePool: The storage pool in which the new disk is created. You can // provide this as a partial or full URL to the resource. For example, the // following are valid values: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /storagePools/storagePool - // projects/project/zones/zone/storagePools/storagePool - // zones/zone/storagePools/storagePool StoragePool string `json:"storagePool,omitempty"` // Type: URL of the disk type resource describing which disk type to use to // create the disk. Provide this when creating the disk. For example: // projects/project /zones/zone/diskTypes/pd-ssd . See Persistent disk types. Type string `json:"type,omitempty"` // Users: [Output Only] Links to the users of the disk (attached instances) in // form: projects/project/zones/zone/instances/instance Users []string `json:"users,omitempty"` // Zone: [Output Only] URL of the zone where the disk resides. You must specify // this field as part of the HTTP request URL. It is not settable as a field in // the request body. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccessMode") 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. "AccessMode") 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:"-"` }
Disk: Represents a Persistent Disk resource. Google Compute Engine has two Disk resources: * Zonal (/compute/docs/reference/rest/v1/disks) * Regional (/compute/docs/reference/rest/v1/regionDisks) Persistent disks are required for running your VM instances. Create both boot and non-boot (data) persistent disks. For more information, read Persistent Disks. For more storage options, read Storage options. The disks resource represents a zonal persistent disk. For more information, read Zonal persistent disks. The regionDisks resource represents a regional persistent disk. For more information, read Regional resources.
func (Disk) MarshalJSON ¶
type DiskAggregatedList ¶
type DiskAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of DisksScopedList resources. Items map[string]DisksScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#diskAggregatedList for // aggregated lists of persistent disks. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *DiskAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (DiskAggregatedList) MarshalJSON ¶
func (s DiskAggregatedList) MarshalJSON() ([]byte, error)
type DiskAggregatedListWarning ¶
type DiskAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*DiskAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
DiskAggregatedListWarning: [Output Only] Informational warning message.
func (DiskAggregatedListWarning) MarshalJSON ¶
func (s DiskAggregatedListWarning) MarshalJSON() ([]byte, error)
type DiskAggregatedListWarningData ¶
type DiskAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (DiskAggregatedListWarningData) MarshalJSON ¶
func (s DiskAggregatedListWarningData) MarshalJSON() ([]byte, error)
type DiskAsyncReplication ¶ added in v0.121.0
type DiskAsyncReplication struct { // ConsistencyGroupPolicy: [Output Only] URL of the DiskConsistencyGroupPolicy // if replication was started on the disk as a member of a group. ConsistencyGroupPolicy string `json:"consistencyGroupPolicy,omitempty"` // ConsistencyGroupPolicyId: [Output Only] ID of the DiskConsistencyGroupPolicy // if replication was started on the disk as a member of a group. ConsistencyGroupPolicyId string `json:"consistencyGroupPolicyId,omitempty"` // Disk: The other disk asynchronously replicated to or from the current disk. // You can provide this as a partial or full URL to the resource. For example, // the following are valid values: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk Disk string `json:"disk,omitempty"` // DiskId: [Output Only] The unique ID of the other disk asynchronously // replicated to or from the current disk. This value identifies the exact disk // that was used to create this replication. For example, if you started // replicating the persistent disk from a disk that was later deleted and // recreated under the same name, the disk ID would identify the exact version // of the disk that was used. DiskId string `json:"diskId,omitempty"` // ForceSendFields is a list of field names (e.g. "ConsistencyGroupPolicy") 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. "ConsistencyGroupPolicy") 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:"-"` }
func (DiskAsyncReplication) MarshalJSON ¶ added in v0.121.0
func (s DiskAsyncReplication) MarshalJSON() ([]byte, error)
type DiskAsyncReplicationList ¶ added in v0.121.0
type DiskAsyncReplicationList struct { AsyncReplicationDisk *DiskAsyncReplication `json:"asyncReplicationDisk,omitempty"` // ForceSendFields is a list of field names (e.g. "AsyncReplicationDisk") 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. "AsyncReplicationDisk") 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:"-"` }
func (DiskAsyncReplicationList) MarshalJSON ¶ added in v0.121.0
func (s DiskAsyncReplicationList) MarshalJSON() ([]byte, error)
type DiskInstantiationConfig ¶
type DiskInstantiationConfig struct { // AutoDelete: Specifies whether the disk will be auto-deleted when the // instance is deleted (but not when the disk is detached from the instance). AutoDelete bool `json:"autoDelete,omitempty"` // CustomImage: The custom source image to be used to restore this disk when // instantiating this instance template. CustomImage string `json:"customImage,omitempty"` // DeviceName: Specifies the device name of the disk to which the // configurations apply to. DeviceName string `json:"deviceName,omitempty"` // InstantiateFrom: Specifies whether to include the disk and what image to // use. Possible values are: - source-image: to use the same image that was // used to create the source instance's corresponding disk. Applicable to the // boot disk and additional read-write disks. - source-image-family: to use the // same image family that was used to create the source instance's // corresponding disk. Applicable to the boot disk and additional read-write // disks. - custom-image: to use a user-provided image url for disk creation. // Applicable to the boot disk and additional read-write disks. - // attach-read-only: to attach a read-only disk. Applicable to read-only disks. // - do-not-include: to exclude a disk from the template. Applicable to // additional read-write disks, local SSDs, and read-only disks. // // Possible values: // "ATTACH_READ_ONLY" - Attach the existing disk in read-only mode. The // request will fail if the disk was attached in read-write mode on the source // instance. Applicable to: read-only disks. // "BLANK" - Create a blank disk. The disk will be created unformatted. // Applicable to: additional read-write disks, local SSDs. // "CUSTOM_IMAGE" - Use the custom image specified in the custom_image field. // Applicable to: boot disk, additional read-write disks. // "DEFAULT" - Use the default instantiation option for the corresponding // type of disk. For boot disk and any other R/W disks, new custom images will // be created from each disk. For read-only disks, they will be attached in // read-only mode. Local SSD disks will be created as blank volumes. // "DO_NOT_INCLUDE" - Do not include the disk in the instance template. // Applicable to: additional read-write disks, local SSDs, read-only disks. // "SOURCE_IMAGE" - Use the same source image used for creation of the source // instance's corresponding disk. The request will fail if the source VM's disk // was created from a snapshot. Applicable to: boot disk, additional read-write // disks. // "SOURCE_IMAGE_FAMILY" - Use the same source image family used for creation // of the source instance's corresponding disk. The request will fail if the // source image of the source disk does not belong to any image family. // Applicable to: boot disk, additional read-write disks. InstantiateFrom string `json:"instantiateFrom,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoDelete") 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. "AutoDelete") 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:"-"` }
DiskInstantiationConfig: A specification of the desired way to instantiate a disk in the instance template when its created from a source instance.
func (DiskInstantiationConfig) MarshalJSON ¶
func (s DiskInstantiationConfig) MarshalJSON() ([]byte, error)
type DiskList ¶
type DiskList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Disk resources. Items []*Disk `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#diskList for lists of // disks. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *DiskListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
DiskList: A list of Disk resources.
func (DiskList) MarshalJSON ¶
type DiskListWarning ¶
type DiskListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*DiskListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
DiskListWarning: [Output Only] Informational warning message.
func (DiskListWarning) MarshalJSON ¶
func (s DiskListWarning) MarshalJSON() ([]byte, error)
type DiskListWarningData ¶
type DiskListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (DiskListWarningData) MarshalJSON ¶
func (s DiskListWarningData) MarshalJSON() ([]byte, error)
type DiskMoveRequest ¶
type DiskMoveRequest struct { // DestinationZone: The URL of the destination zone to move the disk. This can // be a full or partial URL. For example, the following are all valid URLs to a // zone: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - // projects/project/zones/zone - zones/zone DestinationZone string `json:"destinationZone,omitempty"` // TargetDisk: The URL of the target disk to move. This can be a full or // partial URL. For example, the following are all valid URLs to a disk: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk TargetDisk string `json:"targetDisk,omitempty"` // ForceSendFields is a list of field names (e.g. "DestinationZone") 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. "DestinationZone") 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:"-"` }
func (DiskMoveRequest) MarshalJSON ¶
func (s DiskMoveRequest) MarshalJSON() ([]byte, error)
type DiskParams ¶ added in v0.92.0
type DiskParams struct { // ResourceManagerTags: Resource manager tags to be bound to the disk. Tag keys // and values have the same definition as resource manager tags. Keys must be // in the format `tagKeys/{tag_key_id}`, and values are in the format // `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. ResourceManagerTags map[string]string `json:"resourceManagerTags,omitempty"` // ForceSendFields is a list of field names (e.g. "ResourceManagerTags") 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. "ResourceManagerTags") 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:"-"` }
DiskParams: Additional disk params.
func (DiskParams) MarshalJSON ¶ added in v0.92.0
func (s DiskParams) MarshalJSON() ([]byte, error)
type DiskResourceStatus ¶ added in v0.121.0
type DiskResourceStatus struct { AsyncPrimaryDisk *DiskResourceStatusAsyncReplicationStatus `json:"asyncPrimaryDisk,omitempty"` // AsyncSecondaryDisks: Key: disk, value: AsyncReplicationStatus message AsyncSecondaryDisks map[string]DiskResourceStatusAsyncReplicationStatus `json:"asyncSecondaryDisks,omitempty"` // ForceSendFields is a list of field names (e.g. "AsyncPrimaryDisk") 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. "AsyncPrimaryDisk") 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:"-"` }
func (DiskResourceStatus) MarshalJSON ¶ added in v0.121.0
func (s DiskResourceStatus) MarshalJSON() ([]byte, error)
type DiskResourceStatusAsyncReplicationStatus ¶ added in v0.121.0
type DiskResourceStatusAsyncReplicationStatus struct { // Possible values: // "ACTIVE" - Replication is active. // "CREATED" - Secondary disk is created and is waiting for replication to // start. // "STARTING" - Replication is starting. // "STATE_UNSPECIFIED" // "STOPPED" - Replication is stopped. // "STOPPING" - Replication is stopping. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "State") 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. "State") 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:"-"` }
func (DiskResourceStatusAsyncReplicationStatus) MarshalJSON ¶ added in v0.121.0
func (s DiskResourceStatusAsyncReplicationStatus) MarshalJSON() ([]byte, error)
type DiskType ¶
type DiskType struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // DefaultDiskSizeGb: [Output Only] Server-defined default disk size in GB. DefaultDiskSizeGb int64 `json:"defaultDiskSizeGb,omitempty,string"` // Deprecated -- [Output Only] The deprecation status associated with this disk // type. Deprecated *DeprecationStatus `json:"deprecated,omitempty"` // Description: [Output Only] An optional description of this resource. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#diskType for disk // types. Kind string `json:"kind,omitempty"` // Name: [Output Only] Name of the resource. Name string `json:"name,omitempty"` // Region: [Output Only] URL of the region where the disk type resides. Only // applicable for regional resources. You must specify this field as part of // the HTTP request URL. It is not settable as a field in the request body. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ValidDiskSize: [Output Only] An optional textual description of the valid // disk size, such as "10GB-10TB". ValidDiskSize string `json:"validDiskSize,omitempty"` // Zone: [Output Only] URL of the zone where the disk type resides. You must // specify this field as part of the HTTP request URL. It is not settable as a // field in the request body. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
DiskType: Represents a Disk Type resource. Google Compute Engine has two Disk Type resources: * Regional (/compute/docs/reference/rest/v1/regionDiskTypes) * Zonal (/compute/docs/reference/rest/v1/diskTypes) You can choose from a variety of disk types based on your needs. For more information, read Storage options. The diskTypes resource represents disk types for a zonal persistent disk. For more information, read Zonal persistent disks. The regionDiskTypes resource represents disk types for a regional persistent disk. For more information, read Regional persistent disks.
func (DiskType) MarshalJSON ¶
type DiskTypeAggregatedList ¶
type DiskTypeAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of DiskTypesScopedList resources. Items map[string]DiskTypesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#diskTypeAggregatedList. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *DiskTypeAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (DiskTypeAggregatedList) MarshalJSON ¶
func (s DiskTypeAggregatedList) MarshalJSON() ([]byte, error)
type DiskTypeAggregatedListWarning ¶
type DiskTypeAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*DiskTypeAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
DiskTypeAggregatedListWarning: [Output Only] Informational warning message.
func (DiskTypeAggregatedListWarning) MarshalJSON ¶
func (s DiskTypeAggregatedListWarning) MarshalJSON() ([]byte, error)
type DiskTypeAggregatedListWarningData ¶
type DiskTypeAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (DiskTypeAggregatedListWarningData) MarshalJSON ¶
func (s DiskTypeAggregatedListWarningData) MarshalJSON() ([]byte, error)
type DiskTypeList ¶
type DiskTypeList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of DiskType resources. Items []*DiskType `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#diskTypeList for disk // types. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *DiskTypeListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
DiskTypeList: Contains a list of disk types.
func (DiskTypeList) MarshalJSON ¶
func (s DiskTypeList) MarshalJSON() ([]byte, error)
type DiskTypeListWarning ¶
type DiskTypeListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*DiskTypeListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
DiskTypeListWarning: [Output Only] Informational warning message.
func (DiskTypeListWarning) MarshalJSON ¶
func (s DiskTypeListWarning) MarshalJSON() ([]byte, error)
type DiskTypeListWarningData ¶
type DiskTypeListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (DiskTypeListWarningData) MarshalJSON ¶
func (s DiskTypeListWarningData) MarshalJSON() ([]byte, error)
type DiskTypesAggregatedListCall ¶
type DiskTypesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*DiskTypesAggregatedListCall) Context ¶
func (c *DiskTypesAggregatedListCall) Context(ctx context.Context) *DiskTypesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*DiskTypesAggregatedListCall) Do ¶
func (c *DiskTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*DiskTypeAggregatedList, error)
Do executes the "compute.diskTypes.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *DiskTypeAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DiskTypesAggregatedListCall) Fields ¶
func (c *DiskTypesAggregatedListCall) Fields(s ...googleapi.Field) *DiskTypesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DiskTypesAggregatedListCall) Filter ¶
func (c *DiskTypesAggregatedListCall) Filter(filter string) *DiskTypesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*DiskTypesAggregatedListCall) Header ¶
func (c *DiskTypesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DiskTypesAggregatedListCall) IfNoneMatch ¶
func (c *DiskTypesAggregatedListCall) IfNoneMatch(entityTag string) *DiskTypesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*DiskTypesAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *DiskTypesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *DiskTypesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*DiskTypesAggregatedListCall) MaxResults ¶
func (c *DiskTypesAggregatedListCall) MaxResults(maxResults int64) *DiskTypesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*DiskTypesAggregatedListCall) OrderBy ¶
func (c *DiskTypesAggregatedListCall) OrderBy(orderBy string) *DiskTypesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*DiskTypesAggregatedListCall) PageToken ¶
func (c *DiskTypesAggregatedListCall) PageToken(pageToken string) *DiskTypesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*DiskTypesAggregatedListCall) Pages ¶
func (c *DiskTypesAggregatedListCall) Pages(ctx context.Context, f func(*DiskTypeAggregatedList) 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 (*DiskTypesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *DiskTypesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DiskTypesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*DiskTypesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *DiskTypesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *DiskTypesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type DiskTypesGetCall ¶
type DiskTypesGetCall struct {
// contains filtered or unexported fields
}
func (*DiskTypesGetCall) Context ¶
func (c *DiskTypesGetCall) Context(ctx context.Context) *DiskTypesGetCall
Context sets the context to be used in this call's Do method.
func (*DiskTypesGetCall) Do ¶
func (c *DiskTypesGetCall) Do(opts ...googleapi.CallOption) (*DiskType, error)
Do executes the "compute.diskTypes.get" call. Any non-2xx status code is an error. Response headers are in either *DiskType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DiskTypesGetCall) Fields ¶
func (c *DiskTypesGetCall) Fields(s ...googleapi.Field) *DiskTypesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DiskTypesGetCall) Header ¶
func (c *DiskTypesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DiskTypesGetCall) IfNoneMatch ¶
func (c *DiskTypesGetCall) IfNoneMatch(entityTag string) *DiskTypesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type DiskTypesListCall ¶
type DiskTypesListCall struct {
// contains filtered or unexported fields
}
func (*DiskTypesListCall) Context ¶
func (c *DiskTypesListCall) Context(ctx context.Context) *DiskTypesListCall
Context sets the context to be used in this call's Do method.
func (*DiskTypesListCall) Do ¶
func (c *DiskTypesListCall) Do(opts ...googleapi.CallOption) (*DiskTypeList, error)
Do executes the "compute.diskTypes.list" call. Any non-2xx status code is an error. Response headers are in either *DiskTypeList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DiskTypesListCall) Fields ¶
func (c *DiskTypesListCall) Fields(s ...googleapi.Field) *DiskTypesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DiskTypesListCall) Filter ¶
func (c *DiskTypesListCall) Filter(filter string) *DiskTypesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*DiskTypesListCall) Header ¶
func (c *DiskTypesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DiskTypesListCall) IfNoneMatch ¶
func (c *DiskTypesListCall) IfNoneMatch(entityTag string) *DiskTypesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*DiskTypesListCall) MaxResults ¶
func (c *DiskTypesListCall) MaxResults(maxResults int64) *DiskTypesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*DiskTypesListCall) OrderBy ¶
func (c *DiskTypesListCall) OrderBy(orderBy string) *DiskTypesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*DiskTypesListCall) PageToken ¶
func (c *DiskTypesListCall) PageToken(pageToken string) *DiskTypesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*DiskTypesListCall) Pages ¶
func (c *DiskTypesListCall) Pages(ctx context.Context, f func(*DiskTypeList) 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 (*DiskTypesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *DiskTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DiskTypesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type DiskTypesScopedList ¶
type DiskTypesScopedList struct { // DiskTypes: [Output Only] A list of disk types contained in this scope. DiskTypes []*DiskType `json:"diskTypes,omitempty"` // Warning: [Output Only] Informational warning which replaces the list of disk // types when the list is empty. Warning *DiskTypesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "DiskTypes") 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. "DiskTypes") 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:"-"` }
func (DiskTypesScopedList) MarshalJSON ¶
func (s DiskTypesScopedList) MarshalJSON() ([]byte, error)
type DiskTypesScopedListWarning ¶
type DiskTypesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*DiskTypesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
DiskTypesScopedListWarning: [Output Only] Informational warning which replaces the list of disk types when the list is empty.
func (DiskTypesScopedListWarning) MarshalJSON ¶
func (s DiskTypesScopedListWarning) MarshalJSON() ([]byte, error)
type DiskTypesScopedListWarningData ¶
type DiskTypesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (DiskTypesScopedListWarningData) MarshalJSON ¶
func (s DiskTypesScopedListWarningData) MarshalJSON() ([]byte, error)
type DiskTypesService ¶
type DiskTypesService struct {
// contains filtered or unexported fields
}
func NewDiskTypesService ¶
func NewDiskTypesService(s *Service) *DiskTypesService
func (*DiskTypesService) AggregatedList ¶
func (r *DiskTypesService) AggregatedList(project string) *DiskTypesAggregatedListCall
AggregatedList: Retrieves an aggregated list of disk types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*DiskTypesService) Get ¶
func (r *DiskTypesService) Get(project string, zone string, diskType string) *DiskTypesGetCall
Get: Returns the specified disk type.
- diskType: Name of the disk type to return. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*DiskTypesService) List ¶
func (r *DiskTypesService) List(project string, zone string) *DiskTypesListCall
List: Retrieves a list of disk types available to the specified project.
- project: Project ID for this request. - zone: The name of the zone for this request.
type DisksAddResourcePoliciesCall ¶ added in v0.7.0
type DisksAddResourcePoliciesCall struct {
// contains filtered or unexported fields
}
func (*DisksAddResourcePoliciesCall) Context ¶ added in v0.7.0
func (c *DisksAddResourcePoliciesCall) Context(ctx context.Context) *DisksAddResourcePoliciesCall
Context sets the context to be used in this call's Do method.
func (*DisksAddResourcePoliciesCall) Do ¶ added in v0.7.0
func (c *DisksAddResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.addResourcePolicies" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksAddResourcePoliciesCall) Fields ¶ added in v0.7.0
func (c *DisksAddResourcePoliciesCall) Fields(s ...googleapi.Field) *DisksAddResourcePoliciesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksAddResourcePoliciesCall) Header ¶ added in v0.7.0
func (c *DisksAddResourcePoliciesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksAddResourcePoliciesCall) RequestId ¶ added in v0.7.0
func (c *DisksAddResourcePoliciesCall) RequestId(requestId string) *DisksAddResourcePoliciesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type DisksAddResourcePoliciesRequest ¶ added in v0.7.0
type DisksAddResourcePoliciesRequest struct { // ResourcePolicies: Full or relative path to the resource policy to be added // to this disk. You can only specify one resource policy. ResourcePolicies []string `json:"resourcePolicies,omitempty"` // ForceSendFields is a list of field names (e.g. "ResourcePolicies") 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. "ResourcePolicies") 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:"-"` }
func (DisksAddResourcePoliciesRequest) MarshalJSON ¶ added in v0.7.0
func (s DisksAddResourcePoliciesRequest) MarshalJSON() ([]byte, error)
type DisksAggregatedListCall ¶
type DisksAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*DisksAggregatedListCall) Context ¶
func (c *DisksAggregatedListCall) Context(ctx context.Context) *DisksAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*DisksAggregatedListCall) Do ¶
func (c *DisksAggregatedListCall) Do(opts ...googleapi.CallOption) (*DiskAggregatedList, error)
Do executes the "compute.disks.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *DiskAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksAggregatedListCall) Fields ¶
func (c *DisksAggregatedListCall) Fields(s ...googleapi.Field) *DisksAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksAggregatedListCall) Filter ¶
func (c *DisksAggregatedListCall) Filter(filter string) *DisksAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*DisksAggregatedListCall) Header ¶
func (c *DisksAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksAggregatedListCall) IfNoneMatch ¶
func (c *DisksAggregatedListCall) IfNoneMatch(entityTag string) *DisksAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*DisksAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *DisksAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *DisksAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*DisksAggregatedListCall) MaxResults ¶
func (c *DisksAggregatedListCall) MaxResults(maxResults int64) *DisksAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*DisksAggregatedListCall) OrderBy ¶
func (c *DisksAggregatedListCall) OrderBy(orderBy string) *DisksAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*DisksAggregatedListCall) PageToken ¶
func (c *DisksAggregatedListCall) PageToken(pageToken string) *DisksAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*DisksAggregatedListCall) Pages ¶
func (c *DisksAggregatedListCall) Pages(ctx context.Context, f func(*DiskAggregatedList) 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 (*DisksAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *DisksAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DisksAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*DisksAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *DisksAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *DisksAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type DisksBulkInsertCall ¶ added in v0.127.0
type DisksBulkInsertCall struct {
// contains filtered or unexported fields
}
func (*DisksBulkInsertCall) Context ¶ added in v0.127.0
func (c *DisksBulkInsertCall) Context(ctx context.Context) *DisksBulkInsertCall
Context sets the context to be used in this call's Do method.
func (*DisksBulkInsertCall) Do ¶ added in v0.127.0
func (c *DisksBulkInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.bulkInsert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksBulkInsertCall) Fields ¶ added in v0.127.0
func (c *DisksBulkInsertCall) Fields(s ...googleapi.Field) *DisksBulkInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksBulkInsertCall) Header ¶ added in v0.127.0
func (c *DisksBulkInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksBulkInsertCall) RequestId ¶ added in v0.127.0
func (c *DisksBulkInsertCall) RequestId(requestId string) *DisksBulkInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type DisksCreateSnapshotCall ¶
type DisksCreateSnapshotCall struct {
// contains filtered or unexported fields
}
func (*DisksCreateSnapshotCall) Context ¶
func (c *DisksCreateSnapshotCall) Context(ctx context.Context) *DisksCreateSnapshotCall
Context sets the context to be used in this call's Do method.
func (*DisksCreateSnapshotCall) Do ¶
func (c *DisksCreateSnapshotCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.createSnapshot" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksCreateSnapshotCall) Fields ¶
func (c *DisksCreateSnapshotCall) Fields(s ...googleapi.Field) *DisksCreateSnapshotCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksCreateSnapshotCall) GuestFlush ¶
func (c *DisksCreateSnapshotCall) GuestFlush(guestFlush bool) *DisksCreateSnapshotCall
GuestFlush sets the optional parameter "guestFlush": [Input Only] Whether to attempt an application consistent snapshot by informing the OS to prepare for the snapshot process.
func (*DisksCreateSnapshotCall) Header ¶
func (c *DisksCreateSnapshotCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksCreateSnapshotCall) RequestId ¶
func (c *DisksCreateSnapshotCall) RequestId(requestId string) *DisksCreateSnapshotCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type DisksDeleteCall ¶
type DisksDeleteCall struct {
// contains filtered or unexported fields
}
func (*DisksDeleteCall) Context ¶
func (c *DisksDeleteCall) Context(ctx context.Context) *DisksDeleteCall
Context sets the context to be used in this call's Do method.
func (*DisksDeleteCall) Do ¶
func (c *DisksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksDeleteCall) Fields ¶
func (c *DisksDeleteCall) Fields(s ...googleapi.Field) *DisksDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksDeleteCall) Header ¶
func (c *DisksDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksDeleteCall) RequestId ¶
func (c *DisksDeleteCall) RequestId(requestId string) *DisksDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type DisksGetCall ¶
type DisksGetCall struct {
// contains filtered or unexported fields
}
func (*DisksGetCall) Context ¶
func (c *DisksGetCall) Context(ctx context.Context) *DisksGetCall
Context sets the context to be used in this call's Do method.
func (*DisksGetCall) Do ¶
func (c *DisksGetCall) Do(opts ...googleapi.CallOption) (*Disk, error)
Do executes the "compute.disks.get" call. Any non-2xx status code is an error. Response headers are in either *Disk.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksGetCall) Fields ¶
func (c *DisksGetCall) Fields(s ...googleapi.Field) *DisksGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksGetCall) Header ¶
func (c *DisksGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksGetCall) IfNoneMatch ¶
func (c *DisksGetCall) IfNoneMatch(entityTag string) *DisksGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type DisksGetIamPolicyCall ¶
type DisksGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*DisksGetIamPolicyCall) Context ¶
func (c *DisksGetIamPolicyCall) Context(ctx context.Context) *DisksGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*DisksGetIamPolicyCall) Do ¶
func (c *DisksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.disks.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksGetIamPolicyCall) Fields ¶
func (c *DisksGetIamPolicyCall) Fields(s ...googleapi.Field) *DisksGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksGetIamPolicyCall) Header ¶
func (c *DisksGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksGetIamPolicyCall) IfNoneMatch ¶
func (c *DisksGetIamPolicyCall) IfNoneMatch(entityTag string) *DisksGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*DisksGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.30.0
func (c *DisksGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *DisksGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type DisksInsertCall ¶
type DisksInsertCall struct {
// contains filtered or unexported fields
}
func (*DisksInsertCall) Context ¶
func (c *DisksInsertCall) Context(ctx context.Context) *DisksInsertCall
Context sets the context to be used in this call's Do method.
func (*DisksInsertCall) Do ¶
func (c *DisksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksInsertCall) Fields ¶
func (c *DisksInsertCall) Fields(s ...googleapi.Field) *DisksInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksInsertCall) Header ¶
func (c *DisksInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksInsertCall) RequestId ¶
func (c *DisksInsertCall) RequestId(requestId string) *DisksInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*DisksInsertCall) SourceImage ¶
func (c *DisksInsertCall) SourceImage(sourceImage string) *DisksInsertCall
SourceImage sets the optional parameter "sourceImage": Source image to restore onto a disk. This field is optional.
type DisksListCall ¶
type DisksListCall struct {
// contains filtered or unexported fields
}
func (*DisksListCall) Context ¶
func (c *DisksListCall) Context(ctx context.Context) *DisksListCall
Context sets the context to be used in this call's Do method.
func (*DisksListCall) Do ¶
func (c *DisksListCall) Do(opts ...googleapi.CallOption) (*DiskList, error)
Do executes the "compute.disks.list" call. Any non-2xx status code is an error. Response headers are in either *DiskList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksListCall) Fields ¶
func (c *DisksListCall) Fields(s ...googleapi.Field) *DisksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksListCall) Filter ¶
func (c *DisksListCall) Filter(filter string) *DisksListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*DisksListCall) Header ¶
func (c *DisksListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksListCall) IfNoneMatch ¶
func (c *DisksListCall) IfNoneMatch(entityTag string) *DisksListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*DisksListCall) MaxResults ¶
func (c *DisksListCall) MaxResults(maxResults int64) *DisksListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*DisksListCall) OrderBy ¶
func (c *DisksListCall) OrderBy(orderBy string) *DisksListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*DisksListCall) PageToken ¶
func (c *DisksListCall) PageToken(pageToken string) *DisksListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*DisksListCall) Pages ¶
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 (*DisksListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *DisksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DisksListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type DisksRemoveResourcePoliciesCall ¶ added in v0.7.0
type DisksRemoveResourcePoliciesCall struct {
// contains filtered or unexported fields
}
func (*DisksRemoveResourcePoliciesCall) Context ¶ added in v0.7.0
func (c *DisksRemoveResourcePoliciesCall) Context(ctx context.Context) *DisksRemoveResourcePoliciesCall
Context sets the context to be used in this call's Do method.
func (*DisksRemoveResourcePoliciesCall) Do ¶ added in v0.7.0
func (c *DisksRemoveResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.removeResourcePolicies" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksRemoveResourcePoliciesCall) Fields ¶ added in v0.7.0
func (c *DisksRemoveResourcePoliciesCall) Fields(s ...googleapi.Field) *DisksRemoveResourcePoliciesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksRemoveResourcePoliciesCall) Header ¶ added in v0.7.0
func (c *DisksRemoveResourcePoliciesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksRemoveResourcePoliciesCall) RequestId ¶ added in v0.7.0
func (c *DisksRemoveResourcePoliciesCall) RequestId(requestId string) *DisksRemoveResourcePoliciesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type DisksRemoveResourcePoliciesRequest ¶ added in v0.7.0
type DisksRemoveResourcePoliciesRequest struct { // ResourcePolicies: Resource policies to be removed from this disk. ResourcePolicies []string `json:"resourcePolicies,omitempty"` // ForceSendFields is a list of field names (e.g. "ResourcePolicies") 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. "ResourcePolicies") 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:"-"` }
func (DisksRemoveResourcePoliciesRequest) MarshalJSON ¶ added in v0.7.0
func (s DisksRemoveResourcePoliciesRequest) MarshalJSON() ([]byte, error)
type DisksResizeCall ¶
type DisksResizeCall struct {
// contains filtered or unexported fields
}
func (*DisksResizeCall) Context ¶
func (c *DisksResizeCall) Context(ctx context.Context) *DisksResizeCall
Context sets the context to be used in this call's Do method.
func (*DisksResizeCall) Do ¶
func (c *DisksResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.resize" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksResizeCall) Fields ¶
func (c *DisksResizeCall) Fields(s ...googleapi.Field) *DisksResizeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksResizeCall) Header ¶
func (c *DisksResizeCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksResizeCall) RequestId ¶
func (c *DisksResizeCall) RequestId(requestId string) *DisksResizeCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type DisksResizeRequest ¶
type DisksResizeRequest struct { // SizeGb: The new size of the persistent disk, which is specified in GB. SizeGb int64 `json:"sizeGb,omitempty,string"` // ForceSendFields is a list of field names (e.g. "SizeGb") 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. "SizeGb") 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:"-"` }
func (DisksResizeRequest) MarshalJSON ¶
func (s DisksResizeRequest) MarshalJSON() ([]byte, error)
type DisksScopedList ¶
type DisksScopedList struct { // Disks: [Output Only] A list of disks contained in this scope. Disks []*Disk `json:"disks,omitempty"` // Warning: [Output Only] Informational warning which replaces the list of // disks when the list is empty. Warning *DisksScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "Disks") 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. "Disks") 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:"-"` }
func (DisksScopedList) MarshalJSON ¶
func (s DisksScopedList) MarshalJSON() ([]byte, error)
type DisksScopedListWarning ¶
type DisksScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*DisksScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
DisksScopedListWarning: [Output Only] Informational warning which replaces the list of disks when the list is empty.
func (DisksScopedListWarning) MarshalJSON ¶
func (s DisksScopedListWarning) MarshalJSON() ([]byte, error)
type DisksScopedListWarningData ¶
type DisksScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (DisksScopedListWarningData) MarshalJSON ¶
func (s DisksScopedListWarningData) MarshalJSON() ([]byte, error)
type DisksService ¶
type DisksService struct {
// contains filtered or unexported fields
}
func NewDisksService ¶
func NewDisksService(s *Service) *DisksService
func (*DisksService) AddResourcePolicies ¶ added in v0.7.0
func (r *DisksService) AddResourcePolicies(project string, zone string, disk string, disksaddresourcepoliciesrequest *DisksAddResourcePoliciesRequest) *DisksAddResourcePoliciesCall
AddResourcePolicies: Adds existing resource policies to a disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.
- disk: The disk name for this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*DisksService) AggregatedList ¶
func (r *DisksService) AggregatedList(project string) *DisksAggregatedListCall
AggregatedList: Retrieves an aggregated list of persistent disks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*DisksService) BulkInsert ¶ added in v0.127.0
func (r *DisksService) BulkInsert(project string, zone string, bulkinsertdiskresource *BulkInsertDiskResource) *DisksBulkInsertCall
BulkInsert: Bulk create a set of disks.
- project: Project ID for this request. - zone: The name of the zone for this request.
func (*DisksService) CreateSnapshot ¶
func (r *DisksService) CreateSnapshot(project string, zone string, disk string, snapshot *Snapshot) *DisksCreateSnapshotCall
CreateSnapshot: Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.
- disk: Name of the persistent disk to snapshot. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*DisksService) Delete ¶
func (r *DisksService) Delete(project string, zone string, disk string) *DisksDeleteCall
Delete: Deletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots.
- disk: Name of the persistent disk to delete. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*DisksService) Get ¶
func (r *DisksService) Get(project string, zone string, disk string) *DisksGetCall
Get: Returns the specified persistent disk.
- disk: Name of the persistent disk to return. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*DisksService) GetIamPolicy ¶
func (r *DisksService) GetIamPolicy(project string, zone string, resource string) *DisksGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*DisksService) Insert ¶
func (r *DisksService) Insert(project string, zone string, disk *Disk) *DisksInsertCall
Insert: Creates a persistent disk in the specified project using the data in the request. You can create a disk from a source (sourceImage, sourceSnapshot, or sourceDisk) or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property.
- project: Project ID for this request. - zone: The name of the zone for this request.
func (*DisksService) List ¶
func (r *DisksService) List(project string, zone string) *DisksListCall
List: Retrieves a list of persistent disks contained within the specified zone.
- project: Project ID for this request. - zone: The name of the zone for this request.
func (*DisksService) RemoveResourcePolicies ¶ added in v0.7.0
func (r *DisksService) RemoveResourcePolicies(project string, zone string, disk string, disksremoveresourcepoliciesrequest *DisksRemoveResourcePoliciesRequest) *DisksRemoveResourcePoliciesCall
RemoveResourcePolicies: Removes resource policies from a disk.
- disk: The disk name for this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*DisksService) Resize ¶
func (r *DisksService) Resize(project string, zone string, disk string, disksresizerequest *DisksResizeRequest) *DisksResizeCall
Resize: Resizes the specified persistent disk. You can only increase the size of the disk.
- disk: The name of the persistent disk. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*DisksService) SetIamPolicy ¶
func (r *DisksService) SetIamPolicy(project string, zone string, resource string, zonesetpolicyrequest *ZoneSetPolicyRequest) *DisksSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*DisksService) SetLabels ¶
func (r *DisksService) SetLabels(project string, zone string, resource string, zonesetlabelsrequest *ZoneSetLabelsRequest) *DisksSetLabelsCall
SetLabels: Sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*DisksService) StartAsyncReplication ¶ added in v0.127.0
func (r *DisksService) StartAsyncReplication(project string, zone string, disk string, disksstartasyncreplicationrequest *DisksStartAsyncReplicationRequest) *DisksStartAsyncReplicationCall
StartAsyncReplication: Starts asynchronous replication. Must be invoked on the primary disk.
- disk: The name of the persistent disk. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*DisksService) StopAsyncReplication ¶ added in v0.127.0
func (r *DisksService) StopAsyncReplication(project string, zone string, disk string) *DisksStopAsyncReplicationCall
StopAsyncReplication: Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk.
- disk: The name of the persistent disk. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*DisksService) StopGroupAsyncReplication ¶ added in v0.127.0
func (r *DisksService) StopGroupAsyncReplication(project string, zone string, disksstopgroupasyncreplicationresource *DisksStopGroupAsyncReplicationResource) *DisksStopGroupAsyncReplicationCall
StopGroupAsyncReplication: Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.
- project: Project ID for this request.
- zone: The name of the zone for this request. This must be the zone of the primary or secondary disks in the consistency group.
func (*DisksService) TestIamPermissions ¶
func (r *DisksService) TestIamPermissions(project string, zone string, resource string, testpermissionsrequest *TestPermissionsRequest) *DisksTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*DisksService) Update ¶ added in v0.110.0
func (r *DisksService) Update(project string, zone string, disk string, disk2 *Disk) *DisksUpdateCall
Update: Updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.
- disk: The disk name for this request. - project: Project ID for this request. - zone: The name of the zone for this request.
type DisksSetIamPolicyCall ¶
type DisksSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*DisksSetIamPolicyCall) Context ¶
func (c *DisksSetIamPolicyCall) Context(ctx context.Context) *DisksSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*DisksSetIamPolicyCall) Do ¶
func (c *DisksSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.disks.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksSetIamPolicyCall) Fields ¶
func (c *DisksSetIamPolicyCall) Fields(s ...googleapi.Field) *DisksSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksSetIamPolicyCall) Header ¶
func (c *DisksSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type DisksSetLabelsCall ¶
type DisksSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*DisksSetLabelsCall) Context ¶
func (c *DisksSetLabelsCall) Context(ctx context.Context) *DisksSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*DisksSetLabelsCall) Do ¶
func (c *DisksSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksSetLabelsCall) Fields ¶
func (c *DisksSetLabelsCall) Fields(s ...googleapi.Field) *DisksSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksSetLabelsCall) Header ¶
func (c *DisksSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksSetLabelsCall) RequestId ¶
func (c *DisksSetLabelsCall) RequestId(requestId string) *DisksSetLabelsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type DisksStartAsyncReplicationCall ¶ added in v0.127.0
type DisksStartAsyncReplicationCall struct {
// contains filtered or unexported fields
}
func (*DisksStartAsyncReplicationCall) Context ¶ added in v0.127.0
func (c *DisksStartAsyncReplicationCall) Context(ctx context.Context) *DisksStartAsyncReplicationCall
Context sets the context to be used in this call's Do method.
func (*DisksStartAsyncReplicationCall) Do ¶ added in v0.127.0
func (c *DisksStartAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.startAsyncReplication" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksStartAsyncReplicationCall) Fields ¶ added in v0.127.0
func (c *DisksStartAsyncReplicationCall) Fields(s ...googleapi.Field) *DisksStartAsyncReplicationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksStartAsyncReplicationCall) Header ¶ added in v0.127.0
func (c *DisksStartAsyncReplicationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksStartAsyncReplicationCall) RequestId ¶ added in v0.127.0
func (c *DisksStartAsyncReplicationCall) RequestId(requestId string) *DisksStartAsyncReplicationCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type DisksStartAsyncReplicationRequest ¶ added in v0.127.0
type DisksStartAsyncReplicationRequest struct { // AsyncSecondaryDisk: The secondary disk to start asynchronous replication to. // You can provide this as a partial or full URL to the resource. For example, // the following are valid values: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /disks/disk - // https://www.googleapis.com/compute/v1/projects/project/regions/region // /disks/disk - projects/project/zones/zone/disks/disk - // projects/project/regions/region/disks/disk - zones/zone/disks/disk - // regions/region/disks/disk AsyncSecondaryDisk string `json:"asyncSecondaryDisk,omitempty"` // ForceSendFields is a list of field names (e.g. "AsyncSecondaryDisk") 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. "AsyncSecondaryDisk") 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:"-"` }
func (DisksStartAsyncReplicationRequest) MarshalJSON ¶ added in v0.127.0
func (s DisksStartAsyncReplicationRequest) MarshalJSON() ([]byte, error)
type DisksStopAsyncReplicationCall ¶ added in v0.127.0
type DisksStopAsyncReplicationCall struct {
// contains filtered or unexported fields
}
func (*DisksStopAsyncReplicationCall) Context ¶ added in v0.127.0
func (c *DisksStopAsyncReplicationCall) Context(ctx context.Context) *DisksStopAsyncReplicationCall
Context sets the context to be used in this call's Do method.
func (*DisksStopAsyncReplicationCall) Do ¶ added in v0.127.0
func (c *DisksStopAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.stopAsyncReplication" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksStopAsyncReplicationCall) Fields ¶ added in v0.127.0
func (c *DisksStopAsyncReplicationCall) Fields(s ...googleapi.Field) *DisksStopAsyncReplicationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksStopAsyncReplicationCall) Header ¶ added in v0.127.0
func (c *DisksStopAsyncReplicationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksStopAsyncReplicationCall) RequestId ¶ added in v0.127.0
func (c *DisksStopAsyncReplicationCall) RequestId(requestId string) *DisksStopAsyncReplicationCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type DisksStopGroupAsyncReplicationCall ¶ added in v0.127.0
type DisksStopGroupAsyncReplicationCall struct {
// contains filtered or unexported fields
}
func (*DisksStopGroupAsyncReplicationCall) Context ¶ added in v0.127.0
func (c *DisksStopGroupAsyncReplicationCall) Context(ctx context.Context) *DisksStopGroupAsyncReplicationCall
Context sets the context to be used in this call's Do method.
func (*DisksStopGroupAsyncReplicationCall) Do ¶ added in v0.127.0
func (c *DisksStopGroupAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.stopGroupAsyncReplication" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksStopGroupAsyncReplicationCall) Fields ¶ added in v0.127.0
func (c *DisksStopGroupAsyncReplicationCall) Fields(s ...googleapi.Field) *DisksStopGroupAsyncReplicationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksStopGroupAsyncReplicationCall) Header ¶ added in v0.127.0
func (c *DisksStopGroupAsyncReplicationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksStopGroupAsyncReplicationCall) RequestId ¶ added in v0.127.0
func (c *DisksStopGroupAsyncReplicationCall) RequestId(requestId string) *DisksStopGroupAsyncReplicationCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type DisksStopGroupAsyncReplicationResource ¶ added in v0.127.0
type DisksStopGroupAsyncReplicationResource struct { // ResourcePolicy: The URL of the DiskConsistencyGroupPolicy for the group of // disks to stop. This may be a full or partial URL, such as: - // https://www.googleapis.com/compute/v1/projects/project/regions/region // /resourcePolicies/resourcePolicy - // projects/project/regions/region/resourcePolicies/resourcePolicy - // regions/region/resourcePolicies/resourcePolicy ResourcePolicy string `json:"resourcePolicy,omitempty"` // ForceSendFields is a list of field names (e.g. "ResourcePolicy") 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. "ResourcePolicy") 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:"-"` }
DisksStopGroupAsyncReplicationResource: A transient resource used in compute.disks.stopGroupAsyncReplication and compute.regionDisks.stopGroupAsyncReplication. It is only used to process requests and is not persisted.
func (DisksStopGroupAsyncReplicationResource) MarshalJSON ¶ added in v0.127.0
func (s DisksStopGroupAsyncReplicationResource) MarshalJSON() ([]byte, error)
type DisksTestIamPermissionsCall ¶
type DisksTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*DisksTestIamPermissionsCall) Context ¶
func (c *DisksTestIamPermissionsCall) Context(ctx context.Context) *DisksTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*DisksTestIamPermissionsCall) Do ¶
func (c *DisksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.disks.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksTestIamPermissionsCall) Fields ¶
func (c *DisksTestIamPermissionsCall) Fields(s ...googleapi.Field) *DisksTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksTestIamPermissionsCall) Header ¶
func (c *DisksTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type DisksUpdateCall ¶ added in v0.110.0
type DisksUpdateCall struct {
// contains filtered or unexported fields
}
func (*DisksUpdateCall) Context ¶ added in v0.110.0
func (c *DisksUpdateCall) Context(ctx context.Context) *DisksUpdateCall
Context sets the context to be used in this call's Do method.
func (*DisksUpdateCall) Do ¶ added in v0.110.0
func (c *DisksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DisksUpdateCall) Fields ¶ added in v0.110.0
func (c *DisksUpdateCall) Fields(s ...googleapi.Field) *DisksUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*DisksUpdateCall) Header ¶ added in v0.110.0
func (c *DisksUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*DisksUpdateCall) Paths ¶ added in v0.110.0
func (c *DisksUpdateCall) Paths(paths ...string) *DisksUpdateCall
Paths sets the optional parameter "paths":
func (*DisksUpdateCall) RequestId ¶ added in v0.110.0
func (c *DisksUpdateCall) RequestId(requestId string) *DisksUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*DisksUpdateCall) UpdateMask ¶ added in v0.110.0
func (c *DisksUpdateCall) UpdateMask(updateMask string) *DisksUpdateCall
UpdateMask sets the optional parameter "updateMask": update_mask indicates fields to be updated as part of this request.
type DisplayDevice ¶ added in v0.11.0
type DisplayDevice struct { // EnableDisplay: Defines whether the instance has Display enabled. EnableDisplay bool `json:"enableDisplay,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableDisplay") 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. "EnableDisplay") 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:"-"` }
DisplayDevice: A set of Display Device options
func (DisplayDevice) MarshalJSON ¶ added in v0.11.0
func (s DisplayDevice) MarshalJSON() ([]byte, error)
type DistributionPolicy ¶
type DistributionPolicy struct { // TargetShape: The distribution shape to which the group converges either // proactively or on resize events (depending on the value set in // updatePolicy.instanceRedistributionType). // // Possible values: // "ANY" - The group picks zones for creating VM instances to fulfill the // requested number of VMs within present resource constraints and to maximize // utilization of unused zonal reservations. Recommended for batch workloads // that do not require high availability. // "ANY_SINGLE_ZONE" - The group creates all VM instances within a single // zone. The zone is selected based on the present resource constraints and to // maximize utilization of unused zonal reservations. Recommended for batch // workloads with heavy interprocess communication. // "BALANCED" - The group prioritizes acquisition of resources, scheduling // VMs in zones where resources are available while distributing VMs as evenly // as possible across selected zones to minimize the impact of zonal failure. // Recommended for highly available serving workloads. // "EVEN" - The group schedules VM instance creation and deletion to achieve // and maintain an even number of managed instances across the selected zones. // The distribution is even when the number of managed instances does not // differ by more than 1 between any two zones. Recommended for highly // available serving workloads. TargetShape string `json:"targetShape,omitempty"` // Zones: Zones where the regional managed instance group will create and // manage its instances. Zones []*DistributionPolicyZoneConfiguration `json:"zones,omitempty"` // ForceSendFields is a list of field names (e.g. "TargetShape") 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. "TargetShape") 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:"-"` }
func (DistributionPolicy) MarshalJSON ¶
func (s DistributionPolicy) MarshalJSON() ([]byte, error)
type DistributionPolicyZoneConfiguration ¶
type DistributionPolicyZoneConfiguration struct { // Zone: The URL of the zone. The zone must exist in the region where the // managed instance group is located. Zone string `json:"zone,omitempty"` // ForceSendFields is a list of field names (e.g. "Zone") 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. "Zone") 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:"-"` }
func (DistributionPolicyZoneConfiguration) MarshalJSON ¶
func (s DistributionPolicyZoneConfiguration) MarshalJSON() ([]byte, error)
type Duration ¶ added in v0.11.0
type Duration struct { // Nanos: Span of time that's a fraction of a second at nanosecond resolution. // Durations less than one second are represented with a 0 `seconds` field and // a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. Nanos int64 `json:"nanos,omitempty"` // Seconds: Span of time at a resolution of a second. Must be from 0 to // 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min // * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years Seconds int64 `json:"seconds,omitempty,string"` // ForceSendFields is a list of field names (e.g. "Nanos") 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. "Nanos") 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:"-"` }
Duration: A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years.
func (Duration) MarshalJSON ¶ added in v0.11.0
type ErrorInfo ¶ added in v0.87.0
type ErrorInfo struct { // Domain: The logical grouping to which the "reason" belongs. The error domain // is typically the registered service name of the tool or product that // generates the error. Example: "pubsub.googleapis.com". If the error is // generated by some common infrastructure, the error domain must be a globally // unique value that identifies the infrastructure. For Google API // infrastructure, the error domain is "googleapis.com". Domain string `json:"domain,omitempty"` // Metadatas: Additional structured details about this error. Keys must match // /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 // characters in length. When identifying the current value of an exceeded // limit, the units should be contained in the key, not the value. For example, // rather than {"instanceLimit": "100/request"}, should be returned as, // {"instanceLimitPerRequest": "100"}, if the client exceeds the number of // instances that can be created in a single (batch) request. Metadatas map[string]string `json:"metadatas,omitempty"` // Reason: The reason of the error. This is a constant value that identifies // the proximate cause of the error. Error reasons are unique within a // particular domain of errors. This should be at most 63 characters and match // a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. Reason string `json:"reason,omitempty"` // ForceSendFields is a list of field names (e.g. "Domain") 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. "Domain") 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:"-"` }
ErrorInfo: Describes the cause of the error with structured details. Example of an error when contacting the "pubsub.googleapis.com" API when it is not enabled: { "reason": "API_DISABLED" "domain": "googleapis.com" "metadata": { "resource": "projects/123", "service": "pubsub.googleapis.com" } } This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata": { "availableRegions": "us-central1,us-east2" } }
func (ErrorInfo) MarshalJSON ¶ added in v0.87.0
type ExchangedPeeringRoute ¶ added in v0.16.0
type ExchangedPeeringRoute struct { // DestRange: The destination range of the route. DestRange string `json:"destRange,omitempty"` // Imported: True if the peering route has been imported from a peer. The // actual import happens if the field networkPeering.importCustomRoutes is true // for this network, and networkPeering.exportCustomRoutes is true for the peer // network, and the import does not result in a route conflict. Imported bool `json:"imported,omitempty"` // NextHopRegion: The region of peering route next hop, only applies to dynamic // routes. NextHopRegion string `json:"nextHopRegion,omitempty"` // Priority: The priority of the peering route. Priority int64 `json:"priority,omitempty"` // Type: The type of the peering route. // // Possible values: // "DYNAMIC_PEERING_ROUTE" - For routes exported from local network. // "STATIC_PEERING_ROUTE" - The peering route. // "SUBNET_PEERING_ROUTE" - The peering route corresponding to subnetwork // range. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "DestRange") 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. "DestRange") 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:"-"` }
func (ExchangedPeeringRoute) MarshalJSON ¶ added in v0.16.0
func (s ExchangedPeeringRoute) MarshalJSON() ([]byte, error)
type ExchangedPeeringRoutesList ¶ added in v0.16.0
type ExchangedPeeringRoutesList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of ExchangedPeeringRoute resources. Items []*ExchangedPeeringRoute `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#exchangedPeeringRoutesList for exchanged peering routes lists. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *ExchangedPeeringRoutesListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (ExchangedPeeringRoutesList) MarshalJSON ¶ added in v0.16.0
func (s ExchangedPeeringRoutesList) MarshalJSON() ([]byte, error)
type ExchangedPeeringRoutesListWarning ¶ added in v0.16.0
type ExchangedPeeringRoutesListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ExchangedPeeringRoutesListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ExchangedPeeringRoutesListWarning: [Output Only] Informational warning message.
func (ExchangedPeeringRoutesListWarning) MarshalJSON ¶ added in v0.16.0
func (s ExchangedPeeringRoutesListWarning) MarshalJSON() ([]byte, error)
type ExchangedPeeringRoutesListWarningData ¶ added in v0.16.0
type ExchangedPeeringRoutesListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ExchangedPeeringRoutesListWarningData) MarshalJSON ¶ added in v0.16.0
func (s ExchangedPeeringRoutesListWarningData) MarshalJSON() ([]byte, error)
type Expr ¶
type Expr struct { // Description: Optional. Description of the expression. This is a longer text // which describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` // Expression: Textual representation of an expression in Common Expression // Language syntax. Expression string `json:"expression,omitempty"` // Location: Optional. String indicating the location of the expression for // error reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` // Title: Optional. Title for the expression, i.e. a short string describing // its purpose. This can be used e.g. in UIs which allow to enter the // expression. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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:"-"` }
Expr: Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
func (Expr) MarshalJSON ¶
type ExternalVpnGateway ¶ added in v0.11.0
type ExternalVpnGateway struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id *uint64 `json:"id,omitempty,string"` // Interfaces: A list of interfaces for this external VPN gateway. If your // peer-side gateway is an on-premises gateway and non-AWS cloud providers' // gateway, at most two interfaces can be provided for an external VPN gateway. // If your peer side is an AWS virtual private gateway, four interfaces should // be provided for an external VPN gateway. Interfaces []*ExternalVpnGatewayInterface `json:"interfaces,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#externalVpnGateway // for externalVpnGateways. Kind string `json:"kind,omitempty"` // LabelFingerprint: A fingerprint for the labels being applied to this // ExternalVpnGateway, which is essentially a hash of the labels set used for // optimistic locking. The fingerprint is initially generated by Compute Engine // and changes after every request to modify or update labels. You must always // provide an up-to-date fingerprint hash in order to update or change labels, // otherwise the request will fail with error 412 conditionNotMet. To see the // latest fingerprint, make a get() request to retrieve an ExternalVpnGateway. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels for this resource. These can only be added or modified by the // setLabels method. Each label key/value pair must comply with RFC1035. Label // values may be empty. Labels map[string]string `json:"labels,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // RedundancyType: Indicates the user-supplied redundancy type of this external // VPN gateway. // // Possible values: // "FOUR_IPS_REDUNDANCY" - The external VPN gateway has four public IP // addresses; at the time of writing this API, the AWS virtual private gateway // is an example which has four public IP addresses for high availability // connections; there should be two VPN connections in the AWS virtual private // gateway , each AWS VPN connection has two public IP addresses; please make // sure to put two public IP addresses from one AWS VPN connection into // interfaces 0 and 1 of this external VPN gateway, and put the other two // public IP addresses from another AWS VPN connection into interfaces 2 and 3 // of this external VPN gateway. When displaying highly available configuration // status for the VPN tunnels connected to FOUR_IPS_REDUNDANCY external VPN // gateway, Google will always detect whether interfaces 0 and 1 are connected // on one interface of HA Cloud VPN gateway, and detect whether interfaces 2 // and 3 are connected to another interface of the HA Cloud VPN gateway. // "SINGLE_IP_INTERNALLY_REDUNDANT" - The external VPN gateway has only one // public IP address which internally provide redundancy or failover. // "TWO_IPS_REDUNDANCY" - The external VPN gateway has two public IP // addresses which are redundant with each other, the following two types of // setup on your on-premises side would have this type of redundancy: (1) Two // separate on-premises gateways, each with one public IP address, the two // on-premises gateways are redundant with each other. (2) A single on-premise // gateway with two public IP addresses that are redundant with eatch other. RedundancyType string `json:"redundancyType,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
ExternalVpnGateway: Represents an external VPN gateway. External VPN gateway is the on-premises VPN gateway(s) or another cloud provider's VPN gateway that connects to your Google Cloud VPN gateway. To create a highly available VPN from Google Cloud Platform to your VPN gateway or another cloud provider's VPN gateway, you must create a external VPN gateway resource with information about the other gateway. For more information about using external VPN gateways, see Creating an HA VPN gateway and tunnel pair to a peer VPN.
func (ExternalVpnGateway) MarshalJSON ¶ added in v0.11.0
func (s ExternalVpnGateway) MarshalJSON() ([]byte, error)
type ExternalVpnGatewayInterface ¶ added in v0.11.0
type ExternalVpnGatewayInterface struct { // Id: The numeric ID of this interface. The allowed input values for this id // for different redundancy types of external VPN gateway: - // SINGLE_IP_INTERNALLY_REDUNDANT - 0 - TWO_IPS_REDUNDANCY - 0, 1 - // FOUR_IPS_REDUNDANCY - 0, 1, 2, 3 Id int64 `json:"id,omitempty"` // IpAddress: IP address of the interface in the external VPN gateway. Only // IPv4 is supported. This IP address can be either from your on-premise // gateway or another Cloud provider's VPN gateway, it cannot be an IP address // from Google Compute Engine. IpAddress string `json:"ipAddress,omitempty"` // Ipv6Address: IPv6 address of the interface in the external VPN gateway. This // IPv6 address can be either from your on-premise gateway or another Cloud // provider's VPN gateway, it cannot be an IP address from Google Compute // Engine. Must specify an IPv6 address (not IPV4-mapped) using any format // described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format is // RFC 5952 format (e.g. 2001:db8::2d9:51:0:0). Ipv6Address string `json:"ipv6Address,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:"-"` }
ExternalVpnGatewayInterface: The interface for the external VPN gateway.
func (ExternalVpnGatewayInterface) MarshalJSON ¶ added in v0.11.0
func (s ExternalVpnGatewayInterface) MarshalJSON() ([]byte, error)
type ExternalVpnGatewayList ¶ added in v0.11.0
type ExternalVpnGatewayList struct { Etag string `json:"etag,omitempty"` // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of ExternalVpnGateway resources. Items []*ExternalVpnGateway `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#externalVpnGatewayList // for lists of externalVpnGateways. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *ExternalVpnGatewayListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Etag") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ExternalVpnGatewayList: Response to the list request, and contains a list of externalVpnGateways.
func (ExternalVpnGatewayList) MarshalJSON ¶ added in v0.11.0
func (s ExternalVpnGatewayList) MarshalJSON() ([]byte, error)
type ExternalVpnGatewayListWarning ¶ added in v0.11.0
type ExternalVpnGatewayListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ExternalVpnGatewayListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ExternalVpnGatewayListWarning: [Output Only] Informational warning message.
func (ExternalVpnGatewayListWarning) MarshalJSON ¶ added in v0.11.0
func (s ExternalVpnGatewayListWarning) MarshalJSON() ([]byte, error)
type ExternalVpnGatewayListWarningData ¶ added in v0.11.0
type ExternalVpnGatewayListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ExternalVpnGatewayListWarningData) MarshalJSON ¶ added in v0.11.0
func (s ExternalVpnGatewayListWarningData) MarshalJSON() ([]byte, error)
type ExternalVpnGatewaysDeleteCall ¶ added in v0.11.0
type ExternalVpnGatewaysDeleteCall struct {
// contains filtered or unexported fields
}
func (*ExternalVpnGatewaysDeleteCall) Context ¶ added in v0.11.0
func (c *ExternalVpnGatewaysDeleteCall) Context(ctx context.Context) *ExternalVpnGatewaysDeleteCall
Context sets the context to be used in this call's Do method.
func (*ExternalVpnGatewaysDeleteCall) Do ¶ added in v0.11.0
func (c *ExternalVpnGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.externalVpnGateways.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ExternalVpnGatewaysDeleteCall) Fields ¶ added in v0.11.0
func (c *ExternalVpnGatewaysDeleteCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ExternalVpnGatewaysDeleteCall) Header ¶ added in v0.11.0
func (c *ExternalVpnGatewaysDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ExternalVpnGatewaysDeleteCall) RequestId ¶ added in v0.11.0
func (c *ExternalVpnGatewaysDeleteCall) RequestId(requestId string) *ExternalVpnGatewaysDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ExternalVpnGatewaysGetCall ¶ added in v0.11.0
type ExternalVpnGatewaysGetCall struct {
// contains filtered or unexported fields
}
func (*ExternalVpnGatewaysGetCall) Context ¶ added in v0.11.0
func (c *ExternalVpnGatewaysGetCall) Context(ctx context.Context) *ExternalVpnGatewaysGetCall
Context sets the context to be used in this call's Do method.
func (*ExternalVpnGatewaysGetCall) Do ¶ added in v0.11.0
func (c *ExternalVpnGatewaysGetCall) Do(opts ...googleapi.CallOption) (*ExternalVpnGateway, error)
Do executes the "compute.externalVpnGateways.get" call. Any non-2xx status code is an error. Response headers are in either *ExternalVpnGateway.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ExternalVpnGatewaysGetCall) Fields ¶ added in v0.11.0
func (c *ExternalVpnGatewaysGetCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ExternalVpnGatewaysGetCall) Header ¶ added in v0.11.0
func (c *ExternalVpnGatewaysGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ExternalVpnGatewaysGetCall) IfNoneMatch ¶ added in v0.11.0
func (c *ExternalVpnGatewaysGetCall) IfNoneMatch(entityTag string) *ExternalVpnGatewaysGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ExternalVpnGatewaysInsertCall ¶ added in v0.11.0
type ExternalVpnGatewaysInsertCall struct {
// contains filtered or unexported fields
}
func (*ExternalVpnGatewaysInsertCall) Context ¶ added in v0.11.0
func (c *ExternalVpnGatewaysInsertCall) Context(ctx context.Context) *ExternalVpnGatewaysInsertCall
Context sets the context to be used in this call's Do method.
func (*ExternalVpnGatewaysInsertCall) Do ¶ added in v0.11.0
func (c *ExternalVpnGatewaysInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.externalVpnGateways.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ExternalVpnGatewaysInsertCall) Fields ¶ added in v0.11.0
func (c *ExternalVpnGatewaysInsertCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ExternalVpnGatewaysInsertCall) Header ¶ added in v0.11.0
func (c *ExternalVpnGatewaysInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ExternalVpnGatewaysInsertCall) RequestId ¶ added in v0.11.0
func (c *ExternalVpnGatewaysInsertCall) RequestId(requestId string) *ExternalVpnGatewaysInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ExternalVpnGatewaysListCall ¶ added in v0.11.0
type ExternalVpnGatewaysListCall struct {
// contains filtered or unexported fields
}
func (*ExternalVpnGatewaysListCall) Context ¶ added in v0.11.0
func (c *ExternalVpnGatewaysListCall) Context(ctx context.Context) *ExternalVpnGatewaysListCall
Context sets the context to be used in this call's Do method.
func (*ExternalVpnGatewaysListCall) Do ¶ added in v0.11.0
func (c *ExternalVpnGatewaysListCall) Do(opts ...googleapi.CallOption) (*ExternalVpnGatewayList, error)
Do executes the "compute.externalVpnGateways.list" call. Any non-2xx status code is an error. Response headers are in either *ExternalVpnGatewayList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ExternalVpnGatewaysListCall) Fields ¶ added in v0.11.0
func (c *ExternalVpnGatewaysListCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ExternalVpnGatewaysListCall) Filter ¶ added in v0.11.0
func (c *ExternalVpnGatewaysListCall) Filter(filter string) *ExternalVpnGatewaysListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*ExternalVpnGatewaysListCall) Header ¶ added in v0.11.0
func (c *ExternalVpnGatewaysListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ExternalVpnGatewaysListCall) IfNoneMatch ¶ added in v0.11.0
func (c *ExternalVpnGatewaysListCall) IfNoneMatch(entityTag string) *ExternalVpnGatewaysListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ExternalVpnGatewaysListCall) MaxResults ¶ added in v0.11.0
func (c *ExternalVpnGatewaysListCall) MaxResults(maxResults int64) *ExternalVpnGatewaysListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*ExternalVpnGatewaysListCall) OrderBy ¶ added in v0.11.0
func (c *ExternalVpnGatewaysListCall) OrderBy(orderBy string) *ExternalVpnGatewaysListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*ExternalVpnGatewaysListCall) PageToken ¶ added in v0.11.0
func (c *ExternalVpnGatewaysListCall) PageToken(pageToken string) *ExternalVpnGatewaysListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*ExternalVpnGatewaysListCall) Pages ¶ added in v0.11.0
func (c *ExternalVpnGatewaysListCall) Pages(ctx context.Context, f func(*ExternalVpnGatewayList) 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 (*ExternalVpnGatewaysListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *ExternalVpnGatewaysListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ExternalVpnGatewaysListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type ExternalVpnGatewaysService ¶ added in v0.11.0
type ExternalVpnGatewaysService struct {
// contains filtered or unexported fields
}
func NewExternalVpnGatewaysService ¶ added in v0.11.0
func NewExternalVpnGatewaysService(s *Service) *ExternalVpnGatewaysService
func (*ExternalVpnGatewaysService) Delete ¶ added in v0.11.0
func (r *ExternalVpnGatewaysService) Delete(project string, externalVpnGateway string) *ExternalVpnGatewaysDeleteCall
Delete: Deletes the specified externalVpnGateway.
- externalVpnGateway: Name of the externalVpnGateways to delete. - project: Project ID for this request.
func (*ExternalVpnGatewaysService) Get ¶ added in v0.11.0
func (r *ExternalVpnGatewaysService) Get(project string, externalVpnGateway string) *ExternalVpnGatewaysGetCall
Get: Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a list() request.
- externalVpnGateway: Name of the externalVpnGateway to return. - project: Project ID for this request.
func (*ExternalVpnGatewaysService) Insert ¶ added in v0.11.0
func (r *ExternalVpnGatewaysService) Insert(project string, externalvpngateway *ExternalVpnGateway) *ExternalVpnGatewaysInsertCall
Insert: Creates a ExternalVpnGateway in the specified project using the data included in the request.
- project: Project ID for this request.
func (*ExternalVpnGatewaysService) List ¶ added in v0.11.0
func (r *ExternalVpnGatewaysService) List(project string) *ExternalVpnGatewaysListCall
List: Retrieves the list of ExternalVpnGateway available to the specified project.
- project: Project ID for this request.
func (*ExternalVpnGatewaysService) SetLabels ¶ added in v0.11.0
func (r *ExternalVpnGatewaysService) SetLabels(project string, resource string, globalsetlabelsrequest *GlobalSetLabelsRequest) *ExternalVpnGatewaysSetLabelsCall
SetLabels: Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources documentation.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*ExternalVpnGatewaysService) TestIamPermissions ¶ added in v0.11.0
func (r *ExternalVpnGatewaysService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *ExternalVpnGatewaysTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
type ExternalVpnGatewaysSetLabelsCall ¶ added in v0.11.0
type ExternalVpnGatewaysSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*ExternalVpnGatewaysSetLabelsCall) Context ¶ added in v0.11.0
func (c *ExternalVpnGatewaysSetLabelsCall) Context(ctx context.Context) *ExternalVpnGatewaysSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*ExternalVpnGatewaysSetLabelsCall) Do ¶ added in v0.11.0
func (c *ExternalVpnGatewaysSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.externalVpnGateways.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ExternalVpnGatewaysSetLabelsCall) Fields ¶ added in v0.11.0
func (c *ExternalVpnGatewaysSetLabelsCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ExternalVpnGatewaysSetLabelsCall) Header ¶ added in v0.11.0
func (c *ExternalVpnGatewaysSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ExternalVpnGatewaysTestIamPermissionsCall ¶ added in v0.11.0
type ExternalVpnGatewaysTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ExternalVpnGatewaysTestIamPermissionsCall) Context ¶ added in v0.11.0
func (c *ExternalVpnGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ExternalVpnGatewaysTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ExternalVpnGatewaysTestIamPermissionsCall) Do ¶ added in v0.11.0
func (c *ExternalVpnGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.externalVpnGateways.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ExternalVpnGatewaysTestIamPermissionsCall) Fields ¶ added in v0.11.0
func (c *ExternalVpnGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ExternalVpnGatewaysTestIamPermissionsCall) Header ¶ added in v0.11.0
func (c *ExternalVpnGatewaysTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type FileContentBuffer ¶ added in v0.21.0
type FileContentBuffer struct { // Content: The raw content in the secure keys file. Content string `json:"content,omitempty"` // FileType: The file type of source file. // // Possible values: // "BIN" // "UNDEFINED" // "X509" FileType string `json:"fileType,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:"-"` }
func (FileContentBuffer) MarshalJSON ¶ added in v0.21.0
func (s FileContentBuffer) MarshalJSON() ([]byte, error)
type Firewall ¶
type Firewall struct { // Allowed: The list of ALLOW rules specified by this firewall. Each rule // specifies a protocol and port-range tuple that describes a permitted // connection. Allowed []*FirewallAllowed `json:"allowed,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Denied: The list of DENY rules specified by this firewall. Each rule // specifies a protocol and port-range tuple that describes a denied // connection. Denied []*FirewallDenied `json:"denied,omitempty"` // Description: An optional description of this resource. Provide this field // when you create the resource. Description string `json:"description,omitempty"` // DestinationRanges: If destination ranges are specified, the firewall rule // applies only to traffic that has destination IP address in these ranges. // These ranges must be expressed in CIDR format. Both IPv4 and IPv6 are // supported. DestinationRanges []string `json:"destinationRanges,omitempty"` // Direction: Direction of traffic to which this firewall applies, either // `INGRESS` or `EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you // cannot specify the sourceTags fields. // // Possible values: // "EGRESS" - Indicates that firewall should apply to outgoing traffic. // "INGRESS" - Indicates that firewall should apply to incoming traffic. Direction string `json:"direction,omitempty"` // Disabled: Denotes whether the firewall rule is disabled. When set to true, // the firewall rule is not enforced and the network behaves as if it did not // exist. If this is unspecified, the firewall rule will be enabled. Disabled bool `json:"disabled,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#firewall for // firewall rules. Kind string `json:"kind,omitempty"` // LogConfig: This field denotes the logging options for a particular firewall // rule. If logging is enabled, logs will be exported to Cloud Logging. LogConfig *FirewallLogConfig `json:"logConfig,omitempty"` // Name: Name of the resource; provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a // lowercase letter, and all following characters (except for the last // character) must be a dash, lowercase letter, or digit. The last character // must be a lowercase letter or digit. Name string `json:"name,omitempty"` // Network: URL of the network resource for this firewall rule. If not // specified when creating a firewall rule, the default network is used: // global/networks/default If you choose to specify this field, you can specify // the network as a full or partial URL. For example, the following are all // valid URLs: - // https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network // - projects/myproject/global/networks/my-network - global/networks/default Network string `json:"network,omitempty"` // Priority: Priority for this rule. This is an integer between `0` and // `65535`, both inclusive. The default value is `1000`. Relative priorities // determine which rule takes effect if multiple rules apply. Lower values // indicate higher priority. For example, a rule with priority `0` has higher // precedence than a rule with priority `1`. DENY rules take precedence over // ALLOW rules if they have equal priority. Note that VPC networks have implied // rules with a priority of `65535`. To avoid conflicts with the implied rules, // use a priority number less than `65535`. Priority int64 `json:"priority,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SourceRanges: If source ranges are specified, the firewall rule applies only // to traffic that has a source IP address in these ranges. These ranges must // be expressed in CIDR format. One or both of sourceRanges and sourceTags may // be set. If both fields are set, the rule applies to traffic that has a // source IP address within sourceRanges OR a source IP from a resource with a // matching tag listed in the sourceTags field. The connection does not need to // match both fields for the rule to apply. Both IPv4 and IPv6 are supported. SourceRanges []string `json:"sourceRanges,omitempty"` // SourceServiceAccounts: If source service accounts are specified, the // firewall rules apply only to traffic originating from an instance with a // service account in this list. Source service accounts cannot be used to // control traffic to an instance's external IP address because service // accounts are associated with an instance, not an IP address. sourceRanges // can be set at the same time as sourceServiceAccounts. If both are set, the // firewall applies to traffic that has a source IP address within the // sourceRanges OR a source IP that belongs to an instance with service account // listed in sourceServiceAccount. The connection does not need to match both // fields for the firewall to apply. sourceServiceAccounts cannot be used at // the same time as sourceTags or targetTags. SourceServiceAccounts []string `json:"sourceServiceAccounts,omitempty"` // SourceTags: If source tags are specified, the firewall rule applies only to // traffic with source IPs that match the primary network interfaces of VM // instances that have the tag and are in the same VPC network. Source tags // cannot be used to control traffic to an instance's external IP address, it // only applies to traffic between instances in the same virtual network. // Because tags are associated with instances, not IP addresses. One or both of // sourceRanges and sourceTags may be set. If both fields are set, the firewall // applies to traffic that has a source IP address within sourceRanges OR a // source IP from a resource with a matching tag listed in the sourceTags // field. The connection does not need to match both fields for the firewall to // apply. SourceTags []string `json:"sourceTags,omitempty"` // TargetServiceAccounts: A list of service accounts indicating sets of // instances located in the network that may make network connections as // specified in allowed[]. targetServiceAccounts cannot be used at the same // time as targetTags or sourceTags. If neither targetServiceAccounts nor // targetTags are specified, the firewall rule applies to all instances on the // specified network. TargetServiceAccounts []string `json:"targetServiceAccounts,omitempty"` // TargetTags: A list of tags that controls which instances the firewall rule // applies to. If targetTags are specified, then the firewall rule applies only // to instances in the VPC network that have one of those tags. If no // targetTags are specified, the firewall rule applies to all instances on the // specified network. TargetTags []string `json:"targetTags,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Allowed") 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. "Allowed") 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:"-"` }
Firewall: Represents a Firewall Rule resource. Firewall rules allow or deny ingress traffic to, and egress traffic from your instances. For more information, read Firewall rules.
func (Firewall) MarshalJSON ¶
type FirewallAllowed ¶
type FirewallAllowed struct { // IPProtocol: The IP protocol to which this rule applies. The protocol type is // required when creating a firewall rule. This value can either be one of the // following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) // or the IP protocol number. IPProtocol string `json:"IPProtocol,omitempty"` // Ports: An optional list of ports to which this rule applies. This field is // only applicable for the UDP or TCP protocol. Each entry must be either an // integer or a range. If not specified, this rule applies to connections // through any port. Example inputs include: ["22"], ["80","443"], and // ["12345-12349"]. Ports []string `json:"ports,omitempty"` // ForceSendFields is a list of field names (e.g. "IPProtocol") 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. "IPProtocol") 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:"-"` }
func (FirewallAllowed) MarshalJSON ¶
func (s FirewallAllowed) MarshalJSON() ([]byte, error)
type FirewallDenied ¶
type FirewallDenied struct { // IPProtocol: The IP protocol to which this rule applies. The protocol type is // required when creating a firewall rule. This value can either be one of the // following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) // or the IP protocol number. IPProtocol string `json:"IPProtocol,omitempty"` // Ports: An optional list of ports to which this rule applies. This field is // only applicable for the UDP or TCP protocol. Each entry must be either an // integer or a range. If not specified, this rule applies to connections // through any port. Example inputs include: ["22"], ["80","443"], and // ["12345-12349"]. Ports []string `json:"ports,omitempty"` // ForceSendFields is a list of field names (e.g. "IPProtocol") 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. "IPProtocol") 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:"-"` }
func (FirewallDenied) MarshalJSON ¶
func (s FirewallDenied) MarshalJSON() ([]byte, error)
type FirewallList ¶
type FirewallList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Firewall resources. Items []*Firewall `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#firewallList for lists // of firewalls. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *FirewallListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
FirewallList: Contains a list of firewalls.
func (FirewallList) MarshalJSON ¶
func (s FirewallList) MarshalJSON() ([]byte, error)
type FirewallListWarning ¶
type FirewallListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*FirewallListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
FirewallListWarning: [Output Only] Informational warning message.
func (FirewallListWarning) MarshalJSON ¶
func (s FirewallListWarning) MarshalJSON() ([]byte, error)
type FirewallListWarningData ¶
type FirewallListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (FirewallListWarningData) MarshalJSON ¶
func (s FirewallListWarningData) MarshalJSON() ([]byte, error)
type FirewallLogConfig ¶
type FirewallLogConfig struct { // Enable: This field denotes whether to enable logging for a particular // firewall rule. Enable bool `json:"enable,omitempty"` // Metadata: This field can only be specified for a particular firewall rule if // logging is enabled for that rule. This field denotes whether to include or // exclude metadata for firewall logs. // // Possible values: // "EXCLUDE_ALL_METADATA" // "INCLUDE_ALL_METADATA" Metadata string `json:"metadata,omitempty"` // ForceSendFields is a list of field names (e.g. "Enable") 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. "Enable") 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:"-"` }
FirewallLogConfig: The available logging options for a firewall rule.
func (FirewallLogConfig) MarshalJSON ¶
func (s FirewallLogConfig) MarshalJSON() ([]byte, error)
type FirewallPoliciesAddAssociationCall ¶ added in v0.39.0
type FirewallPoliciesAddAssociationCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesAddAssociationCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesAddAssociationCall) Context(ctx context.Context) *FirewallPoliciesAddAssociationCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesAddAssociationCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesAddAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewallPolicies.addAssociation" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesAddAssociationCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesAddAssociationCall) Fields(s ...googleapi.Field) *FirewallPoliciesAddAssociationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesAddAssociationCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesAddAssociationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesAddAssociationCall) ReplaceExistingAssociation ¶ added in v0.39.0
func (c *FirewallPoliciesAddAssociationCall) ReplaceExistingAssociation(replaceExistingAssociation bool) *FirewallPoliciesAddAssociationCall
ReplaceExistingAssociation sets the optional parameter "replaceExistingAssociation": Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists.
func (*FirewallPoliciesAddAssociationCall) RequestId ¶ added in v0.39.0
func (c *FirewallPoliciesAddAssociationCall) RequestId(requestId string) *FirewallPoliciesAddAssociationCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FirewallPoliciesAddRuleCall ¶ added in v0.39.0
type FirewallPoliciesAddRuleCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesAddRuleCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesAddRuleCall) Context(ctx context.Context) *FirewallPoliciesAddRuleCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesAddRuleCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewallPolicies.addRule" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesAddRuleCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesAddRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesAddRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesAddRuleCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesAddRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesAddRuleCall) RequestId ¶ added in v0.39.0
func (c *FirewallPoliciesAddRuleCall) RequestId(requestId string) *FirewallPoliciesAddRuleCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FirewallPoliciesCloneRulesCall ¶ added in v0.39.0
type FirewallPoliciesCloneRulesCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesCloneRulesCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesCloneRulesCall) Context(ctx context.Context) *FirewallPoliciesCloneRulesCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesCloneRulesCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesCloneRulesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewallPolicies.cloneRules" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesCloneRulesCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesCloneRulesCall) Fields(s ...googleapi.Field) *FirewallPoliciesCloneRulesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesCloneRulesCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesCloneRulesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesCloneRulesCall) RequestId ¶ added in v0.39.0
func (c *FirewallPoliciesCloneRulesCall) RequestId(requestId string) *FirewallPoliciesCloneRulesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*FirewallPoliciesCloneRulesCall) SourceFirewallPolicy ¶ added in v0.39.0
func (c *FirewallPoliciesCloneRulesCall) SourceFirewallPolicy(sourceFirewallPolicy string) *FirewallPoliciesCloneRulesCall
SourceFirewallPolicy sets the optional parameter "sourceFirewallPolicy": The firewall policy from which to copy rules.
type FirewallPoliciesDeleteCall ¶ added in v0.39.0
type FirewallPoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesDeleteCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesDeleteCall) Context(ctx context.Context) *FirewallPoliciesDeleteCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesDeleteCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewallPolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesDeleteCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesDeleteCall) Fields(s ...googleapi.Field) *FirewallPoliciesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesDeleteCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesDeleteCall) RequestId ¶ added in v0.39.0
func (c *FirewallPoliciesDeleteCall) RequestId(requestId string) *FirewallPoliciesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FirewallPoliciesGetAssociationCall ¶ added in v0.39.0
type FirewallPoliciesGetAssociationCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesGetAssociationCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesGetAssociationCall) Context(ctx context.Context) *FirewallPoliciesGetAssociationCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesGetAssociationCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesGetAssociationCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyAssociation, error)
Do executes the "compute.firewallPolicies.getAssociation" call. Any non-2xx status code is an error. Response headers are in either *FirewallPolicyAssociation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesGetAssociationCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesGetAssociationCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetAssociationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesGetAssociationCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesGetAssociationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesGetAssociationCall) IfNoneMatch ¶ added in v0.39.0
func (c *FirewallPoliciesGetAssociationCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetAssociationCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*FirewallPoliciesGetAssociationCall) Name ¶ added in v0.39.0
func (c *FirewallPoliciesGetAssociationCall) Name(name string) *FirewallPoliciesGetAssociationCall
Name sets the optional parameter "name": The name of the association to get from the firewall policy.
type FirewallPoliciesGetCall ¶ added in v0.39.0
type FirewallPoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesGetCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesGetCall) Context(ctx context.Context) *FirewallPoliciesGetCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesGetCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesGetCall) Do(opts ...googleapi.CallOption) (*FirewallPolicy, error)
Do executes the "compute.firewallPolicies.get" call. Any non-2xx status code is an error. Response headers are in either *FirewallPolicy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesGetCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesGetCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesGetCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesGetCall) IfNoneMatch ¶ added in v0.39.0
func (c *FirewallPoliciesGetCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type FirewallPoliciesGetIamPolicyCall ¶ added in v0.39.0
type FirewallPoliciesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesGetIamPolicyCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesGetIamPolicyCall) Context(ctx context.Context) *FirewallPoliciesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesGetIamPolicyCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.firewallPolicies.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesGetIamPolicyCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesGetIamPolicyCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesGetIamPolicyCall) IfNoneMatch ¶ added in v0.39.0
func (c *FirewallPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*FirewallPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.39.0
func (c *FirewallPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *FirewallPoliciesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type FirewallPoliciesGetRuleCall ¶ added in v0.39.0
type FirewallPoliciesGetRuleCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesGetRuleCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesGetRuleCall) Context(ctx context.Context) *FirewallPoliciesGetRuleCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesGetRuleCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyRule, error)
Do executes the "compute.firewallPolicies.getRule" call. Any non-2xx status code is an error. Response headers are in either *FirewallPolicyRule.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesGetRuleCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesGetRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesGetRuleCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesGetRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesGetRuleCall) IfNoneMatch ¶ added in v0.39.0
func (c *FirewallPoliciesGetRuleCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetRuleCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*FirewallPoliciesGetRuleCall) Priority ¶ added in v0.39.0
func (c *FirewallPoliciesGetRuleCall) Priority(priority int64) *FirewallPoliciesGetRuleCall
Priority sets the optional parameter "priority": The priority of the rule to get from the firewall policy.
type FirewallPoliciesInsertCall ¶ added in v0.39.0
type FirewallPoliciesInsertCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesInsertCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesInsertCall) Context(ctx context.Context) *FirewallPoliciesInsertCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesInsertCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewallPolicies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesInsertCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesInsertCall) Fields(s ...googleapi.Field) *FirewallPoliciesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesInsertCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesInsertCall) ParentId ¶ added in v0.39.0
func (c *FirewallPoliciesInsertCall) ParentId(parentId string) *FirewallPoliciesInsertCall
ParentId sets the optional parameter "parentId": Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization.
func (*FirewallPoliciesInsertCall) RequestId ¶ added in v0.39.0
func (c *FirewallPoliciesInsertCall) RequestId(requestId string) *FirewallPoliciesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FirewallPoliciesListAssociationsCall ¶ added in v0.39.0
type FirewallPoliciesListAssociationsCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesListAssociationsCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesListAssociationsCall) Context(ctx context.Context) *FirewallPoliciesListAssociationsCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesListAssociationsCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesListAssociationsCall) Do(opts ...googleapi.CallOption) (*FirewallPoliciesListAssociationsResponse, error)
Do executes the "compute.firewallPolicies.listAssociations" call. Any non-2xx status code is an error. Response headers are in either *FirewallPoliciesListAssociationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesListAssociationsCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesListAssociationsCall) Fields(s ...googleapi.Field) *FirewallPoliciesListAssociationsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesListAssociationsCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesListAssociationsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesListAssociationsCall) IfNoneMatch ¶ added in v0.39.0
func (c *FirewallPoliciesListAssociationsCall) IfNoneMatch(entityTag string) *FirewallPoliciesListAssociationsCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*FirewallPoliciesListAssociationsCall) TargetResource ¶ added in v0.39.0
func (c *FirewallPoliciesListAssociationsCall) TargetResource(targetResource string) *FirewallPoliciesListAssociationsCall
TargetResource sets the optional parameter "targetResource": The target resource to list associations. It is an organization, or a folder.
type FirewallPoliciesListAssociationsResponse ¶ added in v0.39.0
type FirewallPoliciesListAssociationsResponse struct { // Associations: A list of associations. Associations []*FirewallPolicyAssociation `json:"associations,omitempty"` // Kind: [Output Only] Type of firewallPolicy associations. Always // compute#FirewallPoliciesListAssociations for lists of firewallPolicy // associations. Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Associations") 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. "Associations") 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:"-"` }
func (FirewallPoliciesListAssociationsResponse) MarshalJSON ¶ added in v0.39.0
func (s FirewallPoliciesListAssociationsResponse) MarshalJSON() ([]byte, error)
type FirewallPoliciesListCall ¶ added in v0.39.0
type FirewallPoliciesListCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesListCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesListCall) Context(ctx context.Context) *FirewallPoliciesListCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesListCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesListCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyList, error)
Do executes the "compute.firewallPolicies.list" call. Any non-2xx status code is an error. Response headers are in either *FirewallPolicyList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesListCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesListCall) Fields(s ...googleapi.Field) *FirewallPoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesListCall) Filter ¶ added in v0.39.0
func (c *FirewallPoliciesListCall) Filter(filter string) *FirewallPoliciesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*FirewallPoliciesListCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesListCall) IfNoneMatch ¶ added in v0.39.0
func (c *FirewallPoliciesListCall) IfNoneMatch(entityTag string) *FirewallPoliciesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*FirewallPoliciesListCall) MaxResults ¶ added in v0.39.0
func (c *FirewallPoliciesListCall) MaxResults(maxResults int64) *FirewallPoliciesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*FirewallPoliciesListCall) OrderBy ¶ added in v0.39.0
func (c *FirewallPoliciesListCall) OrderBy(orderBy string) *FirewallPoliciesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*FirewallPoliciesListCall) PageToken ¶ added in v0.39.0
func (c *FirewallPoliciesListCall) PageToken(pageToken string) *FirewallPoliciesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*FirewallPoliciesListCall) Pages ¶ added in v0.39.0
func (c *FirewallPoliciesListCall) Pages(ctx context.Context, f func(*FirewallPolicyList) 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 (*FirewallPoliciesListCall) ParentId ¶ added in v0.39.0
func (c *FirewallPoliciesListCall) ParentId(parentId string) *FirewallPoliciesListCall
ParentId sets the optional parameter "parentId": Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization.
func (*FirewallPoliciesListCall) ReturnPartialSuccess ¶ added in v0.39.0
func (c *FirewallPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *FirewallPoliciesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type FirewallPoliciesMoveCall ¶ added in v0.39.0
type FirewallPoliciesMoveCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesMoveCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesMoveCall) Context(ctx context.Context) *FirewallPoliciesMoveCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesMoveCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesMoveCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewallPolicies.move" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesMoveCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesMoveCall) Fields(s ...googleapi.Field) *FirewallPoliciesMoveCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesMoveCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesMoveCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesMoveCall) ParentId ¶ added in v0.39.0
func (c *FirewallPoliciesMoveCall) ParentId(parentId string) *FirewallPoliciesMoveCall
ParentId sets the optional parameter "parentId": The new parent of the firewall policy. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization.
func (*FirewallPoliciesMoveCall) RequestId ¶ added in v0.39.0
func (c *FirewallPoliciesMoveCall) RequestId(requestId string) *FirewallPoliciesMoveCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FirewallPoliciesPatchCall ¶ added in v0.39.0
type FirewallPoliciesPatchCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesPatchCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesPatchCall) Context(ctx context.Context) *FirewallPoliciesPatchCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesPatchCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewallPolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesPatchCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesPatchCall) Fields(s ...googleapi.Field) *FirewallPoliciesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesPatchCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesPatchCall) RequestId ¶ added in v0.39.0
func (c *FirewallPoliciesPatchCall) RequestId(requestId string) *FirewallPoliciesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FirewallPoliciesPatchRuleCall ¶ added in v0.39.0
type FirewallPoliciesPatchRuleCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesPatchRuleCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesPatchRuleCall) Context(ctx context.Context) *FirewallPoliciesPatchRuleCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesPatchRuleCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewallPolicies.patchRule" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesPatchRuleCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesPatchRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesPatchRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesPatchRuleCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesPatchRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesPatchRuleCall) Priority ¶ added in v0.39.0
func (c *FirewallPoliciesPatchRuleCall) Priority(priority int64) *FirewallPoliciesPatchRuleCall
Priority sets the optional parameter "priority": The priority of the rule to patch.
func (*FirewallPoliciesPatchRuleCall) RequestId ¶ added in v0.39.0
func (c *FirewallPoliciesPatchRuleCall) RequestId(requestId string) *FirewallPoliciesPatchRuleCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FirewallPoliciesRemoveAssociationCall ¶ added in v0.39.0
type FirewallPoliciesRemoveAssociationCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesRemoveAssociationCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesRemoveAssociationCall) Context(ctx context.Context) *FirewallPoliciesRemoveAssociationCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesRemoveAssociationCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesRemoveAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewallPolicies.removeAssociation" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesRemoveAssociationCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesRemoveAssociationCall) Fields(s ...googleapi.Field) *FirewallPoliciesRemoveAssociationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesRemoveAssociationCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesRemoveAssociationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesRemoveAssociationCall) Name ¶ added in v0.39.0
func (c *FirewallPoliciesRemoveAssociationCall) Name(name string) *FirewallPoliciesRemoveAssociationCall
Name sets the optional parameter "name": Name for the attachment that will be removed.
func (*FirewallPoliciesRemoveAssociationCall) RequestId ¶ added in v0.39.0
func (c *FirewallPoliciesRemoveAssociationCall) RequestId(requestId string) *FirewallPoliciesRemoveAssociationCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FirewallPoliciesRemoveRuleCall ¶ added in v0.39.0
type FirewallPoliciesRemoveRuleCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesRemoveRuleCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesRemoveRuleCall) Context(ctx context.Context) *FirewallPoliciesRemoveRuleCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesRemoveRuleCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesRemoveRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewallPolicies.removeRule" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesRemoveRuleCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesRemoveRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesRemoveRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesRemoveRuleCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesRemoveRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallPoliciesRemoveRuleCall) Priority ¶ added in v0.39.0
func (c *FirewallPoliciesRemoveRuleCall) Priority(priority int64) *FirewallPoliciesRemoveRuleCall
Priority sets the optional parameter "priority": The priority of the rule to remove from the firewall policy.
func (*FirewallPoliciesRemoveRuleCall) RequestId ¶ added in v0.39.0
func (c *FirewallPoliciesRemoveRuleCall) RequestId(requestId string) *FirewallPoliciesRemoveRuleCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FirewallPoliciesService ¶ added in v0.39.0
type FirewallPoliciesService struct {
// contains filtered or unexported fields
}
func NewFirewallPoliciesService ¶ added in v0.39.0
func NewFirewallPoliciesService(s *Service) *FirewallPoliciesService
func (*FirewallPoliciesService) AddAssociation ¶ added in v0.39.0
func (r *FirewallPoliciesService) AddAssociation(firewallPolicy string, firewallpolicyassociation *FirewallPolicyAssociation) *FirewallPoliciesAddAssociationCall
AddAssociation: Inserts an association for the specified firewall policy.
- firewallPolicy: Name of the firewall policy to update.
func (*FirewallPoliciesService) AddRule ¶ added in v0.39.0
func (r *FirewallPoliciesService) AddRule(firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *FirewallPoliciesAddRuleCall
AddRule: Inserts a rule into a firewall policy.
- firewallPolicy: Name of the firewall policy to update.
func (*FirewallPoliciesService) CloneRules ¶ added in v0.39.0
func (r *FirewallPoliciesService) CloneRules(firewallPolicy string) *FirewallPoliciesCloneRulesCall
CloneRules: Copies rules to the specified firewall policy.
- firewallPolicy: Name of the firewall policy to update.
func (*FirewallPoliciesService) Delete ¶ added in v0.39.0
func (r *FirewallPoliciesService) Delete(firewallPolicy string) *FirewallPoliciesDeleteCall
Delete: Deletes the specified policy.
- firewallPolicy: Name of the firewall policy to delete.
func (*FirewallPoliciesService) Get ¶ added in v0.39.0
func (r *FirewallPoliciesService) Get(firewallPolicy string) *FirewallPoliciesGetCall
Get: Returns the specified firewall policy.
- firewallPolicy: Name of the firewall policy to get.
func (*FirewallPoliciesService) GetAssociation ¶ added in v0.39.0
func (r *FirewallPoliciesService) GetAssociation(firewallPolicy string) *FirewallPoliciesGetAssociationCall
GetAssociation: Gets an association with the specified name.
- firewallPolicy: Name of the firewall policy to which the queried rule belongs.
func (*FirewallPoliciesService) GetIamPolicy ¶ added in v0.39.0
func (r *FirewallPoliciesService) GetIamPolicy(resource string) *FirewallPoliciesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- resource: Name or id of the resource for this request.
func (*FirewallPoliciesService) GetRule ¶ added in v0.39.0
func (r *FirewallPoliciesService) GetRule(firewallPolicy string) *FirewallPoliciesGetRuleCall
GetRule: Gets a rule of the specified priority.
- firewallPolicy: Name of the firewall policy to which the queried rule belongs.
func (*FirewallPoliciesService) Insert ¶ added in v0.39.0
func (r *FirewallPoliciesService) Insert(firewallpolicy *FirewallPolicy) *FirewallPoliciesInsertCall
Insert: Creates a new policy in the specified project using the data included in the request.
func (*FirewallPoliciesService) List ¶ added in v0.39.0
func (r *FirewallPoliciesService) List() *FirewallPoliciesListCall
List: Lists all the policies that have been configured for the specified folder or organization.
func (*FirewallPoliciesService) ListAssociations ¶ added in v0.39.0
func (r *FirewallPoliciesService) ListAssociations() *FirewallPoliciesListAssociationsCall
ListAssociations: Lists associations of a specified target, i.e., organization or folder.
func (*FirewallPoliciesService) Move ¶ added in v0.39.0
func (r *FirewallPoliciesService) Move(firewallPolicy string) *FirewallPoliciesMoveCall
Move: Moves the specified firewall policy.
- firewallPolicy: Name of the firewall policy to update.
func (*FirewallPoliciesService) Patch ¶ added in v0.39.0
func (r *FirewallPoliciesService) Patch(firewallPolicy string, firewallpolicy *FirewallPolicy) *FirewallPoliciesPatchCall
Patch: Patches the specified policy with the data included in the request.
- firewallPolicy: Name of the firewall policy to update.
func (*FirewallPoliciesService) PatchRule ¶ added in v0.39.0
func (r *FirewallPoliciesService) PatchRule(firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *FirewallPoliciesPatchRuleCall
PatchRule: Patches a rule of the specified priority.
- firewallPolicy: Name of the firewall policy to update.
func (*FirewallPoliciesService) RemoveAssociation ¶ added in v0.39.0
func (r *FirewallPoliciesService) RemoveAssociation(firewallPolicy string) *FirewallPoliciesRemoveAssociationCall
RemoveAssociation: Removes an association for the specified firewall policy.
- firewallPolicy: Name of the firewall policy to update.
func (*FirewallPoliciesService) RemoveRule ¶ added in v0.39.0
func (r *FirewallPoliciesService) RemoveRule(firewallPolicy string) *FirewallPoliciesRemoveRuleCall
RemoveRule: Deletes a rule of the specified priority.
- firewallPolicy: Name of the firewall policy to update.
func (*FirewallPoliciesService) SetIamPolicy ¶ added in v0.39.0
func (r *FirewallPoliciesService) SetIamPolicy(resource string, globalorganizationsetpolicyrequest *GlobalOrganizationSetPolicyRequest) *FirewallPoliciesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- resource: Name or id of the resource for this request.
func (*FirewallPoliciesService) TestIamPermissions ¶ added in v0.39.0
func (r *FirewallPoliciesService) TestIamPermissions(resource string, testpermissionsrequest *TestPermissionsRequest) *FirewallPoliciesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- resource: Name or id of the resource for this request.
type FirewallPoliciesSetIamPolicyCall ¶ added in v0.39.0
type FirewallPoliciesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesSetIamPolicyCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesSetIamPolicyCall) Context(ctx context.Context) *FirewallPoliciesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesSetIamPolicyCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.firewallPolicies.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesSetIamPolicyCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *FirewallPoliciesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesSetIamPolicyCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type FirewallPoliciesTestIamPermissionsCall ¶ added in v0.39.0
type FirewallPoliciesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*FirewallPoliciesTestIamPermissionsCall) Context ¶ added in v0.39.0
func (c *FirewallPoliciesTestIamPermissionsCall) Context(ctx context.Context) *FirewallPoliciesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*FirewallPoliciesTestIamPermissionsCall) Do ¶ added in v0.39.0
func (c *FirewallPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.firewallPolicies.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallPoliciesTestIamPermissionsCall) Fields ¶ added in v0.39.0
func (c *FirewallPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *FirewallPoliciesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallPoliciesTestIamPermissionsCall) Header ¶ added in v0.39.0
func (c *FirewallPoliciesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type FirewallPolicy ¶ added in v0.39.0
type FirewallPolicy struct { // Associations: A list of associations that belong to this firewall policy. Associations []*FirewallPolicyAssociation `json:"associations,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // DisplayName: Deprecated, please use short name instead. User-provided name // of the Organization firewall policy. The name should be unique in the // organization in which the firewall policy is created. This field is not // applicable to network firewall policies. This name must be set on creation // and cannot be changed. The name must be 1-63 characters long, and comply // with RFC1035. Specifically, the name must be 1-63 characters long and match // the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first // character must be a lowercase letter, and all following characters must be a // dash, lowercase letter, or digit, except the last character, which cannot be // a dash. DisplayName string `json:"displayName,omitempty"` // Fingerprint: Specifies a fingerprint for this resource, which is essentially // a hash of the metadata's contents and used for optimistic locking. The // fingerprint is initially generated by Compute Engine and changes after every // request to modify or update metadata. You must always provide an up-to-date // fingerprint hash in order to update or change metadata, otherwise the // request will fail with error 412 conditionNotMet. To see the latest // fingerprint, make get() request to the firewall policy. Fingerprint string `json:"fingerprint,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output only] Type of the resource. Always compute#firewallPolicyfor // firewall policies Kind string `json:"kind,omitempty"` // Name: Name of the resource. For Organization Firewall Policies it's a // [Output Only] numeric ID allocated by Google Cloud which uniquely identifies // the Organization Firewall Policy. Name string `json:"name,omitempty"` // Parent: [Output Only] The parent of the firewall policy. This field is not // applicable to network firewall policies. Parent string `json:"parent,omitempty"` // Region: [Output Only] URL of the region where the regional firewall policy // resides. This field is not applicable to global firewall policies. You must // specify this field as part of the HTTP request URL. It is not settable as a // field in the request body. Region string `json:"region,omitempty"` // RuleTupleCount: [Output Only] Total count of all firewall policy rule // tuples. A firewall policy can not exceed a set number of tuples. RuleTupleCount int64 `json:"ruleTupleCount,omitempty"` // Rules: A list of rules that belong to this policy. There must always be a // default rule (rule with priority 2147483647 and match "*"). If no rules are // provided when creating a firewall policy, a default rule with action "allow" // will be added. Rules []*FirewallPolicyRule `json:"rules,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource with the // resource id. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` // ShortName: User-provided name of the Organization firewall policy. The name // should be unique in the organization in which the firewall policy is // created. This field is not applicable to network firewall policies. This // name must be set on creation and cannot be changed. The name must be 1-63 // characters long, and comply with RFC1035. Specifically, the name must be // 1-63 characters long and match the regular expression // `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a // lowercase letter, and all following characters must be a dash, lowercase // letter, or digit, except the last character, which cannot be a dash. ShortName string `json:"shortName,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Associations") 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. "Associations") 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:"-"` }
FirewallPolicy: Represents a Firewall Policy resource.
func (FirewallPolicy) MarshalJSON ¶ added in v0.39.0
func (s FirewallPolicy) MarshalJSON() ([]byte, error)
type FirewallPolicyAssociation ¶ added in v0.39.0
type FirewallPolicyAssociation struct { // AttachmentTarget: The target that the firewall policy is attached to. AttachmentTarget string `json:"attachmentTarget,omitempty"` // DisplayName: [Output Only] Deprecated, please use short name instead. The // display name of the firewall policy of the association. DisplayName string `json:"displayName,omitempty"` // FirewallPolicyId: [Output Only] The firewall policy ID of the association. FirewallPolicyId string `json:"firewallPolicyId,omitempty"` // Name: The name for an association. Name string `json:"name,omitempty"` // ShortName: [Output Only] The short name of the firewall policy of the // association. ShortName string `json:"shortName,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AttachmentTarget") 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. "AttachmentTarget") 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:"-"` }
func (FirewallPolicyAssociation) MarshalJSON ¶ added in v0.39.0
func (s FirewallPolicyAssociation) MarshalJSON() ([]byte, error)
type FirewallPolicyList ¶ added in v0.39.0
type FirewallPolicyList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of FirewallPolicy resources. Items []*FirewallPolicy `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#firewallPolicyList for // listsof FirewallPolicies Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // Warning: [Output Only] Informational warning message. Warning *FirewallPolicyListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (FirewallPolicyList) MarshalJSON ¶ added in v0.39.0
func (s FirewallPolicyList) MarshalJSON() ([]byte, error)
type FirewallPolicyListWarning ¶ added in v0.39.0
type FirewallPolicyListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*FirewallPolicyListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
FirewallPolicyListWarning: [Output Only] Informational warning message.
func (FirewallPolicyListWarning) MarshalJSON ¶ added in v0.39.0
func (s FirewallPolicyListWarning) MarshalJSON() ([]byte, error)
type FirewallPolicyListWarningData ¶ added in v0.39.0
type FirewallPolicyListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (FirewallPolicyListWarningData) MarshalJSON ¶ added in v0.39.0
func (s FirewallPolicyListWarningData) MarshalJSON() ([]byte, error)
type FirewallPolicyRule ¶ added in v0.39.0
type FirewallPolicyRule struct { // Action: The Action to perform when the client connection triggers the rule. // Valid actions for firewall rules are: "allow", "deny", // "apply_security_profile_group" and "goto_next". Valid actions for packet // mirroring rules are: "mirror", "do_not_mirror" and "goto_next". Action string `json:"action,omitempty"` // Description: An optional description for this resource. Description string `json:"description,omitempty"` // Direction: The direction in which this rule applies. // // Possible values: // "EGRESS" // "INGRESS" Direction string `json:"direction,omitempty"` // Disabled: Denotes whether the firewall policy rule is disabled. When set to // true, the firewall policy rule is not enforced and traffic behaves as if it // did not exist. If this is unspecified, the firewall policy rule will be // enabled. Disabled bool `json:"disabled,omitempty"` // EnableLogging: Denotes whether to enable logging for a particular rule. If // logging is enabled, logs will be exported to the configured export // destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. // Note: you cannot enable logging on "goto_next" rules. EnableLogging bool `json:"enableLogging,omitempty"` // Kind: [Output only] Type of the resource. Returns compute#firewallPolicyRule // for firewall rules and compute#packetMirroringRule for packet mirroring // rules. Kind string `json:"kind,omitempty"` // Match: A match condition that incoming traffic is evaluated against. If it // evaluates to true, the corresponding 'action' is enforced. Match *FirewallPolicyRuleMatcher `json:"match,omitempty"` // Priority: An integer indicating the priority of a rule in the list. The // priority must be a positive value between 0 and 2147483647. Rules are // evaluated from highest to lowest priority where 0 is the highest priority // and 2147483647 is the lowest priority. Priority int64 `json:"priority,omitempty"` // RuleName: An optional name for the rule. This field is not a unique // identifier and can be updated. RuleName string `json:"ruleName,omitempty"` // RuleTupleCount: [Output Only] Calculation of the complexity of a single // firewall policy rule. RuleTupleCount int64 `json:"ruleTupleCount,omitempty"` // SecurityProfileGroup: A fully-qualified URL of a SecurityProfile resource // instance. Example: // https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group // Must be specified if action is one of 'apply_security_profile_group' or // 'mirror'. Cannot be specified for other actions. SecurityProfileGroup string `json:"securityProfileGroup,omitempty"` // TargetResources: A list of network resource URLs to which this rule applies. // This field allows you to control which network's VMs get this rule. If this // field is left blank, all VMs within the organization will receive the rule. TargetResources []string `json:"targetResources,omitempty"` // TargetSecureTags: A list of secure tags that controls which instances the // firewall rule applies to. If targetSecureTag are specified, then the // firewall rule applies only to instances in the VPC network that have one of // those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE // state, then this rule will be ignored. targetSecureTag may not be set at the // same time as targetServiceAccounts. If neither targetServiceAccounts nor // targetSecureTag are specified, the firewall rule applies to all instances on // the specified network. Maximum number of target label tags allowed is 256. TargetSecureTags []*FirewallPolicyRuleSecureTag `json:"targetSecureTags,omitempty"` // TargetServiceAccounts: A list of service accounts indicating the sets of // instances that are applied with this rule. TargetServiceAccounts []string `json:"targetServiceAccounts,omitempty"` // TlsInspect: Boolean flag indicating if the traffic should be TLS decrypted. // Can be set only if action = 'apply_security_profile_group' and cannot be set // for other actions. TlsInspect bool `json:"tlsInspect,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:"-"` }
FirewallPolicyRule: Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny).
func (FirewallPolicyRule) MarshalJSON ¶ added in v0.39.0
func (s FirewallPolicyRule) MarshalJSON() ([]byte, error)
type FirewallPolicyRuleMatcher ¶ added in v0.39.0
type FirewallPolicyRuleMatcher struct { // DestAddressGroups: Address groups which should be matched against the // traffic destination. Maximum number of destination address groups is 10. DestAddressGroups []string `json:"destAddressGroups,omitempty"` // DestFqdns: Fully Qualified Domain Name (FQDN) which should be matched // against traffic destination. Maximum number of destination fqdn allowed is // 100. DestFqdns []string `json:"destFqdns,omitempty"` // DestIpRanges: CIDR IP address range. Maximum number of destination CIDR IP // ranges allowed is 5000. DestIpRanges []string `json:"destIpRanges,omitempty"` // DestRegionCodes: Region codes whose IP addresses will be used to match for // destination of traffic. Should be specified as 2 letter country code defined // as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of dest region // codes allowed is 5000. DestRegionCodes []string `json:"destRegionCodes,omitempty"` // DestThreatIntelligences: Names of Network Threat Intelligence lists. The IPs // in these lists will be matched against traffic destination. DestThreatIntelligences []string `json:"destThreatIntelligences,omitempty"` // Layer4Configs: Pairs of IP protocols and ports that the rule should match. Layer4Configs []*FirewallPolicyRuleMatcherLayer4Config `json:"layer4Configs,omitempty"` // SrcAddressGroups: Address groups which should be matched against the traffic // source. Maximum number of source address groups is 10. SrcAddressGroups []string `json:"srcAddressGroups,omitempty"` // SrcFqdns: Fully Qualified Domain Name (FQDN) which should be matched against // traffic source. Maximum number of source fqdn allowed is 100. SrcFqdns []string `json:"srcFqdns,omitempty"` // SrcIpRanges: CIDR IP address range. Maximum number of source CIDR IP ranges // allowed is 5000. SrcIpRanges []string `json:"srcIpRanges,omitempty"` // SrcRegionCodes: Region codes whose IP addresses will be used to match for // source of traffic. Should be specified as 2 letter country code defined as // per ISO 3166 alpha-2 country codes. ex."US" Maximum number of source region // codes allowed is 5000. SrcRegionCodes []string `json:"srcRegionCodes,omitempty"` // SrcSecureTags: List of secure tag values, which should be matched at the // source of the traffic. For INGRESS rule, if all the srcSecureTag are // INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum // number of source tag values allowed is 256. SrcSecureTags []*FirewallPolicyRuleSecureTag `json:"srcSecureTags,omitempty"` // SrcThreatIntelligences: Names of Network Threat Intelligence lists. The IPs // in these lists will be matched against traffic source. SrcThreatIntelligences []string `json:"srcThreatIntelligences,omitempty"` // ForceSendFields is a list of field names (e.g. "DestAddressGroups") 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. "DestAddressGroups") 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:"-"` }
FirewallPolicyRuleMatcher: Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified.
func (FirewallPolicyRuleMatcher) MarshalJSON ¶ added in v0.39.0
func (s FirewallPolicyRuleMatcher) MarshalJSON() ([]byte, error)
type FirewallPolicyRuleMatcherLayer4Config ¶ added in v0.39.0
type FirewallPolicyRuleMatcherLayer4Config struct { // IpProtocol: The IP protocol to which this rule applies. The protocol type is // required when creating a firewall rule. This value can either be one of the // following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), // or the IP protocol number. IpProtocol string `json:"ipProtocol,omitempty"` // Ports: An optional list of ports to which this rule applies. This field is // only applicable for UDP or TCP protocol. Each entry must be either an // integer or a range. If not specified, this rule applies to connections // through any port. Example inputs include: ["22"], ["80","443"], and // ["12345-12349"]. Ports []string `json:"ports,omitempty"` // ForceSendFields is a list of field names (e.g. "IpProtocol") 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. "IpProtocol") 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:"-"` }
func (FirewallPolicyRuleMatcherLayer4Config) MarshalJSON ¶ added in v0.39.0
func (s FirewallPolicyRuleMatcherLayer4Config) MarshalJSON() ([]byte, error)
type FirewallPolicyRuleSecureTag ¶ added in v0.69.0
type FirewallPolicyRuleSecureTag struct { // Name: Name of the secure tag, created with TagManager's TagValue API. Name string `json:"name,omitempty"` // State: [Output Only] State of the secure tag, either `EFFECTIVE` or // `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted or its // network is deleted. // // Possible values: // "EFFECTIVE" // "INEFFECTIVE" State string `json:"state,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:"-"` }
func (FirewallPolicyRuleSecureTag) MarshalJSON ¶ added in v0.69.0
func (s FirewallPolicyRuleSecureTag) MarshalJSON() ([]byte, error)
type FirewallsDeleteCall ¶
type FirewallsDeleteCall struct {
// contains filtered or unexported fields
}
func (*FirewallsDeleteCall) Context ¶
func (c *FirewallsDeleteCall) Context(ctx context.Context) *FirewallsDeleteCall
Context sets the context to be used in this call's Do method.
func (*FirewallsDeleteCall) Do ¶
func (c *FirewallsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewalls.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallsDeleteCall) Fields ¶
func (c *FirewallsDeleteCall) Fields(s ...googleapi.Field) *FirewallsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallsDeleteCall) Header ¶
func (c *FirewallsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallsDeleteCall) RequestId ¶
func (c *FirewallsDeleteCall) RequestId(requestId string) *FirewallsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FirewallsGetCall ¶
type FirewallsGetCall struct {
// contains filtered or unexported fields
}
func (*FirewallsGetCall) Context ¶
func (c *FirewallsGetCall) Context(ctx context.Context) *FirewallsGetCall
Context sets the context to be used in this call's Do method.
func (*FirewallsGetCall) Do ¶
func (c *FirewallsGetCall) Do(opts ...googleapi.CallOption) (*Firewall, error)
Do executes the "compute.firewalls.get" call. Any non-2xx status code is an error. Response headers are in either *Firewall.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallsGetCall) Fields ¶
func (c *FirewallsGetCall) Fields(s ...googleapi.Field) *FirewallsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallsGetCall) Header ¶
func (c *FirewallsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallsGetCall) IfNoneMatch ¶
func (c *FirewallsGetCall) IfNoneMatch(entityTag string) *FirewallsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type FirewallsInsertCall ¶
type FirewallsInsertCall struct {
// contains filtered or unexported fields
}
func (*FirewallsInsertCall) Context ¶
func (c *FirewallsInsertCall) Context(ctx context.Context) *FirewallsInsertCall
Context sets the context to be used in this call's Do method.
func (*FirewallsInsertCall) Do ¶
func (c *FirewallsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewalls.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallsInsertCall) Fields ¶
func (c *FirewallsInsertCall) Fields(s ...googleapi.Field) *FirewallsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallsInsertCall) Header ¶
func (c *FirewallsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallsInsertCall) RequestId ¶
func (c *FirewallsInsertCall) RequestId(requestId string) *FirewallsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FirewallsListCall ¶
type FirewallsListCall struct {
// contains filtered or unexported fields
}
func (*FirewallsListCall) Context ¶
func (c *FirewallsListCall) Context(ctx context.Context) *FirewallsListCall
Context sets the context to be used in this call's Do method.
func (*FirewallsListCall) Do ¶
func (c *FirewallsListCall) Do(opts ...googleapi.CallOption) (*FirewallList, error)
Do executes the "compute.firewalls.list" call. Any non-2xx status code is an error. Response headers are in either *FirewallList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallsListCall) Fields ¶
func (c *FirewallsListCall) Fields(s ...googleapi.Field) *FirewallsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallsListCall) Filter ¶
func (c *FirewallsListCall) Filter(filter string) *FirewallsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*FirewallsListCall) Header ¶
func (c *FirewallsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallsListCall) IfNoneMatch ¶
func (c *FirewallsListCall) IfNoneMatch(entityTag string) *FirewallsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*FirewallsListCall) MaxResults ¶
func (c *FirewallsListCall) MaxResults(maxResults int64) *FirewallsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*FirewallsListCall) OrderBy ¶
func (c *FirewallsListCall) OrderBy(orderBy string) *FirewallsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*FirewallsListCall) PageToken ¶
func (c *FirewallsListCall) PageToken(pageToken string) *FirewallsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*FirewallsListCall) Pages ¶
func (c *FirewallsListCall) Pages(ctx context.Context, f func(*FirewallList) 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 (*FirewallsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *FirewallsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *FirewallsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type FirewallsPatchCall ¶
type FirewallsPatchCall struct {
// contains filtered or unexported fields
}
func (*FirewallsPatchCall) Context ¶
func (c *FirewallsPatchCall) Context(ctx context.Context) *FirewallsPatchCall
Context sets the context to be used in this call's Do method.
func (*FirewallsPatchCall) Do ¶
func (c *FirewallsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewalls.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallsPatchCall) Fields ¶
func (c *FirewallsPatchCall) Fields(s ...googleapi.Field) *FirewallsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallsPatchCall) Header ¶
func (c *FirewallsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallsPatchCall) RequestId ¶
func (c *FirewallsPatchCall) RequestId(requestId string) *FirewallsPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FirewallsService ¶
type FirewallsService struct {
// contains filtered or unexported fields
}
func NewFirewallsService ¶
func NewFirewallsService(s *Service) *FirewallsService
func (*FirewallsService) Delete ¶
func (r *FirewallsService) Delete(project string, firewall string) *FirewallsDeleteCall
Delete: Deletes the specified firewall.
- firewall: Name of the firewall rule to delete. - project: Project ID for this request.
func (*FirewallsService) Get ¶
func (r *FirewallsService) Get(project string, firewall string) *FirewallsGetCall
Get: Returns the specified firewall.
- firewall: Name of the firewall rule to return. - project: Project ID for this request.
func (*FirewallsService) Insert ¶
func (r *FirewallsService) Insert(project string, firewall *Firewall) *FirewallsInsertCall
Insert: Creates a firewall rule in the specified project using the data included in the request.
- project: Project ID for this request.
func (*FirewallsService) List ¶
func (r *FirewallsService) List(project string) *FirewallsListCall
List: Retrieves the list of firewall rules available to the specified project.
- project: Project ID for this request.
func (*FirewallsService) Patch ¶
func (r *FirewallsService) Patch(project string, firewall string, firewall2 *Firewall) *FirewallsPatchCall
Patch: Updates the specified firewall rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- firewall: Name of the firewall rule to patch. - project: Project ID for this request.
func (*FirewallsService) Update ¶
func (r *FirewallsService) Update(project string, firewall string, firewall2 *Firewall) *FirewallsUpdateCall
Update: Updates the specified firewall rule with the data included in the request. Note that all fields will be updated if using PUT, even fields that are not specified. To update individual fields, please use PATCH instead.
- firewall: Name of the firewall rule to update. - project: Project ID for this request.
type FirewallsUpdateCall ¶
type FirewallsUpdateCall struct {
// contains filtered or unexported fields
}
func (*FirewallsUpdateCall) Context ¶
func (c *FirewallsUpdateCall) Context(ctx context.Context) *FirewallsUpdateCall
Context sets the context to be used in this call's Do method.
func (*FirewallsUpdateCall) Do ¶
func (c *FirewallsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewalls.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FirewallsUpdateCall) Fields ¶
func (c *FirewallsUpdateCall) Fields(s ...googleapi.Field) *FirewallsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FirewallsUpdateCall) Header ¶
func (c *FirewallsUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FirewallsUpdateCall) RequestId ¶
func (c *FirewallsUpdateCall) RequestId(requestId string) *FirewallsUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FixedOrPercent ¶ added in v0.2.0
type FixedOrPercent struct { // Calculated: [Output Only] Absolute value of VM instances calculated based on // the specific mode. - If the value is fixed, then the calculated value is // equal to the fixed value. - If the value is a percent, then the calculated // value is percent/100 * targetSize. For example, the calculated value of a // 80% of a managed instance group with 150 instances would be (80/100 * 150) = // 120 VM instances. If there is a remainder, the number is rounded. Calculated int64 `json:"calculated,omitempty"` // Fixed: Specifies a fixed number of VM instances. This must be a positive // integer. Fixed int64 `json:"fixed,omitempty"` // Percent: Specifies a percentage of instances between 0 to 100%, inclusive. // For example, specify 80 for 80%. Percent int64 `json:"percent,omitempty"` // ForceSendFields is a list of field names (e.g. "Calculated") 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. "Calculated") 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: Encapsulates numeric value that can be either absolute or relative.
func (FixedOrPercent) MarshalJSON ¶ added in v0.2.0
func (s FixedOrPercent) MarshalJSON() ([]byte, error)
type ForwardingRule ¶
type ForwardingRule struct { // IPAddress: IP address for which this forwarding rule accepts traffic. When a // client sends traffic to this IP address, the forwarding rule directs the // traffic to the referenced target or backendService. While creating a // forwarding rule, specifying an IPAddress is required under the following // circumstances: - When the target is set to targetGrpcProxy and // validateForProxyless is set to true, the IPAddress should be set to 0.0.0.0. // - When the target is a Private Service Connect Google APIs bundle, you must // specify an IPAddress. Otherwise, you can optionally specify an IP address // that references an existing static (reserved) IP address resource. When // omitted, Google Cloud assigns an ephemeral IP address. Use one of the // following formats to specify an IP address while creating a forwarding rule: // * IP address number, as in `100.1.2.3` * IPv6 address range, as in // `2600:1234::/96` * Full resource URL, as in // https://www.googleapis.com/compute/v1/projects/ // project_id/regions/region/addresses/address-name * Partial URL or by name, // as in: - projects/project_id/regions/region/addresses/address-name - // regions/region/addresses/address-name - global/addresses/address-name - // address-name The forwarding rule's target or backendService, and in most // cases, also the loadBalancingScheme, determine the type of IP address that // you can use. For detailed information, see IP address specifications // (https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). // When reading an IPAddress, the API always returns the IP address number. IPAddress string `json:"IPAddress,omitempty"` // IPProtocol: The IP protocol to which this rule applies. For protocol // forwarding, valid options are TCP, UDP, ESP, AH, SCTP, ICMP and L3_DEFAULT. // The valid IP protocols are different for different load balancing products // as described in Load balancing features // (https://cloud.google.com/load-balancing/docs/features#protocols_from_the_load_balancer_to_the_backends). // // Possible values: // "AH" // "ESP" // "ICMP" // "L3_DEFAULT" // "SCTP" // "TCP" // "UDP" IPProtocol string `json:"IPProtocol,omitempty"` // AllPorts: The ports, portRange, and allPorts fields are mutually exclusive. // Only packets addressed to ports in the specified range will be forwarded to // the backends configured with this forwarding rule. The allPorts field has // the following limitations: - It requires that the forwarding rule IPProtocol // be TCP, UDP, SCTP, or L3_DEFAULT. - It's applicable only to the following // products: internal passthrough Network Load Balancers, backend service-based // external passthrough Network Load Balancers, and internal and external // protocol forwarding. - Set this field to true to allow packets addressed to // any port or packets lacking destination port information (for example, UDP // fragments after the first fragment) to be forwarded to the backends // configured with this forwarding rule. The L3_DEFAULT protocol requires // allPorts be set to true. AllPorts bool `json:"allPorts,omitempty"` // AllowGlobalAccess: If set to true, clients can access the internal // passthrough Network Load Balancers, the regional internal Application Load // Balancer, and the regional internal proxy Network Load Balancer from all // regions. If false, only allows access from the local region the load // balancer is located at. Note that for INTERNAL_MANAGED forwarding rules, // this field cannot be changed after the forwarding rule is created. AllowGlobalAccess bool `json:"allowGlobalAccess,omitempty"` // AllowPscGlobalAccess: This is used in PSC consumer ForwardingRule to control // whether the PSC endpoint can be accessed from another region. AllowPscGlobalAccess bool `json:"allowPscGlobalAccess,omitempty"` // BackendService: Identifies the backend service to which the forwarding rule // sends traffic. Required for internal and external passthrough Network Load // Balancers; must be omitted for all other load balancer types. BackendService string `json:"backendService,omitempty"` // BaseForwardingRule: [Output Only] The URL for the corresponding base // forwarding rule. By base forwarding rule, we mean the forwarding rule that // has the same IP address, protocol, and port settings with the current // forwarding rule, but without sourceIPRanges specified. Always empty if the // current forwarding rule does not have sourceIPRanges specified. BaseForwardingRule string `json:"baseForwardingRule,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents stored in // this object. This field is used in optimistic locking. This field will be // ignored when inserting a ForwardingRule. Include the fingerprint in patch // request to ensure that you do not overwrite changes that were applied from // another concurrent request. To see the latest fingerprint, make a get() // request to retrieve a ForwardingRule. Fingerprint string `json:"fingerprint,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // IpCollection: Resource reference of a PublicDelegatedPrefix. The PDP must be // a sub-PDP in EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. Use one of the // following formats to specify a sub-PDP when creating an IPv6 NetLB // forwarding rule using BYOIP: Full resource URL, as in // https://www.googleapis.com/compute/v1/projects/project_id/regions/region // /publicDelegatedPrefixes/sub-pdp-name Partial URL, as in: - // projects/project_id/regions/region/publicDelegatedPrefixes/sub-pdp-name - // regions/region/publicDelegatedPrefixes/sub-pdp-name IpCollection string `json:"ipCollection,omitempty"` // IpVersion: The IP Version that will be used by this forwarding rule. Valid // options are IPV4 or IPV6. // // Possible values: // "IPV4" // "IPV6" // "UNSPECIFIED_VERSION" IpVersion string `json:"ipVersion,omitempty"` // IsMirroringCollector: Indicates whether or not this load balancer can be // used as a collector for packet mirroring. To prevent mirroring loops, // instances behind this load balancer will not have their traffic mirrored // even if a PacketMirroring rule applies to them. This can only be set to true // for load balancers that have their loadBalancingScheme set to INTERNAL. IsMirroringCollector bool `json:"isMirroringCollector,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#forwardingRule for // forwarding rule resources. Kind string `json:"kind,omitempty"` // LabelFingerprint: A fingerprint for the labels being applied to this // resource, which is essentially a hash of the labels set used for optimistic // locking. The fingerprint is initially generated by Compute Engine and // changes after every request to modify or update labels. You must always // provide an up-to-date fingerprint hash in order to update or change labels, // otherwise the request will fail with error 412 conditionNotMet. To see the // latest fingerprint, make a get() request to retrieve a ForwardingRule. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels for this resource. These can only be added or modified by the // setLabels method. Each label key/value pair must comply with RFC1035. Label // values may be empty. Labels map[string]string `json:"labels,omitempty"` // LoadBalancingScheme: Specifies the forwarding rule type. For more // information about forwarding rules, refer to Forwarding rule concepts. // // Possible values: // "EXTERNAL" // "EXTERNAL_MANAGED" // "INTERNAL" // "INTERNAL_MANAGED" // "INTERNAL_SELF_MANAGED" // "INVALID" LoadBalancingScheme string `json:"loadBalancingScheme,omitempty"` // MetadataFilters: Opaque filter criteria used by load balancer to restrict // routing configuration to a limited set of xDS compliant clients. In their // xDS requests to load balancer, xDS clients present node metadata. When there // is a match, the relevant configuration is made available to those proxies. // Otherwise, all the resources (e.g. TargetHttpProxy, UrlMap) referenced by // the ForwardingRule are not visible to those proxies. For each metadataFilter // in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one // of the filterLabels must match the corresponding label provided in the // metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its // filterLabels must match with corresponding labels provided in the metadata. // If multiple metadataFilters are specified, all of them need to be satisfied // in order to be considered a match. metadataFilters specified here will be // applifed before those specified in the UrlMap that this ForwardingRule // references. metadataFilters only applies to Loadbalancers that have their // loadBalancingScheme set to INTERNAL_SELF_MANAGED. MetadataFilters []*MetadataFilter `json:"metadataFilters,omitempty"` // Name: Name of the resource; provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. For Private Service Connect forwarding rules that forward traffic to // Google APIs, the forwarding rule name must be a 1-20 characters string with // lowercase letters and numbers and must start with a letter. Name string `json:"name,omitempty"` // Network: This field is not used for global external load balancing. For // internal passthrough Network Load Balancers, this field identifies the // network that the load balanced IP should belong to for this forwarding rule. // If the subnetwork is specified, the network of the subnetwork will be used. // If neither subnetwork nor this field is specified, the default network will // be used. For Private Service Connect forwarding rules that forward traffic // to Google APIs, a network must be provided. Network string `json:"network,omitempty"` // NetworkTier: This signifies the networking tier used for configuring this // load balancer and can only take the following values: PREMIUM, STANDARD. For // regional ForwardingRule, the valid values are PREMIUM and STANDARD. For // GlobalForwardingRule, the valid value is PREMIUM. If this field is not // specified, it is assumed to be PREMIUM. If IPAddress is specified, this // value must be equal to the networkTier of the Address. // // Possible values: // "FIXED_STANDARD" - Public internet quality with fixed bandwidth. // "PREMIUM" - High quality, Google-grade network tier, support for all // networking products. // "STANDARD" - Public internet quality, only limited support for other // networking products. // "STANDARD_OVERRIDES_FIXED_STANDARD" - (Output only) Temporary tier for // FIXED_STANDARD when fixed standard tier is expired or not configured. NetworkTier string `json:"networkTier,omitempty"` // NoAutomateDnsZone: This is used in PSC consumer ForwardingRule to control // whether it should try to auto-generate a DNS zone or not. Non-PSC forwarding // rules do not use this field. Once set, this field is not mutable. NoAutomateDnsZone bool `json:"noAutomateDnsZone,omitempty"` // PortRange: The ports, portRange, and allPorts fields are mutually exclusive. // Only packets addressed to ports in the specified range will be forwarded to // the backends configured with this forwarding rule. The portRange field has // the following limitations: - It requires that the forwarding rule IPProtocol // be TCP, UDP, or SCTP, and - It's applicable only to the following products: // external passthrough Network Load Balancers, internal and external proxy // Network Load Balancers, internal and external Application Load Balancers, // external protocol forwarding, and Classic VPN. - Some products have // restrictions on what ports can be used. See port specifications for details. // For external forwarding rules, two or more forwarding rules cannot use the // same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. // For internal forwarding rules within the same VPC network, two or more // forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and // cannot have overlapping portRanges. @pattern: \\d+(?:-\\d+)? PortRange string `json:"portRange,omitempty"` // Ports: The ports, portRange, and allPorts fields are mutually exclusive. // Only packets addressed to ports in the specified range will be forwarded to // the backends configured with this forwarding rule. The ports field has the // following limitations: - It requires that the forwarding rule IPProtocol be // TCP, UDP, or SCTP, and - It's applicable only to the following products: // internal passthrough Network Load Balancers, backend service-based external // passthrough Network Load Balancers, and internal protocol forwarding. - You // can specify a list of up to five ports by number, separated by commas. The // ports can be contiguous or discontiguous. For external forwarding rules, two // or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair if // they share at least one port number. For internal forwarding rules within // the same VPC network, two or more forwarding rules cannot use the same // [IPAddress, IPProtocol] pair if they share at least one port number. // @pattern: \\d+(?:-\\d+)? Ports []string `json:"ports,omitempty"` // PscConnectionId: [Output Only] The PSC connection id of the PSC forwarding // rule. PscConnectionId uint64 `json:"pscConnectionId,omitempty,string"` // Possible values: // "ACCEPTED" - The connection has been accepted by the producer. // "CLOSED" - The connection has been closed by the producer and will not // serve traffic going forward. // "NEEDS_ATTENTION" - The connection has been accepted by the producer, but // the producer needs to take further action before the forwarding rule can // serve traffic. // "PENDING" - The connection is pending acceptance by the producer. // "REJECTED" - The connection has been rejected by the producer. // "STATUS_UNSPECIFIED" PscConnectionStatus string `json:"pscConnectionStatus,omitempty"` // Region: [Output Only] URL of the region where the regional forwarding rule // resides. This field is not applicable to global forwarding rules. You must // specify this field as part of the HTTP request URL. It is not settable as a // field in the request body. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ServiceDirectoryRegistrations: Service Directory resources to register this // forwarding rule with. Currently, only supports a single Service Directory // resource. ServiceDirectoryRegistrations []*ForwardingRuleServiceDirectoryRegistration `json:"serviceDirectoryRegistrations,omitempty"` // ServiceLabel: An optional prefix to the service name for this forwarding // rule. If specified, the prefix is the first label of the fully qualified // service name. The label must be 1-63 characters long, and comply with // RFC1035. Specifically, the label must be 1-63 characters long and match the // regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first // character must be a lowercase letter, and all following characters must be a // dash, lowercase letter, or digit, except the last character, which cannot be // a dash. This field is only used for internal load balancing. ServiceLabel string `json:"serviceLabel,omitempty"` // ServiceName: [Output Only] The internal fully qualified service name for // this forwarding rule. This field is only used for internal load balancing. ServiceName string `json:"serviceName,omitempty"` // SourceIpRanges: If not empty, this forwarding rule will only forward the // traffic when the source IP address matches one of the IP addresses or CIDR // ranges set here. Note that a forwarding rule can only have up to 64 source // IP ranges, and this field can only be used with a regional forwarding rule // whose scheme is EXTERNAL. Each source_ip_range entry should be either an IP // address (for example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24). SourceIpRanges []string `json:"sourceIpRanges,omitempty"` // Subnetwork: This field identifies the subnetwork that the load balanced IP // should belong to for this forwarding rule, used with internal load balancers // and external passthrough Network Load Balancers with IPv6. If the network // specified is in auto subnet mode, this field is optional. However, a // subnetwork must be specified if the network is in custom subnet mode or when // creating external forwarding rule with IPv6. Subnetwork string `json:"subnetwork,omitempty"` // Target: The URL of the target resource to receive the matched traffic. For // regional forwarding rules, this target must be in the same region as the // forwarding rule. For global forwarding rules, this target must be a global // load balancing resource. The forwarded traffic must be of a type appropriate // to the target object. - For load balancers, see the "Target" column in Port // specifications // (https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). // - For Private Service Connect forwarding rules that forward traffic to // Google APIs, provide the name of a supported Google API bundle: - vpc-sc - // APIs that support VPC Service Controls. - all-apis - All supported Google // APIs. - For Private Service Connect forwarding rules that forward traffic to // managed services, the target must be a service attachment. The target is not // mutable once set as a service attachment. Target string `json:"target,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "IPAddress") 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. "IPAddress") 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:"-"` }
ForwardingRule: Represents a Forwarding Rule resource. Forwarding rule resources in Google Cloud can be either regional or global in scope: * Global (https://cloud.google.com/compute/docs/reference/rest/v1/globalForwardingRules) * Regional (https://cloud.google.com/compute/docs/reference/rest/v1/forwardingRules) A forwarding rule and its corresponding IP address represent the frontend configuration of a Google Cloud load balancer. Forwarding rules can also reference target instances and Cloud VPN Classic gateways (targetVpnGateway). For more information, read Forwarding rule concepts and Using protocol forwarding.
func (ForwardingRule) MarshalJSON ¶
func (s ForwardingRule) MarshalJSON() ([]byte, error)
type ForwardingRuleAggregatedList ¶
type ForwardingRuleAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of ForwardingRulesScopedList resources. Items map[string]ForwardingRulesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#forwardingRuleAggregatedList for lists of forwarding rules. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *ForwardingRuleAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (ForwardingRuleAggregatedList) MarshalJSON ¶
func (s ForwardingRuleAggregatedList) MarshalJSON() ([]byte, error)
type ForwardingRuleAggregatedListWarning ¶
type ForwardingRuleAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ForwardingRuleAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ForwardingRuleAggregatedListWarning: [Output Only] Informational warning message.
func (ForwardingRuleAggregatedListWarning) MarshalJSON ¶
func (s ForwardingRuleAggregatedListWarning) MarshalJSON() ([]byte, error)
type ForwardingRuleAggregatedListWarningData ¶
type ForwardingRuleAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ForwardingRuleAggregatedListWarningData) MarshalJSON ¶
func (s ForwardingRuleAggregatedListWarningData) MarshalJSON() ([]byte, error)
type ForwardingRuleList ¶
type ForwardingRuleList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of ForwardingRule resources. Items []*ForwardingRule `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *ForwardingRuleListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
ForwardingRuleList: Contains a list of ForwardingRule resources.
func (ForwardingRuleList) MarshalJSON ¶
func (s ForwardingRuleList) MarshalJSON() ([]byte, error)
type ForwardingRuleListWarning ¶
type ForwardingRuleListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ForwardingRuleListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ForwardingRuleListWarning: [Output Only] Informational warning message.
func (ForwardingRuleListWarning) MarshalJSON ¶
func (s ForwardingRuleListWarning) MarshalJSON() ([]byte, error)
type ForwardingRuleListWarningData ¶
type ForwardingRuleListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ForwardingRuleListWarningData) MarshalJSON ¶
func (s ForwardingRuleListWarningData) MarshalJSON() ([]byte, error)
type ForwardingRuleReference ¶ added in v0.3.1
type ForwardingRuleReference struct { ForwardingRule string `json:"forwardingRule,omitempty"` // ForceSendFields is a list of field names (e.g. "ForwardingRule") 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. "ForwardingRule") 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:"-"` }
func (ForwardingRuleReference) MarshalJSON ¶ added in v0.3.1
func (s ForwardingRuleReference) MarshalJSON() ([]byte, error)
type ForwardingRuleServiceDirectoryRegistration ¶ added in v0.41.0
type ForwardingRuleServiceDirectoryRegistration struct { // Namespace: Service Directory namespace to register the forwarding rule // under. Namespace string `json:"namespace,omitempty"` // Service: Service Directory service to register the forwarding rule under. Service string `json:"service,omitempty"` // ServiceDirectoryRegion: [Optional] Service Directory region to register this // global forwarding rule under. Default to "us-central1". Only used for PSC // for Google APIs. All PSC for Google APIs forwarding rules on the same // network should use the same Service Directory region. ServiceDirectoryRegion string `json:"serviceDirectoryRegion,omitempty"` // ForceSendFields is a list of field names (e.g. "Namespace") 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. "Namespace") 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:"-"` }
ForwardingRuleServiceDirectoryRegistration: Describes the auto-registration of the forwarding rule to Service Directory. The region and project of the Service Directory resource generated from this registration will be the same as this forwarding rule.
func (ForwardingRuleServiceDirectoryRegistration) MarshalJSON ¶ added in v0.41.0
func (s ForwardingRuleServiceDirectoryRegistration) MarshalJSON() ([]byte, error)
type ForwardingRulesAggregatedListCall ¶
type ForwardingRulesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*ForwardingRulesAggregatedListCall) Context ¶
func (c *ForwardingRulesAggregatedListCall) Context(ctx context.Context) *ForwardingRulesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*ForwardingRulesAggregatedListCall) Do ¶
func (c *ForwardingRulesAggregatedListCall) Do(opts ...googleapi.CallOption) (*ForwardingRuleAggregatedList, error)
Do executes the "compute.forwardingRules.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *ForwardingRuleAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ForwardingRulesAggregatedListCall) Fields ¶
func (c *ForwardingRulesAggregatedListCall) Fields(s ...googleapi.Field) *ForwardingRulesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ForwardingRulesAggregatedListCall) Filter ¶
func (c *ForwardingRulesAggregatedListCall) Filter(filter string) *ForwardingRulesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*ForwardingRulesAggregatedListCall) Header ¶
func (c *ForwardingRulesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ForwardingRulesAggregatedListCall) IfNoneMatch ¶
func (c *ForwardingRulesAggregatedListCall) IfNoneMatch(entityTag string) *ForwardingRulesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ForwardingRulesAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *ForwardingRulesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *ForwardingRulesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*ForwardingRulesAggregatedListCall) MaxResults ¶
func (c *ForwardingRulesAggregatedListCall) MaxResults(maxResults int64) *ForwardingRulesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*ForwardingRulesAggregatedListCall) OrderBy ¶
func (c *ForwardingRulesAggregatedListCall) OrderBy(orderBy string) *ForwardingRulesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*ForwardingRulesAggregatedListCall) PageToken ¶
func (c *ForwardingRulesAggregatedListCall) PageToken(pageToken string) *ForwardingRulesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*ForwardingRulesAggregatedListCall) Pages ¶
func (c *ForwardingRulesAggregatedListCall) Pages(ctx context.Context, f func(*ForwardingRuleAggregatedList) 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 (*ForwardingRulesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *ForwardingRulesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ForwardingRulesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*ForwardingRulesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *ForwardingRulesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *ForwardingRulesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type ForwardingRulesDeleteCall ¶
type ForwardingRulesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ForwardingRulesDeleteCall) Context ¶
func (c *ForwardingRulesDeleteCall) Context(ctx context.Context) *ForwardingRulesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ForwardingRulesDeleteCall) Do ¶
func (c *ForwardingRulesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.forwardingRules.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ForwardingRulesDeleteCall) Fields ¶
func (c *ForwardingRulesDeleteCall) Fields(s ...googleapi.Field) *ForwardingRulesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ForwardingRulesDeleteCall) Header ¶
func (c *ForwardingRulesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ForwardingRulesDeleteCall) RequestId ¶
func (c *ForwardingRulesDeleteCall) RequestId(requestId string) *ForwardingRulesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ForwardingRulesGetCall ¶
type ForwardingRulesGetCall struct {
// contains filtered or unexported fields
}
func (*ForwardingRulesGetCall) Context ¶
func (c *ForwardingRulesGetCall) Context(ctx context.Context) *ForwardingRulesGetCall
Context sets the context to be used in this call's Do method.
func (*ForwardingRulesGetCall) Do ¶
func (c *ForwardingRulesGetCall) Do(opts ...googleapi.CallOption) (*ForwardingRule, error)
Do executes the "compute.forwardingRules.get" call. Any non-2xx status code is an error. Response headers are in either *ForwardingRule.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ForwardingRulesGetCall) Fields ¶
func (c *ForwardingRulesGetCall) Fields(s ...googleapi.Field) *ForwardingRulesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ForwardingRulesGetCall) Header ¶
func (c *ForwardingRulesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ForwardingRulesGetCall) IfNoneMatch ¶
func (c *ForwardingRulesGetCall) IfNoneMatch(entityTag string) *ForwardingRulesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ForwardingRulesInsertCall ¶
type ForwardingRulesInsertCall struct {
// contains filtered or unexported fields
}
func (*ForwardingRulesInsertCall) Context ¶
func (c *ForwardingRulesInsertCall) Context(ctx context.Context) *ForwardingRulesInsertCall
Context sets the context to be used in this call's Do method.
func (*ForwardingRulesInsertCall) Do ¶
func (c *ForwardingRulesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.forwardingRules.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ForwardingRulesInsertCall) Fields ¶
func (c *ForwardingRulesInsertCall) Fields(s ...googleapi.Field) *ForwardingRulesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ForwardingRulesInsertCall) Header ¶
func (c *ForwardingRulesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ForwardingRulesInsertCall) RequestId ¶
func (c *ForwardingRulesInsertCall) RequestId(requestId string) *ForwardingRulesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ForwardingRulesListCall ¶
type ForwardingRulesListCall struct {
// contains filtered or unexported fields
}
func (*ForwardingRulesListCall) Context ¶
func (c *ForwardingRulesListCall) Context(ctx context.Context) *ForwardingRulesListCall
Context sets the context to be used in this call's Do method.
func (*ForwardingRulesListCall) Do ¶
func (c *ForwardingRulesListCall) Do(opts ...googleapi.CallOption) (*ForwardingRuleList, error)
Do executes the "compute.forwardingRules.list" call. Any non-2xx status code is an error. Response headers are in either *ForwardingRuleList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ForwardingRulesListCall) Fields ¶
func (c *ForwardingRulesListCall) Fields(s ...googleapi.Field) *ForwardingRulesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ForwardingRulesListCall) Filter ¶
func (c *ForwardingRulesListCall) Filter(filter string) *ForwardingRulesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*ForwardingRulesListCall) Header ¶
func (c *ForwardingRulesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ForwardingRulesListCall) IfNoneMatch ¶
func (c *ForwardingRulesListCall) IfNoneMatch(entityTag string) *ForwardingRulesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ForwardingRulesListCall) MaxResults ¶
func (c *ForwardingRulesListCall) MaxResults(maxResults int64) *ForwardingRulesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*ForwardingRulesListCall) OrderBy ¶
func (c *ForwardingRulesListCall) OrderBy(orderBy string) *ForwardingRulesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*ForwardingRulesListCall) PageToken ¶
func (c *ForwardingRulesListCall) PageToken(pageToken string) *ForwardingRulesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*ForwardingRulesListCall) Pages ¶
func (c *ForwardingRulesListCall) Pages(ctx context.Context, f func(*ForwardingRuleList) 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 (*ForwardingRulesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *ForwardingRulesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ForwardingRulesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type ForwardingRulesPatchCall ¶ added in v0.16.0
type ForwardingRulesPatchCall struct {
// contains filtered or unexported fields
}
func (*ForwardingRulesPatchCall) Context ¶ added in v0.16.0
func (c *ForwardingRulesPatchCall) Context(ctx context.Context) *ForwardingRulesPatchCall
Context sets the context to be used in this call's Do method.
func (*ForwardingRulesPatchCall) Do ¶ added in v0.16.0
func (c *ForwardingRulesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.forwardingRules.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ForwardingRulesPatchCall) Fields ¶ added in v0.16.0
func (c *ForwardingRulesPatchCall) Fields(s ...googleapi.Field) *ForwardingRulesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ForwardingRulesPatchCall) Header ¶ added in v0.16.0
func (c *ForwardingRulesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ForwardingRulesPatchCall) RequestId ¶ added in v0.16.0
func (c *ForwardingRulesPatchCall) RequestId(requestId string) *ForwardingRulesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ForwardingRulesScopedList ¶
type ForwardingRulesScopedList struct { // ForwardingRules: A list of forwarding rules contained in this scope. ForwardingRules []*ForwardingRule `json:"forwardingRules,omitempty"` // Warning: Informational warning which replaces the list of forwarding rules // when the list is empty. Warning *ForwardingRulesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "ForwardingRules") 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. "ForwardingRules") 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:"-"` }
func (ForwardingRulesScopedList) MarshalJSON ¶
func (s ForwardingRulesScopedList) MarshalJSON() ([]byte, error)
type ForwardingRulesScopedListWarning ¶
type ForwardingRulesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ForwardingRulesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ForwardingRulesScopedListWarning: Informational warning which replaces the list of forwarding rules when the list is empty.
func (ForwardingRulesScopedListWarning) MarshalJSON ¶
func (s ForwardingRulesScopedListWarning) MarshalJSON() ([]byte, error)
type ForwardingRulesScopedListWarningData ¶
type ForwardingRulesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ForwardingRulesScopedListWarningData) MarshalJSON ¶
func (s ForwardingRulesScopedListWarningData) MarshalJSON() ([]byte, error)
type ForwardingRulesService ¶
type ForwardingRulesService struct {
// contains filtered or unexported fields
}
func NewForwardingRulesService ¶
func NewForwardingRulesService(s *Service) *ForwardingRulesService
func (*ForwardingRulesService) AggregatedList ¶
func (r *ForwardingRulesService) AggregatedList(project string) *ForwardingRulesAggregatedListCall
AggregatedList: Retrieves an aggregated list of forwarding rules. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*ForwardingRulesService) Delete ¶
func (r *ForwardingRulesService) Delete(project string, region string, forwardingRule string) *ForwardingRulesDeleteCall
Delete: Deletes the specified ForwardingRule resource.
- forwardingRule: Name of the ForwardingRule resource to delete. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*ForwardingRulesService) Get ¶
func (r *ForwardingRulesService) Get(project string, region string, forwardingRule string) *ForwardingRulesGetCall
Get: Returns the specified ForwardingRule resource.
- forwardingRule: Name of the ForwardingRule resource to return. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*ForwardingRulesService) Insert ¶
func (r *ForwardingRulesService) Insert(project string, region string, forwardingrule *ForwardingRule) *ForwardingRulesInsertCall
Insert: Creates a ForwardingRule resource in the specified project and region using the data included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*ForwardingRulesService) List ¶
func (r *ForwardingRulesService) List(project string, region string) *ForwardingRulesListCall
List: Retrieves a list of ForwardingRule resources available to the specified project and region.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*ForwardingRulesService) Patch ¶ added in v0.16.0
func (r *ForwardingRulesService) Patch(project string, region string, forwardingRule string, forwardingrule *ForwardingRule) *ForwardingRulesPatchCall
Patch: Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field.
- forwardingRule: Name of the ForwardingRule resource to patch. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*ForwardingRulesService) SetLabels ¶ added in v0.39.0
func (r *ForwardingRulesService) SetLabels(project string, region string, resource string, regionsetlabelsrequest *RegionSetLabelsRequest) *ForwardingRulesSetLabelsCall
SetLabels: Sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation.
- project: Project ID for this request. - region: The region for this request. - resource: Name or id of the resource for this request.
func (*ForwardingRulesService) SetTarget ¶
func (r *ForwardingRulesService) SetTarget(project string, region string, forwardingRule string, targetreference *TargetReference) *ForwardingRulesSetTargetCall
SetTarget: Changes target URL for forwarding rule. The new target should be of the same type as the old target.
- forwardingRule: Name of the ForwardingRule resource in which target is to be set.
- project: Project ID for this request.
- region: Name of the region scoping this request.
type ForwardingRulesSetLabelsCall ¶ added in v0.39.0
type ForwardingRulesSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*ForwardingRulesSetLabelsCall) Context ¶ added in v0.39.0
func (c *ForwardingRulesSetLabelsCall) Context(ctx context.Context) *ForwardingRulesSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*ForwardingRulesSetLabelsCall) Do ¶ added in v0.39.0
func (c *ForwardingRulesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.forwardingRules.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ForwardingRulesSetLabelsCall) Fields ¶ added in v0.39.0
func (c *ForwardingRulesSetLabelsCall) Fields(s ...googleapi.Field) *ForwardingRulesSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ForwardingRulesSetLabelsCall) Header ¶ added in v0.39.0
func (c *ForwardingRulesSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ForwardingRulesSetLabelsCall) RequestId ¶ added in v0.39.0
func (c *ForwardingRulesSetLabelsCall) RequestId(requestId string) *ForwardingRulesSetLabelsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ForwardingRulesSetTargetCall ¶
type ForwardingRulesSetTargetCall struct {
// contains filtered or unexported fields
}
func (*ForwardingRulesSetTargetCall) Context ¶
func (c *ForwardingRulesSetTargetCall) Context(ctx context.Context) *ForwardingRulesSetTargetCall
Context sets the context to be used in this call's Do method.
func (*ForwardingRulesSetTargetCall) Do ¶
func (c *ForwardingRulesSetTargetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.forwardingRules.setTarget" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ForwardingRulesSetTargetCall) Fields ¶
func (c *ForwardingRulesSetTargetCall) Fields(s ...googleapi.Field) *ForwardingRulesSetTargetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ForwardingRulesSetTargetCall) Header ¶
func (c *ForwardingRulesSetTargetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ForwardingRulesSetTargetCall) RequestId ¶
func (c *ForwardingRulesSetTargetCall) RequestId(requestId string) *ForwardingRulesSetTargetCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FutureReservation ¶ added in v0.192.0
type FutureReservation struct { // AutoCreatedReservationsDeleteTime: Future timestamp when the FR auto-created // reservations will be deleted by Compute Engine. Format of this field must be // a valid href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339 value. AutoCreatedReservationsDeleteTime string `json:"autoCreatedReservationsDeleteTime,omitempty"` // AutoCreatedReservationsDuration: Specifies the duration of auto-created // reservations. It represents relative time to future reservation start_time // when auto-created reservations will be automatically deleted by Compute // Engine. Duration time unit is represented as a count of seconds and // fractions of seconds at nanosecond resolution. AutoCreatedReservationsDuration *Duration `json:"autoCreatedReservationsDuration,omitempty"` // AutoDeleteAutoCreatedReservations: Setting for enabling or disabling // automatic deletion for auto-created reservation. If set to true, // auto-created reservations will be deleted at Future Reservation's end time // (default) or at user's defined timestamp if any of the // [auto_created_reservations_delete_time, auto_created_reservations_duration] // values is specified. For keeping auto-created reservation indefinitely, this // value should be set to false. AutoDeleteAutoCreatedReservations bool `json:"autoDeleteAutoCreatedReservations,omitempty"` // CreationTimestamp: [Output Only] The creation timestamp for this future // reservation in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the future reservation. Description string `json:"description,omitempty"` // Id: [Output Only] A unique identifier for this future reservation. The // server defines this identifier. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#futureReservation // for future reservations. Kind string `json:"kind,omitempty"` // Name: The name of the resource, provided by the client when initially // creating the resource. The resource name must be 1-63 characters long, and // comply with RFC1035. Specifically, the name must be 1-63 characters long and // match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the // first character must be a lowercase letter, and all following characters // must be a dash, lowercase letter, or digit, except the last character, which // cannot be a dash. Name string `json:"name,omitempty"` // NamePrefix: Name prefix for the reservations to be created at the time of // delivery. The name prefix must comply with RFC1035. Maximum allowed length // for name prefix is 20. Automatically created reservations name format will // be -date-####. NamePrefix string `json:"namePrefix,omitempty"` // PlanningStatus: Planning state before being submitted for evaluation // // Possible values: // "DRAFT" - Future Reservation is being drafted. // "PLANNING_STATUS_UNSPECIFIED" // "SUBMITTED" - Future Reservation has been submitted for evaluation by GCP. PlanningStatus string `json:"planningStatus,omitempty"` // SelfLink: [Output Only] Server-defined fully-qualified URL for this // resource. SelfLink string `json:"selfLink,omitempty"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource with the // resource id. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` ShareSettings *ShareSettings `json:"shareSettings,omitempty"` // SpecificSkuProperties: Future Reservation configuration to indicate instance // properties and total count. SpecificSkuProperties *FutureReservationSpecificSKUProperties `json:"specificSkuProperties,omitempty"` // Status: [Output only] Status of the Future Reservation Status *FutureReservationStatus `json:"status,omitempty"` // TimeWindow: Time window for this Future Reservation. TimeWindow *FutureReservationTimeWindow `json:"timeWindow,omitempty"` // Zone: [Output Only] URL of the Zone where this future reservation resides. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "AutoCreatedReservationsDeleteTime") 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. // "AutoCreatedReservationsDeleteTime") 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:"-"` }
func (FutureReservation) MarshalJSON ¶ added in v0.192.0
func (s FutureReservation) MarshalJSON() ([]byte, error)
type FutureReservationSpecificSKUProperties ¶ added in v0.192.0
type FutureReservationSpecificSKUProperties struct { // InstanceProperties: Properties of the SKU instances being reserved. InstanceProperties *AllocationSpecificSKUAllocationReservedInstanceProperties `json:"instanceProperties,omitempty"` // SourceInstanceTemplate: The instance template that will be used to populate // the ReservedInstanceProperties of the future reservation SourceInstanceTemplate string `json:"sourceInstanceTemplate,omitempty"` // TotalCount: Total number of instances for which capacity assurance is // requested at a future time period. TotalCount int64 `json:"totalCount,omitempty,string"` // ForceSendFields is a list of field names (e.g. "InstanceProperties") 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. "InstanceProperties") 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:"-"` }
func (FutureReservationSpecificSKUProperties) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationSpecificSKUProperties) MarshalJSON() ([]byte, error)
type FutureReservationStatus ¶ added in v0.192.0
type FutureReservationStatus struct { // AmendmentStatus: [Output Only] The current status of the requested // amendment. // // Possible values: // "AMENDMENT_APPROVED" - The requested amendment to the Future Resevation // has been approved and applied by GCP. // "AMENDMENT_DECLINED" - The requested amendment to the Future Reservation // has been declined by GCP and the original state was restored. // "AMENDMENT_IN_REVIEW" - The requested amendment to the Future Reservation // is currently being reviewd by GCP. // "AMENDMENT_STATUS_UNSPECIFIED" AmendmentStatus string `json:"amendmentStatus,omitempty"` // AutoCreatedReservations: Fully qualified urls of the automatically created // reservations at start_time. AutoCreatedReservations []string `json:"autoCreatedReservations,omitempty"` // ExistingMatchingUsageInfo: [Output Only] Represents the existing matching // usage for the future reservation. ExistingMatchingUsageInfo *FutureReservationStatusExistingMatchingUsageInfo `json:"existingMatchingUsageInfo,omitempty"` // FulfilledCount: This count indicates the fulfilled capacity so far. This is // set during "PROVISIONING" state. This count also includes capacity delivered // as part of existing matching reservations. FulfilledCount int64 `json:"fulfilledCount,omitempty,string"` // LastKnownGoodState: [Output Only] This field represents the future // reservation before an amendment was requested. If the amendment is declined, // the Future Reservation will be reverted to the last known good state. The // last known good state is not set when updating a future reservation whose // Procurement Status is DRAFTING. LastKnownGoodState *FutureReservationStatusLastKnownGoodState `json:"lastKnownGoodState,omitempty"` // LockTime: Time when Future Reservation would become LOCKED, after which no // modifications to Future Reservation will be allowed. Applicable only after // the Future Reservation is in the APPROVED state. The lock_time is an RFC3339 // string. The procurement_status will transition to PROCURING state at this // time. LockTime string `json:"lockTime,omitempty"` // ProcurementStatus: Current state of this Future Reservation // // Possible values: // "APPROVED" - Future reservation is approved by GCP. // "CANCELLED" - Future reservation is cancelled by the customer. // "COMMITTED" - Future reservation is committed by the customer. // "DECLINED" - Future reservation is rejected by GCP. // "DRAFTING" - Related status for PlanningStatus.Draft. Transitions to // PENDING_APPROVAL upon user submitting FR. // "FAILED" - Future reservation failed. No additional reservations were // provided. // "FAILED_PARTIALLY_FULFILLED" - Future reservation is partially fulfilled. // Additional reservations were provided but did not reach total_count reserved // instance slots. // "FULFILLED" - Future reservation is fulfilled completely. // "PENDING_AMENDMENT_APPROVAL" - An Amendment to the Future Reservation has // been requested. If the Amendment is declined, the Future Reservation will be // restored to the last known good state. // "PENDING_APPROVAL" - Future reservation is pending approval by GCP. // "PROCUREMENT_STATUS_UNSPECIFIED" // "PROCURING" - Future reservation is being procured by GCP. Beyond this // point, Future reservation is locked and no further modifications are // allowed. // "PROVISIONING" - Future reservation capacity is being provisioned. This // state will be entered after start_time, while reservations are being created // to provide total_count reserved instance slots. This state will not persist // past start_time + 24h. ProcurementStatus string `json:"procurementStatus,omitempty"` SpecificSkuProperties *FutureReservationStatusSpecificSKUProperties `json:"specificSkuProperties,omitempty"` // ForceSendFields is a list of field names (e.g. "AmendmentStatus") 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. "AmendmentStatus") 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:"-"` }
FutureReservationStatus: [Output only] Represents status related to the future reservation.
func (FutureReservationStatus) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationStatus) MarshalJSON() ([]byte, error)
type FutureReservationStatusExistingMatchingUsageInfo ¶ added in v0.192.0
type FutureReservationStatusExistingMatchingUsageInfo struct { // Count: Count to represent min(FR total_count, // matching_reserved_capacity+matching_unreserved_instances) Count int64 `json:"count,omitempty,string"` // Timestamp: Timestamp when the matching usage was calculated Timestamp string `json:"timestamp,omitempty"` // ForceSendFields is a list of field names (e.g. "Count") 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. "Count") 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:"-"` }
FutureReservationStatusExistingMatchingUsageInfo: [Output Only] Represents the existing matching usage for the future reservation.
func (FutureReservationStatusExistingMatchingUsageInfo) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationStatusExistingMatchingUsageInfo) MarshalJSON() ([]byte, error)
type FutureReservationStatusLastKnownGoodState ¶ added in v0.192.0
type FutureReservationStatusLastKnownGoodState struct { // Description: [Output Only] The description of the FutureReservation before // an amendment was requested. Description string `json:"description,omitempty"` // ExistingMatchingUsageInfo: [Output Only] Represents the matching usage for // the future reservation before an amendment was requested. ExistingMatchingUsageInfo *FutureReservationStatusExistingMatchingUsageInfo `json:"existingMatchingUsageInfo,omitempty"` FutureReservationSpecs *FutureReservationStatusLastKnownGoodStateFutureReservationSpecs `json:"futureReservationSpecs,omitempty"` // LockTime: [Output Only] The lock time of the FutureReservation before an // amendment was requested. LockTime string `json:"lockTime,omitempty"` // NamePrefix: [Output Only] The name prefix of the Future Reservation before // an amendment was requested. NamePrefix string `json:"namePrefix,omitempty"` // ProcurementStatus: [Output Only] The status of the last known good state for // the Future Reservation. // // Possible values: // "APPROVED" - Future reservation is approved by GCP. // "CANCELLED" - Future reservation is cancelled by the customer. // "COMMITTED" - Future reservation is committed by the customer. // "DECLINED" - Future reservation is rejected by GCP. // "DRAFTING" - Related status for PlanningStatus.Draft. Transitions to // PENDING_APPROVAL upon user submitting FR. // "FAILED" - Future reservation failed. No additional reservations were // provided. // "FAILED_PARTIALLY_FULFILLED" - Future reservation is partially fulfilled. // Additional reservations were provided but did not reach total_count reserved // instance slots. // "FULFILLED" - Future reservation is fulfilled completely. // "PENDING_AMENDMENT_APPROVAL" - An Amendment to the Future Reservation has // been requested. If the Amendment is declined, the Future Reservation will be // restored to the last known good state. // "PENDING_APPROVAL" - Future reservation is pending approval by GCP. // "PROCUREMENT_STATUS_UNSPECIFIED" // "PROCURING" - Future reservation is being procured by GCP. Beyond this // point, Future reservation is locked and no further modifications are // allowed. // "PROVISIONING" - Future reservation capacity is being provisioned. This // state will be entered after start_time, while reservations are being created // to provide total_count reserved instance slots. This state will not persist // past start_time + 24h. ProcurementStatus string `json:"procurementStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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:"-"` }
FutureReservationStatusLastKnownGoodState: The state that the future reservation will be reverted to should the amendment be declined.
func (FutureReservationStatusLastKnownGoodState) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationStatusLastKnownGoodState) MarshalJSON() ([]byte, error)
type FutureReservationStatusLastKnownGoodStateFutureReservationSpecs ¶ added in v0.192.0
type FutureReservationStatusLastKnownGoodStateFutureReservationSpecs struct { // Reservation. ShareSettings *ShareSettings `json:"shareSettings,omitempty"` // SpecificSkuProperties: [Output Only] The previous instance related // properties of the Future Reservation. SpecificSkuProperties *FutureReservationSpecificSKUProperties `json:"specificSkuProperties,omitempty"` // TimeWindow: [Output Only] The previous time window of the Future // Reservation. TimeWindow *FutureReservationTimeWindow `json:"timeWindow,omitempty"` // ForceSendFields is a list of field names (e.g. "ShareSettings") 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. "ShareSettings") 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:"-"` }
FutureReservationStatusLastKnownGoodStateFutureReservationSpecs: The properties of the last known good state for the Future Reservation.
func (FutureReservationStatusLastKnownGoodStateFutureReservationSpecs) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationStatusLastKnownGoodStateFutureReservationSpecs) MarshalJSON() ([]byte, error)
type FutureReservationStatusSpecificSKUProperties ¶ added in v0.192.0
type FutureReservationStatusSpecificSKUProperties struct { // SourceInstanceTemplateId: ID of the instance template used to populate the // Future Reservation properties. SourceInstanceTemplateId string `json:"sourceInstanceTemplateId,omitempty"` // ForceSendFields is a list of field names (e.g. "SourceInstanceTemplateId") // 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. "SourceInstanceTemplateId") 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:"-"` }
FutureReservationStatusSpecificSKUProperties: Properties to be set for the Future Reservation.
func (FutureReservationStatusSpecificSKUProperties) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationStatusSpecificSKUProperties) MarshalJSON() ([]byte, error)
type FutureReservationTimeWindow ¶ added in v0.192.0
type FutureReservationTimeWindow struct { Duration *Duration `json:"duration,omitempty"` EndTime string `json:"endTime,omitempty"` // StartTime: Start time of the Future Reservation. The start_time is an // RFC3339 string. StartTime string `json:"startTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Duration") 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. "Duration") 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:"-"` }
func (FutureReservationTimeWindow) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationTimeWindow) MarshalJSON() ([]byte, error)
type FutureReservationsAggregatedListCall ¶ added in v0.192.0
type FutureReservationsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*FutureReservationsAggregatedListCall) Context ¶ added in v0.192.0
func (c *FutureReservationsAggregatedListCall) Context(ctx context.Context) *FutureReservationsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*FutureReservationsAggregatedListCall) Do ¶ added in v0.192.0
func (c *FutureReservationsAggregatedListCall) Do(opts ...googleapi.CallOption) (*FutureReservationsAggregatedListResponse, error)
Do executes the "compute.futureReservations.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *FutureReservationsAggregatedListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FutureReservationsAggregatedListCall) Fields ¶ added in v0.192.0
func (c *FutureReservationsAggregatedListCall) Fields(s ...googleapi.Field) *FutureReservationsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FutureReservationsAggregatedListCall) Filter ¶ added in v0.192.0
func (c *FutureReservationsAggregatedListCall) Filter(filter string) *FutureReservationsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*FutureReservationsAggregatedListCall) Header ¶ added in v0.192.0
func (c *FutureReservationsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FutureReservationsAggregatedListCall) IfNoneMatch ¶ added in v0.192.0
func (c *FutureReservationsAggregatedListCall) IfNoneMatch(entityTag string) *FutureReservationsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*FutureReservationsAggregatedListCall) IncludeAllScopes ¶ added in v0.192.0
func (c *FutureReservationsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *FutureReservationsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*FutureReservationsAggregatedListCall) MaxResults ¶ added in v0.192.0
func (c *FutureReservationsAggregatedListCall) MaxResults(maxResults int64) *FutureReservationsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*FutureReservationsAggregatedListCall) OrderBy ¶ added in v0.192.0
func (c *FutureReservationsAggregatedListCall) OrderBy(orderBy string) *FutureReservationsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*FutureReservationsAggregatedListCall) PageToken ¶ added in v0.192.0
func (c *FutureReservationsAggregatedListCall) PageToken(pageToken string) *FutureReservationsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*FutureReservationsAggregatedListCall) Pages ¶ added in v0.192.0
func (c *FutureReservationsAggregatedListCall) Pages(ctx context.Context, f func(*FutureReservationsAggregatedListResponse) 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 (*FutureReservationsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.192.0
func (c *FutureReservationsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *FutureReservationsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*FutureReservationsAggregatedListCall) ServiceProjectNumber ¶ added in v0.192.0
func (c *FutureReservationsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *FutureReservationsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type FutureReservationsAggregatedListResponse ¶ added in v0.192.0
type FutureReservationsAggregatedListResponse struct { Etag string `json:"etag,omitempty"` // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Future reservation resources. Items map[string]FutureReservationsScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#futureReservationsAggregatedListResponse for future resevation // aggregated list response. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *FutureReservationsAggregatedListResponseWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Etag") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
FutureReservationsAggregatedListResponse: Contains a list of future reservations.
func (FutureReservationsAggregatedListResponse) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationsAggregatedListResponse) MarshalJSON() ([]byte, error)
type FutureReservationsAggregatedListResponseWarning ¶ added in v0.192.0
type FutureReservationsAggregatedListResponseWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*FutureReservationsAggregatedListResponseWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
FutureReservationsAggregatedListResponseWarning: [Output Only] Informational warning message.
func (FutureReservationsAggregatedListResponseWarning) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationsAggregatedListResponseWarning) MarshalJSON() ([]byte, error)
type FutureReservationsAggregatedListResponseWarningData ¶ added in v0.192.0
type FutureReservationsAggregatedListResponseWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (FutureReservationsAggregatedListResponseWarningData) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationsAggregatedListResponseWarningData) MarshalJSON() ([]byte, error)
type FutureReservationsCancelCall ¶ added in v0.192.0
type FutureReservationsCancelCall struct {
// contains filtered or unexported fields
}
func (*FutureReservationsCancelCall) Context ¶ added in v0.192.0
func (c *FutureReservationsCancelCall) Context(ctx context.Context) *FutureReservationsCancelCall
Context sets the context to be used in this call's Do method.
func (*FutureReservationsCancelCall) Do ¶ added in v0.192.0
func (c *FutureReservationsCancelCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.futureReservations.cancel" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FutureReservationsCancelCall) Fields ¶ added in v0.192.0
func (c *FutureReservationsCancelCall) Fields(s ...googleapi.Field) *FutureReservationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FutureReservationsCancelCall) Header ¶ added in v0.192.0
func (c *FutureReservationsCancelCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FutureReservationsCancelCall) RequestId ¶ added in v0.192.0
func (c *FutureReservationsCancelCall) RequestId(requestId string) *FutureReservationsCancelCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FutureReservationsDeleteCall ¶ added in v0.192.0
type FutureReservationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*FutureReservationsDeleteCall) Context ¶ added in v0.192.0
func (c *FutureReservationsDeleteCall) Context(ctx context.Context) *FutureReservationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*FutureReservationsDeleteCall) Do ¶ added in v0.192.0
func (c *FutureReservationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.futureReservations.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FutureReservationsDeleteCall) Fields ¶ added in v0.192.0
func (c *FutureReservationsDeleteCall) Fields(s ...googleapi.Field) *FutureReservationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FutureReservationsDeleteCall) Header ¶ added in v0.192.0
func (c *FutureReservationsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FutureReservationsDeleteCall) RequestId ¶ added in v0.192.0
func (c *FutureReservationsDeleteCall) RequestId(requestId string) *FutureReservationsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FutureReservationsGetCall ¶ added in v0.192.0
type FutureReservationsGetCall struct {
// contains filtered or unexported fields
}
func (*FutureReservationsGetCall) Context ¶ added in v0.192.0
func (c *FutureReservationsGetCall) Context(ctx context.Context) *FutureReservationsGetCall
Context sets the context to be used in this call's Do method.
func (*FutureReservationsGetCall) Do ¶ added in v0.192.0
func (c *FutureReservationsGetCall) Do(opts ...googleapi.CallOption) (*FutureReservation, error)
Do executes the "compute.futureReservations.get" call. Any non-2xx status code is an error. Response headers are in either *FutureReservation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FutureReservationsGetCall) Fields ¶ added in v0.192.0
func (c *FutureReservationsGetCall) Fields(s ...googleapi.Field) *FutureReservationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FutureReservationsGetCall) Header ¶ added in v0.192.0
func (c *FutureReservationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FutureReservationsGetCall) IfNoneMatch ¶ added in v0.192.0
func (c *FutureReservationsGetCall) IfNoneMatch(entityTag string) *FutureReservationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type FutureReservationsInsertCall ¶ added in v0.192.0
type FutureReservationsInsertCall struct {
// contains filtered or unexported fields
}
func (*FutureReservationsInsertCall) Context ¶ added in v0.192.0
func (c *FutureReservationsInsertCall) Context(ctx context.Context) *FutureReservationsInsertCall
Context sets the context to be used in this call's Do method.
func (*FutureReservationsInsertCall) Do ¶ added in v0.192.0
func (c *FutureReservationsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.futureReservations.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FutureReservationsInsertCall) Fields ¶ added in v0.192.0
func (c *FutureReservationsInsertCall) Fields(s ...googleapi.Field) *FutureReservationsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FutureReservationsInsertCall) Header ¶ added in v0.192.0
func (c *FutureReservationsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FutureReservationsInsertCall) RequestId ¶ added in v0.192.0
func (c *FutureReservationsInsertCall) RequestId(requestId string) *FutureReservationsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type FutureReservationsListCall ¶ added in v0.192.0
type FutureReservationsListCall struct {
// contains filtered or unexported fields
}
func (*FutureReservationsListCall) Context ¶ added in v0.192.0
func (c *FutureReservationsListCall) Context(ctx context.Context) *FutureReservationsListCall
Context sets the context to be used in this call's Do method.
func (*FutureReservationsListCall) Do ¶ added in v0.192.0
func (c *FutureReservationsListCall) Do(opts ...googleapi.CallOption) (*FutureReservationsListResponse, error)
Do executes the "compute.futureReservations.list" call. Any non-2xx status code is an error. Response headers are in either *FutureReservationsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FutureReservationsListCall) Fields ¶ added in v0.192.0
func (c *FutureReservationsListCall) Fields(s ...googleapi.Field) *FutureReservationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FutureReservationsListCall) Filter ¶ added in v0.192.0
func (c *FutureReservationsListCall) Filter(filter string) *FutureReservationsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*FutureReservationsListCall) Header ¶ added in v0.192.0
func (c *FutureReservationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FutureReservationsListCall) IfNoneMatch ¶ added in v0.192.0
func (c *FutureReservationsListCall) IfNoneMatch(entityTag string) *FutureReservationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*FutureReservationsListCall) MaxResults ¶ added in v0.192.0
func (c *FutureReservationsListCall) MaxResults(maxResults int64) *FutureReservationsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*FutureReservationsListCall) OrderBy ¶ added in v0.192.0
func (c *FutureReservationsListCall) OrderBy(orderBy string) *FutureReservationsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*FutureReservationsListCall) PageToken ¶ added in v0.192.0
func (c *FutureReservationsListCall) PageToken(pageToken string) *FutureReservationsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*FutureReservationsListCall) Pages ¶ added in v0.192.0
func (c *FutureReservationsListCall) Pages(ctx context.Context, f func(*FutureReservationsListResponse) 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 (*FutureReservationsListCall) ReturnPartialSuccess ¶ added in v0.192.0
func (c *FutureReservationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *FutureReservationsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type FutureReservationsListResponse ¶ added in v0.192.0
type FutureReservationsListResponse struct { Etag string `json:"etag,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id string `json:"id,omitempty"` // Items: [Output Only] A list of future reservation resources. Items []*FutureReservation `json:"items,omitempty"` // Kind: [Output Only] Type of resource.Always // compute#FutureReservationsListResponse for lists of reservations Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *FutureReservationsListResponseWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Etag") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
func (FutureReservationsListResponse) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationsListResponse) MarshalJSON() ([]byte, error)
type FutureReservationsListResponseWarning ¶ added in v0.192.0
type FutureReservationsListResponseWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*FutureReservationsListResponseWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
FutureReservationsListResponseWarning: [Output Only] Informational warning message.
func (FutureReservationsListResponseWarning) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationsListResponseWarning) MarshalJSON() ([]byte, error)
type FutureReservationsListResponseWarningData ¶ added in v0.192.0
type FutureReservationsListResponseWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (FutureReservationsListResponseWarningData) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationsListResponseWarningData) MarshalJSON() ([]byte, error)
type FutureReservationsScopedList ¶ added in v0.192.0
type FutureReservationsScopedList struct { // FutureReservations: A list of future reservations contained in this scope. FutureReservations []*FutureReservation `json:"futureReservations,omitempty"` // Warning: Informational warning which replaces the list of future // reservations when the list is empty. Warning *FutureReservationsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "FutureReservations") 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. "FutureReservations") 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:"-"` }
func (FutureReservationsScopedList) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationsScopedList) MarshalJSON() ([]byte, error)
type FutureReservationsScopedListWarning ¶ added in v0.192.0
type FutureReservationsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*FutureReservationsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
FutureReservationsScopedListWarning: Informational warning which replaces the list of future reservations when the list is empty.
func (FutureReservationsScopedListWarning) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationsScopedListWarning) MarshalJSON() ([]byte, error)
type FutureReservationsScopedListWarningData ¶ added in v0.192.0
type FutureReservationsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (FutureReservationsScopedListWarningData) MarshalJSON ¶ added in v0.192.0
func (s FutureReservationsScopedListWarningData) MarshalJSON() ([]byte, error)
type FutureReservationsService ¶ added in v0.192.0
type FutureReservationsService struct {
// contains filtered or unexported fields
}
func NewFutureReservationsService ¶ added in v0.192.0
func NewFutureReservationsService(s *Service) *FutureReservationsService
func (*FutureReservationsService) AggregatedList ¶ added in v0.192.0
func (r *FutureReservationsService) AggregatedList(project string) *FutureReservationsAggregatedListCall
AggregatedList: Retrieves an aggregated list of future reservations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*FutureReservationsService) Cancel ¶ added in v0.192.0
func (r *FutureReservationsService) Cancel(project string, zone string, futureReservation string) *FutureReservationsCancelCall
Cancel: Cancel the specified future reservation.
- futureReservation: Name of the future reservation to retrieve. Name should conform to RFC1035.
- project: Project ID for this request.
- zone: Name of the zone for this request. Name should conform to RFC1035.
func (*FutureReservationsService) Delete ¶ added in v0.192.0
func (r *FutureReservationsService) Delete(project string, zone string, futureReservation string) *FutureReservationsDeleteCall
Delete: Deletes the specified future reservation.
- futureReservation: Name of the future reservation to retrieve. Name should conform to RFC1035.
- project: Project ID for this request.
- zone: Name of the zone for this request. Name should conform to RFC1035.
func (*FutureReservationsService) Get ¶ added in v0.192.0
func (r *FutureReservationsService) Get(project string, zone string, futureReservation string) *FutureReservationsGetCall
Get: Retrieves information about the specified future reservation.
- futureReservation: Name of the future reservation to retrieve. Name should conform to RFC1035.
- project: Project ID for this request.
- zone: Name of the zone for this request. Name should conform to RFC1035.
func (*FutureReservationsService) Insert ¶ added in v0.192.0
func (r *FutureReservationsService) Insert(project string, zone string, futurereservation *FutureReservation) *FutureReservationsInsertCall
Insert: Creates a new Future Reservation.
- project: Project ID for this request. - zone: Name of the zone for this request. Name should conform to RFC1035.
func (*FutureReservationsService) List ¶ added in v0.192.0
func (r *FutureReservationsService) List(project string, zone string) *FutureReservationsListCall
List: A list of all the future reservations that have been configured for the specified project in specified zone.
- project: Project ID for this request. - zone: Name of the zone for this request. Name should conform to RFC1035.
func (*FutureReservationsService) Update ¶ added in v0.192.0
func (r *FutureReservationsService) Update(project string, zone string, futureReservation string, futurereservation *FutureReservation) *FutureReservationsUpdateCall
Update: Updates the specified future reservation.
- futureReservation: Name of the reservation to update. Name should conform to RFC1035.
- project: Project ID for this request.
- zone: Name of the zone for this request. Name should conform to RFC1035.
type FutureReservationsUpdateCall ¶ added in v0.192.0
type FutureReservationsUpdateCall struct {
// contains filtered or unexported fields
}
func (*FutureReservationsUpdateCall) Context ¶ added in v0.192.0
func (c *FutureReservationsUpdateCall) Context(ctx context.Context) *FutureReservationsUpdateCall
Context sets the context to be used in this call's Do method.
func (*FutureReservationsUpdateCall) Do ¶ added in v0.192.0
func (c *FutureReservationsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.futureReservations.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FutureReservationsUpdateCall) Fields ¶ added in v0.192.0
func (c *FutureReservationsUpdateCall) Fields(s ...googleapi.Field) *FutureReservationsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FutureReservationsUpdateCall) Header ¶ added in v0.192.0
func (c *FutureReservationsUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FutureReservationsUpdateCall) RequestId ¶ added in v0.192.0
func (c *FutureReservationsUpdateCall) RequestId(requestId string) *FutureReservationsUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*FutureReservationsUpdateCall) UpdateMask ¶ added in v0.192.0
func (c *FutureReservationsUpdateCall) UpdateMask(updateMask string) *FutureReservationsUpdateCall
UpdateMask sets the optional parameter "updateMask": update_mask indicates fields to be updated as part of this request.
type GRPCHealthCheck ¶ added in v0.30.0
type GRPCHealthCheck struct { // GrpcServiceName: The gRPC service name for the health check. This field is // optional. The value of grpc_service_name has the following meanings by // convention: - Empty service_name means the overall status of all services at // the backend. - Non-empty service_name means the health of that gRPC service, // as defined by the owner of the service. The grpc_service_name can only be // ASCII. GrpcServiceName string `json:"grpcServiceName,omitempty"` // Port: The TCP port number to which the health check prober sends packets. // Valid values are 1 through 65535. Port int64 `json:"port,omitempty"` // PortName: Not supported. PortName string `json:"portName,omitempty"` // PortSpecification: Specifies how a port is selected for health checking. Can // be one of the following values: USE_FIXED_PORT: Specifies a port number // explicitly using the port field in the health check. Supported by backend // services for passthrough load balancers and backend services for proxy load // balancers. Not supported by target pools. The health check supports all // backends supported by the backend service provided the backend can be health // checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT // network endpoint groups, and instance group backends. USE_NAMED_PORT: Not // supported. USE_SERVING_PORT: Provides an indirect method of specifying the // health check port by referring to the backend service. Only supported by // backend services for proxy load balancers. Not supported by target pools. // Not supported by backend services for passthrough load balancers. Supports // all backends that can be health checked; for example, GCE_VM_IP_PORT network // endpoint groups and instance group backends. For GCE_VM_IP_PORT network // endpoint group backends, the health check uses the port number specified for // each endpoint in the network endpoint group. For instance group backends, // the health check uses the port number determined by looking up the backend // service's named port in the instance group's list of named ports. // // Possible values: // "USE_FIXED_PORT" - The port number in the health check's port is used for // health checking. Applies to network endpoint group and instance group // backends. // "USE_NAMED_PORT" - Not supported. // "USE_SERVING_PORT" - For network endpoint group backends, the health check // uses the port number specified on each endpoint in the network endpoint // group. For instance group backends, the health check uses the port number // specified for the backend service's named port defined in the instance // group's named ports. PortSpecification string `json:"portSpecification,omitempty"` // ForceSendFields is a list of field names (e.g. "GrpcServiceName") 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. "GrpcServiceName") 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:"-"` }
func (GRPCHealthCheck) MarshalJSON ¶ added in v0.30.0
func (s GRPCHealthCheck) MarshalJSON() ([]byte, error)
type GlobalAddressesDeleteCall ¶
type GlobalAddressesDeleteCall struct {
// contains filtered or unexported fields
}
func (*GlobalAddressesDeleteCall) Context ¶
func (c *GlobalAddressesDeleteCall) Context(ctx context.Context) *GlobalAddressesDeleteCall
Context sets the context to be used in this call's Do method.
func (*GlobalAddressesDeleteCall) Do ¶
func (c *GlobalAddressesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalAddresses.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalAddressesDeleteCall) Fields ¶
func (c *GlobalAddressesDeleteCall) Fields(s ...googleapi.Field) *GlobalAddressesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalAddressesDeleteCall) Header ¶
func (c *GlobalAddressesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalAddressesDeleteCall) RequestId ¶
func (c *GlobalAddressesDeleteCall) RequestId(requestId string) *GlobalAddressesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type GlobalAddressesGetCall ¶
type GlobalAddressesGetCall struct {
// contains filtered or unexported fields
}
func (*GlobalAddressesGetCall) Context ¶
func (c *GlobalAddressesGetCall) Context(ctx context.Context) *GlobalAddressesGetCall
Context sets the context to be used in this call's Do method.
func (*GlobalAddressesGetCall) Do ¶
func (c *GlobalAddressesGetCall) Do(opts ...googleapi.CallOption) (*Address, error)
Do executes the "compute.globalAddresses.get" call. Any non-2xx status code is an error. Response headers are in either *Address.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalAddressesGetCall) Fields ¶
func (c *GlobalAddressesGetCall) Fields(s ...googleapi.Field) *GlobalAddressesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalAddressesGetCall) Header ¶
func (c *GlobalAddressesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalAddressesGetCall) IfNoneMatch ¶
func (c *GlobalAddressesGetCall) IfNoneMatch(entityTag string) *GlobalAddressesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type GlobalAddressesInsertCall ¶
type GlobalAddressesInsertCall struct {
// contains filtered or unexported fields
}
func (*GlobalAddressesInsertCall) Context ¶
func (c *GlobalAddressesInsertCall) Context(ctx context.Context) *GlobalAddressesInsertCall
Context sets the context to be used in this call's Do method.
func (*GlobalAddressesInsertCall) Do ¶
func (c *GlobalAddressesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalAddresses.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalAddressesInsertCall) Fields ¶
func (c *GlobalAddressesInsertCall) Fields(s ...googleapi.Field) *GlobalAddressesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalAddressesInsertCall) Header ¶
func (c *GlobalAddressesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalAddressesInsertCall) RequestId ¶
func (c *GlobalAddressesInsertCall) RequestId(requestId string) *GlobalAddressesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type GlobalAddressesListCall ¶
type GlobalAddressesListCall struct {
// contains filtered or unexported fields
}
func (*GlobalAddressesListCall) Context ¶
func (c *GlobalAddressesListCall) Context(ctx context.Context) *GlobalAddressesListCall
Context sets the context to be used in this call's Do method.
func (*GlobalAddressesListCall) Do ¶
func (c *GlobalAddressesListCall) Do(opts ...googleapi.CallOption) (*AddressList, error)
Do executes the "compute.globalAddresses.list" call. Any non-2xx status code is an error. Response headers are in either *AddressList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalAddressesListCall) Fields ¶
func (c *GlobalAddressesListCall) Fields(s ...googleapi.Field) *GlobalAddressesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalAddressesListCall) Filter ¶
func (c *GlobalAddressesListCall) Filter(filter string) *GlobalAddressesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*GlobalAddressesListCall) Header ¶
func (c *GlobalAddressesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalAddressesListCall) IfNoneMatch ¶
func (c *GlobalAddressesListCall) IfNoneMatch(entityTag string) *GlobalAddressesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*GlobalAddressesListCall) MaxResults ¶
func (c *GlobalAddressesListCall) MaxResults(maxResults int64) *GlobalAddressesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*GlobalAddressesListCall) OrderBy ¶
func (c *GlobalAddressesListCall) OrderBy(orderBy string) *GlobalAddressesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*GlobalAddressesListCall) PageToken ¶
func (c *GlobalAddressesListCall) PageToken(pageToken string) *GlobalAddressesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*GlobalAddressesListCall) Pages ¶
func (c *GlobalAddressesListCall) Pages(ctx context.Context, f func(*AddressList) 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 (*GlobalAddressesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *GlobalAddressesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalAddressesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type GlobalAddressesMoveCall ¶ added in v0.121.0
type GlobalAddressesMoveCall struct {
// contains filtered or unexported fields
}
func (*GlobalAddressesMoveCall) Context ¶ added in v0.121.0
func (c *GlobalAddressesMoveCall) Context(ctx context.Context) *GlobalAddressesMoveCall
Context sets the context to be used in this call's Do method.
func (*GlobalAddressesMoveCall) Do ¶ added in v0.121.0
func (c *GlobalAddressesMoveCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalAddresses.move" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalAddressesMoveCall) Fields ¶ added in v0.121.0
func (c *GlobalAddressesMoveCall) Fields(s ...googleapi.Field) *GlobalAddressesMoveCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalAddressesMoveCall) Header ¶ added in v0.121.0
func (c *GlobalAddressesMoveCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalAddressesMoveCall) RequestId ¶ added in v0.121.0
func (c *GlobalAddressesMoveCall) RequestId(requestId string) *GlobalAddressesMoveCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type GlobalAddressesMoveRequest ¶ added in v0.121.0
type GlobalAddressesMoveRequest struct { // Description: An optional destination address description if intended to be // different from the source. Description string `json:"description,omitempty"` // DestinationAddress: The URL of the destination address to move to. This can // be a full or partial URL. For example, the following are all valid URLs to a // address: - https://www.googleapis.com/compute/v1/projects/project // /global/addresses/address - projects/project/global/addresses/address Note // that destination project must be different from the source project. So // /global/addresses/address is not valid partial url. DestinationAddress string `json:"destinationAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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:"-"` }
func (GlobalAddressesMoveRequest) MarshalJSON ¶ added in v0.121.0
func (s GlobalAddressesMoveRequest) MarshalJSON() ([]byte, error)
type GlobalAddressesService ¶
type GlobalAddressesService struct {
// contains filtered or unexported fields
}
func NewGlobalAddressesService ¶
func NewGlobalAddressesService(s *Service) *GlobalAddressesService
func (*GlobalAddressesService) Delete ¶
func (r *GlobalAddressesService) Delete(project string, address string) *GlobalAddressesDeleteCall
Delete: Deletes the specified address resource.
- address: Name of the address resource to delete. - project: Project ID for this request.
func (*GlobalAddressesService) Get ¶
func (r *GlobalAddressesService) Get(project string, address string) *GlobalAddressesGetCall
Get: Returns the specified address resource.
- address: Name of the address resource to return. - project: Project ID for this request.
func (*GlobalAddressesService) Insert ¶
func (r *GlobalAddressesService) Insert(project string, address *Address) *GlobalAddressesInsertCall
Insert: Creates an address resource in the specified project by using the data included in the request.
- project: Project ID for this request.
func (*GlobalAddressesService) List ¶
func (r *GlobalAddressesService) List(project string) *GlobalAddressesListCall
List: Retrieves a list of global addresses.
- project: Project ID for this request.
func (*GlobalAddressesService) Move ¶ added in v0.121.0
func (r *GlobalAddressesService) Move(project string, address string, globaladdressesmoverequest *GlobalAddressesMoveRequest) *GlobalAddressesMoveCall
Move: Moves the specified address resource from one project to another project.
- address: Name of the address resource to move. - project: Source project ID which the Address is moved from.
func (*GlobalAddressesService) SetLabels ¶ added in v0.96.0
func (r *GlobalAddressesService) SetLabels(project string, resource string, globalsetlabelsrequest *GlobalSetLabelsRequest) *GlobalAddressesSetLabelsCall
SetLabels: Sets the labels on a GlobalAddress. To learn more about labels, read the Labeling Resources documentation.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
type GlobalAddressesSetLabelsCall ¶ added in v0.96.0
type GlobalAddressesSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*GlobalAddressesSetLabelsCall) Context ¶ added in v0.96.0
func (c *GlobalAddressesSetLabelsCall) Context(ctx context.Context) *GlobalAddressesSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*GlobalAddressesSetLabelsCall) Do ¶ added in v0.96.0
func (c *GlobalAddressesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalAddresses.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalAddressesSetLabelsCall) Fields ¶ added in v0.96.0
func (c *GlobalAddressesSetLabelsCall) Fields(s ...googleapi.Field) *GlobalAddressesSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalAddressesSetLabelsCall) Header ¶ added in v0.96.0
func (c *GlobalAddressesSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type GlobalForwardingRulesDeleteCall ¶
type GlobalForwardingRulesDeleteCall struct {
// contains filtered or unexported fields
}
func (*GlobalForwardingRulesDeleteCall) Context ¶
func (c *GlobalForwardingRulesDeleteCall) Context(ctx context.Context) *GlobalForwardingRulesDeleteCall
Context sets the context to be used in this call's Do method.
func (*GlobalForwardingRulesDeleteCall) Do ¶
func (c *GlobalForwardingRulesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalForwardingRules.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalForwardingRulesDeleteCall) Fields ¶
func (c *GlobalForwardingRulesDeleteCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalForwardingRulesDeleteCall) Header ¶
func (c *GlobalForwardingRulesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalForwardingRulesDeleteCall) RequestId ¶
func (c *GlobalForwardingRulesDeleteCall) RequestId(requestId string) *GlobalForwardingRulesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type GlobalForwardingRulesGetCall ¶
type GlobalForwardingRulesGetCall struct {
// contains filtered or unexported fields
}
func (*GlobalForwardingRulesGetCall) Context ¶
func (c *GlobalForwardingRulesGetCall) Context(ctx context.Context) *GlobalForwardingRulesGetCall
Context sets the context to be used in this call's Do method.
func (*GlobalForwardingRulesGetCall) Do ¶
func (c *GlobalForwardingRulesGetCall) Do(opts ...googleapi.CallOption) (*ForwardingRule, error)
Do executes the "compute.globalForwardingRules.get" call. Any non-2xx status code is an error. Response headers are in either *ForwardingRule.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalForwardingRulesGetCall) Fields ¶
func (c *GlobalForwardingRulesGetCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalForwardingRulesGetCall) Header ¶
func (c *GlobalForwardingRulesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalForwardingRulesGetCall) IfNoneMatch ¶
func (c *GlobalForwardingRulesGetCall) IfNoneMatch(entityTag string) *GlobalForwardingRulesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type GlobalForwardingRulesInsertCall ¶
type GlobalForwardingRulesInsertCall struct {
// contains filtered or unexported fields
}
func (*GlobalForwardingRulesInsertCall) Context ¶
func (c *GlobalForwardingRulesInsertCall) Context(ctx context.Context) *GlobalForwardingRulesInsertCall
Context sets the context to be used in this call's Do method.
func (*GlobalForwardingRulesInsertCall) Do ¶
func (c *GlobalForwardingRulesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalForwardingRules.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalForwardingRulesInsertCall) Fields ¶
func (c *GlobalForwardingRulesInsertCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalForwardingRulesInsertCall) Header ¶
func (c *GlobalForwardingRulesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalForwardingRulesInsertCall) RequestId ¶
func (c *GlobalForwardingRulesInsertCall) RequestId(requestId string) *GlobalForwardingRulesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type GlobalForwardingRulesListCall ¶
type GlobalForwardingRulesListCall struct {
// contains filtered or unexported fields
}
func (*GlobalForwardingRulesListCall) Context ¶
func (c *GlobalForwardingRulesListCall) Context(ctx context.Context) *GlobalForwardingRulesListCall
Context sets the context to be used in this call's Do method.
func (*GlobalForwardingRulesListCall) Do ¶
func (c *GlobalForwardingRulesListCall) Do(opts ...googleapi.CallOption) (*ForwardingRuleList, error)
Do executes the "compute.globalForwardingRules.list" call. Any non-2xx status code is an error. Response headers are in either *ForwardingRuleList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalForwardingRulesListCall) Fields ¶
func (c *GlobalForwardingRulesListCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalForwardingRulesListCall) Filter ¶
func (c *GlobalForwardingRulesListCall) Filter(filter string) *GlobalForwardingRulesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*GlobalForwardingRulesListCall) Header ¶
func (c *GlobalForwardingRulesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalForwardingRulesListCall) IfNoneMatch ¶
func (c *GlobalForwardingRulesListCall) IfNoneMatch(entityTag string) *GlobalForwardingRulesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*GlobalForwardingRulesListCall) MaxResults ¶
func (c *GlobalForwardingRulesListCall) MaxResults(maxResults int64) *GlobalForwardingRulesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*GlobalForwardingRulesListCall) OrderBy ¶
func (c *GlobalForwardingRulesListCall) OrderBy(orderBy string) *GlobalForwardingRulesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*GlobalForwardingRulesListCall) PageToken ¶
func (c *GlobalForwardingRulesListCall) PageToken(pageToken string) *GlobalForwardingRulesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*GlobalForwardingRulesListCall) Pages ¶
func (c *GlobalForwardingRulesListCall) Pages(ctx context.Context, f func(*ForwardingRuleList) 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 (*GlobalForwardingRulesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *GlobalForwardingRulesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalForwardingRulesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type GlobalForwardingRulesPatchCall ¶ added in v0.16.0
type GlobalForwardingRulesPatchCall struct {
// contains filtered or unexported fields
}
func (*GlobalForwardingRulesPatchCall) Context ¶ added in v0.16.0
func (c *GlobalForwardingRulesPatchCall) Context(ctx context.Context) *GlobalForwardingRulesPatchCall
Context sets the context to be used in this call's Do method.
func (*GlobalForwardingRulesPatchCall) Do ¶ added in v0.16.0
func (c *GlobalForwardingRulesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalForwardingRules.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalForwardingRulesPatchCall) Fields ¶ added in v0.16.0
func (c *GlobalForwardingRulesPatchCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalForwardingRulesPatchCall) Header ¶ added in v0.16.0
func (c *GlobalForwardingRulesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalForwardingRulesPatchCall) RequestId ¶ added in v0.16.0
func (c *GlobalForwardingRulesPatchCall) RequestId(requestId string) *GlobalForwardingRulesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type GlobalForwardingRulesService ¶
type GlobalForwardingRulesService struct {
// contains filtered or unexported fields
}
func NewGlobalForwardingRulesService ¶
func NewGlobalForwardingRulesService(s *Service) *GlobalForwardingRulesService
func (*GlobalForwardingRulesService) Delete ¶
func (r *GlobalForwardingRulesService) Delete(project string, forwardingRule string) *GlobalForwardingRulesDeleteCall
Delete: Deletes the specified GlobalForwardingRule resource.
- forwardingRule: Name of the ForwardingRule resource to delete. - project: Project ID for this request.
func (*GlobalForwardingRulesService) Get ¶
func (r *GlobalForwardingRulesService) Get(project string, forwardingRule string) *GlobalForwardingRulesGetCall
Get: Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request.
- forwardingRule: Name of the ForwardingRule resource to return. - project: Project ID for this request.
func (*GlobalForwardingRulesService) Insert ¶
func (r *GlobalForwardingRulesService) Insert(project string, forwardingrule *ForwardingRule) *GlobalForwardingRulesInsertCall
Insert: Creates a GlobalForwardingRule resource in the specified project using the data included in the request.
- project: Project ID for this request.
func (*GlobalForwardingRulesService) List ¶
func (r *GlobalForwardingRulesService) List(project string) *GlobalForwardingRulesListCall
List: Retrieves a list of GlobalForwardingRule resources available to the specified project.
- project: Project ID for this request.
func (*GlobalForwardingRulesService) Patch ¶ added in v0.16.0
func (r *GlobalForwardingRulesService) Patch(project string, forwardingRule string, forwardingrule *ForwardingRule) *GlobalForwardingRulesPatchCall
Patch: Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field.
- forwardingRule: Name of the ForwardingRule resource to patch. - project: Project ID for this request.
func (*GlobalForwardingRulesService) SetLabels ¶ added in v0.39.0
func (r *GlobalForwardingRulesService) SetLabels(project string, resource string, globalsetlabelsrequest *GlobalSetLabelsRequest) *GlobalForwardingRulesSetLabelsCall
SetLabels: Sets the labels on the specified resource. To learn more about labels, read the Labeling resources documentation.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*GlobalForwardingRulesService) SetTarget ¶
func (r *GlobalForwardingRulesService) SetTarget(project string, forwardingRule string, targetreference *TargetReference) *GlobalForwardingRulesSetTargetCall
SetTarget: Changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target.
- forwardingRule: Name of the ForwardingRule resource in which target is to be set.
- project: Project ID for this request.
type GlobalForwardingRulesSetLabelsCall ¶ added in v0.39.0
type GlobalForwardingRulesSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*GlobalForwardingRulesSetLabelsCall) Context ¶ added in v0.39.0
func (c *GlobalForwardingRulesSetLabelsCall) Context(ctx context.Context) *GlobalForwardingRulesSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*GlobalForwardingRulesSetLabelsCall) Do ¶ added in v0.39.0
func (c *GlobalForwardingRulesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalForwardingRules.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalForwardingRulesSetLabelsCall) Fields ¶ added in v0.39.0
func (c *GlobalForwardingRulesSetLabelsCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalForwardingRulesSetLabelsCall) Header ¶ added in v0.39.0
func (c *GlobalForwardingRulesSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type GlobalForwardingRulesSetTargetCall ¶
type GlobalForwardingRulesSetTargetCall struct {
// contains filtered or unexported fields
}
func (*GlobalForwardingRulesSetTargetCall) Context ¶
func (c *GlobalForwardingRulesSetTargetCall) Context(ctx context.Context) *GlobalForwardingRulesSetTargetCall
Context sets the context to be used in this call's Do method.
func (*GlobalForwardingRulesSetTargetCall) Do ¶
func (c *GlobalForwardingRulesSetTargetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalForwardingRules.setTarget" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalForwardingRulesSetTargetCall) Fields ¶
func (c *GlobalForwardingRulesSetTargetCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesSetTargetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalForwardingRulesSetTargetCall) Header ¶
func (c *GlobalForwardingRulesSetTargetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalForwardingRulesSetTargetCall) RequestId ¶
func (c *GlobalForwardingRulesSetTargetCall) RequestId(requestId string) *GlobalForwardingRulesSetTargetCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type GlobalNetworkEndpointGroupsAttachEndpointsRequest ¶ added in v0.21.0
type GlobalNetworkEndpointGroupsAttachEndpointsRequest struct { // NetworkEndpoints: The list of network endpoints to be attached. NetworkEndpoints []*NetworkEndpoint `json:"networkEndpoints,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkEndpoints") 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. "NetworkEndpoints") 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:"-"` }
func (GlobalNetworkEndpointGroupsAttachEndpointsRequest) MarshalJSON ¶ added in v0.21.0
func (s GlobalNetworkEndpointGroupsAttachEndpointsRequest) MarshalJSON() ([]byte, error)
type GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall ¶ added in v0.21.0
type GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall struct {
// contains filtered or unexported fields
}
func (*GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Context ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall
Context sets the context to be used in this call's Do method.
func (*GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Do ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalNetworkEndpointGroups.attachNetworkEndpoints" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Fields ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Fields(s ...googleapi.Field) *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Header ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) RequestId ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) RequestId(requestId string) *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type GlobalNetworkEndpointGroupsDeleteCall ¶ added in v0.21.0
type GlobalNetworkEndpointGroupsDeleteCall struct {
// contains filtered or unexported fields
}
func (*GlobalNetworkEndpointGroupsDeleteCall) Context ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsDeleteCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsDeleteCall
Context sets the context to be used in this call's Do method.
func (*GlobalNetworkEndpointGroupsDeleteCall) Do ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalNetworkEndpointGroups.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalNetworkEndpointGroupsDeleteCall) Fields ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsDeleteCall) Fields(s ...googleapi.Field) *GlobalNetworkEndpointGroupsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalNetworkEndpointGroupsDeleteCall) Header ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalNetworkEndpointGroupsDeleteCall) RequestId ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsDeleteCall) RequestId(requestId string) *GlobalNetworkEndpointGroupsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type GlobalNetworkEndpointGroupsDetachEndpointsRequest ¶ added in v0.21.0
type GlobalNetworkEndpointGroupsDetachEndpointsRequest struct { // NetworkEndpoints: The list of network endpoints to be detached. NetworkEndpoints []*NetworkEndpoint `json:"networkEndpoints,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkEndpoints") 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. "NetworkEndpoints") 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:"-"` }
func (GlobalNetworkEndpointGroupsDetachEndpointsRequest) MarshalJSON ¶ added in v0.21.0
func (s GlobalNetworkEndpointGroupsDetachEndpointsRequest) MarshalJSON() ([]byte, error)
type GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall ¶ added in v0.21.0
type GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall struct {
// contains filtered or unexported fields
}
func (*GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Context ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall
Context sets the context to be used in this call's Do method.
func (*GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Do ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalNetworkEndpointGroups.detachNetworkEndpoints" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Fields ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Fields(s ...googleapi.Field) *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Header ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) RequestId ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) RequestId(requestId string) *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type GlobalNetworkEndpointGroupsGetCall ¶ added in v0.21.0
type GlobalNetworkEndpointGroupsGetCall struct {
// contains filtered or unexported fields
}
func (*GlobalNetworkEndpointGroupsGetCall) Context ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsGetCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsGetCall
Context sets the context to be used in this call's Do method.
func (*GlobalNetworkEndpointGroupsGetCall) Do ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsGetCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroup, error)
Do executes the "compute.globalNetworkEndpointGroups.get" call. Any non-2xx status code is an error. Response headers are in either *NetworkEndpointGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalNetworkEndpointGroupsGetCall) Fields ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsGetCall) Fields(s ...googleapi.Field) *GlobalNetworkEndpointGroupsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalNetworkEndpointGroupsGetCall) Header ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalNetworkEndpointGroupsGetCall) IfNoneMatch ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsGetCall) IfNoneMatch(entityTag string) *GlobalNetworkEndpointGroupsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type GlobalNetworkEndpointGroupsInsertCall ¶ added in v0.21.0
type GlobalNetworkEndpointGroupsInsertCall struct {
// contains filtered or unexported fields
}
func (*GlobalNetworkEndpointGroupsInsertCall) Context ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsInsertCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsInsertCall
Context sets the context to be used in this call's Do method.
func (*GlobalNetworkEndpointGroupsInsertCall) Do ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalNetworkEndpointGroups.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalNetworkEndpointGroupsInsertCall) Fields ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsInsertCall) Fields(s ...googleapi.Field) *GlobalNetworkEndpointGroupsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalNetworkEndpointGroupsInsertCall) Header ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalNetworkEndpointGroupsInsertCall) RequestId ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsInsertCall) RequestId(requestId string) *GlobalNetworkEndpointGroupsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type GlobalNetworkEndpointGroupsListCall ¶ added in v0.21.0
type GlobalNetworkEndpointGroupsListCall struct {
// contains filtered or unexported fields
}
func (*GlobalNetworkEndpointGroupsListCall) Context ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsListCall
Context sets the context to be used in this call's Do method.
func (*GlobalNetworkEndpointGroupsListCall) Do ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupList, error)
Do executes the "compute.globalNetworkEndpointGroups.list" call. Any non-2xx status code is an error. Response headers are in either *NetworkEndpointGroupList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalNetworkEndpointGroupsListCall) Fields ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListCall) Fields(s ...googleapi.Field) *GlobalNetworkEndpointGroupsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalNetworkEndpointGroupsListCall) Filter ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListCall) Filter(filter string) *GlobalNetworkEndpointGroupsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*GlobalNetworkEndpointGroupsListCall) Header ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalNetworkEndpointGroupsListCall) IfNoneMatch ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListCall) IfNoneMatch(entityTag string) *GlobalNetworkEndpointGroupsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*GlobalNetworkEndpointGroupsListCall) MaxResults ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListCall) MaxResults(maxResults int64) *GlobalNetworkEndpointGroupsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*GlobalNetworkEndpointGroupsListCall) OrderBy ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListCall) OrderBy(orderBy string) *GlobalNetworkEndpointGroupsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*GlobalNetworkEndpointGroupsListCall) PageToken ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListCall) PageToken(pageToken string) *GlobalNetworkEndpointGroupsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*GlobalNetworkEndpointGroupsListCall) Pages ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListCall) Pages(ctx context.Context, f func(*NetworkEndpointGroupList) 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 (*GlobalNetworkEndpointGroupsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *GlobalNetworkEndpointGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalNetworkEndpointGroupsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type GlobalNetworkEndpointGroupsListNetworkEndpointsCall ¶ added in v0.21.0
type GlobalNetworkEndpointGroupsListNetworkEndpointsCall struct {
// contains filtered or unexported fields
}
func (*GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Context ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
Context sets the context to be used in this call's Do method.
func (*GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Do ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupsListNetworkEndpoints, error)
Do executes the "compute.globalNetworkEndpointGroups.listNetworkEndpoints" call. Any non-2xx status code is an error. Response headers are in either *NetworkEndpointGroupsListNetworkEndpoints.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Fields ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Fields(s ...googleapi.Field) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Filter ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Filter(filter string) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Header ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalNetworkEndpointGroupsListNetworkEndpointsCall) MaxResults ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) MaxResults(maxResults int64) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*GlobalNetworkEndpointGroupsListNetworkEndpointsCall) OrderBy ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) OrderBy(orderBy string) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*GlobalNetworkEndpointGroupsListNetworkEndpointsCall) PageToken ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) PageToken(pageToken string) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Pages ¶ added in v0.21.0
func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Pages(ctx context.Context, f func(*NetworkEndpointGroupsListNetworkEndpoints) 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 (*GlobalNetworkEndpointGroupsListNetworkEndpointsCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type GlobalNetworkEndpointGroupsService ¶ added in v0.21.0
type GlobalNetworkEndpointGroupsService struct {
// contains filtered or unexported fields
}
func NewGlobalNetworkEndpointGroupsService ¶ added in v0.21.0
func NewGlobalNetworkEndpointGroupsService(s *Service) *GlobalNetworkEndpointGroupsService
func (*GlobalNetworkEndpointGroupsService) AttachNetworkEndpoints ¶ added in v0.21.0
func (r *GlobalNetworkEndpointGroupsService) AttachNetworkEndpoints(project string, networkEndpointGroup string, globalnetworkendpointgroupsattachendpointsrequest *GlobalNetworkEndpointGroupsAttachEndpointsRequest) *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall
AttachNetworkEndpoints: Attach a network endpoint to the specified network endpoint group.
- networkEndpointGroup: The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035.
- project: Project ID for this request.
func (*GlobalNetworkEndpointGroupsService) Delete ¶ added in v0.21.0
func (r *GlobalNetworkEndpointGroupsService) Delete(project string, networkEndpointGroup string) *GlobalNetworkEndpointGroupsDeleteCall
Delete: Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are backend services referencing it.
- networkEndpointGroup: The name of the network endpoint group to delete. It should comply with RFC1035.
- project: Project ID for this request.
func (*GlobalNetworkEndpointGroupsService) DetachNetworkEndpoints ¶ added in v0.21.0
func (r *GlobalNetworkEndpointGroupsService) DetachNetworkEndpoints(project string, networkEndpointGroup string, globalnetworkendpointgroupsdetachendpointsrequest *GlobalNetworkEndpointGroupsDetachEndpointsRequest) *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall
DetachNetworkEndpoints: Detach the network endpoint from the specified network endpoint group.
- networkEndpointGroup: The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035.
- project: Project ID for this request.
func (*GlobalNetworkEndpointGroupsService) Get ¶ added in v0.21.0
func (r *GlobalNetworkEndpointGroupsService) Get(project string, networkEndpointGroup string) *GlobalNetworkEndpointGroupsGetCall
Get: Returns the specified network endpoint group.
- networkEndpointGroup: The name of the network endpoint group. It should comply with RFC1035.
- project: Project ID for this request.
func (*GlobalNetworkEndpointGroupsService) Insert ¶ added in v0.21.0
func (r *GlobalNetworkEndpointGroupsService) Insert(project string, networkendpointgroup *NetworkEndpointGroup) *GlobalNetworkEndpointGroupsInsertCall
Insert: Creates a network endpoint group in the specified project using the parameters that are included in the request.
- project: Project ID for this request.
func (*GlobalNetworkEndpointGroupsService) List ¶ added in v0.21.0
func (r *GlobalNetworkEndpointGroupsService) List(project string) *GlobalNetworkEndpointGroupsListCall
List: Retrieves the list of network endpoint groups that are located in the specified project.
- project: Project ID for this request.
func (*GlobalNetworkEndpointGroupsService) ListNetworkEndpoints ¶ added in v0.21.0
func (r *GlobalNetworkEndpointGroupsService) ListNetworkEndpoints(project string, networkEndpointGroup string) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
ListNetworkEndpoints: Lists the network endpoints in the specified network endpoint group.
- networkEndpointGroup: The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035.
- project: Project ID for this request.
type GlobalOperationsAggregatedListCall ¶
type GlobalOperationsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*GlobalOperationsAggregatedListCall) Context ¶
func (c *GlobalOperationsAggregatedListCall) Context(ctx context.Context) *GlobalOperationsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*GlobalOperationsAggregatedListCall) Do ¶
func (c *GlobalOperationsAggregatedListCall) Do(opts ...googleapi.CallOption) (*OperationAggregatedList, error)
Do executes the "compute.globalOperations.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *OperationAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalOperationsAggregatedListCall) Fields ¶
func (c *GlobalOperationsAggregatedListCall) Fields(s ...googleapi.Field) *GlobalOperationsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalOperationsAggregatedListCall) Filter ¶
func (c *GlobalOperationsAggregatedListCall) Filter(filter string) *GlobalOperationsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*GlobalOperationsAggregatedListCall) Header ¶
func (c *GlobalOperationsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalOperationsAggregatedListCall) IfNoneMatch ¶
func (c *GlobalOperationsAggregatedListCall) IfNoneMatch(entityTag string) *GlobalOperationsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*GlobalOperationsAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *GlobalOperationsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *GlobalOperationsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*GlobalOperationsAggregatedListCall) MaxResults ¶
func (c *GlobalOperationsAggregatedListCall) MaxResults(maxResults int64) *GlobalOperationsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*GlobalOperationsAggregatedListCall) OrderBy ¶
func (c *GlobalOperationsAggregatedListCall) OrderBy(orderBy string) *GlobalOperationsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*GlobalOperationsAggregatedListCall) PageToken ¶
func (c *GlobalOperationsAggregatedListCall) PageToken(pageToken string) *GlobalOperationsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*GlobalOperationsAggregatedListCall) Pages ¶
func (c *GlobalOperationsAggregatedListCall) Pages(ctx context.Context, f func(*OperationAggregatedList) 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 (*GlobalOperationsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *GlobalOperationsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalOperationsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*GlobalOperationsAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *GlobalOperationsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *GlobalOperationsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type GlobalOperationsDeleteCall ¶
type GlobalOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*GlobalOperationsDeleteCall) Context ¶
func (c *GlobalOperationsDeleteCall) Context(ctx context.Context) *GlobalOperationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*GlobalOperationsDeleteCall) Do ¶
func (c *GlobalOperationsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "compute.globalOperations.delete" call.
func (*GlobalOperationsDeleteCall) Fields ¶
func (c *GlobalOperationsDeleteCall) Fields(s ...googleapi.Field) *GlobalOperationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalOperationsDeleteCall) Header ¶
func (c *GlobalOperationsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type GlobalOperationsGetCall ¶
type GlobalOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*GlobalOperationsGetCall) Context ¶
func (c *GlobalOperationsGetCall) Context(ctx context.Context) *GlobalOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*GlobalOperationsGetCall) Do ¶
func (c *GlobalOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalOperations.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalOperationsGetCall) Fields ¶
func (c *GlobalOperationsGetCall) Fields(s ...googleapi.Field) *GlobalOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalOperationsGetCall) Header ¶
func (c *GlobalOperationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalOperationsGetCall) IfNoneMatch ¶
func (c *GlobalOperationsGetCall) IfNoneMatch(entityTag string) *GlobalOperationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type GlobalOperationsListCall ¶
type GlobalOperationsListCall struct {
// contains filtered or unexported fields
}
func (*GlobalOperationsListCall) Context ¶
func (c *GlobalOperationsListCall) Context(ctx context.Context) *GlobalOperationsListCall
Context sets the context to be used in this call's Do method.
func (*GlobalOperationsListCall) Do ¶
func (c *GlobalOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList, error)
Do executes the "compute.globalOperations.list" call. Any non-2xx status code is an error. Response headers are in either *OperationList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalOperationsListCall) Fields ¶
func (c *GlobalOperationsListCall) Fields(s ...googleapi.Field) *GlobalOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalOperationsListCall) Filter ¶
func (c *GlobalOperationsListCall) Filter(filter string) *GlobalOperationsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*GlobalOperationsListCall) Header ¶
func (c *GlobalOperationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalOperationsListCall) IfNoneMatch ¶
func (c *GlobalOperationsListCall) IfNoneMatch(entityTag string) *GlobalOperationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*GlobalOperationsListCall) MaxResults ¶
func (c *GlobalOperationsListCall) MaxResults(maxResults int64) *GlobalOperationsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*GlobalOperationsListCall) OrderBy ¶
func (c *GlobalOperationsListCall) OrderBy(orderBy string) *GlobalOperationsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*GlobalOperationsListCall) PageToken ¶
func (c *GlobalOperationsListCall) PageToken(pageToken string) *GlobalOperationsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*GlobalOperationsListCall) Pages ¶
func (c *GlobalOperationsListCall) Pages(ctx context.Context, f func(*OperationList) 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 (*GlobalOperationsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *GlobalOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalOperationsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type GlobalOperationsService ¶
type GlobalOperationsService struct {
// contains filtered or unexported fields
}
func NewGlobalOperationsService ¶
func NewGlobalOperationsService(s *Service) *GlobalOperationsService
func (*GlobalOperationsService) AggregatedList ¶
func (r *GlobalOperationsService) AggregatedList(project string) *GlobalOperationsAggregatedListCall
AggregatedList: Retrieves an aggregated list of all operations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*GlobalOperationsService) Delete ¶
func (r *GlobalOperationsService) Delete(project string, operationid string) *GlobalOperationsDeleteCall
Delete: Deletes the specified Operations resource.
- operation: Name of the Operations resource to delete, or its unique numeric identifier.
- project: Project ID for this request.
func (*GlobalOperationsService) Get ¶
func (r *GlobalOperationsService) Get(project string, operationid string) *GlobalOperationsGetCall
Get: Retrieves the specified Operations resource.
- operation: Name of the Operations resource to return, or its unique numeric identifier.
- project: Project ID for this request.
func (*GlobalOperationsService) List ¶
func (r *GlobalOperationsService) List(project string) *GlobalOperationsListCall
List: Retrieves a list of Operation resources contained within the specified project.
- project: Project ID for this request.
func (*GlobalOperationsService) Wait ¶ added in v0.16.0
func (r *GlobalOperationsService) Wait(project string, operationid string) *GlobalOperationsWaitCall
Wait: Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.
- operation: Name of the Operations resource to return, or its unique numeric identifier.
- project: Project ID for this request.
type GlobalOperationsWaitCall ¶ added in v0.16.0
type GlobalOperationsWaitCall struct {
// contains filtered or unexported fields
}
func (*GlobalOperationsWaitCall) Context ¶ added in v0.16.0
func (c *GlobalOperationsWaitCall) Context(ctx context.Context) *GlobalOperationsWaitCall
Context sets the context to be used in this call's Do method.
func (*GlobalOperationsWaitCall) Do ¶ added in v0.16.0
func (c *GlobalOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalOperations.wait" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalOperationsWaitCall) Fields ¶ added in v0.16.0
func (c *GlobalOperationsWaitCall) Fields(s ...googleapi.Field) *GlobalOperationsWaitCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalOperationsWaitCall) Header ¶ added in v0.16.0
func (c *GlobalOperationsWaitCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type GlobalOrganizationOperationsDeleteCall ¶ added in v0.36.0
type GlobalOrganizationOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*GlobalOrganizationOperationsDeleteCall) Context ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsDeleteCall) Context(ctx context.Context) *GlobalOrganizationOperationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*GlobalOrganizationOperationsDeleteCall) Do ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "compute.globalOrganizationOperations.delete" call.
func (*GlobalOrganizationOperationsDeleteCall) Fields ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsDeleteCall) Fields(s ...googleapi.Field) *GlobalOrganizationOperationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalOrganizationOperationsDeleteCall) Header ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalOrganizationOperationsDeleteCall) ParentId ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsDeleteCall) ParentId(parentId string) *GlobalOrganizationOperationsDeleteCall
ParentId sets the optional parameter "parentId": Parent ID for this request.
type GlobalOrganizationOperationsGetCall ¶ added in v0.36.0
type GlobalOrganizationOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*GlobalOrganizationOperationsGetCall) Context ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsGetCall) Context(ctx context.Context) *GlobalOrganizationOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*GlobalOrganizationOperationsGetCall) Do ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalOrganizationOperations.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalOrganizationOperationsGetCall) Fields ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsGetCall) Fields(s ...googleapi.Field) *GlobalOrganizationOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalOrganizationOperationsGetCall) Header ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalOrganizationOperationsGetCall) IfNoneMatch ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsGetCall) IfNoneMatch(entityTag string) *GlobalOrganizationOperationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*GlobalOrganizationOperationsGetCall) ParentId ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsGetCall) ParentId(parentId string) *GlobalOrganizationOperationsGetCall
ParentId sets the optional parameter "parentId": Parent ID for this request.
type GlobalOrganizationOperationsListCall ¶ added in v0.36.0
type GlobalOrganizationOperationsListCall struct {
// contains filtered or unexported fields
}
func (*GlobalOrganizationOperationsListCall) Context ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsListCall) Context(ctx context.Context) *GlobalOrganizationOperationsListCall
Context sets the context to be used in this call's Do method.
func (*GlobalOrganizationOperationsListCall) Do ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList, error)
Do executes the "compute.globalOrganizationOperations.list" call. Any non-2xx status code is an error. Response headers are in either *OperationList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalOrganizationOperationsListCall) Fields ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsListCall) Fields(s ...googleapi.Field) *GlobalOrganizationOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalOrganizationOperationsListCall) Filter ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsListCall) Filter(filter string) *GlobalOrganizationOperationsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*GlobalOrganizationOperationsListCall) Header ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalOrganizationOperationsListCall) IfNoneMatch ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsListCall) IfNoneMatch(entityTag string) *GlobalOrganizationOperationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*GlobalOrganizationOperationsListCall) MaxResults ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsListCall) MaxResults(maxResults int64) *GlobalOrganizationOperationsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*GlobalOrganizationOperationsListCall) OrderBy ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsListCall) OrderBy(orderBy string) *GlobalOrganizationOperationsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*GlobalOrganizationOperationsListCall) PageToken ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsListCall) PageToken(pageToken string) *GlobalOrganizationOperationsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*GlobalOrganizationOperationsListCall) Pages ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsListCall) Pages(ctx context.Context, f func(*OperationList) 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 (*GlobalOrganizationOperationsListCall) ParentId ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsListCall) ParentId(parentId string) *GlobalOrganizationOperationsListCall
ParentId sets the optional parameter "parentId": Parent ID for this request.
func (*GlobalOrganizationOperationsListCall) ReturnPartialSuccess ¶ added in v0.36.0
func (c *GlobalOrganizationOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalOrganizationOperationsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type GlobalOrganizationOperationsService ¶ added in v0.36.0
type GlobalOrganizationOperationsService struct {
// contains filtered or unexported fields
}
func NewGlobalOrganizationOperationsService ¶ added in v0.36.0
func NewGlobalOrganizationOperationsService(s *Service) *GlobalOrganizationOperationsService
func (*GlobalOrganizationOperationsService) Delete ¶ added in v0.36.0
func (r *GlobalOrganizationOperationsService) Delete(operationid string) *GlobalOrganizationOperationsDeleteCall
Delete: Deletes the specified Operations resource.
- operation: Name of the Operations resource to delete, or its unique numeric identifier.
func (*GlobalOrganizationOperationsService) Get ¶ added in v0.36.0
func (r *GlobalOrganizationOperationsService) Get(operationid string) *GlobalOrganizationOperationsGetCall
Get: Retrieves the specified Operations resource. Gets a list of operations by making a `list()` request.
- operation: Name of the Operations resource to return, or its unique numeric identifier.
func (*GlobalOrganizationOperationsService) List ¶ added in v0.36.0
func (r *GlobalOrganizationOperationsService) List() *GlobalOrganizationOperationsListCall
List: Retrieves a list of Operation resources contained within the specified organization.
type GlobalOrganizationSetPolicyRequest ¶ added in v0.39.0
type GlobalOrganizationSetPolicyRequest struct { // Bindings: Flatten Policy to create a backward compatible wire-format. // Deprecated. Use 'policy' to specify bindings. Bindings []*Binding `json:"bindings,omitempty"` // Etag: Flatten Policy to create a backward compatible wire-format. // Deprecated. Use 'policy' to specify the etag. Etag string `json:"etag,omitempty"` // Policy: REQUIRED: The complete policy to be applied to the 'resource'. The // size of the policy is limited to a few 10s of KB. An empty policy is in // general a valid policy but certain services (like Projects) might reject // them. Policy *Policy `json:"policy,omitempty"` // ForceSendFields is a list of field names (e.g. "Bindings") 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. "Bindings") 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:"-"` }
func (GlobalOrganizationSetPolicyRequest) MarshalJSON ¶ added in v0.39.0
func (s GlobalOrganizationSetPolicyRequest) MarshalJSON() ([]byte, error)
type GlobalPublicDelegatedPrefixesDeleteCall ¶ added in v0.43.0
type GlobalPublicDelegatedPrefixesDeleteCall struct {
// contains filtered or unexported fields
}
func (*GlobalPublicDelegatedPrefixesDeleteCall) Context ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesDeleteCall) Context(ctx context.Context) *GlobalPublicDelegatedPrefixesDeleteCall
Context sets the context to be used in this call's Do method.
func (*GlobalPublicDelegatedPrefixesDeleteCall) Do ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalPublicDelegatedPrefixes.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalPublicDelegatedPrefixesDeleteCall) Fields ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesDeleteCall) Fields(s ...googleapi.Field) *GlobalPublicDelegatedPrefixesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalPublicDelegatedPrefixesDeleteCall) Header ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalPublicDelegatedPrefixesDeleteCall) RequestId ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesDeleteCall) RequestId(requestId string) *GlobalPublicDelegatedPrefixesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type GlobalPublicDelegatedPrefixesGetCall ¶ added in v0.43.0
type GlobalPublicDelegatedPrefixesGetCall struct {
// contains filtered or unexported fields
}
func (*GlobalPublicDelegatedPrefixesGetCall) Context ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesGetCall) Context(ctx context.Context) *GlobalPublicDelegatedPrefixesGetCall
Context sets the context to be used in this call's Do method.
func (*GlobalPublicDelegatedPrefixesGetCall) Do ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefix, error)
Do executes the "compute.globalPublicDelegatedPrefixes.get" call. Any non-2xx status code is an error. Response headers are in either *PublicDelegatedPrefix.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalPublicDelegatedPrefixesGetCall) Fields ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesGetCall) Fields(s ...googleapi.Field) *GlobalPublicDelegatedPrefixesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalPublicDelegatedPrefixesGetCall) Header ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalPublicDelegatedPrefixesGetCall) IfNoneMatch ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesGetCall) IfNoneMatch(entityTag string) *GlobalPublicDelegatedPrefixesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type GlobalPublicDelegatedPrefixesInsertCall ¶ added in v0.43.0
type GlobalPublicDelegatedPrefixesInsertCall struct {
// contains filtered or unexported fields
}
func (*GlobalPublicDelegatedPrefixesInsertCall) Context ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesInsertCall) Context(ctx context.Context) *GlobalPublicDelegatedPrefixesInsertCall
Context sets the context to be used in this call's Do method.
func (*GlobalPublicDelegatedPrefixesInsertCall) Do ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalPublicDelegatedPrefixes.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalPublicDelegatedPrefixesInsertCall) Fields ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesInsertCall) Fields(s ...googleapi.Field) *GlobalPublicDelegatedPrefixesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalPublicDelegatedPrefixesInsertCall) Header ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalPublicDelegatedPrefixesInsertCall) RequestId ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesInsertCall) RequestId(requestId string) *GlobalPublicDelegatedPrefixesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type GlobalPublicDelegatedPrefixesListCall ¶ added in v0.43.0
type GlobalPublicDelegatedPrefixesListCall struct {
// contains filtered or unexported fields
}
func (*GlobalPublicDelegatedPrefixesListCall) Context ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesListCall) Context(ctx context.Context) *GlobalPublicDelegatedPrefixesListCall
Context sets the context to be used in this call's Do method.
func (*GlobalPublicDelegatedPrefixesListCall) Do ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesListCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefixList, error)
Do executes the "compute.globalPublicDelegatedPrefixes.list" call. Any non-2xx status code is an error. Response headers are in either *PublicDelegatedPrefixList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalPublicDelegatedPrefixesListCall) Fields ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesListCall) Fields(s ...googleapi.Field) *GlobalPublicDelegatedPrefixesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalPublicDelegatedPrefixesListCall) Filter ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesListCall) Filter(filter string) *GlobalPublicDelegatedPrefixesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*GlobalPublicDelegatedPrefixesListCall) Header ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalPublicDelegatedPrefixesListCall) IfNoneMatch ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesListCall) IfNoneMatch(entityTag string) *GlobalPublicDelegatedPrefixesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*GlobalPublicDelegatedPrefixesListCall) MaxResults ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesListCall) MaxResults(maxResults int64) *GlobalPublicDelegatedPrefixesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*GlobalPublicDelegatedPrefixesListCall) OrderBy ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesListCall) OrderBy(orderBy string) *GlobalPublicDelegatedPrefixesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*GlobalPublicDelegatedPrefixesListCall) PageToken ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesListCall) PageToken(pageToken string) *GlobalPublicDelegatedPrefixesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*GlobalPublicDelegatedPrefixesListCall) Pages ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesListCall) Pages(ctx context.Context, f func(*PublicDelegatedPrefixList) 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 (*GlobalPublicDelegatedPrefixesListCall) ReturnPartialSuccess ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *GlobalPublicDelegatedPrefixesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type GlobalPublicDelegatedPrefixesPatchCall ¶ added in v0.43.0
type GlobalPublicDelegatedPrefixesPatchCall struct {
// contains filtered or unexported fields
}
func (*GlobalPublicDelegatedPrefixesPatchCall) Context ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesPatchCall) Context(ctx context.Context) *GlobalPublicDelegatedPrefixesPatchCall
Context sets the context to be used in this call's Do method.
func (*GlobalPublicDelegatedPrefixesPatchCall) Do ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalPublicDelegatedPrefixes.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalPublicDelegatedPrefixesPatchCall) Fields ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesPatchCall) Fields(s ...googleapi.Field) *GlobalPublicDelegatedPrefixesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*GlobalPublicDelegatedPrefixesPatchCall) Header ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*GlobalPublicDelegatedPrefixesPatchCall) RequestId ¶ added in v0.43.0
func (c *GlobalPublicDelegatedPrefixesPatchCall) RequestId(requestId string) *GlobalPublicDelegatedPrefixesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type GlobalPublicDelegatedPrefixesService ¶ added in v0.43.0
type GlobalPublicDelegatedPrefixesService struct {
// contains filtered or unexported fields
}
func NewGlobalPublicDelegatedPrefixesService ¶ added in v0.43.0
func NewGlobalPublicDelegatedPrefixesService(s *Service) *GlobalPublicDelegatedPrefixesService
func (*GlobalPublicDelegatedPrefixesService) Delete ¶ added in v0.43.0
func (r *GlobalPublicDelegatedPrefixesService) Delete(project string, publicDelegatedPrefix string) *GlobalPublicDelegatedPrefixesDeleteCall
Delete: Deletes the specified global PublicDelegatedPrefix.
- project: Project ID for this request.
- publicDelegatedPrefix: Name of the PublicDelegatedPrefix resource to delete.
func (*GlobalPublicDelegatedPrefixesService) Get ¶ added in v0.43.0
func (r *GlobalPublicDelegatedPrefixesService) Get(project string, publicDelegatedPrefix string) *GlobalPublicDelegatedPrefixesGetCall
Get: Returns the specified global PublicDelegatedPrefix resource.
- project: Project ID for this request.
- publicDelegatedPrefix: Name of the PublicDelegatedPrefix resource to return.
func (*GlobalPublicDelegatedPrefixesService) Insert ¶ added in v0.43.0
func (r *GlobalPublicDelegatedPrefixesService) Insert(project string, publicdelegatedprefix *PublicDelegatedPrefix) *GlobalPublicDelegatedPrefixesInsertCall
Insert: Creates a global PublicDelegatedPrefix in the specified project using the parameters that are included in the request.
- project: Project ID for this request.
func (*GlobalPublicDelegatedPrefixesService) List ¶ added in v0.43.0
func (r *GlobalPublicDelegatedPrefixesService) List(project string) *GlobalPublicDelegatedPrefixesListCall
List: Lists the global PublicDelegatedPrefixes for a project.
- project: Project ID for this request.
func (*GlobalPublicDelegatedPrefixesService) Patch ¶ added in v0.43.0
func (r *GlobalPublicDelegatedPrefixesService) Patch(project string, publicDelegatedPrefix string, publicdelegatedprefix *PublicDelegatedPrefix) *GlobalPublicDelegatedPrefixesPatchCall
Patch: Patches the specified global PublicDelegatedPrefix resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
- project: Project ID for this request.
- publicDelegatedPrefix: Name of the PublicDelegatedPrefix resource to patch.
type GlobalSetLabelsRequest ¶
type GlobalSetLabelsRequest struct { // LabelFingerprint: The fingerprint of the previous set of labels for this // resource, used to detect conflicts. The fingerprint is initially generated // by Compute Engine and changes after every request to modify or update // labels. You must always provide an up-to-date fingerprint hash when updating // or changing labels, otherwise the request will fail with error 412 // conditionNotMet. Make a get() request to the resource to get the latest // fingerprint. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: A list of labels to apply for this resource. Each label must comply // with the requirements for labels. For example, "webserver-frontend": // "images". A label value can also be empty (e.g. "my-label": ""). Labels map[string]string `json:"labels,omitempty"` // ForceSendFields is a list of field names (e.g. "LabelFingerprint") 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. "LabelFingerprint") 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:"-"` }
func (GlobalSetLabelsRequest) MarshalJSON ¶
func (s GlobalSetLabelsRequest) MarshalJSON() ([]byte, error)
type GlobalSetPolicyRequest ¶
type GlobalSetPolicyRequest struct { // Bindings: Flatten Policy to create a backward compatible wire-format. // Deprecated. Use 'policy' to specify bindings. Bindings []*Binding `json:"bindings,omitempty"` // Etag: Flatten Policy to create a backward compatible wire-format. // Deprecated. Use 'policy' to specify the etag. Etag string `json:"etag,omitempty"` // Policy: REQUIRED: The complete policy to be applied to the 'resource'. The // size of the policy is limited to a few 10s of KB. An empty policy is in // general a valid policy but certain services (like Projects) might reject // them. Policy *Policy `json:"policy,omitempty"` // ForceSendFields is a list of field names (e.g. "Bindings") 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. "Bindings") 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:"-"` }
func (GlobalSetPolicyRequest) MarshalJSON ¶
func (s GlobalSetPolicyRequest) MarshalJSON() ([]byte, error)
type GuestAttributes ¶ added in v0.7.0
type GuestAttributes struct { // Kind: [Output Only] Type of the resource. Always compute#guestAttributes for // guest attributes entry. Kind string `json:"kind,omitempty"` // QueryPath: The path to be queried. This can be the default namespace (”) or // a nested namespace ('\/') or a specified key ('\/\'). QueryPath string `json:"queryPath,omitempty"` // QueryValue: [Output Only] The value of the requested queried path. QueryValue *GuestAttributesValue `json:"queryValue,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // VariableKey: The key to search for. VariableKey string `json:"variableKey,omitempty"` // VariableValue: [Output Only] The value found for the requested key. VariableValue string `json:"variableValue,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"` }
GuestAttributes: A guest attributes entry.
func (GuestAttributes) MarshalJSON ¶ added in v0.7.0
func (s GuestAttributes) MarshalJSON() ([]byte, error)
type GuestAttributesEntry ¶ added in v0.7.0
type GuestAttributesEntry struct { // Key: Key for the guest attribute entry. Key string `json:"key,omitempty"` // Namespace: Namespace for the guest attribute entry. Namespace string `json:"namespace,omitempty"` // Value: Value for the guest attribute entry. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
GuestAttributesEntry: A guest attributes namespace/key/value entry.
func (GuestAttributesEntry) MarshalJSON ¶ added in v0.7.0
func (s GuestAttributesEntry) MarshalJSON() ([]byte, error)
type GuestAttributesValue ¶ added in v0.7.0
type GuestAttributesValue struct { Items []*GuestAttributesEntry `json:"items,omitempty"` // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"` }
GuestAttributesValue: Array of guest attribute namespace/key/value tuples.
func (GuestAttributesValue) MarshalJSON ¶ added in v0.7.0
func (s GuestAttributesValue) MarshalJSON() ([]byte, error)
type GuestOsFeature ¶
type GuestOsFeature struct { // Type: The ID of a supported feature. To add multiple values, use commas to // separate values. Set to one or more of the following values: - // VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC // - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE_V2 - // SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF For more information, see Enabling // guest operating system features. // // Possible values: // "FEATURE_TYPE_UNSPECIFIED" // "GVNIC" // "IDPF" // "MULTI_IP_SUBNET" // "SECURE_BOOT" // "SEV_CAPABLE" // "SEV_LIVE_MIGRATABLE" // "SEV_LIVE_MIGRATABLE_V2" // "SEV_SNP_CAPABLE" // "TDX_CAPABLE" // "UEFI_COMPATIBLE" // "VIRTIO_SCSI_MULTIQUEUE" // "WINDOWS" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Type") 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. "Type") 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:"-"` }
GuestOsFeature: Guest OS features.
func (GuestOsFeature) MarshalJSON ¶
func (s GuestOsFeature) MarshalJSON() ([]byte, error)
type HTTP2HealthCheck ¶ added in v0.2.0
type HTTP2HealthCheck struct { // Host: The value of the host header in the HTTP/2 health check request. If // left empty (default value), the host header is set to the destination IP // address to which health check packets are sent. The destination IP address // depends on the type of load balancer. For details, see: // https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest Host string `json:"host,omitempty"` // Port: The TCP port number to which the health check prober sends packets. // The default value is 443. Valid values are 1 through 65535. Port int64 `json:"port,omitempty"` // PortName: Not supported. PortName string `json:"portName,omitempty"` // PortSpecification: Specifies how a port is selected for health checking. Can // be one of the following values: USE_FIXED_PORT: Specifies a port number // explicitly using the port field in the health check. Supported by backend // services for passthrough load balancers and backend services for proxy load // balancers. Not supported by target pools. The health check supports all // backends supported by the backend service provided the backend can be health // checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT // network endpoint groups, and instance group backends. USE_NAMED_PORT: Not // supported. USE_SERVING_PORT: Provides an indirect method of specifying the // health check port by referring to the backend service. Only supported by // backend services for proxy load balancers. Not supported by target pools. // Not supported by backend services for passthrough load balancers. Supports // all backends that can be health checked; for example, GCE_VM_IP_PORT network // endpoint groups and instance group backends. For GCE_VM_IP_PORT network // endpoint group backends, the health check uses the port number specified for // each endpoint in the network endpoint group. For instance group backends, // the health check uses the port number determined by looking up the backend // service's named port in the instance group's list of named ports. // // Possible values: // "USE_FIXED_PORT" - The port number in the health check's port is used for // health checking. Applies to network endpoint group and instance group // backends. // "USE_NAMED_PORT" - Not supported. // "USE_SERVING_PORT" - For network endpoint group backends, the health check // uses the port number specified on each endpoint in the network endpoint // group. For instance group backends, the health check uses the port number // specified for the backend service's named port defined in the instance // group's named ports. PortSpecification string `json:"portSpecification,omitempty"` // ProxyHeader: Specifies the type of proxy header to append before sending // data to the backend, either NONE or PROXY_V1. The default is NONE. // // Possible values: // "NONE" // "PROXY_V1" ProxyHeader string `json:"proxyHeader,omitempty"` // RequestPath: The request path of the HTTP/2 health check request. The // default value is /. Must comply with RFC3986. RequestPath string `json:"requestPath,omitempty"` // Response: Creates a content-based HTTP/2 health check. In addition to the // required HTTP 200 (OK) status code, you can configure the health check to // pass only when the backend sends this specific ASCII response string within // the first 1024 bytes of the HTTP response body. For details, see: // https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http Response string `json:"response,omitempty"` // ForceSendFields is a list of field names (e.g. "Host") 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. "Host") 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:"-"` }
func (HTTP2HealthCheck) MarshalJSON ¶ added in v0.2.0
func (s HTTP2HealthCheck) MarshalJSON() ([]byte, error)
type HTTPHealthCheck ¶
type HTTPHealthCheck struct { // Host: The value of the host header in the HTTP health check request. If left // empty (default value), the host header is set to the destination IP address // to which health check packets are sent. The destination IP address depends // on the type of load balancer. For details, see: // https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest Host string `json:"host,omitempty"` // Port: The TCP port number to which the health check prober sends packets. // The default value is 80. Valid values are 1 through 65535. Port int64 `json:"port,omitempty"` // PortName: Not supported. PortName string `json:"portName,omitempty"` // PortSpecification: Specifies how a port is selected for health checking. Can // be one of the following values: USE_FIXED_PORT: Specifies a port number // explicitly using the port field in the health check. Supported by backend // services for passthrough load balancers and backend services for proxy load // balancers. Also supported in legacy HTTP health checks for target pools. The // health check supports all backends supported by the backend service provided // the backend can be health checked. For example, GCE_VM_IP network endpoint // groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. // USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method // of specifying the health check port by referring to the backend service. // Only supported by backend services for proxy load balancers. Not supported // by target pools. Not supported by backend services for pass-through load // balancers. Supports all backends that can be health checked; for example, // GCE_VM_IP_PORT network endpoint groups and instance group backends. For // GCE_VM_IP_PORT network endpoint group backends, the health check uses the // port number specified for each endpoint in the network endpoint group. For // instance group backends, the health check uses the port number determined by // looking up the backend service's named port in the instance group's list of // named ports. // // Possible values: // "USE_FIXED_PORT" - The port number in the health check's port is used for // health checking. Applies to network endpoint group and instance group // backends. // "USE_NAMED_PORT" - Not supported. // "USE_SERVING_PORT" - For network endpoint group backends, the health check // uses the port number specified on each endpoint in the network endpoint // group. For instance group backends, the health check uses the port number // specified for the backend service's named port defined in the instance // group's named ports. PortSpecification string `json:"portSpecification,omitempty"` // ProxyHeader: Specifies the type of proxy header to append before sending // data to the backend, either NONE or PROXY_V1. The default is NONE. // // Possible values: // "NONE" // "PROXY_V1" ProxyHeader string `json:"proxyHeader,omitempty"` // RequestPath: The request path of the HTTP health check request. The default // value is /. Must comply with RFC3986. RequestPath string `json:"requestPath,omitempty"` // Response: Creates a content-based HTTP health check. In addition to the // required HTTP 200 (OK) status code, you can configure the health check to // pass only when the backend sends this specific ASCII response string within // the first 1024 bytes of the HTTP response body. For details, see: // https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http Response string `json:"response,omitempty"` // ForceSendFields is a list of field names (e.g. "Host") 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. "Host") 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:"-"` }
func (HTTPHealthCheck) MarshalJSON ¶
func (s HTTPHealthCheck) MarshalJSON() ([]byte, error)
type HTTPSHealthCheck ¶
type HTTPSHealthCheck struct { // Host: The value of the host header in the HTTPS health check request. If // left empty (default value), the host header is set to the destination IP // address to which health check packets are sent. The destination IP address // depends on the type of load balancer. For details, see: // https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest Host string `json:"host,omitempty"` // Port: The TCP port number to which the health check prober sends packets. // The default value is 443. Valid values are 1 through 65535. Port int64 `json:"port,omitempty"` // PortName: Not supported. PortName string `json:"portName,omitempty"` // PortSpecification: Specifies how a port is selected for health checking. Can // be one of the following values: USE_FIXED_PORT: Specifies a port number // explicitly using the port field in the health check. Supported by backend // services for passthrough load balancers and backend services for proxy load // balancers. Not supported by target pools. The health check supports all // backends supported by the backend service provided the backend can be health // checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT // network endpoint groups, and instance group backends. USE_NAMED_PORT: Not // supported. USE_SERVING_PORT: Provides an indirect method of specifying the // health check port by referring to the backend service. Only supported by // backend services for proxy load balancers. Not supported by target pools. // Not supported by backend services for passthrough load balancers. Supports // all backends that can be health checked; for example, GCE_VM_IP_PORT network // endpoint groups and instance group backends. For GCE_VM_IP_PORT network // endpoint group backends, the health check uses the port number specified for // each endpoint in the network endpoint group. For instance group backends, // the health check uses the port number determined by looking up the backend // service's named port in the instance group's list of named ports. // // Possible values: // "USE_FIXED_PORT" - The port number in the health check's port is used for // health checking. Applies to network endpoint group and instance group // backends. // "USE_NAMED_PORT" - Not supported. // "USE_SERVING_PORT" - For network endpoint group backends, the health check // uses the port number specified on each endpoint in the network endpoint // group. For instance group backends, the health check uses the port number // specified for the backend service's named port defined in the instance // group's named ports. PortSpecification string `json:"portSpecification,omitempty"` // ProxyHeader: Specifies the type of proxy header to append before sending // data to the backend, either NONE or PROXY_V1. The default is NONE. // // Possible values: // "NONE" // "PROXY_V1" ProxyHeader string `json:"proxyHeader,omitempty"` // RequestPath: The request path of the HTTPS health check request. The default // value is /. Must comply with RFC3986. RequestPath string `json:"requestPath,omitempty"` // Response: Creates a content-based HTTPS health check. In addition to the // required HTTP 200 (OK) status code, you can configure the health check to // pass only when the backend sends this specific ASCII response string within // the first 1024 bytes of the HTTP response body. For details, see: // https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http Response string `json:"response,omitempty"` // ForceSendFields is a list of field names (e.g. "Host") 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. "Host") 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:"-"` }
func (HTTPSHealthCheck) MarshalJSON ¶
func (s HTTPSHealthCheck) MarshalJSON() ([]byte, error)
type HealthCheck ¶
type HealthCheck struct { // CheckIntervalSec: How often (in seconds) to send a health check. The default // value is 5 seconds. CheckIntervalSec int64 `json:"checkIntervalSec,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in 3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` GrpcHealthCheck *GRPCHealthCheck `json:"grpcHealthCheck,omitempty"` // HealthyThreshold: A so-far unhealthy instance will be marked healthy after // this many consecutive successes. The default value is 2. HealthyThreshold int64 `json:"healthyThreshold,omitempty"` Http2HealthCheck *HTTP2HealthCheck `json:"http2HealthCheck,omitempty"` HttpHealthCheck *HTTPHealthCheck `json:"httpHealthCheck,omitempty"` HttpsHealthCheck *HTTPSHealthCheck `json:"httpsHealthCheck,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: Type of the resource. Kind string `json:"kind,omitempty"` // LogConfig: Configure logging on this health check. LogConfig *HealthCheckLogConfig `json:"logConfig,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. For // example, a name that is 1-63 characters long, matches the regular expression // `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with RFC1035. This // regular expression describes a name where the first character is a lowercase // letter, and all following characters are a dash, lowercase letter, or digit, // except the last character, which isn't a dash. Name string `json:"name,omitempty"` // Region: [Output Only] Region where the health check resides. Not applicable // to global health checks. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SourceRegions: The list of cloud regions from which health checks are // performed. If any regions are specified, then exactly 3 regions should be // specified. The region names must be valid names of Google Cloud regions. // This can only be set for global health check. If this list is non-empty, // then there are restrictions on what other health check fields are supported // and what other resources can use this health check: - SSL, HTTP2, and GRPC // protocols are not supported. - The TCP request field is not supported. - The // proxyHeader field for HTTP, HTTPS, and TCP is not supported. - The // checkIntervalSec field must be at least 30. - The health check cannot be // used with BackendService nor with managed instance group auto-healing. SourceRegions []string `json:"sourceRegions,omitempty"` SslHealthCheck *SSLHealthCheck `json:"sslHealthCheck,omitempty"` TcpHealthCheck *TCPHealthCheck `json:"tcpHealthCheck,omitempty"` // TimeoutSec: How long (in seconds) to wait before claiming failure. The // default value is 5 seconds. It is invalid for timeoutSec to have greater // value than checkIntervalSec. TimeoutSec int64 `json:"timeoutSec,omitempty"` // Type: Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, // HTTP2 or GRPC. Exactly one of the protocol-specific health check fields must // be specified, which must match type field. // // Possible values: // "GRPC" // "HTTP" // "HTTP2" // "HTTPS" // "INVALID" // "SSL" // "TCP" Type string `json:"type,omitempty"` // UnhealthyThreshold: A so-far healthy instance will be marked unhealthy after // this many consecutive failures. The default value is 2. UnhealthyThreshold int64 `json:"unhealthyThreshold,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CheckIntervalSec") 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. "CheckIntervalSec") 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:"-"` }
HealthCheck: Represents a health check resource. Google Compute Engine has two health check resources: * Regional (/compute/docs/reference/rest/v1/regionHealthChecks) * Global (/compute/docs/reference/rest/v1/healthChecks) These health check resources can be used for load balancing and for autohealing VMs in a managed instance group (MIG). **Load balancing** Health check requirements vary depending on the type of load balancer. For details about the type of health check supported for each load balancer and corresponding backend type, see Health checks overview: Load balancer guide. **Autohealing in MIGs** The health checks that you use for autohealing VMs in a MIG can be either regional or global. For more information, see Set up an application health check and autohealing. For more information, see Health checks overview.
func (HealthCheck) MarshalJSON ¶
func (s HealthCheck) MarshalJSON() ([]byte, error)
type HealthCheckList ¶
type HealthCheckList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of HealthCheck resources. Items []*HealthCheck `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *HealthCheckListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
HealthCheckList: Contains a list of HealthCheck resources.
func (HealthCheckList) MarshalJSON ¶
func (s HealthCheckList) MarshalJSON() ([]byte, error)
type HealthCheckListWarning ¶
type HealthCheckListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*HealthCheckListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
HealthCheckListWarning: [Output Only] Informational warning message.
func (HealthCheckListWarning) MarshalJSON ¶
func (s HealthCheckListWarning) MarshalJSON() ([]byte, error)
type HealthCheckListWarningData ¶
type HealthCheckListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (HealthCheckListWarningData) MarshalJSON ¶
func (s HealthCheckListWarningData) MarshalJSON() ([]byte, error)
type HealthCheckLogConfig ¶ added in v0.29.0
type HealthCheckLogConfig struct { // Enable: Indicates whether or not to export logs. This is false by default, // which means no health check logging will be done. Enable bool `json:"enable,omitempty"` // ForceSendFields is a list of field names (e.g. "Enable") 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. "Enable") 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:"-"` }
HealthCheckLogConfig: Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver.
func (HealthCheckLogConfig) MarshalJSON ¶ added in v0.29.0
func (s HealthCheckLogConfig) MarshalJSON() ([]byte, error)
type HealthCheckReference ¶
type HealthCheckReference struct { HealthCheck string `json:"healthCheck,omitempty"` // ForceSendFields is a list of field names (e.g. "HealthCheck") 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. "HealthCheck") 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:"-"` }
HealthCheckReference: A full or valid partial URL to a health check. For example, the following are valid URLs: - https://www.googleapis.com/compute/beta/projects/project-id/global/httpHealthChecks/health-check - projects/project-id/global/httpHealthChecks/health-check - global/httpHealthChecks/health-check
func (HealthCheckReference) MarshalJSON ¶
func (s HealthCheckReference) MarshalJSON() ([]byte, error)
type HealthCheckService ¶ added in v0.29.0
type HealthCheckService struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents stored in // this object. This field is used in optimistic locking. This field will be // ignored when inserting a HealthCheckService. An up-to-date fingerprint must // be provided in order to patch/update the HealthCheckService; Otherwise, the // request will fail with error 412 conditionNotMet. To see the latest // fingerprint, make a get() request to retrieve the HealthCheckService. Fingerprint string `json:"fingerprint,omitempty"` // HealthChecks: A list of URLs to the HealthCheck resources. Must have at // least one HealthCheck, and not more than 10 for regional HealthCheckService, // and not more than 1 for global HealthCheckService. HealthCheck resources // must have portSpecification=USE_SERVING_PORT or // portSpecification=USE_FIXED_PORT. For regional HealthCheckService, the // HealthCheck must be regional and in the same region. For global // HealthCheckService, HealthCheck must be global. Mix of regional and global // HealthChecks is not supported. Multiple regional HealthChecks must belong to // the same region. Regional HealthChecks must belong to the same region as // zones of NetworkEndpointGroups. For global HealthCheckService using global // INTERNET_IP_PORT NetworkEndpointGroups, the global HealthChecks must specify // sourceRegions, and HealthChecks that specify sourceRegions can only be used // with global INTERNET_IP_PORT NetworkEndpointGroups. HealthChecks []string `json:"healthChecks,omitempty"` // HealthStatusAggregationPolicy: Optional. Policy for how the results from // multiple health checks for the same endpoint are aggregated. Defaults to // NO_AGGREGATION if unspecified. - NO_AGGREGATION. An EndpointHealth message // is returned for each pair in the health check service. - AND. If any health // check of an endpoint reports UNHEALTHY, then UNHEALTHY is the HealthState of // the endpoint. If all health checks report HEALTHY, the HealthState of the // endpoint is HEALTHY. . This is only allowed with regional // HealthCheckService. // // Possible values: // "AND" - If any backend's health check reports UNHEALTHY, then UNHEALTHY is // the HealthState of the entire health check service. If all backend's are // healthy, the HealthState of the health check service is HEALTHY. // "NO_AGGREGATION" - An EndpointHealth message is returned for each backend // in the health check service. HealthStatusAggregationPolicy string `json:"healthStatusAggregationPolicy,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output only] Type of the resource. Always // compute#healthCheckServicefor health check services. Kind string `json:"kind,omitempty"` // Name: Name of the resource. The name must be 1-63 characters long, and // comply with RFC1035. Specifically, the name must be 1-63 characters long and // match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the // first character must be a lowercase letter, and all following characters // must be a dash, lowercase letter, or digit, except the last character, which // cannot be a dash. Name string `json:"name,omitempty"` // NetworkEndpointGroups: A list of URLs to the NetworkEndpointGroup resources. // Must not have more than 100. For regional HealthCheckService, NEGs must be // in zones in the region of the HealthCheckService. For global // HealthCheckServices, the NetworkEndpointGroups must be global // INTERNET_IP_PORT. NetworkEndpointGroups []string `json:"networkEndpointGroups,omitempty"` // NotificationEndpoints: A list of URLs to the NotificationEndpoint resources. // Must not have more than 10. A list of endpoints for receiving notifications // of change in health status. For regional HealthCheckService, // NotificationEndpoint must be regional and in the same region. For global // HealthCheckService, NotificationEndpoint must be global. NotificationEndpoints []string `json:"notificationEndpoints,omitempty"` // Region: [Output Only] URL of the region where the health check service // resides. This field is not applicable to global health check services. You // must specify this field as part of the HTTP request URL. It is not settable // as a field in the request body. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
HealthCheckService: Represents a Health-Check as a Service resource.
func (HealthCheckService) MarshalJSON ¶ added in v0.29.0
func (s HealthCheckService) MarshalJSON() ([]byte, error)
type HealthCheckServiceReference ¶ added in v0.29.0
type HealthCheckServiceReference struct { HealthCheckService string `json:"healthCheckService,omitempty"` // ForceSendFields is a list of field names (e.g. "HealthCheckService") 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. "HealthCheckService") 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:"-"` }
HealthCheckServiceReference: A full or valid partial URL to a health check service. For example, the following are valid URLs: - https://www.googleapis.com/compute/beta/projects/project-id/regions/us-west1/healthCheckServices/health-check-service - projects/project-id/regions/us-west1/healthCheckServices/health-check-service
- regions/us-west1/healthCheckServices/health-check-service
func (HealthCheckServiceReference) MarshalJSON ¶ added in v0.29.0
func (s HealthCheckServiceReference) MarshalJSON() ([]byte, error)
type HealthCheckServicesList ¶ added in v0.29.0
type HealthCheckServicesList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of HealthCheckService resources. Items []*HealthCheckService `json:"items,omitempty"` // Kind: [Output Only] Type of the resource. Always // compute#healthCheckServicesList for lists of HealthCheckServices. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *HealthCheckServicesListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (HealthCheckServicesList) MarshalJSON ¶ added in v0.29.0
func (s HealthCheckServicesList) MarshalJSON() ([]byte, error)
type HealthCheckServicesListWarning ¶ added in v0.29.0
type HealthCheckServicesListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*HealthCheckServicesListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
HealthCheckServicesListWarning: [Output Only] Informational warning message.
func (HealthCheckServicesListWarning) MarshalJSON ¶ added in v0.29.0
func (s HealthCheckServicesListWarning) MarshalJSON() ([]byte, error)
type HealthCheckServicesListWarningData ¶ added in v0.29.0
type HealthCheckServicesListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (HealthCheckServicesListWarningData) MarshalJSON ¶ added in v0.29.0
func (s HealthCheckServicesListWarningData) MarshalJSON() ([]byte, error)
type HealthChecksAggregatedList ¶ added in v0.11.0
type HealthChecksAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of HealthChecksScopedList resources. Items map[string]HealthChecksScopedList `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *HealthChecksAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (HealthChecksAggregatedList) MarshalJSON ¶ added in v0.11.0
func (s HealthChecksAggregatedList) MarshalJSON() ([]byte, error)
type HealthChecksAggregatedListCall ¶ added in v0.11.0
type HealthChecksAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*HealthChecksAggregatedListCall) Context ¶ added in v0.11.0
func (c *HealthChecksAggregatedListCall) Context(ctx context.Context) *HealthChecksAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*HealthChecksAggregatedListCall) Do ¶ added in v0.11.0
func (c *HealthChecksAggregatedListCall) Do(opts ...googleapi.CallOption) (*HealthChecksAggregatedList, error)
Do executes the "compute.healthChecks.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *HealthChecksAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HealthChecksAggregatedListCall) Fields ¶ added in v0.11.0
func (c *HealthChecksAggregatedListCall) Fields(s ...googleapi.Field) *HealthChecksAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HealthChecksAggregatedListCall) Filter ¶ added in v0.11.0
func (c *HealthChecksAggregatedListCall) Filter(filter string) *HealthChecksAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*HealthChecksAggregatedListCall) Header ¶ added in v0.11.0
func (c *HealthChecksAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HealthChecksAggregatedListCall) IfNoneMatch ¶ added in v0.11.0
func (c *HealthChecksAggregatedListCall) IfNoneMatch(entityTag string) *HealthChecksAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*HealthChecksAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *HealthChecksAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *HealthChecksAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*HealthChecksAggregatedListCall) MaxResults ¶ added in v0.11.0
func (c *HealthChecksAggregatedListCall) MaxResults(maxResults int64) *HealthChecksAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*HealthChecksAggregatedListCall) OrderBy ¶ added in v0.11.0
func (c *HealthChecksAggregatedListCall) OrderBy(orderBy string) *HealthChecksAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*HealthChecksAggregatedListCall) PageToken ¶ added in v0.11.0
func (c *HealthChecksAggregatedListCall) PageToken(pageToken string) *HealthChecksAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*HealthChecksAggregatedListCall) Pages ¶ added in v0.11.0
func (c *HealthChecksAggregatedListCall) Pages(ctx context.Context, f func(*HealthChecksAggregatedList) 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 (*HealthChecksAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *HealthChecksAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *HealthChecksAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*HealthChecksAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *HealthChecksAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *HealthChecksAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type HealthChecksAggregatedListWarning ¶ added in v0.11.0
type HealthChecksAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*HealthChecksAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
HealthChecksAggregatedListWarning: [Output Only] Informational warning message.
func (HealthChecksAggregatedListWarning) MarshalJSON ¶ added in v0.11.0
func (s HealthChecksAggregatedListWarning) MarshalJSON() ([]byte, error)
type HealthChecksAggregatedListWarningData ¶ added in v0.11.0
type HealthChecksAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (HealthChecksAggregatedListWarningData) MarshalJSON ¶ added in v0.11.0
func (s HealthChecksAggregatedListWarningData) MarshalJSON() ([]byte, error)
type HealthChecksDeleteCall ¶
type HealthChecksDeleteCall struct {
// contains filtered or unexported fields
}
func (*HealthChecksDeleteCall) Context ¶
func (c *HealthChecksDeleteCall) Context(ctx context.Context) *HealthChecksDeleteCall
Context sets the context to be used in this call's Do method.
func (*HealthChecksDeleteCall) Do ¶
func (c *HealthChecksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.healthChecks.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HealthChecksDeleteCall) Fields ¶
func (c *HealthChecksDeleteCall) Fields(s ...googleapi.Field) *HealthChecksDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HealthChecksDeleteCall) Header ¶
func (c *HealthChecksDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HealthChecksDeleteCall) RequestId ¶
func (c *HealthChecksDeleteCall) RequestId(requestId string) *HealthChecksDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type HealthChecksGetCall ¶
type HealthChecksGetCall struct {
// contains filtered or unexported fields
}
func (*HealthChecksGetCall) Context ¶
func (c *HealthChecksGetCall) Context(ctx context.Context) *HealthChecksGetCall
Context sets the context to be used in this call's Do method.
func (*HealthChecksGetCall) Do ¶
func (c *HealthChecksGetCall) Do(opts ...googleapi.CallOption) (*HealthCheck, error)
Do executes the "compute.healthChecks.get" call. Any non-2xx status code is an error. Response headers are in either *HealthCheck.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HealthChecksGetCall) Fields ¶
func (c *HealthChecksGetCall) Fields(s ...googleapi.Field) *HealthChecksGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HealthChecksGetCall) Header ¶
func (c *HealthChecksGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HealthChecksGetCall) IfNoneMatch ¶
func (c *HealthChecksGetCall) IfNoneMatch(entityTag string) *HealthChecksGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type HealthChecksInsertCall ¶
type HealthChecksInsertCall struct {
// contains filtered or unexported fields
}
func (*HealthChecksInsertCall) Context ¶
func (c *HealthChecksInsertCall) Context(ctx context.Context) *HealthChecksInsertCall
Context sets the context to be used in this call's Do method.
func (*HealthChecksInsertCall) Do ¶
func (c *HealthChecksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.healthChecks.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HealthChecksInsertCall) Fields ¶
func (c *HealthChecksInsertCall) Fields(s ...googleapi.Field) *HealthChecksInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HealthChecksInsertCall) Header ¶
func (c *HealthChecksInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HealthChecksInsertCall) RequestId ¶
func (c *HealthChecksInsertCall) RequestId(requestId string) *HealthChecksInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type HealthChecksListCall ¶
type HealthChecksListCall struct {
// contains filtered or unexported fields
}
func (*HealthChecksListCall) Context ¶
func (c *HealthChecksListCall) Context(ctx context.Context) *HealthChecksListCall
Context sets the context to be used in this call's Do method.
func (*HealthChecksListCall) Do ¶
func (c *HealthChecksListCall) Do(opts ...googleapi.CallOption) (*HealthCheckList, error)
Do executes the "compute.healthChecks.list" call. Any non-2xx status code is an error. Response headers are in either *HealthCheckList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HealthChecksListCall) Fields ¶
func (c *HealthChecksListCall) Fields(s ...googleapi.Field) *HealthChecksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HealthChecksListCall) Filter ¶
func (c *HealthChecksListCall) Filter(filter string) *HealthChecksListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*HealthChecksListCall) Header ¶
func (c *HealthChecksListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HealthChecksListCall) IfNoneMatch ¶
func (c *HealthChecksListCall) IfNoneMatch(entityTag string) *HealthChecksListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*HealthChecksListCall) MaxResults ¶
func (c *HealthChecksListCall) MaxResults(maxResults int64) *HealthChecksListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*HealthChecksListCall) OrderBy ¶
func (c *HealthChecksListCall) OrderBy(orderBy string) *HealthChecksListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*HealthChecksListCall) PageToken ¶
func (c *HealthChecksListCall) PageToken(pageToken string) *HealthChecksListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*HealthChecksListCall) Pages ¶
func (c *HealthChecksListCall) Pages(ctx context.Context, f func(*HealthCheckList) 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 (*HealthChecksListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *HealthChecksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *HealthChecksListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type HealthChecksPatchCall ¶
type HealthChecksPatchCall struct {
// contains filtered or unexported fields
}
func (*HealthChecksPatchCall) Context ¶
func (c *HealthChecksPatchCall) Context(ctx context.Context) *HealthChecksPatchCall
Context sets the context to be used in this call's Do method.
func (*HealthChecksPatchCall) Do ¶
func (c *HealthChecksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.healthChecks.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HealthChecksPatchCall) Fields ¶
func (c *HealthChecksPatchCall) Fields(s ...googleapi.Field) *HealthChecksPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HealthChecksPatchCall) Header ¶
func (c *HealthChecksPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HealthChecksPatchCall) RequestId ¶
func (c *HealthChecksPatchCall) RequestId(requestId string) *HealthChecksPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type HealthChecksScopedList ¶ added in v0.11.0
type HealthChecksScopedList struct { // HealthChecks: A list of HealthChecks contained in this scope. HealthChecks []*HealthCheck `json:"healthChecks,omitempty"` // Warning: Informational warning which replaces the list of backend services // when the list is empty. Warning *HealthChecksScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "HealthChecks") 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. "HealthChecks") 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:"-"` }
func (HealthChecksScopedList) MarshalJSON ¶ added in v0.11.0
func (s HealthChecksScopedList) MarshalJSON() ([]byte, error)
type HealthChecksScopedListWarning ¶ added in v0.11.0
type HealthChecksScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*HealthChecksScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
HealthChecksScopedListWarning: Informational warning which replaces the list of backend services when the list is empty.
func (HealthChecksScopedListWarning) MarshalJSON ¶ added in v0.11.0
func (s HealthChecksScopedListWarning) MarshalJSON() ([]byte, error)
type HealthChecksScopedListWarningData ¶ added in v0.11.0
type HealthChecksScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (HealthChecksScopedListWarningData) MarshalJSON ¶ added in v0.11.0
func (s HealthChecksScopedListWarningData) MarshalJSON() ([]byte, error)
type HealthChecksService ¶
type HealthChecksService struct {
// contains filtered or unexported fields
}
func NewHealthChecksService ¶
func NewHealthChecksService(s *Service) *HealthChecksService
func (*HealthChecksService) AggregatedList ¶ added in v0.11.0
func (r *HealthChecksService) AggregatedList(project string) *HealthChecksAggregatedListCall
AggregatedList: Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Name of the project scoping this request.
func (*HealthChecksService) Delete ¶
func (r *HealthChecksService) Delete(project string, healthCheck string) *HealthChecksDeleteCall
Delete: Deletes the specified HealthCheck resource.
- healthCheck: Name of the HealthCheck resource to delete. - project: Project ID for this request.
func (*HealthChecksService) Get ¶
func (r *HealthChecksService) Get(project string, healthCheck string) *HealthChecksGetCall
Get: Returns the specified HealthCheck resource.
- healthCheck: Name of the HealthCheck resource to return. - project: Project ID for this request.
func (*HealthChecksService) Insert ¶
func (r *HealthChecksService) Insert(project string, healthcheck *HealthCheck) *HealthChecksInsertCall
Insert: Creates a HealthCheck resource in the specified project using the data included in the request.
- project: Project ID for this request.
func (*HealthChecksService) List ¶
func (r *HealthChecksService) List(project string) *HealthChecksListCall
List: Retrieves the list of HealthCheck resources available to the specified project.
- project: Project ID for this request.
func (*HealthChecksService) Patch ¶
func (r *HealthChecksService) Patch(project string, healthCheck string, healthcheck *HealthCheck) *HealthChecksPatchCall
Patch: Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- healthCheck: Name of the HealthCheck resource to patch. - project: Project ID for this request.
func (*HealthChecksService) Update ¶
func (r *HealthChecksService) Update(project string, healthCheck string, healthcheck *HealthCheck) *HealthChecksUpdateCall
Update: Updates a HealthCheck resource in the specified project using the data included in the request.
- healthCheck: Name of the HealthCheck resource to update. - project: Project ID for this request.
type HealthChecksUpdateCall ¶
type HealthChecksUpdateCall struct {
// contains filtered or unexported fields
}
func (*HealthChecksUpdateCall) Context ¶
func (c *HealthChecksUpdateCall) Context(ctx context.Context) *HealthChecksUpdateCall
Context sets the context to be used in this call's Do method.
func (*HealthChecksUpdateCall) Do ¶
func (c *HealthChecksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.healthChecks.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HealthChecksUpdateCall) Fields ¶
func (c *HealthChecksUpdateCall) Fields(s ...googleapi.Field) *HealthChecksUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HealthChecksUpdateCall) Header ¶
func (c *HealthChecksUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HealthChecksUpdateCall) RequestId ¶
func (c *HealthChecksUpdateCall) RequestId(requestId string) *HealthChecksUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type HealthStatus ¶
type HealthStatus struct { // Annotations: Metadata defined as annotations for network endpoint. Annotations map[string]string `json:"annotations,omitempty"` // ForwardingRule: URL of the forwarding rule associated with the health status // of the instance. ForwardingRule string `json:"forwardingRule,omitempty"` // ForwardingRuleIp: A forwarding rule IP address assigned to this instance. ForwardingRuleIp string `json:"forwardingRuleIp,omitempty"` // HealthState: Health state of the IPv4 address of the instance. // // Possible values: // "HEALTHY" // "UNHEALTHY" HealthState string `json:"healthState,omitempty"` // Instance: URL of the instance resource. Instance string `json:"instance,omitempty"` // IpAddress: For target pool based Network Load Balancing, it indicates the // forwarding rule's IP address assigned to this instance. For other types of // load balancing, the field indicates VM internal ip. IpAddress string `json:"ipAddress,omitempty"` // Port: The named port of the instance group, not necessarily the port that is // health-checked. Port int64 `json:"port,omitempty"` Weight string `json:"weight,omitempty"` // Possible values: // "INVALID_WEIGHT" - The response to a Health Check probe had the HTTP // response header field X-Load-Balancing-Endpoint-Weight, but its content was // invalid (i.e., not a non-negative single-precision floating-point number in // decimal string representation). // "MISSING_WEIGHT" - The response to a Health Check probe did not have the // HTTP response header field X-Load-Balancing-Endpoint-Weight. // "UNAVAILABLE_WEIGHT" - This is the value when the accompanied health // status is either TIMEOUT (i.e.,the Health Check probe was not able to get a // response in time) or UNKNOWN. For the latter, it should be typically because // there has not been sufficient time to parse and report the weight for a new // backend (which is with 0.0.0.0 ip address). However, it can be also due to // an outage case for which the health status is explicitly reset to UNKNOWN. // "WEIGHT_NONE" - This is the default value when WeightReportMode is // DISABLE, and is also the initial value when WeightReportMode has just // updated to ENABLE or DRY_RUN and there has not been sufficient time to parse // and report the backend weight. WeightError string `json:"weightError,omitempty"` // ForceSendFields is a list of field names (e.g. "Annotations") 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. "Annotations") 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:"-"` }
func (HealthStatus) MarshalJSON ¶
func (s HealthStatus) MarshalJSON() ([]byte, error)
type HealthStatusForNetworkEndpoint ¶ added in v0.3.1
type HealthStatusForNetworkEndpoint struct { // BackendService: URL of the backend service associated with the health state // of the network endpoint. BackendService *BackendServiceReference `json:"backendService,omitempty"` // ForwardingRule: URL of the forwarding rule associated with the health state // of the network endpoint. ForwardingRule *ForwardingRuleReference `json:"forwardingRule,omitempty"` // HealthCheck: URL of the health check associated with the health state of the // network endpoint. HealthCheck *HealthCheckReference `json:"healthCheck,omitempty"` // HealthCheckService: URL of the health check service associated with the // health state of the network endpoint. HealthCheckService *HealthCheckServiceReference `json:"healthCheckService,omitempty"` // HealthState: Health state of the network endpoint determined based on the // health checks configured. // // Possible values: // "DRAINING" - Endpoint is being drained. // "HEALTHY" - Endpoint is healthy. // "UNHEALTHY" - Endpoint is unhealthy. // "UNKNOWN" - Health status of the endpoint is unknown. HealthState string `json:"healthState,omitempty"` // ForceSendFields is a list of field names (e.g. "BackendService") 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. "BackendService") 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:"-"` }
func (HealthStatusForNetworkEndpoint) MarshalJSON ¶ added in v0.3.1
func (s HealthStatusForNetworkEndpoint) MarshalJSON() ([]byte, error)
type Help ¶ added in v0.87.0
type Help struct { // Links: URL(s) pointing to additional information on handling the current // error. Links []*HelpLink `json:"links,omitempty"` // ForceSendFields is a list of field names (e.g. "Links") 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. "Links") 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:"-"` }
Help: Provides links to documentation or for performing an out of band action. For example, if a quota check failed with an error indicating the calling project hasn't enabled the accessed service, this can contain a URL pointing directly to the right place in the developer console to flip the bit.
func (Help) MarshalJSON ¶ added in v0.87.0
type HelpLink ¶ added in v0.87.0
type HelpLink struct { // Description: Describes what the link offers. Description string `json:"description,omitempty"` // Url: The URL of the link. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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:"-"` }
HelpLink: Describes a URL link.
func (HelpLink) MarshalJSON ¶ added in v0.87.0
type HostRule ¶
type HostRule struct { // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Hosts: The list of host patterns to match. They must be valid hostnames with // optional port numbers in the format host:port. * matches any string of // ([a-z0-9-.]*). In that case, * must be the first character, and if followed // by anything, the immediate following character must be either - or .. * // based matching is not supported when the URL map is bound to a target gRPC // proxy that has the validateForProxyless field set to true. Hosts []string `json:"hosts,omitempty"` // PathMatcher: The name of the PathMatcher to use to match the path portion of // the URL if the hostRule matches the URL's host portion. PathMatcher string `json:"pathMatcher,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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:"-"` }
HostRule: UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.
func (HostRule) MarshalJSON ¶
type HttpFaultAbort ¶ added in v0.11.0
type HttpFaultAbort struct { // HttpStatus: The HTTP status code used to abort the request. The value must // be from 200 to 599 inclusive. For gRPC protocol, the gRPC status code is // mapped to HTTP status code according to this mapping table. HTTP status 200 // is mapped to gRPC status UNKNOWN. Injecting an OK status is currently not // supported by Traffic Director. HttpStatus int64 `json:"httpStatus,omitempty"` // Percentage: The percentage of traffic for connections, operations, or // requests that is aborted as part of fault injection. The value must be from // 0.0 to 100.0 inclusive. Percentage float64 `json:"percentage,omitempty"` // ForceSendFields is a list of field names (e.g. "HttpStatus") 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. "HttpStatus") 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:"-"` }
HttpFaultAbort: Specification for how requests are aborted as part of fault injection.
func (HttpFaultAbort) MarshalJSON ¶ added in v0.11.0
func (s HttpFaultAbort) MarshalJSON() ([]byte, error)
func (*HttpFaultAbort) UnmarshalJSON ¶ added in v0.11.0
func (s *HttpFaultAbort) UnmarshalJSON(data []byte) error
type HttpFaultDelay ¶ added in v0.11.0
type HttpFaultDelay struct { // FixedDelay: Specifies the value of the fixed delay interval. FixedDelay *Duration `json:"fixedDelay,omitempty"` // Percentage: The percentage of traffic for connections, operations, or // requests for which a delay is introduced as part of fault injection. The // value must be from 0.0 to 100.0 inclusive. Percentage float64 `json:"percentage,omitempty"` // ForceSendFields is a list of field names (e.g. "FixedDelay") 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. "FixedDelay") 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:"-"` }
HttpFaultDelay: Specifies the delay introduced by the load balancer before forwarding the request to the backend service as part of fault injection.
func (HttpFaultDelay) MarshalJSON ¶ added in v0.11.0
func (s HttpFaultDelay) MarshalJSON() ([]byte, error)
func (*HttpFaultDelay) UnmarshalJSON ¶ added in v0.11.0
func (s *HttpFaultDelay) UnmarshalJSON(data []byte) error
type HttpFaultInjection ¶ added in v0.11.0
type HttpFaultInjection struct { // Abort: The specification for how client requests are aborted as part of // fault injection. Abort *HttpFaultAbort `json:"abort,omitempty"` // Delay: The specification for how client requests are delayed as part of // fault injection, before being sent to a backend service. Delay *HttpFaultDelay `json:"delay,omitempty"` // ForceSendFields is a list of field names (e.g. "Abort") 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. "Abort") 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:"-"` }
HttpFaultInjection: The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by the load balancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests.
func (HttpFaultInjection) MarshalJSON ¶ added in v0.11.0
func (s HttpFaultInjection) MarshalJSON() ([]byte, error)
type HttpHeaderAction ¶ added in v0.11.0
type HttpHeaderAction struct { // RequestHeadersToAdd: Headers to add to a matching request before forwarding // the request to the backendService. RequestHeadersToAdd []*HttpHeaderOption `json:"requestHeadersToAdd,omitempty"` // RequestHeadersToRemove: A list of header names for headers that need to be // removed from the request before forwarding the request to the // backendService. RequestHeadersToRemove []string `json:"requestHeadersToRemove,omitempty"` // ResponseHeadersToAdd: Headers to add the response before sending the // response back to the client. ResponseHeadersToAdd []*HttpHeaderOption `json:"responseHeadersToAdd,omitempty"` // ResponseHeadersToRemove: A list of header names for headers that need to be // removed from the response before sending the response back to the client. ResponseHeadersToRemove []string `json:"responseHeadersToRemove,omitempty"` // ForceSendFields is a list of field names (e.g. "RequestHeadersToAdd") 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. "RequestHeadersToAdd") 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:"-"` }
HttpHeaderAction: The request and response header transformations that take effect before the request is passed along to the selected backendService.
func (HttpHeaderAction) MarshalJSON ¶ added in v0.11.0
func (s HttpHeaderAction) MarshalJSON() ([]byte, error)
type HttpHeaderMatch ¶ added in v0.11.0
type HttpHeaderMatch struct { // ExactMatch: The value should exactly match contents of exactMatch. Only one // of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or // rangeMatch must be set. ExactMatch string `json:"exactMatch,omitempty"` // HeaderName: The name of the HTTP header to match. For matching against the // HTTP request's authority, use a headerMatch with the header name // ":authority". For matching a request's method, use the headerName ":method". // When the URL map is bound to a target gRPC proxy that has the // validateForProxyless field set to true, only non-binary user-specified // custom metadata and the `content-type` header are supported. The following // transport-level headers cannot be used in header matching rules: // `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, // `accept-encoding`, `content-encoding`, `grpc-accept-encoding`, // `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags-bin`, // `grpc-timeout` and `grpc-trace-bin`. HeaderName string `json:"headerName,omitempty"` // InvertMatch: If set to false, the headerMatch is considered a match if the // preceding match criteria are met. If set to true, the headerMatch is // considered a match if the preceding match criteria are NOT met. The default // setting is false. InvertMatch bool `json:"invertMatch,omitempty"` // PrefixMatch: The value of the header must start with the contents of // prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, // presentMatch or rangeMatch must be set. PrefixMatch string `json:"prefixMatch,omitempty"` // PresentMatch: A header with the contents of headerName must exist. The match // takes place whether or not the request's header has a value. Only one of // exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch // must be set. PresentMatch bool `json:"presentMatch,omitempty"` // RangeMatch: The header value must be an integer and its value must be in the // range specified in rangeMatch. If the header does not contain an integer, // number or is empty, the match fails. For example for a range [-5, 0] - -3 // will match. - 0 will not match. - 0.25 will not match. - -3someString will // not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, // presentMatch or rangeMatch must be set. rangeMatch is not supported for load // balancers that have loadBalancingScheme set to EXTERNAL. RangeMatch *Int64RangeMatch `json:"rangeMatch,omitempty"` // RegexMatch: The value of the header must match the regular expression // specified in regexMatch. For more information about regular expression // syntax, see Syntax. For matching against a port specified in the HTTP // request, use a headerMatch with headerName set to PORT and a regular // expression that satisfies the RFC2616 Host header's port specifier. Only one // of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or // rangeMatch must be set. Regular expressions can only be used when the // loadBalancingScheme is set to INTERNAL_SELF_MANAGED. RegexMatch string `json:"regexMatch,omitempty"` // SuffixMatch: The value of the header must end with the contents of // suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, // presentMatch or rangeMatch must be set. SuffixMatch string `json:"suffixMatch,omitempty"` // ForceSendFields is a list of field names (e.g. "ExactMatch") 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. "ExactMatch") 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:"-"` }
HttpHeaderMatch: matchRule criteria for request header matches.
func (HttpHeaderMatch) MarshalJSON ¶ added in v0.11.0
func (s HttpHeaderMatch) MarshalJSON() ([]byte, error)
type HttpHeaderOption ¶ added in v0.11.0
type HttpHeaderOption struct { // HeaderName: The name of the header. HeaderName string `json:"headerName,omitempty"` // HeaderValue: The value of the header to add. HeaderValue string `json:"headerValue,omitempty"` // Replace: If false, headerValue is appended to any values that already exist // for the header. If true, headerValue is set for the header, discarding any // values that were set for that header. The default value is false. Replace bool `json:"replace,omitempty"` // ForceSendFields is a list of field names (e.g. "HeaderName") 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. "HeaderName") 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:"-"` }
HttpHeaderOption: Specification determining how headers are added to requests or responses.
func (HttpHeaderOption) MarshalJSON ¶ added in v0.11.0
func (s HttpHeaderOption) MarshalJSON() ([]byte, error)
type HttpHealthCheck ¶
type HttpHealthCheck struct { // CheckIntervalSec: How often (in seconds) to send a health check. The default // value is 5 seconds. CheckIntervalSec int64 `json:"checkIntervalSec,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // HealthyThreshold: A so-far unhealthy instance will be marked healthy after // this many consecutive successes. The default value is 2. HealthyThreshold int64 `json:"healthyThreshold,omitempty"` // Host: The value of the host header in the HTTP health check request. If left // empty (default value), the public IP on behalf of which this health check is // performed will be used. Host string `json:"host,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#httpHealthCheck for // HTTP health checks. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Port: The TCP port number for the HTTP health check request. The default // value is 80. Port int64 `json:"port,omitempty"` // RequestPath: The request path of the HTTP health check request. The default // value is /. This field does not support query parameters. Must comply with // RFC3986. RequestPath string `json:"requestPath,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // TimeoutSec: How long (in seconds) to wait before claiming failure. The // default value is 5 seconds. It is invalid for timeoutSec to have greater // value than checkIntervalSec. TimeoutSec int64 `json:"timeoutSec,omitempty"` // UnhealthyThreshold: A so-far healthy instance will be marked unhealthy after // this many consecutive failures. The default value is 2. UnhealthyThreshold int64 `json:"unhealthyThreshold,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CheckIntervalSec") 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. "CheckIntervalSec") 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:"-"` }
HttpHealthCheck: Represents a legacy HTTP Health Check resource. Legacy HTTP health checks are now only required by target pool-based network load balancers. For all other load balancers, including backend service-based network load balancers, and for managed instance group auto-healing, you must use modern (non-legacy) health checks. For more information, see Health checks overview .
func (HttpHealthCheck) MarshalJSON ¶
func (s HttpHealthCheck) MarshalJSON() ([]byte, error)
type HttpHealthCheckList ¶
type HttpHealthCheckList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of HttpHealthCheck resources. Items []*HttpHealthCheck `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *HttpHealthCheckListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
HttpHealthCheckList: Contains a list of HttpHealthCheck resources.
func (HttpHealthCheckList) MarshalJSON ¶
func (s HttpHealthCheckList) MarshalJSON() ([]byte, error)
type HttpHealthCheckListWarning ¶
type HttpHealthCheckListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*HttpHealthCheckListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
HttpHealthCheckListWarning: [Output Only] Informational warning message.
func (HttpHealthCheckListWarning) MarshalJSON ¶
func (s HttpHealthCheckListWarning) MarshalJSON() ([]byte, error)
type HttpHealthCheckListWarningData ¶
type HttpHealthCheckListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (HttpHealthCheckListWarningData) MarshalJSON ¶
func (s HttpHealthCheckListWarningData) MarshalJSON() ([]byte, error)
type HttpHealthChecksDeleteCall ¶
type HttpHealthChecksDeleteCall struct {
// contains filtered or unexported fields
}
func (*HttpHealthChecksDeleteCall) Context ¶
func (c *HttpHealthChecksDeleteCall) Context(ctx context.Context) *HttpHealthChecksDeleteCall
Context sets the context to be used in this call's Do method.
func (*HttpHealthChecksDeleteCall) Do ¶
func (c *HttpHealthChecksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpHealthChecks.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HttpHealthChecksDeleteCall) Fields ¶
func (c *HttpHealthChecksDeleteCall) Fields(s ...googleapi.Field) *HttpHealthChecksDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HttpHealthChecksDeleteCall) Header ¶
func (c *HttpHealthChecksDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HttpHealthChecksDeleteCall) RequestId ¶
func (c *HttpHealthChecksDeleteCall) RequestId(requestId string) *HttpHealthChecksDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type HttpHealthChecksGetCall ¶
type HttpHealthChecksGetCall struct {
// contains filtered or unexported fields
}
func (*HttpHealthChecksGetCall) Context ¶
func (c *HttpHealthChecksGetCall) Context(ctx context.Context) *HttpHealthChecksGetCall
Context sets the context to be used in this call's Do method.
func (*HttpHealthChecksGetCall) Do ¶
func (c *HttpHealthChecksGetCall) Do(opts ...googleapi.CallOption) (*HttpHealthCheck, error)
Do executes the "compute.httpHealthChecks.get" call. Any non-2xx status code is an error. Response headers are in either *HttpHealthCheck.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HttpHealthChecksGetCall) Fields ¶
func (c *HttpHealthChecksGetCall) Fields(s ...googleapi.Field) *HttpHealthChecksGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HttpHealthChecksGetCall) Header ¶
func (c *HttpHealthChecksGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HttpHealthChecksGetCall) IfNoneMatch ¶
func (c *HttpHealthChecksGetCall) IfNoneMatch(entityTag string) *HttpHealthChecksGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type HttpHealthChecksInsertCall ¶
type HttpHealthChecksInsertCall struct {
// contains filtered or unexported fields
}
func (*HttpHealthChecksInsertCall) Context ¶
func (c *HttpHealthChecksInsertCall) Context(ctx context.Context) *HttpHealthChecksInsertCall
Context sets the context to be used in this call's Do method.
func (*HttpHealthChecksInsertCall) Do ¶
func (c *HttpHealthChecksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpHealthChecks.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HttpHealthChecksInsertCall) Fields ¶
func (c *HttpHealthChecksInsertCall) Fields(s ...googleapi.Field) *HttpHealthChecksInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HttpHealthChecksInsertCall) Header ¶
func (c *HttpHealthChecksInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HttpHealthChecksInsertCall) RequestId ¶
func (c *HttpHealthChecksInsertCall) RequestId(requestId string) *HttpHealthChecksInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type HttpHealthChecksListCall ¶
type HttpHealthChecksListCall struct {
// contains filtered or unexported fields
}
func (*HttpHealthChecksListCall) Context ¶
func (c *HttpHealthChecksListCall) Context(ctx context.Context) *HttpHealthChecksListCall
Context sets the context to be used in this call's Do method.
func (*HttpHealthChecksListCall) Do ¶
func (c *HttpHealthChecksListCall) Do(opts ...googleapi.CallOption) (*HttpHealthCheckList, error)
Do executes the "compute.httpHealthChecks.list" call. Any non-2xx status code is an error. Response headers are in either *HttpHealthCheckList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HttpHealthChecksListCall) Fields ¶
func (c *HttpHealthChecksListCall) Fields(s ...googleapi.Field) *HttpHealthChecksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HttpHealthChecksListCall) Filter ¶
func (c *HttpHealthChecksListCall) Filter(filter string) *HttpHealthChecksListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*HttpHealthChecksListCall) Header ¶
func (c *HttpHealthChecksListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HttpHealthChecksListCall) IfNoneMatch ¶
func (c *HttpHealthChecksListCall) IfNoneMatch(entityTag string) *HttpHealthChecksListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*HttpHealthChecksListCall) MaxResults ¶
func (c *HttpHealthChecksListCall) MaxResults(maxResults int64) *HttpHealthChecksListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*HttpHealthChecksListCall) OrderBy ¶
func (c *HttpHealthChecksListCall) OrderBy(orderBy string) *HttpHealthChecksListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*HttpHealthChecksListCall) PageToken ¶
func (c *HttpHealthChecksListCall) PageToken(pageToken string) *HttpHealthChecksListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*HttpHealthChecksListCall) Pages ¶
func (c *HttpHealthChecksListCall) Pages(ctx context.Context, f func(*HttpHealthCheckList) 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 (*HttpHealthChecksListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *HttpHealthChecksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *HttpHealthChecksListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type HttpHealthChecksPatchCall ¶
type HttpHealthChecksPatchCall struct {
// contains filtered or unexported fields
}
func (*HttpHealthChecksPatchCall) Context ¶
func (c *HttpHealthChecksPatchCall) Context(ctx context.Context) *HttpHealthChecksPatchCall
Context sets the context to be used in this call's Do method.
func (*HttpHealthChecksPatchCall) Do ¶
func (c *HttpHealthChecksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpHealthChecks.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HttpHealthChecksPatchCall) Fields ¶
func (c *HttpHealthChecksPatchCall) Fields(s ...googleapi.Field) *HttpHealthChecksPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HttpHealthChecksPatchCall) Header ¶
func (c *HttpHealthChecksPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HttpHealthChecksPatchCall) RequestId ¶
func (c *HttpHealthChecksPatchCall) RequestId(requestId string) *HttpHealthChecksPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type HttpHealthChecksService ¶
type HttpHealthChecksService struct {
// contains filtered or unexported fields
}
func NewHttpHealthChecksService ¶
func NewHttpHealthChecksService(s *Service) *HttpHealthChecksService
func (*HttpHealthChecksService) Delete ¶
func (r *HttpHealthChecksService) Delete(project string, httpHealthCheck string) *HttpHealthChecksDeleteCall
Delete: Deletes the specified HttpHealthCheck resource.
- httpHealthCheck: Name of the HttpHealthCheck resource to delete. - project: Project ID for this request.
func (*HttpHealthChecksService) Get ¶
func (r *HttpHealthChecksService) Get(project string, httpHealthCheck string) *HttpHealthChecksGetCall
Get: Returns the specified HttpHealthCheck resource.
- httpHealthCheck: Name of the HttpHealthCheck resource to return. - project: Project ID for this request.
func (*HttpHealthChecksService) Insert ¶
func (r *HttpHealthChecksService) Insert(project string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksInsertCall
Insert: Creates a HttpHealthCheck resource in the specified project using the data included in the request.
- project: Project ID for this request.
func (*HttpHealthChecksService) List ¶
func (r *HttpHealthChecksService) List(project string) *HttpHealthChecksListCall
List: Retrieves the list of HttpHealthCheck resources available to the specified project.
- project: Project ID for this request.
func (*HttpHealthChecksService) Patch ¶
func (r *HttpHealthChecksService) Patch(project string, httpHealthCheck string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksPatchCall
Patch: Updates a HttpHealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- httpHealthCheck: Name of the HttpHealthCheck resource to patch. - project: Project ID for this request.
func (*HttpHealthChecksService) Update ¶
func (r *HttpHealthChecksService) Update(project string, httpHealthCheck string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksUpdateCall
Update: Updates a HttpHealthCheck resource in the specified project using the data included in the request.
- httpHealthCheck: Name of the HttpHealthCheck resource to update. - project: Project ID for this request.
type HttpHealthChecksUpdateCall ¶
type HttpHealthChecksUpdateCall struct {
// contains filtered or unexported fields
}
func (*HttpHealthChecksUpdateCall) Context ¶
func (c *HttpHealthChecksUpdateCall) Context(ctx context.Context) *HttpHealthChecksUpdateCall
Context sets the context to be used in this call's Do method.
func (*HttpHealthChecksUpdateCall) Do ¶
func (c *HttpHealthChecksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpHealthChecks.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HttpHealthChecksUpdateCall) Fields ¶
func (c *HttpHealthChecksUpdateCall) Fields(s ...googleapi.Field) *HttpHealthChecksUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HttpHealthChecksUpdateCall) Header ¶
func (c *HttpHealthChecksUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HttpHealthChecksUpdateCall) RequestId ¶
func (c *HttpHealthChecksUpdateCall) RequestId(requestId string) *HttpHealthChecksUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type HttpQueryParameterMatch ¶ added in v0.11.0
type HttpQueryParameterMatch struct { // ExactMatch: The queryParameterMatch matches if the value of the parameter // exactly matches the contents of exactMatch. Only one of presentMatch, // exactMatch, or regexMatch must be set. ExactMatch string `json:"exactMatch,omitempty"` // Name: The name of the query parameter to match. The query parameter must // exist in the request, in the absence of which the request match fails. Name string `json:"name,omitempty"` // PresentMatch: Specifies that the queryParameterMatch matches if the request // contains the query parameter, irrespective of whether the parameter has a // value or not. Only one of presentMatch, exactMatch, or regexMatch must be // set. PresentMatch bool `json:"presentMatch,omitempty"` // RegexMatch: The queryParameterMatch matches if the value of the parameter // matches the regular expression specified by regexMatch. For more information // about regular expression syntax, see Syntax. Only one of presentMatch, // exactMatch, or regexMatch must be set. Regular expressions can only be used // when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED. RegexMatch string `json:"regexMatch,omitempty"` // ForceSendFields is a list of field names (e.g. "ExactMatch") 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. "ExactMatch") 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:"-"` }
HttpQueryParameterMatch: HttpRouteRuleMatch criteria for a request's query parameter.
func (HttpQueryParameterMatch) MarshalJSON ¶ added in v0.11.0
func (s HttpQueryParameterMatch) MarshalJSON() ([]byte, error)
type HttpRedirectAction ¶ added in v0.11.0
type HttpRedirectAction struct { // HostRedirect: The host that is used in the redirect response instead of the // one that was supplied in the request. The value must be from 1 to 255 // characters. HostRedirect string `json:"hostRedirect,omitempty"` // HttpsRedirect: If set to true, the URL scheme in the redirected request is // set to HTTPS. If set to false, the URL scheme of the redirected request // remains the same as that of the request. This must only be set for URL maps // used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not // permitted. The default is set to false. HttpsRedirect bool `json:"httpsRedirect,omitempty"` // PathRedirect: The path that is used in the redirect response instead of the // one that was supplied in the request. pathRedirect cannot be supplied // together with prefixRedirect. Supply one alone or neither. If neither is // supplied, the path of the original request is used for the redirect. The // value must be from 1 to 1024 characters. PathRedirect string `json:"pathRedirect,omitempty"` // PrefixRedirect: The prefix that replaces the prefixMatch specified in the // HttpRouteRuleMatch, retaining the remaining portion of the URL before // redirecting the request. prefixRedirect cannot be supplied together with // pathRedirect. Supply one alone or neither. If neither is supplied, the path // of the original request is used for the redirect. The value must be from 1 // to 1024 characters. PrefixRedirect string `json:"prefixRedirect,omitempty"` // RedirectResponseCode: The HTTP Status code to use for this RedirectAction. // Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default // value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER // which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In // this case, the request method is retained. - PERMANENT_REDIRECT, which // corresponds to 308. In this case, the request method is retained. // // Possible values: // "FOUND" - Http Status Code 302 - Found. // "MOVED_PERMANENTLY_DEFAULT" - Http Status Code 301 - Moved Permanently. // "PERMANENT_REDIRECT" - Http Status Code 308 - Permanent Redirect // maintaining HTTP method. // "SEE_OTHER" - Http Status Code 303 - See Other. // "TEMPORARY_REDIRECT" - Http Status Code 307 - Temporary Redirect // maintaining HTTP method. RedirectResponseCode string `json:"redirectResponseCode,omitempty"` // StripQuery: If set to true, any accompanying query portion of the original // URL is removed before redirecting the request. If set to false, the query // portion of the original URL is retained. The default is set to false. StripQuery bool `json:"stripQuery,omitempty"` // ForceSendFields is a list of field names (e.g. "HostRedirect") 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. "HostRedirect") 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:"-"` }
HttpRedirectAction: Specifies settings for an HTTP redirect.
func (HttpRedirectAction) MarshalJSON ¶ added in v0.11.0
func (s HttpRedirectAction) MarshalJSON() ([]byte, error)
type HttpRetryPolicy ¶ added in v0.11.0
type HttpRetryPolicy struct { // NumRetries: Specifies the allowed number retries. This number must be > 0. // If not specified, defaults to 1. NumRetries int64 `json:"numRetries,omitempty"` // PerTryTimeout: Specifies a non-zero timeout per retry attempt. If not // specified, will use the timeout set in the HttpRouteAction field. If timeout // in the HttpRouteAction field is not set, this field uses the largest timeout // among all backend services associated with the route. Not supported when the // URL map is bound to a target gRPC proxy that has the validateForProxyless // field set to true. PerTryTimeout *Duration `json:"perTryTimeout,omitempty"` // RetryConditions: Specifies one or more conditions when this retry policy // applies. Valid values are: - 5xx: retry is attempted if the instance or // endpoint responds with any 5xx response code, or if the instance or endpoint // does not respond at all. For example, disconnects, reset, read timeout, // connection failure, and refused streams. - gateway-error: Similar to 5xx, // but only applies to response codes 502, 503 or 504. - connect-failure: a // retry is attempted on failures connecting to the instance or endpoint. For // example, connection timeouts. - retriable-4xx: a retry is attempted if the // instance or endpoint responds with a 4xx response code. The only error that // you can retry is error code 409. - refused-stream: a retry is attempted if // the instance or endpoint resets the stream with a REFUSED_STREAM error code. // This reset type indicates that it is safe to retry. - cancelled: a retry is // attempted if the gRPC status code in the response header is set to // cancelled. - deadline-exceeded: a retry is attempted if the gRPC status code // in the response header is set to deadline-exceeded. - internal: a retry is // attempted if the gRPC status code in the response header is set to internal. // - resource-exhausted: a retry is attempted if the gRPC status code in the // response header is set to resource-exhausted. - unavailable: a retry is // attempted if the gRPC status code in the response header is set to // unavailable. Only the following codes are supported when the URL map is // bound to target gRPC proxy that has validateForProxyless field set to true. // - cancelled - deadline-exceeded - internal - resource-exhausted - // unavailable RetryConditions []string `json:"retryConditions,omitempty"` // ForceSendFields is a list of field names (e.g. "NumRetries") 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. "NumRetries") 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:"-"` }
HttpRetryPolicy: The retry policy associates with HttpRouteRule
func (HttpRetryPolicy) MarshalJSON ¶ added in v0.11.0
func (s HttpRetryPolicy) MarshalJSON() ([]byte, error)
type HttpRouteAction ¶ added in v0.11.0
type HttpRouteAction struct { // CorsPolicy: The specification for allowing client-side cross-origin // requests. For more information about the W3C recommendation for cross-origin // resource sharing (CORS), see Fetch API Living Standard. Not supported when // the URL map is bound to a target gRPC proxy. CorsPolicy *CorsPolicy `json:"corsPolicy,omitempty"` // FaultInjectionPolicy: The specification for fault injection introduced into // traffic to test the resiliency of clients to backend service failure. As // part of fault injection, when clients send requests to a backend service, // delays can be introduced by a load balancer on a percentage of requests // before sending those requests to the backend service. Similarly requests // from clients can be aborted by the load balancer for a percentage of // requests. timeout and retry_policy is ignored by clients that are configured // with a fault_injection_policy if: 1. The traffic is generated by fault // injection AND 2. The fault injection is not a delay fault injection. Fault // injection is not supported with the classic Application Load Balancer . To // see which load balancers support fault injection, see Load balancing: // Routing and traffic management features. FaultInjectionPolicy *HttpFaultInjection `json:"faultInjectionPolicy,omitempty"` // MaxStreamDuration: Specifies the maximum duration (timeout) for streams on // the selected route. Unlike the timeout field where the timeout duration // starts from the time the request has been fully processed (known as // *end-of-stream*), the duration in this field is computed from the beginning // of the stream until the response has been processed, including all retries. // A stream that does not complete in this duration is closed. If not // specified, this field uses the maximum maxStreamDuration value among all // backend services associated with the route. This field is only allowed if // the Url map is used with backend services with loadBalancingScheme set to // INTERNAL_SELF_MANAGED. MaxStreamDuration *Duration `json:"maxStreamDuration,omitempty"` // RequestMirrorPolicy: Specifies the policy on how requests intended for the // route's backends are shadowed to a separate mirrored backend service. The // load balancer does not wait for responses from the shadow service. Before // sending traffic to the shadow service, the host / authority header is // suffixed with -shadow. Not supported when the URL map is bound to a target // gRPC proxy that has the validateForProxyless field set to true. RequestMirrorPolicy *RequestMirrorPolicy `json:"requestMirrorPolicy,omitempty"` // RetryPolicy: Specifies the retry policy associated with this route. RetryPolicy *HttpRetryPolicy `json:"retryPolicy,omitempty"` // Timeout: Specifies the timeout for the selected route. Timeout is computed // from the time the request has been fully processed (known as // *end-of-stream*) up until the response has been processed. Timeout includes // all retries. If not specified, this field uses the largest timeout among all // backend services associated with the route. Not supported when the URL map // is bound to a target gRPC proxy that has validateForProxyless field set to // true. Timeout *Duration `json:"timeout,omitempty"` // UrlRewrite: The spec to modify the URL of the request, before forwarding the // request to the matched service. urlRewrite is the only action supported in // UrlMaps for classic Application Load Balancers. Not supported when the URL // map is bound to a target gRPC proxy that has the validateForProxyless field // set to true. UrlRewrite *UrlRewrite `json:"urlRewrite,omitempty"` // WeightedBackendServices: A list of weighted backend services to send traffic // to when a route match occurs. The weights determine the fraction of traffic // that flows to their corresponding backend service. If all traffic needs to // go to a single backend service, there must be one weightedBackendService // with weight set to a non-zero number. After a backend service is identified // and before forwarding the request to the backend service, advanced routing // actions such as URL rewrites and header transformations are applied // depending on additional settings specified in this HttpRouteAction. WeightedBackendServices []*WeightedBackendService `json:"weightedBackendServices,omitempty"` // ForceSendFields is a list of field names (e.g. "CorsPolicy") 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. "CorsPolicy") 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:"-"` }
func (HttpRouteAction) MarshalJSON ¶ added in v0.11.0
func (s HttpRouteAction) MarshalJSON() ([]byte, error)
type HttpRouteRule ¶ added in v0.11.0
type HttpRouteRule struct { // CustomErrorResponsePolicy: customErrorResponsePolicy specifies how the Load // Balancer returns error responses when BackendServiceor BackendBucket // responds with an error. If a policy for an error code is not configured for // the RouteRule, a policy for the error code configured in // pathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not // specified in pathMatcher.defaultCustomErrorResponsePolicy, the policy // configured in UrlMap.defaultCustomErrorResponsePolicy takes effect. For // example, consider a UrlMap with the following configuration: - // UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx // and 4xx errors - A RouteRule for /coming_soon/ is configured for the error // code 404. If the request is for www.myotherdomain.com and a 404 is // encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes // effect. If a 404 response is encountered for the request // www.example.com/current_events/, the pathMatcher's policy takes effect. If // however, the request for www.example.com/coming_soon/ encounters a 404, the // policy in RouteRule.customErrorResponsePolicy takes effect. If any of the // requests in this example encounter a 500 error code, the policy at // UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in // conjunction with routeRules.routeAction.retryPolicy, retries take // precedence. Only once all retries are exhausted, the // customErrorResponsePolicy is applied. While attempting a retry, if load // balancer is successful in reaching the service, the // customErrorResponsePolicy is ignored and the response from the service is // returned to the client. customErrorResponsePolicy is supported only for // global external Application Load Balancers. CustomErrorResponsePolicy *CustomErrorResponsePolicy `json:"customErrorResponsePolicy,omitempty"` // Description: The short description conveying the intent of this routeRule. // The description can have a maximum length of 1024 characters. Description string `json:"description,omitempty"` // HeaderAction: Specifies changes to request and response headers that need to // take effect for the selected backendService. The headerAction value // specified here is applied before the matching pathMatchers[].headerAction // and after // pathMatchers[].routeRules[].routeAction.weightedBackendService.backendService // WeightAction[].headerAction HeaderAction is not supported for load balancers // that have their loadBalancingScheme set to EXTERNAL. Not supported when the // URL map is bound to a target gRPC proxy that has validateForProxyless field // set to true. HeaderAction *HttpHeaderAction `json:"headerAction,omitempty"` // MatchRules: The list of criteria for matching attributes of a request to // this routeRule. This list has OR semantics: the request matches this // routeRule when any of the matchRules are satisfied. However predicates // within a given matchRule have AND semantics. All predicates within a // matchRule must match for the request to match the rule. MatchRules []*HttpRouteRuleMatch `json:"matchRules,omitempty"` // Priority: For routeRules within a given pathMatcher, priority determines the // order in which a load balancer interprets routeRules. RouteRules are // evaluated in order of priority, from the lowest to highest number. The // priority of a rule decreases as its number increases (1, 2, 3, N+1). The // first rule that matches the request is applied. You cannot configure two or // more routeRules with the same priority. Priority for each rule must be set // to a number from 0 to 2147483647 inclusive. Priority numbers can have gaps, // which enable you to add or remove rules in the future without affecting the // rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series // of priority numbers to which you could add rules numbered from 6 to 8, 10 to // 11, and 13 to 15 in the future without any impact on existing rules. Priority int64 `json:"priority,omitempty"` // RouteAction: In response to a matching matchRule, the load balancer performs // advanced routing actions, such as URL rewrites and header transformations, // before forwarding the request to the selected backend. If routeAction // specifies any weightedBackendServices, service must not be set. Conversely // if service is set, routeAction cannot contain any weightedBackendServices. // Only one of urlRedirect, service or routeAction.weightedBackendService must // be set. URL maps for classic Application Load Balancers only support the // urlRewrite action within a route rule's routeAction. RouteAction *HttpRouteAction `json:"routeAction,omitempty"` // Service: The full or partial URL of the backend service resource to which // traffic is directed if this rule is matched. If routeAction is also // specified, advanced routing actions, such as URL rewrites, take effect // before sending the request to the backend. However, if service is specified, // routeAction cannot contain any weightedBackendServices. Conversely, if // routeAction specifies any weightedBackendServices, service must not be // specified. Only one of urlRedirect, service or // routeAction.weightedBackendService must be set. Service string `json:"service,omitempty"` // UrlRedirect: When this rule is matched, the request is redirected to a URL // specified by urlRedirect. If urlRedirect is specified, service or // routeAction must not be set. Not supported when the URL map is bound to a // target gRPC proxy. UrlRedirect *HttpRedirectAction `json:"urlRedirect,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomErrorResponsePolicy") // 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. "CustomErrorResponsePolicy") 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:"-"` }
HttpRouteRule: The HttpRouteRule setting specifies how to match an HTTP request and the corresponding routing action that load balancing proxies perform.
func (HttpRouteRule) MarshalJSON ¶ added in v0.11.0
func (s HttpRouteRule) MarshalJSON() ([]byte, error)
type HttpRouteRuleMatch ¶ added in v0.11.0
type HttpRouteRuleMatch struct { // FullPathMatch: For satisfying the matchRule condition, the path of the // request must exactly match the value specified in fullPathMatch after // removing any query parameters and anchor that may be part of the original // URL. fullPathMatch must be from 1 to 1024 characters. Only one of // prefixMatch, fullPathMatch or regexMatch must be specified. FullPathMatch string `json:"fullPathMatch,omitempty"` // HeaderMatches: Specifies a list of header match criteria, all of which must // match corresponding headers in the request. HeaderMatches []*HttpHeaderMatch `json:"headerMatches,omitempty"` // IgnoreCase: Specifies that prefixMatch and fullPathMatch matches are case // sensitive. The default value is false. ignoreCase must not be used with // regexMatch. Not supported when the URL map is bound to a target gRPC proxy. IgnoreCase bool `json:"ignoreCase,omitempty"` // MetadataFilters: Opaque filter criteria used by the load balancer to // restrict routing configuration to a limited set of xDS compliant clients. In // their xDS requests to the load balancer, xDS clients present node metadata. // When there is a match, the relevant routing configuration is made available // to those proxies. For each metadataFilter in this list, if its // filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels // must match the corresponding label provided in the metadata. If its // filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must // match with corresponding labels provided in the metadata. If multiple // metadata filters are specified, all of them need to be satisfied in order to // be considered a match. metadataFilters specified here is applied after those // specified in ForwardingRule that refers to the UrlMap this // HttpRouteRuleMatch belongs to. metadataFilters only applies to load // balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED. Not // supported when the URL map is bound to a target gRPC proxy that has // validateForProxyless field set to true. MetadataFilters []*MetadataFilter `json:"metadataFilters,omitempty"` // PathTemplateMatch: If specified, the route is a pattern match expression // that must match the :path header once the query string is removed. A pattern // match allows you to match - The value must be between 1 and 1024 characters // - The pattern must start with a leading slash ("/") - There may be no more // than 5 operators in pattern Precisely one of prefix_match, full_path_match, // regex_match or path_template_match must be set. PathTemplateMatch string `json:"pathTemplateMatch,omitempty"` // PrefixMatch: For satisfying the matchRule condition, the request's path must // begin with the specified prefixMatch. prefixMatch must begin with a /. The // value must be from 1 to 1024 characters. Only one of prefixMatch, // fullPathMatch or regexMatch must be specified. PrefixMatch string `json:"prefixMatch,omitempty"` // QueryParameterMatches: Specifies a list of query parameter match criteria, // all of which must match corresponding query parameters in the request. Not // supported when the URL map is bound to a target gRPC proxy. QueryParameterMatches []*HttpQueryParameterMatch `json:"queryParameterMatches,omitempty"` // RegexMatch: For satisfying the matchRule condition, the path of the request // must satisfy the regular expression specified in regexMatch after removing // any query parameters and anchor supplied with the original URL. For more // information about regular expression syntax, see Syntax. Only one of // prefixMatch, fullPathMatch or regexMatch must be specified. Regular // expressions can only be used when the loadBalancingScheme is set to // INTERNAL_SELF_MANAGED. RegexMatch string `json:"regexMatch,omitempty"` // ForceSendFields is a list of field names (e.g. "FullPathMatch") 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. "FullPathMatch") 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:"-"` }
HttpRouteRuleMatch: HttpRouteRuleMatch specifies a set of criteria for matching requests to an HttpRouteRule. All specified criteria must be satisfied for a match to occur.
func (HttpRouteRuleMatch) MarshalJSON ¶ added in v0.11.0
func (s HttpRouteRuleMatch) MarshalJSON() ([]byte, error)
type HttpsHealthCheck ¶
type HttpsHealthCheck struct { // CheckIntervalSec: How often (in seconds) to send a health check. The default // value is 5 seconds. CheckIntervalSec int64 `json:"checkIntervalSec,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // HealthyThreshold: A so-far unhealthy instance will be marked healthy after // this many consecutive successes. The default value is 2. HealthyThreshold int64 `json:"healthyThreshold,omitempty"` // Host: The value of the host header in the HTTPS health check request. If // left empty (default value), the public IP on behalf of which this health // check is performed will be used. Host string `json:"host,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: Type of the resource. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Port: The TCP port number for the HTTPS health check request. The default // value is 443. Port int64 `json:"port,omitempty"` // RequestPath: The request path of the HTTPS health check request. The default // value is "/". Must comply with RFC3986. RequestPath string `json:"requestPath,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // TimeoutSec: How long (in seconds) to wait before claiming failure. The // default value is 5 seconds. It is invalid for timeoutSec to have a greater // value than checkIntervalSec. TimeoutSec int64 `json:"timeoutSec,omitempty"` // UnhealthyThreshold: A so-far healthy instance will be marked unhealthy after // this many consecutive failures. The default value is 2. UnhealthyThreshold int64 `json:"unhealthyThreshold,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CheckIntervalSec") 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. "CheckIntervalSec") 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:"-"` }
HttpsHealthCheck: Represents a legacy HTTPS Health Check resource. Legacy HTTPS health checks have been deprecated. If you are using a target pool-based network load balancer, you must use a legacy HTTP (not HTTPS) health check. For all other load balancers, including backend service-based network load balancers, and for managed instance group auto-healing, you must use modern (non-legacy) health checks. For more information, see Health checks overview .
func (HttpsHealthCheck) MarshalJSON ¶
func (s HttpsHealthCheck) MarshalJSON() ([]byte, error)
type HttpsHealthCheckList ¶
type HttpsHealthCheckList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of HttpsHealthCheck resources. Items []*HttpsHealthCheck `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *HttpsHealthCheckListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
HttpsHealthCheckList: Contains a list of HttpsHealthCheck resources.
func (HttpsHealthCheckList) MarshalJSON ¶
func (s HttpsHealthCheckList) MarshalJSON() ([]byte, error)
type HttpsHealthCheckListWarning ¶
type HttpsHealthCheckListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*HttpsHealthCheckListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
HttpsHealthCheckListWarning: [Output Only] Informational warning message.
func (HttpsHealthCheckListWarning) MarshalJSON ¶
func (s HttpsHealthCheckListWarning) MarshalJSON() ([]byte, error)
type HttpsHealthCheckListWarningData ¶
type HttpsHealthCheckListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (HttpsHealthCheckListWarningData) MarshalJSON ¶
func (s HttpsHealthCheckListWarningData) MarshalJSON() ([]byte, error)
type HttpsHealthChecksDeleteCall ¶
type HttpsHealthChecksDeleteCall struct {
// contains filtered or unexported fields
}
func (*HttpsHealthChecksDeleteCall) Context ¶
func (c *HttpsHealthChecksDeleteCall) Context(ctx context.Context) *HttpsHealthChecksDeleteCall
Context sets the context to be used in this call's Do method.
func (*HttpsHealthChecksDeleteCall) Do ¶
func (c *HttpsHealthChecksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpsHealthChecks.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HttpsHealthChecksDeleteCall) Fields ¶
func (c *HttpsHealthChecksDeleteCall) Fields(s ...googleapi.Field) *HttpsHealthChecksDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HttpsHealthChecksDeleteCall) Header ¶
func (c *HttpsHealthChecksDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HttpsHealthChecksDeleteCall) RequestId ¶
func (c *HttpsHealthChecksDeleteCall) RequestId(requestId string) *HttpsHealthChecksDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type HttpsHealthChecksGetCall ¶
type HttpsHealthChecksGetCall struct {
// contains filtered or unexported fields
}
func (*HttpsHealthChecksGetCall) Context ¶
func (c *HttpsHealthChecksGetCall) Context(ctx context.Context) *HttpsHealthChecksGetCall
Context sets the context to be used in this call's Do method.
func (*HttpsHealthChecksGetCall) Do ¶
func (c *HttpsHealthChecksGetCall) Do(opts ...googleapi.CallOption) (*HttpsHealthCheck, error)
Do executes the "compute.httpsHealthChecks.get" call. Any non-2xx status code is an error. Response headers are in either *HttpsHealthCheck.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HttpsHealthChecksGetCall) Fields ¶
func (c *HttpsHealthChecksGetCall) Fields(s ...googleapi.Field) *HttpsHealthChecksGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HttpsHealthChecksGetCall) Header ¶
func (c *HttpsHealthChecksGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HttpsHealthChecksGetCall) IfNoneMatch ¶
func (c *HttpsHealthChecksGetCall) IfNoneMatch(entityTag string) *HttpsHealthChecksGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type HttpsHealthChecksInsertCall ¶
type HttpsHealthChecksInsertCall struct {
// contains filtered or unexported fields
}
func (*HttpsHealthChecksInsertCall) Context ¶
func (c *HttpsHealthChecksInsertCall) Context(ctx context.Context) *HttpsHealthChecksInsertCall
Context sets the context to be used in this call's Do method.
func (*HttpsHealthChecksInsertCall) Do ¶
func (c *HttpsHealthChecksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpsHealthChecks.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HttpsHealthChecksInsertCall) Fields ¶
func (c *HttpsHealthChecksInsertCall) Fields(s ...googleapi.Field) *HttpsHealthChecksInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HttpsHealthChecksInsertCall) Header ¶
func (c *HttpsHealthChecksInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HttpsHealthChecksInsertCall) RequestId ¶
func (c *HttpsHealthChecksInsertCall) RequestId(requestId string) *HttpsHealthChecksInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type HttpsHealthChecksListCall ¶
type HttpsHealthChecksListCall struct {
// contains filtered or unexported fields
}
func (*HttpsHealthChecksListCall) Context ¶
func (c *HttpsHealthChecksListCall) Context(ctx context.Context) *HttpsHealthChecksListCall
Context sets the context to be used in this call's Do method.
func (*HttpsHealthChecksListCall) Do ¶
func (c *HttpsHealthChecksListCall) Do(opts ...googleapi.CallOption) (*HttpsHealthCheckList, error)
Do executes the "compute.httpsHealthChecks.list" call. Any non-2xx status code is an error. Response headers are in either *HttpsHealthCheckList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HttpsHealthChecksListCall) Fields ¶
func (c *HttpsHealthChecksListCall) Fields(s ...googleapi.Field) *HttpsHealthChecksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HttpsHealthChecksListCall) Filter ¶
func (c *HttpsHealthChecksListCall) Filter(filter string) *HttpsHealthChecksListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*HttpsHealthChecksListCall) Header ¶
func (c *HttpsHealthChecksListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HttpsHealthChecksListCall) IfNoneMatch ¶
func (c *HttpsHealthChecksListCall) IfNoneMatch(entityTag string) *HttpsHealthChecksListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*HttpsHealthChecksListCall) MaxResults ¶
func (c *HttpsHealthChecksListCall) MaxResults(maxResults int64) *HttpsHealthChecksListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*HttpsHealthChecksListCall) OrderBy ¶
func (c *HttpsHealthChecksListCall) OrderBy(orderBy string) *HttpsHealthChecksListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*HttpsHealthChecksListCall) PageToken ¶
func (c *HttpsHealthChecksListCall) PageToken(pageToken string) *HttpsHealthChecksListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*HttpsHealthChecksListCall) Pages ¶
func (c *HttpsHealthChecksListCall) Pages(ctx context.Context, f func(*HttpsHealthCheckList) 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 (*HttpsHealthChecksListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *HttpsHealthChecksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *HttpsHealthChecksListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type HttpsHealthChecksPatchCall ¶
type HttpsHealthChecksPatchCall struct {
// contains filtered or unexported fields
}
func (*HttpsHealthChecksPatchCall) Context ¶
func (c *HttpsHealthChecksPatchCall) Context(ctx context.Context) *HttpsHealthChecksPatchCall
Context sets the context to be used in this call's Do method.
func (*HttpsHealthChecksPatchCall) Do ¶
func (c *HttpsHealthChecksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpsHealthChecks.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HttpsHealthChecksPatchCall) Fields ¶
func (c *HttpsHealthChecksPatchCall) Fields(s ...googleapi.Field) *HttpsHealthChecksPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HttpsHealthChecksPatchCall) Header ¶
func (c *HttpsHealthChecksPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HttpsHealthChecksPatchCall) RequestId ¶
func (c *HttpsHealthChecksPatchCall) RequestId(requestId string) *HttpsHealthChecksPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type HttpsHealthChecksService ¶
type HttpsHealthChecksService struct {
// contains filtered or unexported fields
}
func NewHttpsHealthChecksService ¶
func NewHttpsHealthChecksService(s *Service) *HttpsHealthChecksService
func (*HttpsHealthChecksService) Delete ¶
func (r *HttpsHealthChecksService) Delete(project string, httpsHealthCheck string) *HttpsHealthChecksDeleteCall
Delete: Deletes the specified HttpsHealthCheck resource.
- httpsHealthCheck: Name of the HttpsHealthCheck resource to delete. - project: Project ID for this request.
func (*HttpsHealthChecksService) Get ¶
func (r *HttpsHealthChecksService) Get(project string, httpsHealthCheck string) *HttpsHealthChecksGetCall
Get: Returns the specified HttpsHealthCheck resource.
- httpsHealthCheck: Name of the HttpsHealthCheck resource to return. - project: Project ID for this request.
func (*HttpsHealthChecksService) Insert ¶
func (r *HttpsHealthChecksService) Insert(project string, httpshealthcheck *HttpsHealthCheck) *HttpsHealthChecksInsertCall
Insert: Creates a HttpsHealthCheck resource in the specified project using the data included in the request.
- project: Project ID for this request.
func (*HttpsHealthChecksService) List ¶
func (r *HttpsHealthChecksService) List(project string) *HttpsHealthChecksListCall
List: Retrieves the list of HttpsHealthCheck resources available to the specified project.
- project: Project ID for this request.
func (*HttpsHealthChecksService) Patch ¶
func (r *HttpsHealthChecksService) Patch(project string, httpsHealthCheck string, httpshealthcheck *HttpsHealthCheck) *HttpsHealthChecksPatchCall
Patch: Updates a HttpsHealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- httpsHealthCheck: Name of the HttpsHealthCheck resource to patch. - project: Project ID for this request.
func (*HttpsHealthChecksService) Update ¶
func (r *HttpsHealthChecksService) Update(project string, httpsHealthCheck string, httpshealthcheck *HttpsHealthCheck) *HttpsHealthChecksUpdateCall
Update: Updates a HttpsHealthCheck resource in the specified project using the data included in the request.
- httpsHealthCheck: Name of the HttpsHealthCheck resource to update. - project: Project ID for this request.
type HttpsHealthChecksUpdateCall ¶
type HttpsHealthChecksUpdateCall struct {
// contains filtered or unexported fields
}
func (*HttpsHealthChecksUpdateCall) Context ¶
func (c *HttpsHealthChecksUpdateCall) Context(ctx context.Context) *HttpsHealthChecksUpdateCall
Context sets the context to be used in this call's Do method.
func (*HttpsHealthChecksUpdateCall) Do ¶
func (c *HttpsHealthChecksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpsHealthChecks.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*HttpsHealthChecksUpdateCall) Fields ¶
func (c *HttpsHealthChecksUpdateCall) Fields(s ...googleapi.Field) *HttpsHealthChecksUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*HttpsHealthChecksUpdateCall) Header ¶
func (c *HttpsHealthChecksUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*HttpsHealthChecksUpdateCall) RequestId ¶
func (c *HttpsHealthChecksUpdateCall) RequestId(requestId string) *HttpsHealthChecksUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type Image ¶
type Image struct { // Architecture: The architecture of the image. Valid values are ARM64 or // X86_64. // // Possible values: // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture is not // set. // "ARM64" - Machines with architecture ARM64 // "X86_64" - Machines with architecture X86_64 Architecture string `json:"architecture,omitempty"` // ArchiveSizeBytes: Size of the image tar.gz archive stored in Google Cloud // Storage (in bytes). ArchiveSizeBytes int64 `json:"archiveSizeBytes,omitempty,string"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Deprecated -- The deprecation status associated with this image. Deprecated *DeprecationStatus `json:"deprecated,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // DiskSizeGb: Size of the image when restored onto a persistent disk (in GB). DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` // EnableConfidentialCompute: Whether this image is created from a confidential // compute mode disk. [Output Only]: This field is not set by user, but from // source disk. EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"` // Family: The name of the image family to which this image belongs. The image // family name can be from a publicly managed image family provided by Compute // Engine, or from a custom image family you create. For example, // centos-stream-9 is a publicly available image family. For more information, // see Image family best practices. When creating disks, you can specify an // image family instead of a specific image name. The image family always // returns its latest image that is not deprecated. The name of the image // family must comply with RFC1035. Family string `json:"family,omitempty"` // GuestOsFeatures: A list of features to enable on the guest operating system. // Applicable only for bootable images. To see a list of available options, see // the guestOSfeatures[].type parameter. GuestOsFeatures []*GuestOsFeature `json:"guestOsFeatures,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // ImageEncryptionKey: Encrypts the image using a customer-supplied encryption // key. After you encrypt an image with a customer-supplied key, you must // provide the same key if you use the image later (e.g. to create a disk from // the image). Customer-supplied encryption keys do not protect access to // metadata of the disk. If you do not provide an encryption key when creating // the image, then the disk will be encrypted using an automatically generated // key and you do not need to provide a key to use the image later. ImageEncryptionKey *CustomerEncryptionKey `json:"imageEncryptionKey,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#image for images. Kind string `json:"kind,omitempty"` // LabelFingerprint: A fingerprint for the labels being applied to this image, // which is essentially a hash of the labels used for optimistic locking. The // fingerprint is initially generated by Compute Engine and changes after every // request to modify or update labels. You must always provide an up-to-date // fingerprint hash in order to update or change labels, otherwise the request // will fail with error 412 conditionNotMet. To see the latest fingerprint, // make a get() request to retrieve an image. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels to apply to this image. These can be later modified by the // setLabels method. Labels map[string]string `json:"labels,omitempty"` // LicenseCodes: Integer license codes indicating which licenses are attached // to this image. LicenseCodes googleapi.Int64s `json:"licenseCodes,omitempty"` // Licenses: Any applicable license URI. Licenses []string `json:"licenses,omitempty"` // Name: Name of the resource; provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // RawDisk: The parameters of the raw disk image. RawDisk *ImageRawDisk `json:"rawDisk,omitempty"` // SatisfiesPzi: Output only. Reserved for future use. SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: [Output Only] Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ShieldedInstanceInitialState: Set the secure boot keys of shielded instance. ShieldedInstanceInitialState *InitialStateConfig `json:"shieldedInstanceInitialState,omitempty"` // SourceDisk: URL of the source disk used to create this image. For example, // the following are valid values: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk // In order to create an image, you must provide the full or partial URL of one // of the following: - The rawDisk.source URL - The sourceDisk URL - The // sourceImage URL - The sourceSnapshot URL SourceDisk string `json:"sourceDisk,omitempty"` // SourceDiskEncryptionKey: The customer-supplied encryption key of the source // disk. Required if the source disk is protected by a customer-supplied // encryption key. SourceDiskEncryptionKey *CustomerEncryptionKey `json:"sourceDiskEncryptionKey,omitempty"` // SourceDiskId: [Output Only] The ID value of the disk used to create this // image. This value may be used to determine whether the image was taken from // the current or a previous instance of a given disk name. SourceDiskId string `json:"sourceDiskId,omitempty"` // SourceImage: URL of the source image used to create this image. The // following are valid formats for the URL: - // https://www.googleapis.com/compute/v1/projects/project_id/global/ // images/image_name - projects/project_id/global/images/image_name In order to // create an image, you must provide the full or partial URL of one of the // following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage // URL - The sourceSnapshot URL SourceImage string `json:"sourceImage,omitempty"` // SourceImageEncryptionKey: The customer-supplied encryption key of the source // image. Required if the source image is protected by a customer-supplied // encryption key. SourceImageEncryptionKey *CustomerEncryptionKey `json:"sourceImageEncryptionKey,omitempty"` // SourceImageId: [Output Only] The ID value of the image used to create this // image. This value may be used to determine whether the image was taken from // the current or a previous instance of a given image name. SourceImageId string `json:"sourceImageId,omitempty"` // SourceSnapshot: URL of the source snapshot used to create this image. The // following are valid formats for the URL: - // https://www.googleapis.com/compute/v1/projects/project_id/global/ // snapshots/snapshot_name - projects/project_id/global/snapshots/snapshot_name // In order to create an image, you must provide the full or partial URL of one // of the following: - The rawDisk.source URL - The sourceDisk URL - The // sourceImage URL - The sourceSnapshot URL SourceSnapshot string `json:"sourceSnapshot,omitempty"` // SourceSnapshotEncryptionKey: The customer-supplied encryption key of the // source snapshot. Required if the source snapshot is protected by a // customer-supplied encryption key. SourceSnapshotEncryptionKey *CustomerEncryptionKey `json:"sourceSnapshotEncryptionKey,omitempty"` // SourceSnapshotId: [Output Only] The ID value of the snapshot used to create // this image. This value may be used to determine whether the snapshot was // taken from the current or a previous instance of a given snapshot name. SourceSnapshotId string `json:"sourceSnapshotId,omitempty"` // SourceType: The type of the image used to create this disk. The default and // only valid value is RAW. // // Possible values: // "RAW" (default) SourceType string `json:"sourceType,omitempty"` // Status: [Output Only] The status of the image. An image can be used to // create other resources, such as instances, only after the image has been // successfully created and the status is set to READY. Possible values are // FAILED, PENDING, or READY. // // Possible values: // "DELETING" - Image is deleting. // "FAILED" - Image creation failed due to an error. // "PENDING" - Image hasn't been created as yet. // "READY" - Image has been successfully created. Status string `json:"status,omitempty"` // StorageLocations: Cloud Storage bucket storage location of the image // (regional or multi-regional). StorageLocations []string `json:"storageLocations,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Architecture") 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. "Architecture") 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:"-"` }
Image: Represents an Image resource. You can use images to create boot disks for your VM instances. For more information, read Images.
func (Image) MarshalJSON ¶
type ImageFamilyView ¶ added in v0.55.0
type ImageFamilyView struct { // Image: The latest image that is part of the specified image family in the // requested location, and that is not deprecated. Image *Image `json:"image,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Image") 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. "Image") 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:"-"` }
func (ImageFamilyView) MarshalJSON ¶ added in v0.55.0
func (s ImageFamilyView) MarshalJSON() ([]byte, error)
type ImageFamilyViewsGetCall ¶ added in v0.55.0
type ImageFamilyViewsGetCall struct {
// contains filtered or unexported fields
}
func (*ImageFamilyViewsGetCall) Context ¶ added in v0.55.0
func (c *ImageFamilyViewsGetCall) Context(ctx context.Context) *ImageFamilyViewsGetCall
Context sets the context to be used in this call's Do method.
func (*ImageFamilyViewsGetCall) Do ¶ added in v0.55.0
func (c *ImageFamilyViewsGetCall) Do(opts ...googleapi.CallOption) (*ImageFamilyView, error)
Do executes the "compute.imageFamilyViews.get" call. Any non-2xx status code is an error. Response headers are in either *ImageFamilyView.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ImageFamilyViewsGetCall) Fields ¶ added in v0.55.0
func (c *ImageFamilyViewsGetCall) Fields(s ...googleapi.Field) *ImageFamilyViewsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ImageFamilyViewsGetCall) Header ¶ added in v0.55.0
func (c *ImageFamilyViewsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ImageFamilyViewsGetCall) IfNoneMatch ¶ added in v0.55.0
func (c *ImageFamilyViewsGetCall) IfNoneMatch(entityTag string) *ImageFamilyViewsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ImageFamilyViewsService ¶ added in v0.55.0
type ImageFamilyViewsService struct {
// contains filtered or unexported fields
}
func NewImageFamilyViewsService ¶ added in v0.55.0
func NewImageFamilyViewsService(s *Service) *ImageFamilyViewsService
func (*ImageFamilyViewsService) Get ¶ added in v0.55.0
func (r *ImageFamilyViewsService) Get(project string, zone string, family string) *ImageFamilyViewsGetCall
Get: Returns the latest image that is part of an image family, is not deprecated and is rolled out in the specified zone.
- family: Name of the image family to search for. - project: Project ID for this request. - zone: The name of the zone for this request.
type ImageList ¶
type ImageList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Image resources. Items []*Image `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *ImageListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
ImageList: Contains a list of images.
func (ImageList) MarshalJSON ¶
type ImageListWarning ¶
type ImageListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ImageListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ImageListWarning: [Output Only] Informational warning message.
func (ImageListWarning) MarshalJSON ¶
func (s ImageListWarning) MarshalJSON() ([]byte, error)
type ImageListWarningData ¶
type ImageListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ImageListWarningData) MarshalJSON ¶
func (s ImageListWarningData) MarshalJSON() ([]byte, error)
type ImageRawDisk ¶
type ImageRawDisk struct { // ContainerType: The format used to encode and transmit the block device, // which should be TAR. This is just a container and transmission format and // not a runtime format. Provided by the client when the disk image is created. // // Possible values: // "TAR" ContainerType string `json:"containerType,omitempty"` // Sha1Checksum: [Deprecated] This field is deprecated. An optional SHA1 // checksum of the disk image before unpackaging provided by the client when // the disk image is created. Sha1Checksum string `json:"sha1Checksum,omitempty"` // Source: The full Google Cloud Storage URL where the raw disk image archive // is stored. The following are valid formats for the URL: - // https://storage.googleapis.com/bucket_name/image_archive_name - // https://storage.googleapis.com/bucket_name/folder_name/ image_archive_name // In order to create an image, you must provide the full or partial URL of one // of the following: - The rawDisk.source URL - The sourceDisk URL - The // sourceImage URL - The sourceSnapshot URL Source string `json:"source,omitempty"` // ForceSendFields is a list of field names (e.g. "ContainerType") 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. "ContainerType") 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:"-"` }
ImageRawDisk: The parameters of the raw disk image.
func (ImageRawDisk) MarshalJSON ¶
func (s ImageRawDisk) MarshalJSON() ([]byte, error)
type ImagesDeleteCall ¶
type ImagesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ImagesDeleteCall) Context ¶
func (c *ImagesDeleteCall) Context(ctx context.Context) *ImagesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ImagesDeleteCall) Do ¶
func (c *ImagesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.images.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ImagesDeleteCall) Fields ¶
func (c *ImagesDeleteCall) Fields(s ...googleapi.Field) *ImagesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ImagesDeleteCall) Header ¶
func (c *ImagesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ImagesDeleteCall) RequestId ¶
func (c *ImagesDeleteCall) RequestId(requestId string) *ImagesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ImagesDeprecateCall ¶
type ImagesDeprecateCall struct {
// contains filtered or unexported fields
}
func (*ImagesDeprecateCall) Context ¶
func (c *ImagesDeprecateCall) Context(ctx context.Context) *ImagesDeprecateCall
Context sets the context to be used in this call's Do method.
func (*ImagesDeprecateCall) Do ¶
func (c *ImagesDeprecateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.images.deprecate" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ImagesDeprecateCall) Fields ¶
func (c *ImagesDeprecateCall) Fields(s ...googleapi.Field) *ImagesDeprecateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ImagesDeprecateCall) Header ¶
func (c *ImagesDeprecateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ImagesDeprecateCall) RequestId ¶
func (c *ImagesDeprecateCall) RequestId(requestId string) *ImagesDeprecateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ImagesGetCall ¶
type ImagesGetCall struct {
// contains filtered or unexported fields
}
func (*ImagesGetCall) Context ¶
func (c *ImagesGetCall) Context(ctx context.Context) *ImagesGetCall
Context sets the context to be used in this call's Do method.
func (*ImagesGetCall) Do ¶
func (c *ImagesGetCall) Do(opts ...googleapi.CallOption) (*Image, error)
Do executes the "compute.images.get" call. Any non-2xx status code is an error. Response headers are in either *Image.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ImagesGetCall) Fields ¶
func (c *ImagesGetCall) Fields(s ...googleapi.Field) *ImagesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ImagesGetCall) Header ¶
func (c *ImagesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ImagesGetCall) IfNoneMatch ¶
func (c *ImagesGetCall) IfNoneMatch(entityTag string) *ImagesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ImagesGetFromFamilyCall ¶
type ImagesGetFromFamilyCall struct {
// contains filtered or unexported fields
}
func (*ImagesGetFromFamilyCall) Context ¶
func (c *ImagesGetFromFamilyCall) Context(ctx context.Context) *ImagesGetFromFamilyCall
Context sets the context to be used in this call's Do method.
func (*ImagesGetFromFamilyCall) Do ¶
func (c *ImagesGetFromFamilyCall) Do(opts ...googleapi.CallOption) (*Image, error)
Do executes the "compute.images.getFromFamily" call. Any non-2xx status code is an error. Response headers are in either *Image.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ImagesGetFromFamilyCall) Fields ¶
func (c *ImagesGetFromFamilyCall) Fields(s ...googleapi.Field) *ImagesGetFromFamilyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ImagesGetFromFamilyCall) Header ¶
func (c *ImagesGetFromFamilyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ImagesGetFromFamilyCall) IfNoneMatch ¶
func (c *ImagesGetFromFamilyCall) IfNoneMatch(entityTag string) *ImagesGetFromFamilyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ImagesGetIamPolicyCall ¶
type ImagesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ImagesGetIamPolicyCall) Context ¶
func (c *ImagesGetIamPolicyCall) Context(ctx context.Context) *ImagesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ImagesGetIamPolicyCall) Do ¶
func (c *ImagesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.images.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ImagesGetIamPolicyCall) Fields ¶
func (c *ImagesGetIamPolicyCall) Fields(s ...googleapi.Field) *ImagesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ImagesGetIamPolicyCall) Header ¶
func (c *ImagesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ImagesGetIamPolicyCall) IfNoneMatch ¶
func (c *ImagesGetIamPolicyCall) IfNoneMatch(entityTag string) *ImagesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ImagesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.30.0
func (c *ImagesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ImagesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type ImagesInsertCall ¶
type ImagesInsertCall struct {
// contains filtered or unexported fields
}
func (*ImagesInsertCall) Context ¶
func (c *ImagesInsertCall) Context(ctx context.Context) *ImagesInsertCall
Context sets the context to be used in this call's Do method.
func (*ImagesInsertCall) Do ¶
func (c *ImagesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.images.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ImagesInsertCall) Fields ¶
func (c *ImagesInsertCall) Fields(s ...googleapi.Field) *ImagesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ImagesInsertCall) ForceCreate ¶
func (c *ImagesInsertCall) ForceCreate(forceCreate bool) *ImagesInsertCall
ForceCreate sets the optional parameter "forceCreate": Force image creation if true.
func (*ImagesInsertCall) Header ¶
func (c *ImagesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ImagesInsertCall) RequestId ¶
func (c *ImagesInsertCall) RequestId(requestId string) *ImagesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ImagesListCall ¶
type ImagesListCall struct {
// contains filtered or unexported fields
}
func (*ImagesListCall) Context ¶
func (c *ImagesListCall) Context(ctx context.Context) *ImagesListCall
Context sets the context to be used in this call's Do method.
func (*ImagesListCall) Do ¶
func (c *ImagesListCall) Do(opts ...googleapi.CallOption) (*ImageList, error)
Do executes the "compute.images.list" call. Any non-2xx status code is an error. Response headers are in either *ImageList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ImagesListCall) Fields ¶
func (c *ImagesListCall) Fields(s ...googleapi.Field) *ImagesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ImagesListCall) Filter ¶
func (c *ImagesListCall) Filter(filter string) *ImagesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*ImagesListCall) Header ¶
func (c *ImagesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ImagesListCall) IfNoneMatch ¶
func (c *ImagesListCall) IfNoneMatch(entityTag string) *ImagesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ImagesListCall) MaxResults ¶
func (c *ImagesListCall) MaxResults(maxResults int64) *ImagesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*ImagesListCall) OrderBy ¶
func (c *ImagesListCall) OrderBy(orderBy string) *ImagesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*ImagesListCall) PageToken ¶
func (c *ImagesListCall) PageToken(pageToken string) *ImagesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*ImagesListCall) Pages ¶
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 (*ImagesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *ImagesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ImagesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type ImagesPatchCall ¶ added in v0.33.0
type ImagesPatchCall struct {
// contains filtered or unexported fields
}
func (*ImagesPatchCall) Context ¶ added in v0.33.0
func (c *ImagesPatchCall) Context(ctx context.Context) *ImagesPatchCall
Context sets the context to be used in this call's Do method.
func (*ImagesPatchCall) Do ¶ added in v0.33.0
func (c *ImagesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.images.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ImagesPatchCall) Fields ¶ added in v0.33.0
func (c *ImagesPatchCall) Fields(s ...googleapi.Field) *ImagesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ImagesPatchCall) Header ¶ added in v0.33.0
func (c *ImagesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ImagesPatchCall) RequestId ¶ added in v0.33.0
func (c *ImagesPatchCall) RequestId(requestId string) *ImagesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ImagesService ¶
type ImagesService struct {
// contains filtered or unexported fields
}
func NewImagesService ¶
func NewImagesService(s *Service) *ImagesService
func (*ImagesService) Delete ¶
func (r *ImagesService) Delete(project string, image string) *ImagesDeleteCall
Delete: Deletes the specified image.
- image: Name of the image resource to delete. - project: Project ID for this request.
func (*ImagesService) Deprecate ¶
func (r *ImagesService) Deprecate(project string, image string, deprecationstatus *DeprecationStatus) *ImagesDeprecateCall
Deprecate: Sets the deprecation status of an image. If an empty request body is given, clears the deprecation status instead.
- image: Image name. - project: Project ID for this request.
func (*ImagesService) Get ¶
func (r *ImagesService) Get(project string, image string) *ImagesGetCall
Get: Returns the specified image.
- image: Name of the image resource to return. - project: Project ID for this request.
func (*ImagesService) GetFromFamily ¶
func (r *ImagesService) GetFromFamily(project string, family string) *ImagesGetFromFamilyCall
GetFromFamily: Returns the latest image that is part of an image family and is not deprecated. For more information on image families, see Public image families documentation.
- family: Name of the image family to search for.
- project: The image project that the image belongs to. For example, to get a CentOS image, specify centos-cloud as the image project.
func (*ImagesService) GetIamPolicy ¶
func (r *ImagesService) GetIamPolicy(project string, resource string) *ImagesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*ImagesService) Insert ¶
func (r *ImagesService) Insert(project string, image *Image) *ImagesInsertCall
Insert: Creates an image in the specified project using the data included in the request.
- project: Project ID for this request.
func (*ImagesService) List ¶
func (r *ImagesService) List(project string) *ImagesListCall
List: Retrieves the list of custom images available to the specified project. Custom images are images you create that belong to your project. This method does not get any images that belong to other projects, including publicly-available images, like Debian 8. If you want to get a list of publicly-available images, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud.
- project: Project ID for this request.
func (*ImagesService) Patch ¶ added in v0.33.0
func (r *ImagesService) Patch(project string, image string, image2 *Image) *ImagesPatchCall
Patch: Patches the specified image with the data included in the request. Only the following fields can be modified: family, description, deprecation status.
- image: Name of the image resource to patch. - project: Project ID for this request.
func (*ImagesService) SetIamPolicy ¶
func (r *ImagesService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *ImagesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*ImagesService) SetLabels ¶
func (r *ImagesService) SetLabels(project string, resource string, globalsetlabelsrequest *GlobalSetLabelsRequest) *ImagesSetLabelsCall
SetLabels: Sets the labels on an image. To learn more about labels, read the Labeling Resources documentation.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*ImagesService) TestIamPermissions ¶
func (r *ImagesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *ImagesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
type ImagesSetIamPolicyCall ¶
type ImagesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ImagesSetIamPolicyCall) Context ¶
func (c *ImagesSetIamPolicyCall) Context(ctx context.Context) *ImagesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ImagesSetIamPolicyCall) Do ¶
func (c *ImagesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.images.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ImagesSetIamPolicyCall) Fields ¶
func (c *ImagesSetIamPolicyCall) Fields(s ...googleapi.Field) *ImagesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ImagesSetIamPolicyCall) Header ¶
func (c *ImagesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ImagesSetLabelsCall ¶
type ImagesSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*ImagesSetLabelsCall) Context ¶
func (c *ImagesSetLabelsCall) Context(ctx context.Context) *ImagesSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*ImagesSetLabelsCall) Do ¶
func (c *ImagesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.images.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ImagesSetLabelsCall) Fields ¶
func (c *ImagesSetLabelsCall) Fields(s ...googleapi.Field) *ImagesSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ImagesSetLabelsCall) Header ¶
func (c *ImagesSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ImagesTestIamPermissionsCall ¶
type ImagesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ImagesTestIamPermissionsCall) Context ¶
func (c *ImagesTestIamPermissionsCall) Context(ctx context.Context) *ImagesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ImagesTestIamPermissionsCall) Do ¶
func (c *ImagesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.images.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ImagesTestIamPermissionsCall) Fields ¶
func (c *ImagesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ImagesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ImagesTestIamPermissionsCall) Header ¶
func (c *ImagesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type InitialStateConfig ¶ added in v0.21.0
type InitialStateConfig struct { // Dbs: The Key Database (db). Dbs []*FileContentBuffer `json:"dbs,omitempty"` // Dbxs: The forbidden key database (dbx). Dbxs []*FileContentBuffer `json:"dbxs,omitempty"` // Keks: The Key Exchange Key (KEK). Keks []*FileContentBuffer `json:"keks,omitempty"` // Pk: The Platform Key (PK). Pk *FileContentBuffer `json:"pk,omitempty"` // ForceSendFields is a list of field names (e.g. "Dbs") 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. "Dbs") 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:"-"` }
InitialStateConfig: Initial State for shielded instance, these are public keys which are safe to store in public
func (InitialStateConfig) MarshalJSON ¶ added in v0.21.0
func (s InitialStateConfig) MarshalJSON() ([]byte, error)
type Instance ¶
type Instance struct { // AdvancedMachineFeatures: Controls for advanced machine-related behavior // features. AdvancedMachineFeatures *AdvancedMachineFeatures `json:"advancedMachineFeatures,omitempty"` // CanIpForward: Allows this instance to send and receive packets with // non-matching destination or source IPs. This is required if you plan to use // this instance to forward routes. For more information, see Enabling IP // Forwarding . CanIpForward bool `json:"canIpForward,omitempty"` ConfidentialInstanceConfig *ConfidentialInstanceConfig `json:"confidentialInstanceConfig,omitempty"` // CpuPlatform: [Output Only] The CPU platform used by this instance. CpuPlatform string `json:"cpuPlatform,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // DeletionProtection: Whether the resource should be protected against // deletion. DeletionProtection bool `json:"deletionProtection,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Disks: Array of disks associated with this instance. Persistent disks must // be created before you can assign them. Disks []*AttachedDisk `json:"disks,omitempty"` // DisplayDevice: Enables display device for the instance. DisplayDevice *DisplayDevice `json:"displayDevice,omitempty"` // Fingerprint: Specifies a fingerprint for this resource, which is essentially // a hash of the instance's contents and used for optimistic locking. The // fingerprint is initially generated by Compute Engine and changes after every // request to modify or update the instance. You must always provide an // up-to-date fingerprint hash in order to update the instance. To see the // latest fingerprint, make get() request to the instance. Fingerprint string `json:"fingerprint,omitempty"` // GuestAccelerators: A list of the type and count of accelerator cards // attached to the instance. GuestAccelerators []*AcceleratorConfig `json:"guestAccelerators,omitempty"` // Hostname: Specifies the hostname of the instance. The specified hostname // must be RFC1035 compliant. If hostname is not specified, the default // hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global // DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal // DNS. Hostname string `json:"hostname,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // InstanceEncryptionKey: Encrypts suspended data for an instance with a // customer-managed encryption key. If you are creating a new instance, this // field will encrypt the local SSD and in-memory contents of the instance // during the suspend operation. If you do not provide an encryption key when // creating the instance, then the local SSD and in-memory contents will be // encrypted using an automatically generated key during the suspend operation. InstanceEncryptionKey *CustomerEncryptionKey `json:"instanceEncryptionKey,omitempty"` // KeyRevocationActionType: KeyRevocationActionType of the instance. Supported // options are "STOP" and "NONE". The default value is "NONE" if it is not // specified. // // Possible values: // "KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED" - Default value. This value is // unused. // "NONE" - Indicates user chose no operation. // "STOP" - Indicates user chose to opt for VM shutdown on key revocation. KeyRevocationActionType string `json:"keyRevocationActionType,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#instance for // instances. Kind string `json:"kind,omitempty"` // LabelFingerprint: A fingerprint for this request, which is essentially a // hash of the label's contents and used for optimistic locking. The // fingerprint is initially generated by Compute Engine and changes after every // request to modify or update labels. You must always provide an up-to-date // fingerprint hash in order to update or change labels. To see the latest // fingerprint, make get() request to the instance. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels to apply to this instance. These can be later modified by the // setLabels method. Labels map[string]string `json:"labels,omitempty"` // LastStartTimestamp: [Output Only] Last start timestamp in RFC3339 text // format. LastStartTimestamp string `json:"lastStartTimestamp,omitempty"` // LastStopTimestamp: [Output Only] Last stop timestamp in RFC3339 text format. LastStopTimestamp string `json:"lastStopTimestamp,omitempty"` // LastSuspendedTimestamp: [Output Only] Last suspended timestamp in RFC3339 // text format. LastSuspendedTimestamp string `json:"lastSuspendedTimestamp,omitempty"` // MachineType: Full or partial URL of the machine type resource to use for // this instance, in the format: zones/zone/machineTypes/machine-type. This is // provided by the client when the instance is created. For example, the // following is a valid partial url to a predefined machine type: // zones/us-central1-f/machineTypes/n1-standard-1 To create a custom machine // type, provide a URL to a machine type in the following format, where CPUS is // 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total // memory for this instance. Memory must be a multiple of 256 MB and must be // supplied in MB (e.g. 5 GB of memory is 5120 MB): // zones/zone/machineTypes/custom-CPUS-MEMORY For example: // zones/us-central1-f/machineTypes/custom-4-5120 For a full list of // restrictions, read the Specifications for custom machine types. MachineType string `json:"machineType,omitempty"` // Metadata: The metadata key/value pairs assigned to this instance. This // includes custom metadata and predefined keys. Metadata *Metadata `json:"metadata,omitempty"` // MinCpuPlatform: Specifies a minimum CPU platform for the VM instance. // Applicable values are the friendly names of CPU platforms, such as // minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". MinCpuPlatform string `json:"minCpuPlatform,omitempty"` // Name: The name of the resource, provided by the client when initially // creating the resource. The resource name must be 1-63 characters long, and // comply with RFC1035. Specifically, the name must be 1-63 characters long and // match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the // first character must be a lowercase letter, and all following characters // must be a dash, lowercase letter, or digit, except the last character, which // cannot be a dash. Name string `json:"name,omitempty"` // NetworkInterfaces: An array of network configurations for this instance. // These specify how interfaces are configured to interact with other network // services, such as connecting to the internet. Multiple interfaces are // supported per instance. NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"` NetworkPerformanceConfig *NetworkPerformanceConfig `json:"networkPerformanceConfig,omitempty"` // Params: Input only. [Input Only] Additional params passed with the request, // but not persisted as part of resource payload. Params *InstanceParams `json:"params,omitempty"` // PrivateIpv6GoogleAccess: The private IPv6 google access type for the VM. If // not specified, use INHERIT_FROM_SUBNETWORK as default. // // Possible values: // "ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE" - Bidirectional private IPv6 // access to/from Google services. If specified, the subnetwork who is attached // to the instance's default network interface will be assigned an internal // IPv6 prefix if it doesn't have before. // "ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE" - Outbound private IPv6 access from // VMs in this subnet to Google services. If specified, the subnetwork who is // attached to the instance's default network interface will be assigned an // internal IPv6 prefix if it doesn't have before. // "INHERIT_FROM_SUBNETWORK" - Each network interface inherits // PrivateIpv6GoogleAccess from its subnetwork. PrivateIpv6GoogleAccess string `json:"privateIpv6GoogleAccess,omitempty"` // ReservationAffinity: Specifies the reservations that this instance can // consume from. ReservationAffinity *ReservationAffinity `json:"reservationAffinity,omitempty"` // ResourcePolicies: Resource policies applied to this instance. ResourcePolicies []string `json:"resourcePolicies,omitempty"` // ResourceStatus: [Output Only] Specifies values set for instance attributes // as compared to the values requested by user in the corresponding input only // field. ResourceStatus *ResourceStatus `json:"resourceStatus,omitempty"` // SatisfiesPzi: [Output Only] Reserved for future use. SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: [Output Only] Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // Scheduling: Sets the scheduling options for this instance. Scheduling *Scheduling `json:"scheduling,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // ServiceAccounts: A list of service accounts, with their specified scopes, // authorized for this instance. Only one service account per VM instance is // supported. Service accounts generate access tokens that can be accessed // through the metadata server and used to authenticate applications on the // instance. See Service Accounts for more information. ServiceAccounts []*ServiceAccount `json:"serviceAccounts,omitempty"` ShieldedInstanceConfig *ShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"` ShieldedInstanceIntegrityPolicy *ShieldedInstanceIntegrityPolicy `json:"shieldedInstanceIntegrityPolicy,omitempty"` // SourceMachineImage: Source machine image SourceMachineImage string `json:"sourceMachineImage,omitempty"` // SourceMachineImageEncryptionKey: Source machine image encryption key when // creating an instance from a machine image. SourceMachineImageEncryptionKey *CustomerEncryptionKey `json:"sourceMachineImageEncryptionKey,omitempty"` // StartRestricted: [Output Only] Whether a VM has been restricted for start // because Compute Engine has detected suspicious activity. StartRestricted bool `json:"startRestricted,omitempty"` // Status: [Output Only] The status of the instance. One of the following // values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, // REPAIRING, and TERMINATED. For more information about the status of the // instance, see Instance life cycle. // // Possible values: // "DEPROVISIONING" - The instance is halted and we are performing tear down // tasks like network deprogramming, releasing quota, IP, tearing down disks // etc. // "PROVISIONING" - Resources are being allocated for the instance. // "REPAIRING" - The instance is in repair. // "RUNNING" - The instance is running. // "STAGING" - All required resources have been allocated and the instance is // being started. // "STOPPED" - The instance has stopped successfully. // "STOPPING" - The instance is currently stopping (either being deleted or // killed). // "SUSPENDED" - The instance has suspended. // "SUSPENDING" - The instance is suspending. // "TERMINATED" - The instance has stopped (either by explicit action or // underlying failure). Status string `json:"status,omitempty"` // StatusMessage: [Output Only] An optional, human-readable explanation of the // status. StatusMessage string `json:"statusMessage,omitempty"` // Tags: Tags to apply to this instance. Tags are used to identify valid // sources or targets for network firewalls and are specified by the client // during instance creation. The tags can be later modified by the setTags // method. Each tag within the list must comply with RFC1035. Multiple tags can // be specified via the 'tags.items' field. Tags *Tags `json:"tags,omitempty"` // Zone: [Output Only] URL of the zone where the instance resides. You must // specify this field as part of the HTTP request URL. It is not settable as a // field in the request body. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AdvancedMachineFeatures") 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. "AdvancedMachineFeatures") 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:"-"` }
Instance: Represents an Instance resource. An instance is a virtual machine that is hosted on Google Cloud Platform. For more information, read Virtual Machine Instances.
func (Instance) MarshalJSON ¶
type InstanceAggregatedList ¶
type InstanceAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: An object that contains a list of instances scoped by zone. Items map[string]InstancesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#instanceAggregatedList // for aggregated lists of Instance resources. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InstanceAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (InstanceAggregatedList) MarshalJSON ¶
func (s InstanceAggregatedList) MarshalJSON() ([]byte, error)
type InstanceAggregatedListWarning ¶
type InstanceAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstanceAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstanceAggregatedListWarning: [Output Only] Informational warning message.
func (InstanceAggregatedListWarning) MarshalJSON ¶
func (s InstanceAggregatedListWarning) MarshalJSON() ([]byte, error)
type InstanceAggregatedListWarningData ¶
type InstanceAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstanceAggregatedListWarningData) MarshalJSON ¶
func (s InstanceAggregatedListWarningData) MarshalJSON() ([]byte, error)
type InstanceConsumptionData ¶ added in v0.93.0
type InstanceConsumptionData struct { // ConsumptionInfo: Resources consumed by the instance. ConsumptionInfo *InstanceConsumptionInfo `json:"consumptionInfo,omitempty"` // Instance: Server-defined URL for the instance. Instance string `json:"instance,omitempty"` // ForceSendFields is a list of field names (e.g. "ConsumptionInfo") 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. "ConsumptionInfo") 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:"-"` }
func (InstanceConsumptionData) MarshalJSON ¶ added in v0.93.0
func (s InstanceConsumptionData) MarshalJSON() ([]byte, error)
type InstanceConsumptionInfo ¶ added in v0.93.0
type InstanceConsumptionInfo struct { // GuestCpus: The number of virtual CPUs that are available to the instance. GuestCpus int64 `json:"guestCpus,omitempty"` // LocalSsdGb: The amount of local SSD storage available to the instance, // defined in GiB. LocalSsdGb int64 `json:"localSsdGb,omitempty"` // MemoryMb: The amount of physical memory available to the instance, defined // in MiB. MemoryMb int64 `json:"memoryMb,omitempty"` // MinNodeCpus: The minimal guaranteed number of virtual CPUs that are // reserved. MinNodeCpus int64 `json:"minNodeCpus,omitempty"` // ForceSendFields is a list of field names (e.g. "GuestCpus") 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. "GuestCpus") 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:"-"` }
func (InstanceConsumptionInfo) MarshalJSON ¶ added in v0.93.0
func (s InstanceConsumptionInfo) MarshalJSON() ([]byte, error)
type InstanceGroup ¶
type InstanceGroup struct { // CreationTimestamp: [Output Only] The creation timestamp for this instance // group in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Fingerprint: [Output Only] The fingerprint of the named ports. The system // uses this fingerprint to detect conflicts when multiple users change the // named ports concurrently. Fingerprint string `json:"fingerprint,omitempty"` // Id: [Output Only] A unique identifier for this instance group, generated by // the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] The resource type, which is always compute#instanceGroup // for instance groups. Kind string `json:"kind,omitempty"` // Name: The name of the instance group. The name must be 1-63 characters long, // and comply with RFC1035. Name string `json:"name,omitempty"` // NamedPorts: Assigns a name to a port number. For example: {name: "http", // port: 80} This allows the system to reference ports by the assigned name // instead of a port number. Named ports can also contain multiple ports. For // example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: // "app2", port: 8082}] Named ports apply to all instances in this instance // group. NamedPorts []*NamedPort `json:"namedPorts,omitempty"` // Network: [Output Only] The URL of the network to which all instances in the // instance group belong. If your instance has multiple network interfaces, // then the network and subnetwork fields only refer to the network and subnet // used by your primary interface (nic0). Network string `json:"network,omitempty"` // Region: [Output Only] The URL of the region where the instance group is // located (for regional resources). Region string `json:"region,omitempty"` // SelfLink: [Output Only] The URL for this instance group. The server // generates this URL. SelfLink string `json:"selfLink,omitempty"` // Size: [Output Only] The total number of instances in the instance group. Size int64 `json:"size,omitempty"` // Subnetwork: [Output Only] The URL of the subnetwork to which all instances // in the instance group belong. If your instance has multiple network // interfaces, then the network and subnetwork fields only refer to the network // and subnet used by your primary interface (nic0). Subnetwork string `json:"subnetwork,omitempty"` // Zone: [Output Only] The URL of the zone where the instance group is located // (for zonal resources). Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
InstanceGroup: Represents an Instance Group resource. Instance Groups can be used to configure a target for load balancing. Instance groups can either be managed or unmanaged. To create managed instance groups, use the instanceGroupManager or regionInstanceGroupManager resource instead. Use zonal unmanaged instance groups if you need to apply load balancing to groups of heterogeneous instances or if you need to manage the instances yourself. You cannot create regional unmanaged instance groups. For more information, read Instance groups.
func (InstanceGroup) MarshalJSON ¶
func (s InstanceGroup) MarshalJSON() ([]byte, error)
type InstanceGroupAggregatedList ¶
type InstanceGroupAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InstanceGroupsScopedList resources. Items map[string]InstanceGroupsScopedList `json:"items,omitempty"` // Kind: [Output Only] The resource type, which is always // compute#instanceGroupAggregatedList for aggregated lists of instance groups. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InstanceGroupAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (InstanceGroupAggregatedList) MarshalJSON ¶
func (s InstanceGroupAggregatedList) MarshalJSON() ([]byte, error)
type InstanceGroupAggregatedListWarning ¶
type InstanceGroupAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstanceGroupAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstanceGroupAggregatedListWarning: [Output Only] Informational warning message.
func (InstanceGroupAggregatedListWarning) MarshalJSON ¶
func (s InstanceGroupAggregatedListWarning) MarshalJSON() ([]byte, error)
type InstanceGroupAggregatedListWarningData ¶
type InstanceGroupAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstanceGroupAggregatedListWarningData) MarshalJSON ¶
func (s InstanceGroupAggregatedListWarningData) MarshalJSON() ([]byte, error)
type InstanceGroupList ¶
type InstanceGroupList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InstanceGroup resources. Items []*InstanceGroup `json:"items,omitempty"` // Kind: [Output Only] The resource type, which is always // compute#instanceGroupList for instance group lists. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InstanceGroupListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
InstanceGroupList: A list of InstanceGroup resources.
func (InstanceGroupList) MarshalJSON ¶
func (s InstanceGroupList) MarshalJSON() ([]byte, error)
type InstanceGroupListWarning ¶
type InstanceGroupListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstanceGroupListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstanceGroupListWarning: [Output Only] Informational warning message.
func (InstanceGroupListWarning) MarshalJSON ¶
func (s InstanceGroupListWarning) MarshalJSON() ([]byte, error)
type InstanceGroupListWarningData ¶
type InstanceGroupListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstanceGroupListWarningData) MarshalJSON ¶
func (s InstanceGroupListWarningData) MarshalJSON() ([]byte, error)
type InstanceGroupManager ¶
type InstanceGroupManager struct { // AllInstancesConfig: Specifies configuration that overrides the instance // template configuration for the group. AllInstancesConfig *InstanceGroupManagerAllInstancesConfig `json:"allInstancesConfig,omitempty"` // AutoHealingPolicies: The autohealing policy for this managed instance group. // You can specify only one value. AutoHealingPolicies []*InstanceGroupManagerAutoHealingPolicy `json:"autoHealingPolicies,omitempty"` // BaseInstanceName: The base instance name is a prefix that you want to attach // to the names of all VMs in a MIG. The maximum character length is 58 and the // name must comply with RFC1035 format. When a VM is created in the group, the // MIG appends a hyphen and a random four-character string to the base instance // name. If you want the MIG to assign sequential numbers instead of a random // string, then end the base instance name with a hyphen followed by one or // more hash symbols. The hash symbols indicate the number of digits. For // example, a base instance name of "vm-###" results in "vm-001" as a VM name. // @pattern a-z // (([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?)) BaseInstanceName string `json:"baseInstanceName,omitempty"` // CreationTimestamp: [Output Only] The creation timestamp for this managed // instance group in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // CurrentActions: [Output Only] The list of instance actions and the number of // instances in this managed instance group that are scheduled for each of // those actions. CurrentActions *InstanceGroupManagerActionsSummary `json:"currentActions,omitempty"` // Description: An optional description of this resource. Description string `json:"description,omitempty"` // DistributionPolicy: Policy specifying the intended distribution of managed // instances across zones in a regional managed instance group. DistributionPolicy *DistributionPolicy `json:"distributionPolicy,omitempty"` // Fingerprint: Fingerprint of this resource. This field may be used in // optimistic locking. It will be ignored when inserting an // InstanceGroupManager. An up-to-date fingerprint must be provided in order to // update the InstanceGroupManager, otherwise the request will fail with error // 412 conditionNotMet. To see the latest fingerprint, make a get() request to // retrieve an InstanceGroupManager. Fingerprint string `json:"fingerprint,omitempty"` // Id: [Output Only] A unique identifier for this resource type. The server // generates this identifier. Id uint64 `json:"id,omitempty,string"` // InstanceGroup: [Output Only] The URL of the Instance Group resource. InstanceGroup string `json:"instanceGroup,omitempty"` // InstanceLifecyclePolicy: The repair policy for this managed instance group. InstanceLifecyclePolicy *InstanceGroupManagerInstanceLifecyclePolicy `json:"instanceLifecyclePolicy,omitempty"` // InstanceTemplate: The URL of the instance template that is specified for // this managed instance group. The group uses this template to create all new // instances in the managed instance group. The templates for existing // instances in the group do not change unless you run recreateInstances, run // applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE. InstanceTemplate string `json:"instanceTemplate,omitempty"` // Kind: [Output Only] The resource type, which is always // compute#instanceGroupManager for managed instance groups. Kind string `json:"kind,omitempty"` // ListManagedInstancesResults: Pagination behavior of the listManagedInstances // API method for this managed instance group. // // Possible values: // "PAGELESS" - (Default) Pagination is disabled for the group's // listManagedInstances API method. maxResults and pageToken query parameters // are ignored and all instances are returned in a single response. // "PAGINATED" - Pagination is enabled for the group's listManagedInstances // API method. maxResults and pageToken query parameters are respected. ListManagedInstancesResults string `json:"listManagedInstancesResults,omitempty"` // Name: The name of the managed instance group. The name must be 1-63 // characters long, and comply with RFC1035. Name string `json:"name,omitempty"` // NamedPorts: Named ports configured for the Instance Groups complementary to // this Instance Group Manager. NamedPorts []*NamedPort `json:"namedPorts,omitempty"` // Region: [Output Only] The URL of the region where the managed instance group // resides (for regional resources). Region string `json:"region,omitempty"` // SatisfiesPzi: [Output Only] Reserved for future use. SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: [Output Only] Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SelfLink: [Output Only] The URL for this managed instance group. The server // defines this URL. SelfLink string `json:"selfLink,omitempty"` // StatefulPolicy: Stateful configuration for this Instanced Group Manager StatefulPolicy *StatefulPolicy `json:"statefulPolicy,omitempty"` // Status: [Output Only] The status of this managed instance group. Status *InstanceGroupManagerStatus `json:"status,omitempty"` // TargetPools: The URLs for all TargetPool resources to which instances in the // instanceGroup field are added. The target pools automatically apply to all // of the instances in the managed instance group. TargetPools []string `json:"targetPools,omitempty"` // TargetSize: The target number of running instances for this managed instance // group. You can reduce this number by using the instanceGroupManager // deleteInstances or abandonInstances methods. Resizing the group also changes // this number. TargetSize int64 `json:"targetSize,omitempty"` // UpdatePolicy: The update policy for this managed instance group. UpdatePolicy *InstanceGroupManagerUpdatePolicy `json:"updatePolicy,omitempty"` // Versions: Specifies the instance templates used by this managed instance // group to create instances. Each version is defined by an instanceTemplate // and a name. Every version can appear at most once per instance group. This // field overrides the top-level instanceTemplate field. Read more about the // relationships between these fields. Exactly one version must leave the // targetSize field unset. That version will be applied to all remaining // instances. For more information, read about canary updates. Versions []*InstanceGroupManagerVersion `json:"versions,omitempty"` // Zone: [Output Only] The URL of a zone where the managed instance group is // located (for zonal resources). Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AllInstancesConfig") 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. "AllInstancesConfig") 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:"-"` }
InstanceGroupManager: Represents a Managed Instance Group resource. An instance group is a collection of VM instances that you can manage as a single entity. For more information, read Instance groups. For zonal Managed Instance Group, use the instanceGroupManagers resource. For regional Managed Instance Group, use the regionInstanceGroupManagers resource.
func (InstanceGroupManager) MarshalJSON ¶
func (s InstanceGroupManager) MarshalJSON() ([]byte, error)
type InstanceGroupManagerActionsSummary ¶
type InstanceGroupManagerActionsSummary struct { // Abandoning: [Output Only] The total number of instances in the managed // instance group that are scheduled to be abandoned. Abandoning an instance // removes it from the managed instance group without deleting it. Abandoning int64 `json:"abandoning,omitempty"` // Creating: [Output Only] The number of instances in the managed instance // group that are scheduled to be created or are currently being created. If // the group fails to create any of these instances, it tries again until it // creates the instance successfully. If you have disabled creation retries, // this field will not be populated; instead, the creatingWithoutRetries field // will be populated. Creating int64 `json:"creating,omitempty"` // CreatingWithoutRetries: [Output Only] The number of instances that the // managed instance group will attempt to create. The group attempts to create // each instance only once. If the group fails to create any of these // instances, it decreases the group's targetSize value accordingly. CreatingWithoutRetries int64 `json:"creatingWithoutRetries,omitempty"` // Deleting: [Output Only] The number of instances in the managed instance // group that are scheduled to be deleted or are currently being deleted. Deleting int64 `json:"deleting,omitempty"` // None: [Output Only] The number of instances in the managed instance group // that are running and have no scheduled actions. None int64 `json:"none,omitempty"` // Recreating: [Output Only] The number of instances in the managed instance // group that are scheduled to be recreated or are currently being being // recreated. Recreating an instance deletes the existing root persistent disk // and creates a new disk from the image that is defined in the instance // template. Recreating int64 `json:"recreating,omitempty"` // Refreshing: [Output Only] The number of instances in the managed instance // group that are being reconfigured with properties that do not require a // restart or a recreate action. For example, setting or removing target pools // for the instance. Refreshing int64 `json:"refreshing,omitempty"` // Restarting: [Output Only] The number of instances in the managed instance // group that are scheduled to be restarted or are currently being restarted. Restarting int64 `json:"restarting,omitempty"` // Resuming: [Output Only] The number of instances in the managed instance // group that are scheduled to be resumed or are currently being resumed. Resuming int64 `json:"resuming,omitempty"` // Starting: [Output Only] The number of instances in the managed instance // group that are scheduled to be started or are currently being started. Starting int64 `json:"starting,omitempty"` // Stopping: [Output Only] The number of instances in the managed instance // group that are scheduled to be stopped or are currently being stopped. Stopping int64 `json:"stopping,omitempty"` // Suspending: [Output Only] The number of instances in the managed instance // group that are scheduled to be suspended or are currently being suspended. Suspending int64 `json:"suspending,omitempty"` // Verifying: [Output Only] The number of instances in the managed instance // group that are being verified. See the managedInstances[].currentAction // property in the listManagedInstances method documentation. Verifying int64 `json:"verifying,omitempty"` // ForceSendFields is a list of field names (e.g. "Abandoning") 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. "Abandoning") 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:"-"` }
func (InstanceGroupManagerActionsSummary) MarshalJSON ¶
func (s InstanceGroupManagerActionsSummary) MarshalJSON() ([]byte, error)
type InstanceGroupManagerAggregatedList ¶
type InstanceGroupManagerAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InstanceGroupManagersScopedList resources. Items map[string]InstanceGroupManagersScopedList `json:"items,omitempty"` // Kind: [Output Only] The resource type, which is always // compute#instanceGroupManagerAggregatedList for an aggregated list of managed // instance groups. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InstanceGroupManagerAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (InstanceGroupManagerAggregatedList) MarshalJSON ¶
func (s InstanceGroupManagerAggregatedList) MarshalJSON() ([]byte, error)
type InstanceGroupManagerAggregatedListWarning ¶
type InstanceGroupManagerAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstanceGroupManagerAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstanceGroupManagerAggregatedListWarning: [Output Only] Informational warning message.
func (InstanceGroupManagerAggregatedListWarning) MarshalJSON ¶
func (s InstanceGroupManagerAggregatedListWarning) MarshalJSON() ([]byte, error)
type InstanceGroupManagerAggregatedListWarningData ¶
type InstanceGroupManagerAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstanceGroupManagerAggregatedListWarningData) MarshalJSON ¶
func (s InstanceGroupManagerAggregatedListWarningData) MarshalJSON() ([]byte, error)
type InstanceGroupManagerAllInstancesConfig ¶ added in v0.163.0
type InstanceGroupManagerAllInstancesConfig struct { // Properties: Properties to set on all instances in the group. You can add or // modify properties using the instanceGroupManagers.patch or // regionInstanceGroupManagers.patch. After setting allInstancesConfig on the // group, you must update the group's instances to apply the configuration. To // apply the configuration, set the group's updatePolicy.type field to use // proactive updates or use the applyUpdatesToInstances method. Properties *InstancePropertiesPatch `json:"properties,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:"-"` }
func (InstanceGroupManagerAllInstancesConfig) MarshalJSON ¶ added in v0.163.0
func (s InstanceGroupManagerAllInstancesConfig) MarshalJSON() ([]byte, error)
type InstanceGroupManagerAutoHealingPolicy ¶ added in v0.2.0
type InstanceGroupManagerAutoHealingPolicy struct { // HealthCheck: The URL for the health check that signals autohealing. HealthCheck string `json:"healthCheck,omitempty"` // InitialDelaySec: The initial delay is the number of seconds that a new VM // takes to initialize and run its startup script. During a VM's initial delay // period, the MIG ignores unsuccessful health checks because the VM might be // in the startup process. This prevents the MIG from prematurely recreating a // VM. If the health check receives a healthy response during the initial // delay, it indicates that the startup process is complete and the VM is // ready. The value of initial delay must be between 0 and 3600 seconds. The // default value is 0. InitialDelaySec int64 `json:"initialDelaySec,omitempty"` // ForceSendFields is a list of field names (e.g. "HealthCheck") 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. "HealthCheck") 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:"-"` }
func (InstanceGroupManagerAutoHealingPolicy) MarshalJSON ¶ added in v0.2.0
func (s InstanceGroupManagerAutoHealingPolicy) MarshalJSON() ([]byte, error)
type InstanceGroupManagerInstanceLifecyclePolicy ¶ added in v0.131.0
type InstanceGroupManagerInstanceLifecyclePolicy struct { // DefaultActionOnFailure: The action that a MIG performs on a failed or an // unhealthy VM. A VM is marked as unhealthy when the application running on // that VM fails a health check. Valid values are - REPAIR (default): MIG // automatically repairs a failed or an unhealthy VM by recreating it. For more // information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not // repair a failed or an unhealthy VM. // // Possible values: // "DO_NOTHING" - MIG does not repair a failed or an unhealthy VM. // "REPAIR" - (Default) MIG automatically repairs a failed or an unhealthy VM // by recreating it. For more information, see About repairing VMs in a MIG. DefaultActionOnFailure string `json:"defaultActionOnFailure,omitempty"` // ForceUpdateOnRepair: A bit indicating whether to forcefully apply the // group's latest configuration when repairing a VM. Valid options are: - NO // (default): If configuration updates are available, they are not forcefully // applied during repair. Instead, configuration updates are applied according // to the group's update policy. - YES: If configuration updates are available, // they are applied during repair. // // Possible values: // "NO" // "YES" ForceUpdateOnRepair string `json:"forceUpdateOnRepair,omitempty"` // ForceSendFields is a list of field names (e.g. "DefaultActionOnFailure") 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. "DefaultActionOnFailure") 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:"-"` }
func (InstanceGroupManagerInstanceLifecyclePolicy) MarshalJSON ¶ added in v0.131.0
func (s InstanceGroupManagerInstanceLifecyclePolicy) MarshalJSON() ([]byte, error)
type InstanceGroupManagerList ¶
type InstanceGroupManagerList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InstanceGroupManager resources. Items []*InstanceGroupManager `json:"items,omitempty"` // Kind: [Output Only] The resource type, which is always // compute#instanceGroupManagerList for a list of managed instance groups. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InstanceGroupManagerListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
InstanceGroupManagerList: [Output Only] A list of managed instance groups.
func (InstanceGroupManagerList) MarshalJSON ¶
func (s InstanceGroupManagerList) MarshalJSON() ([]byte, error)
type InstanceGroupManagerListWarning ¶
type InstanceGroupManagerListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstanceGroupManagerListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstanceGroupManagerListWarning: [Output Only] Informational warning message.
func (InstanceGroupManagerListWarning) MarshalJSON ¶
func (s InstanceGroupManagerListWarning) MarshalJSON() ([]byte, error)
type InstanceGroupManagerListWarningData ¶
type InstanceGroupManagerListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstanceGroupManagerListWarningData) MarshalJSON ¶
func (s InstanceGroupManagerListWarningData) MarshalJSON() ([]byte, error)
type InstanceGroupManagerResizeRequest ¶ added in v0.170.0
type InstanceGroupManagerResizeRequest struct { // CreationTimestamp: [Output Only] The creation timestamp for this resize // request in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Description string `json:"description,omitempty"` // Id: [Output Only] A unique identifier for this resource type. The server // generates this identifier. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] The resource type, which is always // compute#instanceGroupManagerResizeRequest for resize requests. Kind string `json:"kind,omitempty"` // Name: The name of this resize request. The name must be 1-63 characters // long, and comply with RFC1035. Name string `json:"name,omitempty"` // RequestedRunDuration: Requested run duration for instances that will be // created by this request. At the end of the run duration instance will be // deleted. RequestedRunDuration *Duration `json:"requestedRunDuration,omitempty"` // ResizeBy: The number of instances to be created by this resize request. The // group's target size will be increased by this number. This field cannot be // used together with 'instances'. ResizeBy int64 `json:"resizeBy,omitempty"` // SelfLink: [Output Only] The URL for this resize request. The server defines // this URL. SelfLink string `json:"selfLink,omitempty"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource with the // resource id. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` // State: [Output only] Current state of the request. // // Possible values: // "ACCEPTED" - The request was created successfully and was accepted for // provisioning when the capacity becomes available. // "CANCELLED" - The request is cancelled. // "CREATING" - Resize request is being created and may still fail creation. // "FAILED" - The request failed before or during provisioning. If the // request fails during provisioning, any VMs that were created during // provisioning are rolled back and removed from the MIG. // "STATE_UNSPECIFIED" - Default value. This value should never be returned. // "SUCCEEDED" - The request succeeded. State string `json:"state,omitempty"` // Status: [Output only] Status of the request. Status *InstanceGroupManagerResizeRequestStatus `json:"status,omitempty"` // Zone: [Output Only] The URL of a zone where the resize request is located. // Populated only for zonal resize requests. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
InstanceGroupManagerResizeRequest: InstanceGroupManagerResizeRequest represents a request to create a number of VMs: either immediately or by queuing the request for the specified time. This resize request is nested under InstanceGroupManager and the VMs created by this request are added to the owning InstanceGroupManager.
func (InstanceGroupManagerResizeRequest) MarshalJSON ¶ added in v0.170.0
func (s InstanceGroupManagerResizeRequest) MarshalJSON() ([]byte, error)
type InstanceGroupManagerResizeRequestStatus ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestStatus struct { // Error: [Output only] Fatal errors encountered during the queueing or // provisioning phases of the ResizeRequest that caused the transition to the // FAILED state. Contrary to the last_attempt errors, this field is final and // errors are never removed from here, as the ResizeRequest is not going to // retry. Error *InstanceGroupManagerResizeRequestStatusError `json:"error,omitempty"` // LastAttempt: [Output only] Information about the last attempt to fulfill the // request. The value is temporary since the ResizeRequest can retry, as long // as it's still active and the last attempt value can either be cleared or // replaced with a different error. Since ResizeRequest retries infrequently, // the value may be stale and no longer show an active problem. The value is // cleared when ResizeRequest transitions to the final state (becomes // inactive). If the final state is FAILED the error describing it will be // storred in the "error" field only. LastAttempt *InstanceGroupManagerResizeRequestStatusLastAttempt `json:"lastAttempt,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:"-"` }
func (InstanceGroupManagerResizeRequestStatus) MarshalJSON ¶ added in v0.170.0
func (s InstanceGroupManagerResizeRequestStatus) MarshalJSON() ([]byte, error)
type InstanceGroupManagerResizeRequestStatusError ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestStatusError struct { // Errors: [Output Only] The array of errors encountered while processing this // operation. Errors []*InstanceGroupManagerResizeRequestStatusErrorErrors `json:"errors,omitempty"` // ForceSendFields is a list of field names (e.g. "Errors") 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. "Errors") 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:"-"` }
InstanceGroupManagerResizeRequestStatusError: [Output only] Fatal errors encountered during the queueing or provisioning phases of the ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt errors, this field is final and errors are never removed from here, as the ResizeRequest is not going to retry.
func (InstanceGroupManagerResizeRequestStatusError) MarshalJSON ¶ added in v0.170.0
func (s InstanceGroupManagerResizeRequestStatusError) MarshalJSON() ([]byte, error)
type InstanceGroupManagerResizeRequestStatusErrorErrors ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestStatusErrorErrors struct { // Code: [Output Only] The error type identifier for this error. Code string `json:"code,omitempty"` // ErrorDetails: [Output Only] An optional list of messages that contain the // error details. There is a set of defined message types to use for providing // details.The syntax depends on the error code. For example, QuotaExceededInfo // will have details when the error code is QUOTA_EXCEEDED. ErrorDetails []*InstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails `json:"errorDetails,omitempty"` // Location: [Output Only] Indicates the field in the request that caused the // error. This property is optional. Location string `json:"location,omitempty"` // Message: [Output Only] An optional, human-readable error message. Message string `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:"-"` }
func (InstanceGroupManagerResizeRequestStatusErrorErrors) MarshalJSON ¶ added in v0.170.0
func (s InstanceGroupManagerResizeRequestStatusErrorErrors) MarshalJSON() ([]byte, error)
type InstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails struct { ErrorInfo *ErrorInfo `json:"errorInfo,omitempty"` Help *Help `json:"help,omitempty"` LocalizedMessage *LocalizedMessage `json:"localizedMessage,omitempty"` QuotaInfo *QuotaExceededInfo `json:"quotaInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "ErrorInfo") 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. "ErrorInfo") 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:"-"` }
func (InstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails) MarshalJSON ¶ added in v0.170.0
func (s InstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails) MarshalJSON() ([]byte, error)
type InstanceGroupManagerResizeRequestStatusLastAttempt ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestStatusLastAttempt struct { // Error: Errors that prevented the ResizeRequest to be fulfilled. Error *InstanceGroupManagerResizeRequestStatusLastAttemptError `json:"error,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:"-"` }
func (InstanceGroupManagerResizeRequestStatusLastAttempt) MarshalJSON ¶ added in v0.170.0
func (s InstanceGroupManagerResizeRequestStatusLastAttempt) MarshalJSON() ([]byte, error)
type InstanceGroupManagerResizeRequestStatusLastAttemptError ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestStatusLastAttemptError struct { // Errors: [Output Only] The array of errors encountered while processing this // operation. Errors []*InstanceGroupManagerResizeRequestStatusLastAttemptErrorErrors `json:"errors,omitempty"` // ForceSendFields is a list of field names (e.g. "Errors") 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. "Errors") 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:"-"` }
InstanceGroupManagerResizeRequestStatusLastAttemptError: Errors that prevented the ResizeRequest to be fulfilled.
func (InstanceGroupManagerResizeRequestStatusLastAttemptError) MarshalJSON ¶ added in v0.170.0
func (s InstanceGroupManagerResizeRequestStatusLastAttemptError) MarshalJSON() ([]byte, error)
type InstanceGroupManagerResizeRequestStatusLastAttemptErrorErrors ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestStatusLastAttemptErrorErrors struct { // Code: [Output Only] The error type identifier for this error. Code string `json:"code,omitempty"` // ErrorDetails: [Output Only] An optional list of messages that contain the // error details. There is a set of defined message types to use for providing // details.The syntax depends on the error code. For example, QuotaExceededInfo // will have details when the error code is QUOTA_EXCEEDED. ErrorDetails []*InstanceGroupManagerResizeRequestStatusLastAttemptErrorErrorsErrorDetails `json:"errorDetails,omitempty"` // Location: [Output Only] Indicates the field in the request that caused the // error. This property is optional. Location string `json:"location,omitempty"` // Message: [Output Only] An optional, human-readable error message. Message string `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:"-"` }
func (InstanceGroupManagerResizeRequestStatusLastAttemptErrorErrors) MarshalJSON ¶ added in v0.170.0
func (s InstanceGroupManagerResizeRequestStatusLastAttemptErrorErrors) MarshalJSON() ([]byte, error)
type InstanceGroupManagerResizeRequestStatusLastAttemptErrorErrorsErrorDetails ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestStatusLastAttemptErrorErrorsErrorDetails struct { ErrorInfo *ErrorInfo `json:"errorInfo,omitempty"` Help *Help `json:"help,omitempty"` LocalizedMessage *LocalizedMessage `json:"localizedMessage,omitempty"` QuotaInfo *QuotaExceededInfo `json:"quotaInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "ErrorInfo") 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. "ErrorInfo") 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:"-"` }
func (InstanceGroupManagerResizeRequestStatusLastAttemptErrorErrorsErrorDetails) MarshalJSON ¶ added in v0.170.0
func (s InstanceGroupManagerResizeRequestStatusLastAttemptErrorErrorsErrorDetails) MarshalJSON() ([]byte, error)
type InstanceGroupManagerResizeRequestsCancelCall ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestsCancelCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagerResizeRequestsCancelCall) Context ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsCancelCall) Context(ctx context.Context) *InstanceGroupManagerResizeRequestsCancelCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagerResizeRequestsCancelCall) Do ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsCancelCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagerResizeRequests.cancel" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagerResizeRequestsCancelCall) Fields ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsCancelCall) Fields(s ...googleapi.Field) *InstanceGroupManagerResizeRequestsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagerResizeRequestsCancelCall) Header ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsCancelCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagerResizeRequestsCancelCall) RequestId ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsCancelCall) RequestId(requestId string) *InstanceGroupManagerResizeRequestsCancelCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupManagerResizeRequestsDeleteCall ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestsDeleteCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagerResizeRequestsDeleteCall) Context ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsDeleteCall) Context(ctx context.Context) *InstanceGroupManagerResizeRequestsDeleteCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagerResizeRequestsDeleteCall) Do ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagerResizeRequests.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagerResizeRequestsDeleteCall) Fields ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsDeleteCall) Fields(s ...googleapi.Field) *InstanceGroupManagerResizeRequestsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagerResizeRequestsDeleteCall) Header ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagerResizeRequestsDeleteCall) RequestId ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsDeleteCall) RequestId(requestId string) *InstanceGroupManagerResizeRequestsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupManagerResizeRequestsGetCall ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestsGetCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagerResizeRequestsGetCall) Context ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsGetCall) Context(ctx context.Context) *InstanceGroupManagerResizeRequestsGetCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagerResizeRequestsGetCall) Do ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagerResizeRequest, error)
Do executes the "compute.instanceGroupManagerResizeRequests.get" call. Any non-2xx status code is an error. Response headers are in either *InstanceGroupManagerResizeRequest.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagerResizeRequestsGetCall) Fields ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsGetCall) Fields(s ...googleapi.Field) *InstanceGroupManagerResizeRequestsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagerResizeRequestsGetCall) Header ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagerResizeRequestsGetCall) IfNoneMatch ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsGetCall) IfNoneMatch(entityTag string) *InstanceGroupManagerResizeRequestsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InstanceGroupManagerResizeRequestsInsertCall ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestsInsertCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagerResizeRequestsInsertCall) Context ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsInsertCall) Context(ctx context.Context) *InstanceGroupManagerResizeRequestsInsertCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagerResizeRequestsInsertCall) Do ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagerResizeRequests.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagerResizeRequestsInsertCall) Fields ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsInsertCall) Fields(s ...googleapi.Field) *InstanceGroupManagerResizeRequestsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagerResizeRequestsInsertCall) Header ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagerResizeRequestsInsertCall) RequestId ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsInsertCall) RequestId(requestId string) *InstanceGroupManagerResizeRequestsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupManagerResizeRequestsListCall ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestsListCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagerResizeRequestsListCall) Context ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsListCall) Context(ctx context.Context) *InstanceGroupManagerResizeRequestsListCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagerResizeRequestsListCall) Do ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsListCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagerResizeRequestsListResponse, error)
Do executes the "compute.instanceGroupManagerResizeRequests.list" call. Any non-2xx status code is an error. Response headers are in either *InstanceGroupManagerResizeRequestsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagerResizeRequestsListCall) Fields ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsListCall) Fields(s ...googleapi.Field) *InstanceGroupManagerResizeRequestsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagerResizeRequestsListCall) Filter ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsListCall) Filter(filter string) *InstanceGroupManagerResizeRequestsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstanceGroupManagerResizeRequestsListCall) Header ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagerResizeRequestsListCall) IfNoneMatch ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsListCall) IfNoneMatch(entityTag string) *InstanceGroupManagerResizeRequestsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstanceGroupManagerResizeRequestsListCall) MaxResults ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsListCall) MaxResults(maxResults int64) *InstanceGroupManagerResizeRequestsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstanceGroupManagerResizeRequestsListCall) OrderBy ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsListCall) OrderBy(orderBy string) *InstanceGroupManagerResizeRequestsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstanceGroupManagerResizeRequestsListCall) PageToken ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsListCall) PageToken(pageToken string) *InstanceGroupManagerResizeRequestsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstanceGroupManagerResizeRequestsListCall) Pages ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsListCall) Pages(ctx context.Context, f func(*InstanceGroupManagerResizeRequestsListResponse) 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 (*InstanceGroupManagerResizeRequestsListCall) ReturnPartialSuccess ¶ added in v0.170.0
func (c *InstanceGroupManagerResizeRequestsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupManagerResizeRequestsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type InstanceGroupManagerResizeRequestsListResponse ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestsListResponse struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of resize request resources. Items []*InstanceGroupManagerResizeRequest `json:"items,omitempty"` // Kind: [Output Only] Type of the resource. Always // compute#instanceGroupManagerResizeRequestList for a list of resize requests. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InstanceGroupManagerResizeRequestsListResponseWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
InstanceGroupManagerResizeRequestsListResponse: [Output Only] A list of resize requests.
func (InstanceGroupManagerResizeRequestsListResponse) MarshalJSON ¶ added in v0.170.0
func (s InstanceGroupManagerResizeRequestsListResponse) MarshalJSON() ([]byte, error)
type InstanceGroupManagerResizeRequestsListResponseWarning ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestsListResponseWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstanceGroupManagerResizeRequestsListResponseWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstanceGroupManagerResizeRequestsListResponseWarning: [Output Only] Informational warning message.
func (InstanceGroupManagerResizeRequestsListResponseWarning) MarshalJSON ¶ added in v0.170.0
func (s InstanceGroupManagerResizeRequestsListResponseWarning) MarshalJSON() ([]byte, error)
type InstanceGroupManagerResizeRequestsListResponseWarningData ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestsListResponseWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstanceGroupManagerResizeRequestsListResponseWarningData) MarshalJSON ¶ added in v0.170.0
func (s InstanceGroupManagerResizeRequestsListResponseWarningData) MarshalJSON() ([]byte, error)
type InstanceGroupManagerResizeRequestsService ¶ added in v0.170.0
type InstanceGroupManagerResizeRequestsService struct {
// contains filtered or unexported fields
}
func NewInstanceGroupManagerResizeRequestsService ¶ added in v0.170.0
func NewInstanceGroupManagerResizeRequestsService(s *Service) *InstanceGroupManagerResizeRequestsService
func (*InstanceGroupManagerResizeRequestsService) Cancel ¶ added in v0.170.0
func (r *InstanceGroupManagerResizeRequestsService) Cancel(project string, zone string, instanceGroupManager string, resizeRequest string) *InstanceGroupManagerResizeRequestsCancelCall
Cancel: Cancels the specified resize request and removes it from the queue. Cancelled resize request does no longer wait for the resources to be provisioned. Cancel is only possible for requests that are accepted in the queue.
- instanceGroupManager: The name of the managed instance group. The name should conform to RFC1035 or be a resource ID.
- project: Project ID for this request.
- resizeRequest: The name of the resize request to cancel. The name should conform to RFC1035 or be a resource ID.
- zone: The name of the zone where the managed instance group is located. The name should conform to RFC1035.
func (*InstanceGroupManagerResizeRequestsService) Delete ¶ added in v0.170.0
func (r *InstanceGroupManagerResizeRequestsService) Delete(project string, zone string, instanceGroupManager string, resizeRequest string) *InstanceGroupManagerResizeRequestsDeleteCall
Delete: Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously.
- instanceGroupManager: The name of the managed instance group. The name should conform to RFC1035 or be a resource ID.
- project: Project ID for this request.
- resizeRequest: The name of the resize request to delete. The name should conform to RFC1035 or be a resource ID.
- zone: The name of the zone where the managed instance group is located. The name should conform to RFC1035.
func (*InstanceGroupManagerResizeRequestsService) Get ¶ added in v0.170.0
func (r *InstanceGroupManagerResizeRequestsService) Get(project string, zone string, instanceGroupManager string, resizeRequest string) *InstanceGroupManagerResizeRequestsGetCall
Get: Returns all of the details about the specified resize request.
- instanceGroupManager: The name of the managed instance group. Name should conform to RFC1035 or be a resource ID.
- project: Project ID for this request.
- resizeRequest: The name of the resize request. Name should conform to RFC1035 or be a resource ID.
- zone: Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name should conform to RFC1035.
func (*InstanceGroupManagerResizeRequestsService) Insert ¶ added in v0.170.0
func (r *InstanceGroupManagerResizeRequestsService) Insert(project string, zone string, instanceGroupManager string, instancegroupmanagerresizerequest *InstanceGroupManagerResizeRequest) *InstanceGroupManagerResizeRequestsInsertCall
Insert: Creates a new resize request that starts provisioning VMs immediately or queues VM creation.
- instanceGroupManager: The name of the managed instance group to which the resize request will be added. Name should conform to RFC1035 or be a resource ID.
- project: Project ID for this request.
- zone: The name of the zone where the managed instance group is located and where the resize request will be created. Name should conform to RFC1035.
func (*InstanceGroupManagerResizeRequestsService) List ¶ added in v0.170.0
func (r *InstanceGroupManagerResizeRequestsService) List(project string, zone string, instanceGroupManager string) *InstanceGroupManagerResizeRequestsListCall
List: Retrieves a list of resize requests that are contained in the managed instance group.
- instanceGroupManager: The name of the managed instance group. The name should conform to RFC1035.
- project: Project ID for this request.
- zone: The name of the zone where the managed instance group is located. The name should conform to RFC1035.
type InstanceGroupManagerStatus ¶ added in v0.2.0
type InstanceGroupManagerStatus struct { // AllInstancesConfig: [Output only] Status of all-instances configuration on // the group. AllInstancesConfig *InstanceGroupManagerStatusAllInstancesConfig `json:"allInstancesConfig,omitempty"` // Autoscaler: [Output Only] The URL of the Autoscaler that targets this // instance group manager. Autoscaler string `json:"autoscaler,omitempty"` // IsStable: [Output Only] A bit indicating whether the managed instance group // is in a stable state. A stable state means that: none of the instances in // the managed instance group is currently undergoing any type of change (for // example, creation, restart, or deletion); no future changes are scheduled // for instances in the managed instance group; and the managed instance group // itself is not being modified. IsStable bool `json:"isStable,omitempty"` // Stateful: [Output Only] Stateful status of the given Instance Group Manager. Stateful *InstanceGroupManagerStatusStateful `json:"stateful,omitempty"` // VersionTarget: [Output Only] A status of consistency of Instances' versions // with their target version specified by version field on Instance Group // Manager. VersionTarget *InstanceGroupManagerStatusVersionTarget `json:"versionTarget,omitempty"` // ForceSendFields is a list of field names (e.g. "AllInstancesConfig") 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. "AllInstancesConfig") 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:"-"` }
func (InstanceGroupManagerStatus) MarshalJSON ¶ added in v0.2.0
func (s InstanceGroupManagerStatus) MarshalJSON() ([]byte, error)
type InstanceGroupManagerStatusAllInstancesConfig ¶ added in v0.163.0
type InstanceGroupManagerStatusAllInstancesConfig struct { // CurrentRevision: [Output Only] Current all-instances configuration revision. // This value is in RFC3339 text format. CurrentRevision string `json:"currentRevision,omitempty"` // Effective: [Output Only] A bit indicating whether this configuration has // been applied to all managed instances in the group. Effective bool `json:"effective,omitempty"` // ForceSendFields is a list of field names (e.g. "CurrentRevision") 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. "CurrentRevision") 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:"-"` }
func (InstanceGroupManagerStatusAllInstancesConfig) MarshalJSON ¶ added in v0.163.0
func (s InstanceGroupManagerStatusAllInstancesConfig) MarshalJSON() ([]byte, error)
type InstanceGroupManagerStatusStateful ¶ added in v0.31.0
type InstanceGroupManagerStatusStateful struct { // HasStatefulConfig: [Output Only] A bit indicating whether the managed // instance group has stateful configuration, that is, if you have configured // any items in a stateful policy or in per-instance configs. The group might // report that it has no stateful configuration even when there is still some // preserved state on a managed instance, for example, if you have deleted all // PICs but not yet applied those deletions. HasStatefulConfig bool `json:"hasStatefulConfig,omitempty"` // PerInstanceConfigs: [Output Only] Status of per-instance configurations on // the instances. PerInstanceConfigs *InstanceGroupManagerStatusStatefulPerInstanceConfigs `json:"perInstanceConfigs,omitempty"` // ForceSendFields is a list of field names (e.g. "HasStatefulConfig") 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. "HasStatefulConfig") 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:"-"` }
func (InstanceGroupManagerStatusStateful) MarshalJSON ¶ added in v0.31.0
func (s InstanceGroupManagerStatusStateful) MarshalJSON() ([]byte, error)
type InstanceGroupManagerStatusStatefulPerInstanceConfigs ¶ added in v0.31.0
type InstanceGroupManagerStatusStatefulPerInstanceConfigs struct { // AllEffective: A bit indicating if all of the group's per-instance // configurations (listed in the output of a listPerInstanceConfigs API call) // have status EFFECTIVE or there are no per-instance-configs. AllEffective bool `json:"allEffective,omitempty"` // ForceSendFields is a list of field names (e.g. "AllEffective") 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. "AllEffective") 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:"-"` }
func (InstanceGroupManagerStatusStatefulPerInstanceConfigs) MarshalJSON ¶ added in v0.31.0
func (s InstanceGroupManagerStatusStatefulPerInstanceConfigs) MarshalJSON() ([]byte, error)
type InstanceGroupManagerStatusVersionTarget ¶ added in v0.16.0
type InstanceGroupManagerStatusVersionTarget struct { // IsReached: [Output Only] A bit indicating whether version target has been // reached in this managed instance group, i.e. all instances are in their // target version. Instances' target version are specified by version field on // Instance Group Manager. IsReached bool `json:"isReached,omitempty"` // ForceSendFields is a list of field names (e.g. "IsReached") 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. "IsReached") 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:"-"` }
func (InstanceGroupManagerStatusVersionTarget) MarshalJSON ¶ added in v0.16.0
func (s InstanceGroupManagerStatusVersionTarget) MarshalJSON() ([]byte, error)
type InstanceGroupManagerUpdatePolicy ¶ added in v0.2.0
type InstanceGroupManagerUpdatePolicy struct { // InstanceRedistributionType: The instance redistribution policy for regional // managed instance groups. Valid values are: - PROACTIVE (default): The group // attempts to maintain an even distribution of VM instances across zones in // the region. - NONE: For non-autoscaled groups, proactive redistribution is // disabled. // // Possible values: // "NONE" - No action is being proactively performed in order to bring this // IGM to its target instance distribution. // "PROACTIVE" - This IGM will actively converge to its target instance // distribution. InstanceRedistributionType string `json:"instanceRedistributionType,omitempty"` // MaxSurge: The maximum number of instances that can be created above the // specified targetSize during the update process. This value can be either a // fixed number or, if the group has 10 or more instances, a percentage. If you // set a percentage, the number of instances is rounded if necessary. The // default value for maxSurge is a fixed value equal to the number of zones in // which the managed instance group operates. At least one of either maxSurge // or maxUnavailable must be greater than 0. Learn more about maxSurge. MaxSurge *FixedOrPercent `json:"maxSurge,omitempty"` // during the update process. An instance is considered available if all of the // following conditions are satisfied: - The instance's status is RUNNING. - If // there is a health check on the instance group, the instance's health check // status must be HEALTHY at least once. If there is no health check on the // group, then the instance only needs to have a status of RUNNING to be // considered available. This value can be either a fixed number or, if the // group has 10 or more instances, a percentage. If you set a percentage, the // number of instances is rounded if necessary. The default value for // maxUnavailable is a fixed value equal to the number of zones in which the // managed instance group operates. At least one of either maxSurge or // maxUnavailable must be greater than 0. Learn more about maxUnavailable. MaxUnavailable *FixedOrPercent `json:"maxUnavailable,omitempty"` // MinimalAction: Minimal action to be taken on an instance. Use this option to // minimize disruption as much as possible or to apply a more disruptive action // than is necessary. - To limit disruption as much as possible, set the // minimal action to REFRESH. If your update requires a more disruptive action, // Compute Engine performs the necessary action to execute the update. - To // apply a more disruptive action than is strictly necessary, set the minimal // action to RESTART or REPLACE. For example, Compute Engine does not need to // restart a VM to change its metadata. But if your application reads instance // metadata only when a VM is restarted, you can set the minimal action to // RESTART in order to pick up metadata changes. // // Possible values: // "NONE" - Do not perform any action. // "REFRESH" - Do not stop the instance. // "REPLACE" - (Default.) Replace the instance according to the replacement // method option. // "RESTART" - Stop the instance and start it again. MinimalAction string `json:"minimalAction,omitempty"` // MostDisruptiveAllowedAction: Most disruptive action that is allowed to be // taken on an instance. You can specify either NONE to forbid any actions, // REFRESH to avoid restarting the VM and to limit disruption as much as // possible. RESTART to allow actions that can be applied without instance // replacing or REPLACE to allow all possible actions. If the Updater // determines that the minimal update action needed is more disruptive than // most disruptive allowed action you specify it will not perform the update at // all. // // Possible values: // "NONE" - Do not perform any action. // "REFRESH" - Do not stop the instance. // "REPLACE" - (Default.) Replace the instance according to the replacement // method option. // "RESTART" - Stop the instance and start it again. MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` // ReplacementMethod: What action should be used to replace instances. See // minimal_action.REPLACE // // Possible values: // "RECREATE" - Instances will be recreated (with the same name) // "SUBSTITUTE" - Default option: instances will be deleted and created (with // a new name) ReplacementMethod string `json:"replacementMethod,omitempty"` // Type: The type of update process. You can specify either PROACTIVE so that // the MIG automatically updates VMs to the latest configurations or // OPPORTUNISTIC so that you can select the VMs that you want to update. // // Possible values: // "OPPORTUNISTIC" - MIG will apply new configurations to existing VMs only // when you selectively target specific or all VMs to be updated. // "PROACTIVE" - MIG will automatically apply new configurations to all or a // subset of existing VMs and also to new VMs that are added to the group. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceRedistributionType") // 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. "InstanceRedistributionType") 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:"-"` }
func (InstanceGroupManagerUpdatePolicy) MarshalJSON ¶ added in v0.2.0
func (s InstanceGroupManagerUpdatePolicy) MarshalJSON() ([]byte, error)
type InstanceGroupManagerVersion ¶ added in v0.2.0
type InstanceGroupManagerVersion struct { // InstanceTemplate: The URL of the instance template that is specified for // this managed instance group. The group uses this template to create new // instances in the managed instance group until the `targetSize` for this // version is reached. The templates for existing instances in the group do not // change unless you run recreateInstances, run applyUpdatesToInstances, or set // the group's updatePolicy.type to PROACTIVE; in those cases, existing // instances are updated until the `targetSize` for this version is reached. InstanceTemplate string `json:"instanceTemplate,omitempty"` // Name: Name of the version. Unique among all versions in the scope of this // managed instance group. Name string `json:"name,omitempty"` // TargetSize: Specifies the intended number of instances to be created from // the instanceTemplate. The final number of instances created from the // template will be equal to: - If expressed as a fixed number, the minimum of // either targetSize.fixed or instanceGroupManager.targetSize is used. - if // expressed as a percent, the targetSize would be (targetSize.percent/100 * // InstanceGroupManager.targetSize) If there is a remainder, the number is // rounded. If unset, this version will update any remaining instances not // updated by another version. Read Starting a canary update for more // information. TargetSize *FixedOrPercent `json:"targetSize,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceTemplate") 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. "InstanceTemplate") 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:"-"` }
func (InstanceGroupManagerVersion) MarshalJSON ¶ added in v0.2.0
func (s InstanceGroupManagerVersion) MarshalJSON() ([]byte, error)
type InstanceGroupManagersAbandonInstancesCall ¶
type InstanceGroupManagersAbandonInstancesCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersAbandonInstancesCall) Context ¶
func (c *InstanceGroupManagersAbandonInstancesCall) Context(ctx context.Context) *InstanceGroupManagersAbandonInstancesCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersAbandonInstancesCall) Do ¶
func (c *InstanceGroupManagersAbandonInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.abandonInstances" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersAbandonInstancesCall) Fields ¶
func (c *InstanceGroupManagersAbandonInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersAbandonInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersAbandonInstancesCall) Header ¶
func (c *InstanceGroupManagersAbandonInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersAbandonInstancesCall) RequestId ¶
func (c *InstanceGroupManagersAbandonInstancesCall) RequestId(requestId string) *InstanceGroupManagersAbandonInstancesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupManagersAbandonInstancesRequest ¶
type InstanceGroupManagersAbandonInstancesRequest struct { // Instances: The URLs of one or more instances to abandon. This can be a full // URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Instances []string `json:"instances,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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:"-"` }
func (InstanceGroupManagersAbandonInstancesRequest) MarshalJSON ¶
func (s InstanceGroupManagersAbandonInstancesRequest) MarshalJSON() ([]byte, error)
type InstanceGroupManagersAggregatedListCall ¶
type InstanceGroupManagersAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersAggregatedListCall) Context ¶
func (c *InstanceGroupManagersAggregatedListCall) Context(ctx context.Context) *InstanceGroupManagersAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersAggregatedListCall) Do ¶
func (c *InstanceGroupManagersAggregatedListCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagerAggregatedList, error)
Do executes the "compute.instanceGroupManagers.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *InstanceGroupManagerAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersAggregatedListCall) Fields ¶
func (c *InstanceGroupManagersAggregatedListCall) Fields(s ...googleapi.Field) *InstanceGroupManagersAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersAggregatedListCall) Filter ¶
func (c *InstanceGroupManagersAggregatedListCall) Filter(filter string) *InstanceGroupManagersAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstanceGroupManagersAggregatedListCall) Header ¶
func (c *InstanceGroupManagersAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersAggregatedListCall) IfNoneMatch ¶
func (c *InstanceGroupManagersAggregatedListCall) IfNoneMatch(entityTag string) *InstanceGroupManagersAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstanceGroupManagersAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *InstanceGroupManagersAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *InstanceGroupManagersAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*InstanceGroupManagersAggregatedListCall) MaxResults ¶
func (c *InstanceGroupManagersAggregatedListCall) MaxResults(maxResults int64) *InstanceGroupManagersAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstanceGroupManagersAggregatedListCall) OrderBy ¶
func (c *InstanceGroupManagersAggregatedListCall) OrderBy(orderBy string) *InstanceGroupManagersAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstanceGroupManagersAggregatedListCall) PageToken ¶
func (c *InstanceGroupManagersAggregatedListCall) PageToken(pageToken string) *InstanceGroupManagersAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstanceGroupManagersAggregatedListCall) Pages ¶
func (c *InstanceGroupManagersAggregatedListCall) Pages(ctx context.Context, f func(*InstanceGroupManagerAggregatedList) 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 (*InstanceGroupManagersAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InstanceGroupManagersAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupManagersAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*InstanceGroupManagersAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *InstanceGroupManagersAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *InstanceGroupManagersAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type InstanceGroupManagersApplyUpdatesRequest ¶ added in v0.18.0
type InstanceGroupManagersApplyUpdatesRequest struct { // AllInstances: Flag to update all instances instead of specified list of // “instances”. If the flag is set to true then the instances may not be // specified in the request. AllInstances bool `json:"allInstances,omitempty"` // Instances: The list of URLs of one or more instances for which you want to // apply updates. Each URL can be a full URL or a partial URL, such as // zones/[ZONE]/instances/[INSTANCE_NAME]. Instances []string `json:"instances,omitempty"` // MinimalAction: The minimal action that you want to perform on each instance // during the update: - REPLACE: At minimum, delete the instance and create it // again. - RESTART: Stop the instance and start it again. - REFRESH: Do not // stop the instance and limit disruption as much as possible. - NONE: Do not // disrupt the instance at all. By default, the minimum action is NONE. If your // update requires a more disruptive action than you set with this flag, the // necessary action is performed to execute the update. // // Possible values: // "NONE" - Do not perform any action. // "REFRESH" - Do not stop the instance. // "REPLACE" - (Default.) Replace the instance according to the replacement // method option. // "RESTART" - Stop the instance and start it again. MinimalAction string `json:"minimalAction,omitempty"` // MostDisruptiveAllowedAction: The most disruptive action that you want to // perform on each instance during the update: - REPLACE: Delete the instance // and create it again. - RESTART: Stop the instance and start it again. - // REFRESH: Do not stop the instance and limit disruption as much as possible. // - NONE: Do not disrupt the instance at all. By default, the most disruptive // allowed action is REPLACE. If your update requires a more disruptive action // than you set with this flag, the update request will fail. // // Possible values: // "NONE" - Do not perform any action. // "REFRESH" - Do not stop the instance. // "REPLACE" - (Default.) Replace the instance according to the replacement // method option. // "RESTART" - Stop the instance and start it again. MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` // ForceSendFields is a list of field names (e.g. "AllInstances") 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. "AllInstances") 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:"-"` }
InstanceGroupManagersApplyUpdatesRequest: InstanceGroupManagers.applyUpdatesToInstances
func (InstanceGroupManagersApplyUpdatesRequest) MarshalJSON ¶ added in v0.18.0
func (s InstanceGroupManagersApplyUpdatesRequest) MarshalJSON() ([]byte, error)
type InstanceGroupManagersApplyUpdatesToInstancesCall ¶ added in v0.18.0
type InstanceGroupManagersApplyUpdatesToInstancesCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersApplyUpdatesToInstancesCall) Context ¶ added in v0.18.0
func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) Context(ctx context.Context) *InstanceGroupManagersApplyUpdatesToInstancesCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersApplyUpdatesToInstancesCall) Do ¶ added in v0.18.0
func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.applyUpdatesToInstances" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersApplyUpdatesToInstancesCall) Fields ¶ added in v0.18.0
func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersApplyUpdatesToInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersApplyUpdatesToInstancesCall) Header ¶ added in v0.18.0
func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type InstanceGroupManagersCreateInstancesCall ¶ added in v0.16.0
type InstanceGroupManagersCreateInstancesCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersCreateInstancesCall) Context ¶ added in v0.16.0
func (c *InstanceGroupManagersCreateInstancesCall) Context(ctx context.Context) *InstanceGroupManagersCreateInstancesCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersCreateInstancesCall) Do ¶ added in v0.16.0
func (c *InstanceGroupManagersCreateInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.createInstances" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersCreateInstancesCall) Fields ¶ added in v0.16.0
func (c *InstanceGroupManagersCreateInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersCreateInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersCreateInstancesCall) Header ¶ added in v0.16.0
func (c *InstanceGroupManagersCreateInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersCreateInstancesCall) RequestId ¶ added in v0.16.0
func (c *InstanceGroupManagersCreateInstancesCall) RequestId(requestId string) *InstanceGroupManagersCreateInstancesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupManagersCreateInstancesRequest ¶ added in v0.16.0
type InstanceGroupManagersCreateInstancesRequest struct { // Instances: [Required] List of specifications of per-instance configs. Instances []*PerInstanceConfig `json:"instances,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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:"-"` }
InstanceGroupManagersCreateInstancesRequest: InstanceGroupManagers.createInstances
func (InstanceGroupManagersCreateInstancesRequest) MarshalJSON ¶ added in v0.16.0
func (s InstanceGroupManagersCreateInstancesRequest) MarshalJSON() ([]byte, error)
type InstanceGroupManagersDeleteCall ¶
type InstanceGroupManagersDeleteCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersDeleteCall) Context ¶
func (c *InstanceGroupManagersDeleteCall) Context(ctx context.Context) *InstanceGroupManagersDeleteCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersDeleteCall) Do ¶
func (c *InstanceGroupManagersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersDeleteCall) Fields ¶
func (c *InstanceGroupManagersDeleteCall) Fields(s ...googleapi.Field) *InstanceGroupManagersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersDeleteCall) Header ¶
func (c *InstanceGroupManagersDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersDeleteCall) RequestId ¶
func (c *InstanceGroupManagersDeleteCall) RequestId(requestId string) *InstanceGroupManagersDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupManagersDeleteInstancesCall ¶
type InstanceGroupManagersDeleteInstancesCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersDeleteInstancesCall) Context ¶
func (c *InstanceGroupManagersDeleteInstancesCall) Context(ctx context.Context) *InstanceGroupManagersDeleteInstancesCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersDeleteInstancesCall) Do ¶
func (c *InstanceGroupManagersDeleteInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.deleteInstances" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersDeleteInstancesCall) Fields ¶
func (c *InstanceGroupManagersDeleteInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersDeleteInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersDeleteInstancesCall) Header ¶
func (c *InstanceGroupManagersDeleteInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersDeleteInstancesCall) RequestId ¶
func (c *InstanceGroupManagersDeleteInstancesCall) RequestId(requestId string) *InstanceGroupManagersDeleteInstancesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupManagersDeleteInstancesRequest ¶
type InstanceGroupManagersDeleteInstancesRequest struct { // Instances: The URLs of one or more instances to delete. This can be a full // URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Queued // instances do not have URL and can be deleted only by name. One cannot // specify both URLs and names in a single request. Instances []string `json:"instances,omitempty"` // SkipInstancesOnValidationError: Specifies whether the request should proceed // despite the inclusion of instances that are not members of the group or that // are already in the process of being deleted or abandoned. If this field is // set to `false` and such an instance is specified in the request, the // operation fails. The operation always fails if the request contains a // malformed instance URL or a reference to an instance that exists in a zone // or region other than the group's zone or region. SkipInstancesOnValidationError bool `json:"skipInstancesOnValidationError,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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:"-"` }
func (InstanceGroupManagersDeleteInstancesRequest) MarshalJSON ¶
func (s InstanceGroupManagersDeleteInstancesRequest) MarshalJSON() ([]byte, error)
type InstanceGroupManagersDeletePerInstanceConfigsCall ¶ added in v0.31.0
type InstanceGroupManagersDeletePerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersDeletePerInstanceConfigsCall) Context ¶ added in v0.31.0
func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) Context(ctx context.Context) *InstanceGroupManagersDeletePerInstanceConfigsCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersDeletePerInstanceConfigsCall) Do ¶ added in v0.31.0
func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.deletePerInstanceConfigs" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersDeletePerInstanceConfigsCall) Fields ¶ added in v0.31.0
func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersDeletePerInstanceConfigsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersDeletePerInstanceConfigsCall) Header ¶ added in v0.31.0
func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type InstanceGroupManagersDeletePerInstanceConfigsReq ¶ added in v0.31.0
type InstanceGroupManagersDeletePerInstanceConfigsReq struct { // Names: The list of instance names for which we want to delete per-instance // configs on this managed instance group. Names []string `json:"names,omitempty"` // ForceSendFields is a list of field names (e.g. "Names") 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. "Names") 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:"-"` }
InstanceGroupManagersDeletePerInstanceConfigsReq: InstanceGroupManagers.deletePerInstanceConfigs
func (InstanceGroupManagersDeletePerInstanceConfigsReq) MarshalJSON ¶ added in v0.31.0
func (s InstanceGroupManagersDeletePerInstanceConfigsReq) MarshalJSON() ([]byte, error)
type InstanceGroupManagersGetCall ¶
type InstanceGroupManagersGetCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersGetCall) Context ¶
func (c *InstanceGroupManagersGetCall) Context(ctx context.Context) *InstanceGroupManagersGetCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersGetCall) Do ¶
func (c *InstanceGroupManagersGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManager, error)
Do executes the "compute.instanceGroupManagers.get" call. Any non-2xx status code is an error. Response headers are in either *InstanceGroupManager.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersGetCall) Fields ¶
func (c *InstanceGroupManagersGetCall) Fields(s ...googleapi.Field) *InstanceGroupManagersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersGetCall) Header ¶
func (c *InstanceGroupManagersGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersGetCall) IfNoneMatch ¶
func (c *InstanceGroupManagersGetCall) IfNoneMatch(entityTag string) *InstanceGroupManagersGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InstanceGroupManagersInsertCall ¶
type InstanceGroupManagersInsertCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersInsertCall) Context ¶
func (c *InstanceGroupManagersInsertCall) Context(ctx context.Context) *InstanceGroupManagersInsertCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersInsertCall) Do ¶
func (c *InstanceGroupManagersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersInsertCall) Fields ¶
func (c *InstanceGroupManagersInsertCall) Fields(s ...googleapi.Field) *InstanceGroupManagersInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersInsertCall) Header ¶
func (c *InstanceGroupManagersInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersInsertCall) RequestId ¶
func (c *InstanceGroupManagersInsertCall) RequestId(requestId string) *InstanceGroupManagersInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupManagersListCall ¶
type InstanceGroupManagersListCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersListCall) Context ¶
func (c *InstanceGroupManagersListCall) Context(ctx context.Context) *InstanceGroupManagersListCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersListCall) Do ¶
func (c *InstanceGroupManagersListCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagerList, error)
Do executes the "compute.instanceGroupManagers.list" call. Any non-2xx status code is an error. Response headers are in either *InstanceGroupManagerList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersListCall) Fields ¶
func (c *InstanceGroupManagersListCall) Fields(s ...googleapi.Field) *InstanceGroupManagersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersListCall) Filter ¶
func (c *InstanceGroupManagersListCall) Filter(filter string) *InstanceGroupManagersListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstanceGroupManagersListCall) Header ¶
func (c *InstanceGroupManagersListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersListCall) IfNoneMatch ¶
func (c *InstanceGroupManagersListCall) IfNoneMatch(entityTag string) *InstanceGroupManagersListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstanceGroupManagersListCall) MaxResults ¶
func (c *InstanceGroupManagersListCall) MaxResults(maxResults int64) *InstanceGroupManagersListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstanceGroupManagersListCall) OrderBy ¶
func (c *InstanceGroupManagersListCall) OrderBy(orderBy string) *InstanceGroupManagersListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstanceGroupManagersListCall) PageToken ¶
func (c *InstanceGroupManagersListCall) PageToken(pageToken string) *InstanceGroupManagersListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstanceGroupManagersListCall) Pages ¶
func (c *InstanceGroupManagersListCall) Pages(ctx context.Context, f func(*InstanceGroupManagerList) 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 (*InstanceGroupManagersListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InstanceGroupManagersListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupManagersListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type InstanceGroupManagersListErrorsCall ¶ added in v0.21.0
type InstanceGroupManagersListErrorsCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersListErrorsCall) Context ¶ added in v0.21.0
func (c *InstanceGroupManagersListErrorsCall) Context(ctx context.Context) *InstanceGroupManagersListErrorsCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersListErrorsCall) Do ¶ added in v0.21.0
func (c *InstanceGroupManagersListErrorsCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagersListErrorsResponse, error)
Do executes the "compute.instanceGroupManagers.listErrors" call. Any non-2xx status code is an error. Response headers are in either *InstanceGroupManagersListErrorsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersListErrorsCall) Fields ¶ added in v0.21.0
func (c *InstanceGroupManagersListErrorsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersListErrorsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersListErrorsCall) Filter ¶ added in v0.21.0
func (c *InstanceGroupManagersListErrorsCall) Filter(filter string) *InstanceGroupManagersListErrorsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstanceGroupManagersListErrorsCall) Header ¶ added in v0.21.0
func (c *InstanceGroupManagersListErrorsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersListErrorsCall) IfNoneMatch ¶ added in v0.21.0
func (c *InstanceGroupManagersListErrorsCall) IfNoneMatch(entityTag string) *InstanceGroupManagersListErrorsCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstanceGroupManagersListErrorsCall) MaxResults ¶ added in v0.21.0
func (c *InstanceGroupManagersListErrorsCall) MaxResults(maxResults int64) *InstanceGroupManagersListErrorsCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstanceGroupManagersListErrorsCall) OrderBy ¶ added in v0.21.0
func (c *InstanceGroupManagersListErrorsCall) OrderBy(orderBy string) *InstanceGroupManagersListErrorsCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstanceGroupManagersListErrorsCall) PageToken ¶ added in v0.21.0
func (c *InstanceGroupManagersListErrorsCall) PageToken(pageToken string) *InstanceGroupManagersListErrorsCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstanceGroupManagersListErrorsCall) Pages ¶ added in v0.21.0
func (c *InstanceGroupManagersListErrorsCall) Pages(ctx context.Context, f func(*InstanceGroupManagersListErrorsResponse) 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 (*InstanceGroupManagersListErrorsCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InstanceGroupManagersListErrorsCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupManagersListErrorsCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type InstanceGroupManagersListErrorsResponse ¶ added in v0.21.0
type InstanceGroupManagersListErrorsResponse struct { // Items: [Output Only] The list of errors of the managed instance group. Items []*InstanceManagedByIgmError `json:"items,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"` }
func (InstanceGroupManagersListErrorsResponse) MarshalJSON ¶ added in v0.21.0
func (s InstanceGroupManagersListErrorsResponse) MarshalJSON() ([]byte, error)
type InstanceGroupManagersListManagedInstancesCall ¶
type InstanceGroupManagersListManagedInstancesCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersListManagedInstancesCall) Context ¶
func (c *InstanceGroupManagersListManagedInstancesCall) Context(ctx context.Context) *InstanceGroupManagersListManagedInstancesCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersListManagedInstancesCall) Do ¶
func (c *InstanceGroupManagersListManagedInstancesCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagersListManagedInstancesResponse, error)
Do executes the "compute.instanceGroupManagers.listManagedInstances" call. Any non-2xx status code is an error. Response headers are in either *InstanceGroupManagersListManagedInstancesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersListManagedInstancesCall) Fields ¶
func (c *InstanceGroupManagersListManagedInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersListManagedInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersListManagedInstancesCall) Filter ¶
func (c *InstanceGroupManagersListManagedInstancesCall) Filter(filter string) *InstanceGroupManagersListManagedInstancesCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstanceGroupManagersListManagedInstancesCall) Header ¶
func (c *InstanceGroupManagersListManagedInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersListManagedInstancesCall) MaxResults ¶
func (c *InstanceGroupManagersListManagedInstancesCall) MaxResults(maxResults int64) *InstanceGroupManagersListManagedInstancesCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstanceGroupManagersListManagedInstancesCall) OrderBy ¶
func (c *InstanceGroupManagersListManagedInstancesCall) OrderBy(orderBy string) *InstanceGroupManagersListManagedInstancesCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstanceGroupManagersListManagedInstancesCall) PageToken ¶
func (c *InstanceGroupManagersListManagedInstancesCall) PageToken(pageToken string) *InstanceGroupManagersListManagedInstancesCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstanceGroupManagersListManagedInstancesCall) Pages ¶ added in v0.22.0
func (c *InstanceGroupManagersListManagedInstancesCall) Pages(ctx context.Context, f func(*InstanceGroupManagersListManagedInstancesResponse) 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 (*InstanceGroupManagersListManagedInstancesCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InstanceGroupManagersListManagedInstancesCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupManagersListManagedInstancesCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type InstanceGroupManagersListManagedInstancesResponse ¶
type InstanceGroupManagersListManagedInstancesResponse struct { // ManagedInstances: [Output Only] The list of instances in the managed // instance group. ManagedInstances []*ManagedInstance `json:"managedInstances,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ManagedInstances") 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. "ManagedInstances") 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:"-"` }
func (InstanceGroupManagersListManagedInstancesResponse) MarshalJSON ¶
func (s InstanceGroupManagersListManagedInstancesResponse) MarshalJSON() ([]byte, error)
type InstanceGroupManagersListPerInstanceConfigsCall ¶ added in v0.31.0
type InstanceGroupManagersListPerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersListPerInstanceConfigsCall) Context ¶ added in v0.31.0
func (c *InstanceGroupManagersListPerInstanceConfigsCall) Context(ctx context.Context) *InstanceGroupManagersListPerInstanceConfigsCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersListPerInstanceConfigsCall) Do ¶ added in v0.31.0
func (c *InstanceGroupManagersListPerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagersListPerInstanceConfigsResp, error)
Do executes the "compute.instanceGroupManagers.listPerInstanceConfigs" call. Any non-2xx status code is an error. Response headers are in either *InstanceGroupManagersListPerInstanceConfigsResp.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersListPerInstanceConfigsCall) Fields ¶ added in v0.31.0
func (c *InstanceGroupManagersListPerInstanceConfigsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersListPerInstanceConfigsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersListPerInstanceConfigsCall) Filter ¶ added in v0.31.0
func (c *InstanceGroupManagersListPerInstanceConfigsCall) Filter(filter string) *InstanceGroupManagersListPerInstanceConfigsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstanceGroupManagersListPerInstanceConfigsCall) Header ¶ added in v0.31.0
func (c *InstanceGroupManagersListPerInstanceConfigsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersListPerInstanceConfigsCall) MaxResults ¶ added in v0.31.0
func (c *InstanceGroupManagersListPerInstanceConfigsCall) MaxResults(maxResults int64) *InstanceGroupManagersListPerInstanceConfigsCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstanceGroupManagersListPerInstanceConfigsCall) OrderBy ¶ added in v0.31.0
func (c *InstanceGroupManagersListPerInstanceConfigsCall) OrderBy(orderBy string) *InstanceGroupManagersListPerInstanceConfigsCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstanceGroupManagersListPerInstanceConfigsCall) PageToken ¶ added in v0.31.0
func (c *InstanceGroupManagersListPerInstanceConfigsCall) PageToken(pageToken string) *InstanceGroupManagersListPerInstanceConfigsCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstanceGroupManagersListPerInstanceConfigsCall) Pages ¶ added in v0.31.0
func (c *InstanceGroupManagersListPerInstanceConfigsCall) Pages(ctx context.Context, f func(*InstanceGroupManagersListPerInstanceConfigsResp) 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 (*InstanceGroupManagersListPerInstanceConfigsCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InstanceGroupManagersListPerInstanceConfigsCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupManagersListPerInstanceConfigsCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type InstanceGroupManagersListPerInstanceConfigsResp ¶ added in v0.31.0
type InstanceGroupManagersListPerInstanceConfigsResp struct { // Items: [Output Only] The list of PerInstanceConfig. Items []*PerInstanceConfig `json:"items,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InstanceGroupManagersListPerInstanceConfigsRespWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"` }
func (InstanceGroupManagersListPerInstanceConfigsResp) MarshalJSON ¶ added in v0.31.0
func (s InstanceGroupManagersListPerInstanceConfigsResp) MarshalJSON() ([]byte, error)
type InstanceGroupManagersListPerInstanceConfigsRespWarning ¶ added in v0.31.0
type InstanceGroupManagersListPerInstanceConfigsRespWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstanceGroupManagersListPerInstanceConfigsRespWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstanceGroupManagersListPerInstanceConfigsRespWarning: [Output Only] Informational warning message.
func (InstanceGroupManagersListPerInstanceConfigsRespWarning) MarshalJSON ¶ added in v0.31.0
func (s InstanceGroupManagersListPerInstanceConfigsRespWarning) MarshalJSON() ([]byte, error)
type InstanceGroupManagersListPerInstanceConfigsRespWarningData ¶ added in v0.31.0
type InstanceGroupManagersListPerInstanceConfigsRespWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstanceGroupManagersListPerInstanceConfigsRespWarningData) MarshalJSON ¶ added in v0.31.0
func (s InstanceGroupManagersListPerInstanceConfigsRespWarningData) MarshalJSON() ([]byte, error)
type InstanceGroupManagersPatchCall ¶
type InstanceGroupManagersPatchCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersPatchCall) Context ¶
func (c *InstanceGroupManagersPatchCall) Context(ctx context.Context) *InstanceGroupManagersPatchCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersPatchCall) Do ¶
func (c *InstanceGroupManagersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersPatchCall) Fields ¶
func (c *InstanceGroupManagersPatchCall) Fields(s ...googleapi.Field) *InstanceGroupManagersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersPatchCall) Header ¶
func (c *InstanceGroupManagersPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersPatchCall) RequestId ¶
func (c *InstanceGroupManagersPatchCall) RequestId(requestId string) *InstanceGroupManagersPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupManagersPatchPerInstanceConfigsCall ¶ added in v0.31.0
type InstanceGroupManagersPatchPerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersPatchPerInstanceConfigsCall) Context ¶ added in v0.31.0
func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) Context(ctx context.Context) *InstanceGroupManagersPatchPerInstanceConfigsCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersPatchPerInstanceConfigsCall) Do ¶ added in v0.31.0
func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.patchPerInstanceConfigs" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersPatchPerInstanceConfigsCall) Fields ¶ added in v0.31.0
func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersPatchPerInstanceConfigsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersPatchPerInstanceConfigsCall) Header ¶ added in v0.31.0
func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersPatchPerInstanceConfigsCall) RequestId ¶ added in v0.31.0
func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) RequestId(requestId string) *InstanceGroupManagersPatchPerInstanceConfigsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupManagersPatchPerInstanceConfigsReq ¶ added in v0.31.0
type InstanceGroupManagersPatchPerInstanceConfigsReq struct { // PerInstanceConfigs: The list of per-instance configurations to insert or // patch on this managed instance group. PerInstanceConfigs []*PerInstanceConfig `json:"perInstanceConfigs,omitempty"` // ForceSendFields is a list of field names (e.g. "PerInstanceConfigs") 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. "PerInstanceConfigs") 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:"-"` }
InstanceGroupManagersPatchPerInstanceConfigsReq: InstanceGroupManagers.patchPerInstanceConfigs
func (InstanceGroupManagersPatchPerInstanceConfigsReq) MarshalJSON ¶ added in v0.31.0
func (s InstanceGroupManagersPatchPerInstanceConfigsReq) MarshalJSON() ([]byte, error)
type InstanceGroupManagersRecreateInstancesCall ¶
type InstanceGroupManagersRecreateInstancesCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersRecreateInstancesCall) Context ¶
func (c *InstanceGroupManagersRecreateInstancesCall) Context(ctx context.Context) *InstanceGroupManagersRecreateInstancesCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersRecreateInstancesCall) Do ¶
func (c *InstanceGroupManagersRecreateInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.recreateInstances" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersRecreateInstancesCall) Fields ¶
func (c *InstanceGroupManagersRecreateInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersRecreateInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersRecreateInstancesCall) Header ¶
func (c *InstanceGroupManagersRecreateInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersRecreateInstancesCall) RequestId ¶
func (c *InstanceGroupManagersRecreateInstancesCall) RequestId(requestId string) *InstanceGroupManagersRecreateInstancesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupManagersRecreateInstancesRequest ¶
type InstanceGroupManagersRecreateInstancesRequest struct { // Instances: The URLs of one or more instances to recreate. This can be a full // URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Instances []string `json:"instances,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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:"-"` }
func (InstanceGroupManagersRecreateInstancesRequest) MarshalJSON ¶
func (s InstanceGroupManagersRecreateInstancesRequest) MarshalJSON() ([]byte, error)
type InstanceGroupManagersResizeCall ¶
type InstanceGroupManagersResizeCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersResizeCall) Context ¶
func (c *InstanceGroupManagersResizeCall) Context(ctx context.Context) *InstanceGroupManagersResizeCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersResizeCall) Do ¶
func (c *InstanceGroupManagersResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.resize" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersResizeCall) Fields ¶
func (c *InstanceGroupManagersResizeCall) Fields(s ...googleapi.Field) *InstanceGroupManagersResizeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersResizeCall) Header ¶
func (c *InstanceGroupManagersResizeCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersResizeCall) RequestId ¶
func (c *InstanceGroupManagersResizeCall) RequestId(requestId string) *InstanceGroupManagersResizeCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupManagersScopedList ¶
type InstanceGroupManagersScopedList struct { // InstanceGroupManagers: [Output Only] The list of managed instance groups // that are contained in the specified project and zone. InstanceGroupManagers []*InstanceGroupManager `json:"instanceGroupManagers,omitempty"` // Warning: [Output Only] The warning that replaces the list of managed // instance groups when the list is empty. Warning *InstanceGroupManagersScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceGroupManagers") 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. "InstanceGroupManagers") 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:"-"` }
func (InstanceGroupManagersScopedList) MarshalJSON ¶
func (s InstanceGroupManagersScopedList) MarshalJSON() ([]byte, error)
type InstanceGroupManagersScopedListWarning ¶
type InstanceGroupManagersScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstanceGroupManagersScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstanceGroupManagersScopedListWarning: [Output Only] The warning that replaces the list of managed instance groups when the list is empty.
func (InstanceGroupManagersScopedListWarning) MarshalJSON ¶
func (s InstanceGroupManagersScopedListWarning) MarshalJSON() ([]byte, error)
type InstanceGroupManagersScopedListWarningData ¶
type InstanceGroupManagersScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstanceGroupManagersScopedListWarningData) MarshalJSON ¶
func (s InstanceGroupManagersScopedListWarningData) MarshalJSON() ([]byte, error)
type InstanceGroupManagersService ¶
type InstanceGroupManagersService struct {
// contains filtered or unexported fields
}
func NewInstanceGroupManagersService ¶
func NewInstanceGroupManagersService(s *Service) *InstanceGroupManagersService
func (*InstanceGroupManagersService) AbandonInstances ¶
func (r *InstanceGroupManagersService) AbandonInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersabandoninstancesrequest *InstanceGroupManagersAbandonInstancesRequest) *InstanceGroupManagersAbandonInstancesCall
AbandonInstances: Flags the specified instances to be removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
- instanceGroupManager: The name of the managed instance group. - project: Project ID for this request. - zone: The name of the zone where the managed instance group is located.
func (*InstanceGroupManagersService) AggregatedList ¶
func (r *InstanceGroupManagersService) AggregatedList(project string) *InstanceGroupManagersAggregatedListCall
AggregatedList: Retrieves the list of managed instance groups and groups them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*InstanceGroupManagersService) ApplyUpdatesToInstances ¶ added in v0.18.0
func (r *InstanceGroupManagersService) ApplyUpdatesToInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersapplyupdatesrequest *InstanceGroupManagersApplyUpdatesRequest) *InstanceGroupManagersApplyUpdatesToInstancesCall
ApplyUpdatesToInstances: Applies changes to selected instances on the managed instance group. This method can be used to apply new overrides and/or new versions.
- instanceGroupManager: The name of the managed instance group, should conform to RFC1035.
- project: Project ID for this request.
- zone: The name of the zone where the managed instance group is located. Should conform to RFC1035.
func (*InstanceGroupManagersService) CreateInstances ¶ added in v0.16.0
func (r *InstanceGroupManagersService) CreateInstances(project string, zone string, instanceGroupManager string, instancegroupmanagerscreateinstancesrequest *InstanceGroupManagersCreateInstancesRequest) *InstanceGroupManagersCreateInstancesCall
CreateInstances: Creates instances with per-instance configurations in this managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method.
- instanceGroupManager: The name of the managed instance group. It should conform to RFC1035.
- project: Project ID for this request.
- zone: The name of the zone where the managed instance group is located. It should conform to RFC1035.
func (*InstanceGroupManagersService) Delete ¶
func (r *InstanceGroupManagersService) Delete(project string, zone string, instanceGroupManager string) *InstanceGroupManagersDeleteCall
Delete: Deletes the specified managed instance group and all of the instances in that group. Note that the instance group must not belong to a backend service. Read Deleting an instance group for more information.
- instanceGroupManager: The name of the managed instance group to delete. - project: Project ID for this request. - zone: The name of the zone where the managed instance group is located.
func (*InstanceGroupManagersService) DeleteInstances ¶
func (r *InstanceGroupManagersService) DeleteInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersdeleteinstancesrequest *InstanceGroupManagersDeleteInstancesRequest) *InstanceGroupManagersDeleteInstancesCall
DeleteInstances: Flags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. This operation is marked as DONE when the action is scheduled even if the instances are still being deleted. You must separately verify the status of the deleting action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
- instanceGroupManager: The name of the managed instance group. - project: Project ID for this request. - zone: The name of the zone where the managed instance group is located.
func (*InstanceGroupManagersService) DeletePerInstanceConfigs ¶ added in v0.31.0
func (r *InstanceGroupManagersService) DeletePerInstanceConfigs(project string, zone string, instanceGroupManager string, instancegroupmanagersdeleteperinstanceconfigsreq *InstanceGroupManagersDeletePerInstanceConfigsReq) *InstanceGroupManagersDeletePerInstanceConfigsCall
DeletePerInstanceConfigs: Deletes selected per-instance configurations for the managed instance group.
- instanceGroupManager: The name of the managed instance group. It should conform to RFC1035.
- project: Project ID for this request.
- zone: The name of the zone where the managed instance group is located. It should conform to RFC1035.
func (*InstanceGroupManagersService) Get ¶
func (r *InstanceGroupManagersService) Get(project string, zone string, instanceGroupManager string) *InstanceGroupManagersGetCall
Get: Returns all of the details about the specified managed instance group.
- instanceGroupManager: The name of the managed instance group. - project: Project ID for this request. - zone: The name of the zone where the managed instance group is located.
func (*InstanceGroupManagersService) Insert ¶
func (r *InstanceGroupManagersService) Insert(project string, zone string, instancegroupmanager *InstanceGroupManager) *InstanceGroupManagersInsertCall
Insert: Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support if you need an increase in this limit.
- project: Project ID for this request.
- zone: The name of the zone where you want to create the managed instance group.
func (*InstanceGroupManagersService) List ¶
func (r *InstanceGroupManagersService) List(project string, zone string) *InstanceGroupManagersListCall
List: Retrieves a list of managed instance groups that are contained within the specified project and zone.
- project: Project ID for this request. - zone: The name of the zone where the managed instance group is located.
func (*InstanceGroupManagersService) ListErrors ¶ added in v0.21.0
func (r *InstanceGroupManagersService) ListErrors(project string, zone string, instanceGroupManager string) *InstanceGroupManagersListErrorsCall
ListErrors: Lists all errors thrown by actions on instances for a given managed instance group. The filter and orderBy query parameters are not supported.
- instanceGroupManager: The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:a-z (?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}.
- project: Project ID for this request.
- zone: The name of the zone where the managed instance group is located. It should conform to RFC1035.
func (*InstanceGroupManagersService) ListManagedInstances ¶
func (r *InstanceGroupManagersService) ListManagedInstances(project string, zone string, instanceGroupManager string) *InstanceGroupManagersListManagedInstancesCall
ListManagedInstances: Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.
- instanceGroupManager: The name of the managed instance group. - project: Project ID for this request. - zone: The name of the zone where the managed instance group is located.
func (*InstanceGroupManagersService) ListPerInstanceConfigs ¶ added in v0.31.0
func (r *InstanceGroupManagersService) ListPerInstanceConfigs(project string, zone string, instanceGroupManager string) *InstanceGroupManagersListPerInstanceConfigsCall
ListPerInstanceConfigs: Lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported.
- instanceGroupManager: The name of the managed instance group. It should conform to RFC1035.
- project: Project ID for this request.
- zone: The name of the zone where the managed instance group is located. It should conform to RFC1035.
func (*InstanceGroupManagersService) Patch ¶
func (r *InstanceGroupManagersService) Patch(project string, zone string, instanceGroupManager string, instancegroupmanager *InstanceGroupManager) *InstanceGroupManagersPatchCall
Patch: Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listManagedInstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG.
- instanceGroupManager: The name of the instance group manager.
- project: Project ID for this request.
- zone: The name of the zone where you want to create the managed instance group.
func (*InstanceGroupManagersService) PatchPerInstanceConfigs ¶ added in v0.31.0
func (r *InstanceGroupManagersService) PatchPerInstanceConfigs(project string, zone string, instanceGroupManager string, instancegroupmanagerspatchperinstanceconfigsreq *InstanceGroupManagersPatchPerInstanceConfigsReq) *InstanceGroupManagersPatchPerInstanceConfigsCall
PatchPerInstanceConfigs: Inserts or patches per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.
- instanceGroupManager: The name of the managed instance group. It should conform to RFC1035.
- project: Project ID for this request.
- zone: The name of the zone where the managed instance group is located. It should conform to RFC1035.
func (*InstanceGroupManagersService) RecreateInstances ¶
func (r *InstanceGroupManagersService) RecreateInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersrecreateinstancesrequest *InstanceGroupManagersRecreateInstancesRequest) *InstanceGroupManagersRecreateInstancesCall
RecreateInstances: Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
- instanceGroupManager: The name of the managed instance group. - project: Project ID for this request. - zone: The name of the zone where the managed instance group is located.
func (*InstanceGroupManagersService) Resize ¶
func (r *InstanceGroupManagersService) Resize(project string, zone string, instanceGroupManager string, size int64) *InstanceGroupManagersResizeCall
Resize: Resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is marked DONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. The group takes into account some VM attributes when making the selection including: + The status of the VM instance. + The health of the VM instance. + The instance template version the VM is based on. + For regional managed instance groups, the location of the VM instance. This list is subject to change. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.
- instanceGroupManager: The name of the managed instance group.
- project: Project ID for this request.
- size: The number of running instances that the managed instance group should maintain at any given time. The group automatically adds or removes instances to maintain the number of instances specified by this parameter.
- zone: The name of the zone where the managed instance group is located.
func (*InstanceGroupManagersService) SetInstanceTemplate ¶
func (r *InstanceGroupManagersService) SetInstanceTemplate(project string, zone string, instanceGroupManager string, instancegroupmanagerssetinstancetemplaterequest *InstanceGroupManagersSetInstanceTemplateRequest) *InstanceGroupManagersSetInstanceTemplateCall
SetInstanceTemplate: Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.
- instanceGroupManager: The name of the managed instance group. - project: Project ID for this request. - zone: The name of the zone where the managed instance group is located.
func (*InstanceGroupManagersService) SetTargetPools ¶
func (r *InstanceGroupManagersService) SetTargetPools(project string, zone string, instanceGroupManager string, instancegroupmanagerssettargetpoolsrequest *InstanceGroupManagersSetTargetPoolsRequest) *InstanceGroupManagersSetTargetPoolsCall
SetTargetPools: Modifies the target pools to which all instances in this managed instance group are assigned. The target pools automatically apply to all of the instances in the managed instance group. This operation is marked DONE when you make the request even if the instances have not yet been added to their target pools. The change might take some time to apply to all of the instances in the group depending on the size of the group.
- instanceGroupManager: The name of the managed instance group. - project: Project ID for this request. - zone: The name of the zone where the managed instance group is located.
func (*InstanceGroupManagersService) UpdatePerInstanceConfigs ¶ added in v0.31.0
func (r *InstanceGroupManagersService) UpdatePerInstanceConfigs(project string, zone string, instanceGroupManager string, instancegroupmanagersupdateperinstanceconfigsreq *InstanceGroupManagersUpdatePerInstanceConfigsReq) *InstanceGroupManagersUpdatePerInstanceConfigsCall
UpdatePerInstanceConfigs: Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.
- instanceGroupManager: The name of the managed instance group. It should conform to RFC1035.
- project: Project ID for this request.
- zone: The name of the zone where the managed instance group is located. It should conform to RFC1035.
type InstanceGroupManagersSetInstanceTemplateCall ¶
type InstanceGroupManagersSetInstanceTemplateCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersSetInstanceTemplateCall) Context ¶
func (c *InstanceGroupManagersSetInstanceTemplateCall) Context(ctx context.Context) *InstanceGroupManagersSetInstanceTemplateCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersSetInstanceTemplateCall) Do ¶
func (c *InstanceGroupManagersSetInstanceTemplateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.setInstanceTemplate" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersSetInstanceTemplateCall) Fields ¶
func (c *InstanceGroupManagersSetInstanceTemplateCall) Fields(s ...googleapi.Field) *InstanceGroupManagersSetInstanceTemplateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersSetInstanceTemplateCall) Header ¶
func (c *InstanceGroupManagersSetInstanceTemplateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersSetInstanceTemplateCall) RequestId ¶
func (c *InstanceGroupManagersSetInstanceTemplateCall) RequestId(requestId string) *InstanceGroupManagersSetInstanceTemplateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupManagersSetInstanceTemplateRequest ¶
type InstanceGroupManagersSetInstanceTemplateRequest struct { // InstanceTemplate: The URL of the instance template that is specified for // this managed instance group. The group uses this template to create all new // instances in the managed instance group. The templates for existing // instances in the group do not change unless you run recreateInstances, run // applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE. InstanceTemplate string `json:"instanceTemplate,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceTemplate") 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. "InstanceTemplate") 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:"-"` }
func (InstanceGroupManagersSetInstanceTemplateRequest) MarshalJSON ¶
func (s InstanceGroupManagersSetInstanceTemplateRequest) MarshalJSON() ([]byte, error)
type InstanceGroupManagersSetTargetPoolsCall ¶
type InstanceGroupManagersSetTargetPoolsCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersSetTargetPoolsCall) Context ¶
func (c *InstanceGroupManagersSetTargetPoolsCall) Context(ctx context.Context) *InstanceGroupManagersSetTargetPoolsCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersSetTargetPoolsCall) Do ¶
func (c *InstanceGroupManagersSetTargetPoolsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.setTargetPools" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersSetTargetPoolsCall) Fields ¶
func (c *InstanceGroupManagersSetTargetPoolsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersSetTargetPoolsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersSetTargetPoolsCall) Header ¶
func (c *InstanceGroupManagersSetTargetPoolsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersSetTargetPoolsCall) RequestId ¶
func (c *InstanceGroupManagersSetTargetPoolsCall) RequestId(requestId string) *InstanceGroupManagersSetTargetPoolsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupManagersSetTargetPoolsRequest ¶
type InstanceGroupManagersSetTargetPoolsRequest struct { // Fingerprint: The fingerprint of the target pools information. Use this // optional property to prevent conflicts when multiple users change the target // pools settings concurrently. Obtain the fingerprint with the // instanceGroupManagers.get method. Then, include the fingerprint in your // request to ensure that you do not overwrite changes that were applied from // another concurrent request. Fingerprint string `json:"fingerprint,omitempty"` // TargetPools: The list of target pool URLs that instances in this managed // instance group belong to. The managed instance group applies these target // pools to all of the instances in the group. Existing instances and new // instances in the group all receive these target pool settings. TargetPools []string `json:"targetPools,omitempty"` // ForceSendFields is a list of field names (e.g. "Fingerprint") 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. "Fingerprint") 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:"-"` }
func (InstanceGroupManagersSetTargetPoolsRequest) MarshalJSON ¶
func (s InstanceGroupManagersSetTargetPoolsRequest) MarshalJSON() ([]byte, error)
type InstanceGroupManagersUpdatePerInstanceConfigsCall ¶ added in v0.31.0
type InstanceGroupManagersUpdatePerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersUpdatePerInstanceConfigsCall) Context ¶ added in v0.31.0
func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) Context(ctx context.Context) *InstanceGroupManagersUpdatePerInstanceConfigsCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupManagersUpdatePerInstanceConfigsCall) Do ¶ added in v0.31.0
func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.updatePerInstanceConfigs" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersUpdatePerInstanceConfigsCall) Fields ¶ added in v0.31.0
func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersUpdatePerInstanceConfigsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupManagersUpdatePerInstanceConfigsCall) Header ¶ added in v0.31.0
func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupManagersUpdatePerInstanceConfigsCall) RequestId ¶ added in v0.31.0
func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) RequestId(requestId string) *InstanceGroupManagersUpdatePerInstanceConfigsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupManagersUpdatePerInstanceConfigsReq ¶ added in v0.31.0
type InstanceGroupManagersUpdatePerInstanceConfigsReq struct { // PerInstanceConfigs: The list of per-instance configurations to insert or // patch on this managed instance group. PerInstanceConfigs []*PerInstanceConfig `json:"perInstanceConfigs,omitempty"` // ForceSendFields is a list of field names (e.g. "PerInstanceConfigs") 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. "PerInstanceConfigs") 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:"-"` }
InstanceGroupManagersUpdatePerInstanceConfigsReq: InstanceGroupManagers.updatePerInstanceConfigs
func (InstanceGroupManagersUpdatePerInstanceConfigsReq) MarshalJSON ¶ added in v0.31.0
func (s InstanceGroupManagersUpdatePerInstanceConfigsReq) MarshalJSON() ([]byte, error)
type InstanceGroupsAddInstancesCall ¶
type InstanceGroupsAddInstancesCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupsAddInstancesCall) Context ¶
func (c *InstanceGroupsAddInstancesCall) Context(ctx context.Context) *InstanceGroupsAddInstancesCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupsAddInstancesCall) Do ¶
func (c *InstanceGroupsAddInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroups.addInstances" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupsAddInstancesCall) Fields ¶
func (c *InstanceGroupsAddInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupsAddInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupsAddInstancesCall) Header ¶
func (c *InstanceGroupsAddInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupsAddInstancesCall) RequestId ¶
func (c *InstanceGroupsAddInstancesCall) RequestId(requestId string) *InstanceGroupsAddInstancesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupsAddInstancesRequest ¶
type InstanceGroupsAddInstancesRequest struct { // Instances: The list of instances to add to the instance group. Instances []*InstanceReference `json:"instances,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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:"-"` }
func (InstanceGroupsAddInstancesRequest) MarshalJSON ¶
func (s InstanceGroupsAddInstancesRequest) MarshalJSON() ([]byte, error)
type InstanceGroupsAggregatedListCall ¶
type InstanceGroupsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupsAggregatedListCall) Context ¶
func (c *InstanceGroupsAggregatedListCall) Context(ctx context.Context) *InstanceGroupsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupsAggregatedListCall) Do ¶
func (c *InstanceGroupsAggregatedListCall) Do(opts ...googleapi.CallOption) (*InstanceGroupAggregatedList, error)
Do executes the "compute.instanceGroups.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *InstanceGroupAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupsAggregatedListCall) Fields ¶
func (c *InstanceGroupsAggregatedListCall) Fields(s ...googleapi.Field) *InstanceGroupsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupsAggregatedListCall) Filter ¶
func (c *InstanceGroupsAggregatedListCall) Filter(filter string) *InstanceGroupsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstanceGroupsAggregatedListCall) Header ¶
func (c *InstanceGroupsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupsAggregatedListCall) IfNoneMatch ¶
func (c *InstanceGroupsAggregatedListCall) IfNoneMatch(entityTag string) *InstanceGroupsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstanceGroupsAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *InstanceGroupsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *InstanceGroupsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*InstanceGroupsAggregatedListCall) MaxResults ¶
func (c *InstanceGroupsAggregatedListCall) MaxResults(maxResults int64) *InstanceGroupsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstanceGroupsAggregatedListCall) OrderBy ¶
func (c *InstanceGroupsAggregatedListCall) OrderBy(orderBy string) *InstanceGroupsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstanceGroupsAggregatedListCall) PageToken ¶
func (c *InstanceGroupsAggregatedListCall) PageToken(pageToken string) *InstanceGroupsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstanceGroupsAggregatedListCall) Pages ¶
func (c *InstanceGroupsAggregatedListCall) Pages(ctx context.Context, f func(*InstanceGroupAggregatedList) 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 (*InstanceGroupsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InstanceGroupsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*InstanceGroupsAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *InstanceGroupsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *InstanceGroupsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type InstanceGroupsDeleteCall ¶
type InstanceGroupsDeleteCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupsDeleteCall) Context ¶
func (c *InstanceGroupsDeleteCall) Context(ctx context.Context) *InstanceGroupsDeleteCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupsDeleteCall) Do ¶
func (c *InstanceGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroups.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupsDeleteCall) Fields ¶
func (c *InstanceGroupsDeleteCall) Fields(s ...googleapi.Field) *InstanceGroupsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupsDeleteCall) Header ¶
func (c *InstanceGroupsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupsDeleteCall) RequestId ¶
func (c *InstanceGroupsDeleteCall) RequestId(requestId string) *InstanceGroupsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupsGetCall ¶
type InstanceGroupsGetCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupsGetCall) Context ¶
func (c *InstanceGroupsGetCall) Context(ctx context.Context) *InstanceGroupsGetCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupsGetCall) Do ¶
func (c *InstanceGroupsGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroup, error)
Do executes the "compute.instanceGroups.get" call. Any non-2xx status code is an error. Response headers are in either *InstanceGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupsGetCall) Fields ¶
func (c *InstanceGroupsGetCall) Fields(s ...googleapi.Field) *InstanceGroupsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupsGetCall) Header ¶
func (c *InstanceGroupsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupsGetCall) IfNoneMatch ¶
func (c *InstanceGroupsGetCall) IfNoneMatch(entityTag string) *InstanceGroupsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InstanceGroupsInsertCall ¶
type InstanceGroupsInsertCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupsInsertCall) Context ¶
func (c *InstanceGroupsInsertCall) Context(ctx context.Context) *InstanceGroupsInsertCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupsInsertCall) Do ¶
func (c *InstanceGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroups.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupsInsertCall) Fields ¶
func (c *InstanceGroupsInsertCall) Fields(s ...googleapi.Field) *InstanceGroupsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupsInsertCall) Header ¶
func (c *InstanceGroupsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupsInsertCall) RequestId ¶
func (c *InstanceGroupsInsertCall) RequestId(requestId string) *InstanceGroupsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupsListCall ¶
type InstanceGroupsListCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupsListCall) Context ¶
func (c *InstanceGroupsListCall) Context(ctx context.Context) *InstanceGroupsListCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupsListCall) Do ¶
func (c *InstanceGroupsListCall) Do(opts ...googleapi.CallOption) (*InstanceGroupList, error)
Do executes the "compute.instanceGroups.list" call. Any non-2xx status code is an error. Response headers are in either *InstanceGroupList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupsListCall) Fields ¶
func (c *InstanceGroupsListCall) Fields(s ...googleapi.Field) *InstanceGroupsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupsListCall) Filter ¶
func (c *InstanceGroupsListCall) Filter(filter string) *InstanceGroupsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstanceGroupsListCall) Header ¶
func (c *InstanceGroupsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupsListCall) IfNoneMatch ¶
func (c *InstanceGroupsListCall) IfNoneMatch(entityTag string) *InstanceGroupsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstanceGroupsListCall) MaxResults ¶
func (c *InstanceGroupsListCall) MaxResults(maxResults int64) *InstanceGroupsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstanceGroupsListCall) OrderBy ¶
func (c *InstanceGroupsListCall) OrderBy(orderBy string) *InstanceGroupsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstanceGroupsListCall) PageToken ¶
func (c *InstanceGroupsListCall) PageToken(pageToken string) *InstanceGroupsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstanceGroupsListCall) Pages ¶
func (c *InstanceGroupsListCall) Pages(ctx context.Context, f func(*InstanceGroupList) 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 (*InstanceGroupsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InstanceGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type InstanceGroupsListInstances ¶
type InstanceGroupsListInstances struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InstanceWithNamedPorts resources. Items []*InstanceWithNamedPorts `json:"items,omitempty"` // Kind: [Output Only] The resource type, which is always // compute#instanceGroupsListInstances for the list of instances in the // specified instance group. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InstanceGroupsListInstancesWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (InstanceGroupsListInstances) MarshalJSON ¶
func (s InstanceGroupsListInstances) MarshalJSON() ([]byte, error)
type InstanceGroupsListInstancesCall ¶
type InstanceGroupsListInstancesCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupsListInstancesCall) Context ¶
func (c *InstanceGroupsListInstancesCall) Context(ctx context.Context) *InstanceGroupsListInstancesCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupsListInstancesCall) Do ¶
func (c *InstanceGroupsListInstancesCall) Do(opts ...googleapi.CallOption) (*InstanceGroupsListInstances, error)
Do executes the "compute.instanceGroups.listInstances" call. Any non-2xx status code is an error. Response headers are in either *InstanceGroupsListInstances.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupsListInstancesCall) Fields ¶
func (c *InstanceGroupsListInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupsListInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupsListInstancesCall) Filter ¶
func (c *InstanceGroupsListInstancesCall) Filter(filter string) *InstanceGroupsListInstancesCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstanceGroupsListInstancesCall) Header ¶
func (c *InstanceGroupsListInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupsListInstancesCall) MaxResults ¶
func (c *InstanceGroupsListInstancesCall) MaxResults(maxResults int64) *InstanceGroupsListInstancesCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstanceGroupsListInstancesCall) OrderBy ¶
func (c *InstanceGroupsListInstancesCall) OrderBy(orderBy string) *InstanceGroupsListInstancesCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstanceGroupsListInstancesCall) PageToken ¶
func (c *InstanceGroupsListInstancesCall) PageToken(pageToken string) *InstanceGroupsListInstancesCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstanceGroupsListInstancesCall) Pages ¶
func (c *InstanceGroupsListInstancesCall) Pages(ctx context.Context, f func(*InstanceGroupsListInstances) 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 (*InstanceGroupsListInstancesCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InstanceGroupsListInstancesCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceGroupsListInstancesCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type InstanceGroupsListInstancesRequest ¶
type InstanceGroupsListInstancesRequest struct { // InstanceState: A filter for the state of the instances in the instance // group. Valid options are ALL or RUNNING. If you do not specify this // parameter the list includes all instances regardless of their state. // // Possible values: // "ALL" - Includes all instances in the generated list regardless of their // state. // "RUNNING" - Includes instances in the generated list only if they have a // RUNNING state. InstanceState string `json:"instanceState,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceState") 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. "InstanceState") 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:"-"` }
func (InstanceGroupsListInstancesRequest) MarshalJSON ¶
func (s InstanceGroupsListInstancesRequest) MarshalJSON() ([]byte, error)
type InstanceGroupsListInstancesWarning ¶
type InstanceGroupsListInstancesWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstanceGroupsListInstancesWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstanceGroupsListInstancesWarning: [Output Only] Informational warning message.
func (InstanceGroupsListInstancesWarning) MarshalJSON ¶
func (s InstanceGroupsListInstancesWarning) MarshalJSON() ([]byte, error)
type InstanceGroupsListInstancesWarningData ¶
type InstanceGroupsListInstancesWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstanceGroupsListInstancesWarningData) MarshalJSON ¶
func (s InstanceGroupsListInstancesWarningData) MarshalJSON() ([]byte, error)
type InstanceGroupsRemoveInstancesCall ¶
type InstanceGroupsRemoveInstancesCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupsRemoveInstancesCall) Context ¶
func (c *InstanceGroupsRemoveInstancesCall) Context(ctx context.Context) *InstanceGroupsRemoveInstancesCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupsRemoveInstancesCall) Do ¶
func (c *InstanceGroupsRemoveInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroups.removeInstances" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupsRemoveInstancesCall) Fields ¶
func (c *InstanceGroupsRemoveInstancesCall) Fields(s ...googleapi.Field) *InstanceGroupsRemoveInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupsRemoveInstancesCall) Header ¶
func (c *InstanceGroupsRemoveInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupsRemoveInstancesCall) RequestId ¶
func (c *InstanceGroupsRemoveInstancesCall) RequestId(requestId string) *InstanceGroupsRemoveInstancesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupsRemoveInstancesRequest ¶
type InstanceGroupsRemoveInstancesRequest struct { // Instances: The list of instances to remove from the instance group. Instances []*InstanceReference `json:"instances,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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:"-"` }
func (InstanceGroupsRemoveInstancesRequest) MarshalJSON ¶
func (s InstanceGroupsRemoveInstancesRequest) MarshalJSON() ([]byte, error)
type InstanceGroupsScopedList ¶
type InstanceGroupsScopedList struct { // InstanceGroups: [Output Only] The list of instance groups that are contained // in this scope. InstanceGroups []*InstanceGroup `json:"instanceGroups,omitempty"` // Warning: [Output Only] An informational warning that replaces the list of // instance groups when the list is empty. Warning *InstanceGroupsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceGroups") 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. "InstanceGroups") 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:"-"` }
func (InstanceGroupsScopedList) MarshalJSON ¶
func (s InstanceGroupsScopedList) MarshalJSON() ([]byte, error)
type InstanceGroupsScopedListWarning ¶
type InstanceGroupsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstanceGroupsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstanceGroupsScopedListWarning: [Output Only] An informational warning that replaces the list of instance groups when the list is empty.
func (InstanceGroupsScopedListWarning) MarshalJSON ¶
func (s InstanceGroupsScopedListWarning) MarshalJSON() ([]byte, error)
type InstanceGroupsScopedListWarningData ¶
type InstanceGroupsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstanceGroupsScopedListWarningData) MarshalJSON ¶
func (s InstanceGroupsScopedListWarningData) MarshalJSON() ([]byte, error)
type InstanceGroupsService ¶
type InstanceGroupsService struct {
// contains filtered or unexported fields
}
func NewInstanceGroupsService ¶
func NewInstanceGroupsService(s *Service) *InstanceGroupsService
func (*InstanceGroupsService) AddInstances ¶
func (r *InstanceGroupsService) AddInstances(project string, zone string, instanceGroup string, instancegroupsaddinstancesrequest *InstanceGroupsAddInstancesRequest) *InstanceGroupsAddInstancesCall
AddInstances: Adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information.
- instanceGroup: The name of the instance group where you are adding instances.
- project: Project ID for this request.
- zone: The name of the zone where the instance group is located.
func (*InstanceGroupsService) AggregatedList ¶
func (r *InstanceGroupsService) AggregatedList(project string) *InstanceGroupsAggregatedListCall
AggregatedList: Retrieves the list of instance groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*InstanceGroupsService) Delete ¶
func (r *InstanceGroupsService) Delete(project string, zone string, instanceGroup string) *InstanceGroupsDeleteCall
Delete: Deletes the specified instance group. The instances in the group are not deleted. Note that instance group must not belong to a backend service. Read Deleting an instance group for more information.
- instanceGroup: The name of the instance group to delete. - project: Project ID for this request. - zone: The name of the zone where the instance group is located.
func (*InstanceGroupsService) Get ¶
func (r *InstanceGroupsService) Get(project string, zone string, instanceGroup string) *InstanceGroupsGetCall
Get: Returns the specified zonal instance group. Get a list of available zonal instance groups by making a list() request. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.
- instanceGroup: The name of the instance group. - project: Project ID for this request. - zone: The name of the zone where the instance group is located.
func (*InstanceGroupsService) Insert ¶
func (r *InstanceGroupsService) Insert(project string, zone string, instancegroup *InstanceGroup) *InstanceGroupsInsertCall
Insert: Creates an instance group in the specified project using the parameters that are included in the request.
- project: Project ID for this request. - zone: The name of the zone where you want to create the instance group.
func (*InstanceGroupsService) List ¶
func (r *InstanceGroupsService) List(project string, zone string) *InstanceGroupsListCall
List: Retrieves the list of zonal instance group resources contained within the specified zone. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.
- project: Project ID for this request. - zone: The name of the zone where the instance group is located.
func (*InstanceGroupsService) ListInstances ¶
func (r *InstanceGroupsService) ListInstances(project string, zone string, instanceGroup string, instancegroupslistinstancesrequest *InstanceGroupsListInstancesRequest) *InstanceGroupsListInstancesCall
ListInstances: Lists the instances in the specified instance group. The orderBy query parameter is not supported. The filter query parameter is supported, but only for expressions that use `eq` (equal) or `ne` (not equal) operators.
- instanceGroup: The name of the instance group from which you want to generate a list of included instances.
- project: Project ID for this request.
- zone: The name of the zone where the instance group is located.
func (*InstanceGroupsService) RemoveInstances ¶
func (r *InstanceGroupsService) RemoveInstances(project string, zone string, instanceGroup string, instancegroupsremoveinstancesrequest *InstanceGroupsRemoveInstancesRequest) *InstanceGroupsRemoveInstancesCall
RemoveInstances: Removes one or more instances from the specified instance group, but does not delete those instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted.
- instanceGroup: The name of the instance group where the specified instances will be removed.
- project: Project ID for this request.
- zone: The name of the zone where the instance group is located.
func (*InstanceGroupsService) SetNamedPorts ¶
func (r *InstanceGroupsService) SetNamedPorts(project string, zone string, instanceGroup string, instancegroupssetnamedportsrequest *InstanceGroupsSetNamedPortsRequest) *InstanceGroupsSetNamedPortsCall
SetNamedPorts: Sets the named ports for the specified instance group.
- instanceGroup: The name of the instance group where the named ports are updated.
- project: Project ID for this request.
- zone: The name of the zone where the instance group is located.
type InstanceGroupsSetNamedPortsCall ¶
type InstanceGroupsSetNamedPortsCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupsSetNamedPortsCall) Context ¶
func (c *InstanceGroupsSetNamedPortsCall) Context(ctx context.Context) *InstanceGroupsSetNamedPortsCall
Context sets the context to be used in this call's Do method.
func (*InstanceGroupsSetNamedPortsCall) Do ¶
func (c *InstanceGroupsSetNamedPortsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroups.setNamedPorts" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupsSetNamedPortsCall) Fields ¶
func (c *InstanceGroupsSetNamedPortsCall) Fields(s ...googleapi.Field) *InstanceGroupsSetNamedPortsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceGroupsSetNamedPortsCall) Header ¶
func (c *InstanceGroupsSetNamedPortsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceGroupsSetNamedPortsCall) RequestId ¶
func (c *InstanceGroupsSetNamedPortsCall) RequestId(requestId string) *InstanceGroupsSetNamedPortsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceGroupsSetNamedPortsRequest ¶
type InstanceGroupsSetNamedPortsRequest struct { // Fingerprint: The fingerprint of the named ports information for this // instance group. Use this optional property to prevent conflicts when // multiple users change the named ports settings concurrently. Obtain the // fingerprint with the instanceGroups.get method. Then, include the // fingerprint in your request to ensure that you do not overwrite changes that // were applied from another concurrent request. A request with an incorrect // fingerprint will fail with error 412 conditionNotMet. Fingerprint string `json:"fingerprint,omitempty"` // NamedPorts: The list of named ports to set for this instance group. NamedPorts []*NamedPort `json:"namedPorts,omitempty"` // ForceSendFields is a list of field names (e.g. "Fingerprint") 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. "Fingerprint") 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:"-"` }
func (InstanceGroupsSetNamedPortsRequest) MarshalJSON ¶
func (s InstanceGroupsSetNamedPortsRequest) MarshalJSON() ([]byte, error)
type InstanceList ¶
type InstanceList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Instance resources. Items []*Instance `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#instanceList for lists // of Instance resources. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InstanceListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
InstanceList: Contains a list of instances.
func (InstanceList) MarshalJSON ¶
func (s InstanceList) MarshalJSON() ([]byte, error)
type InstanceListReferrers ¶
type InstanceListReferrers struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Reference resources. Items []*Reference `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#instanceListReferrers // for lists of Instance referrers. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InstanceListReferrersWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
InstanceListReferrers: Contains a list of instance referrers.
func (InstanceListReferrers) MarshalJSON ¶
func (s InstanceListReferrers) MarshalJSON() ([]byte, error)
type InstanceListReferrersWarning ¶
type InstanceListReferrersWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstanceListReferrersWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstanceListReferrersWarning: [Output Only] Informational warning message.
func (InstanceListReferrersWarning) MarshalJSON ¶
func (s InstanceListReferrersWarning) MarshalJSON() ([]byte, error)
type InstanceListReferrersWarningData ¶
type InstanceListReferrersWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstanceListReferrersWarningData) MarshalJSON ¶
func (s InstanceListReferrersWarningData) MarshalJSON() ([]byte, error)
type InstanceListWarning ¶
type InstanceListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstanceListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstanceListWarning: [Output Only] Informational warning message.
func (InstanceListWarning) MarshalJSON ¶
func (s InstanceListWarning) MarshalJSON() ([]byte, error)
type InstanceListWarningData ¶
type InstanceListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstanceListWarningData) MarshalJSON ¶
func (s InstanceListWarningData) MarshalJSON() ([]byte, error)
type InstanceManagedByIgmError ¶ added in v0.21.0
type InstanceManagedByIgmError struct { // Error: [Output Only] Contents of the error. Error *InstanceManagedByIgmErrorManagedInstanceError `json:"error,omitempty"` // InstanceActionDetails: [Output Only] Details of the instance action that // triggered this error. May be null, if the error was not caused by an action // on an instance. This field is optional. InstanceActionDetails *InstanceManagedByIgmErrorInstanceActionDetails `json:"instanceActionDetails,omitempty"` // Timestamp: [Output Only] The time that this error occurred. This value is in // RFC3339 text format. Timestamp string `json:"timestamp,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:"-"` }
func (InstanceManagedByIgmError) MarshalJSON ¶ added in v0.21.0
func (s InstanceManagedByIgmError) MarshalJSON() ([]byte, error)
type InstanceManagedByIgmErrorInstanceActionDetails ¶ added in v0.21.0
type InstanceManagedByIgmErrorInstanceActionDetails struct { // Action: [Output Only] Action that managed instance group was executing on // the instance when the error occurred. Possible values: // // Possible values: // "ABANDONING" - The managed instance group is abandoning this instance. The // instance will be removed from the instance group and from any target pools // that are associated with this group. // "CREATING" - The managed instance group is creating this instance. If the // group fails to create this instance, it will try again until it is // successful. // "CREATING_WITHOUT_RETRIES" - The managed instance group is attempting to // create this instance only once. If the group fails to create this instance, // it does not try again and the group's targetSize value is decreased. // "DELETING" - The managed instance group is permanently deleting this // instance. // "NONE" - The managed instance group has not scheduled any actions for this // instance. // "RECREATING" - The managed instance group is recreating this instance. // "REFRESHING" - The managed instance group is applying configuration // changes to the instance without stopping it. For example, the group can // update the target pool list for an instance without stopping that instance. // "RESTARTING" - The managed instance group is restarting this instance. // "RESUMING" - The managed instance group is resuming this instance. // "STARTING" - The managed instance group is starting this instance. // "STOPPING" - The managed instance group is stopping this instance. // "SUSPENDING" - The managed instance group is suspending this instance. // "VERIFYING" - The managed instance group is verifying this already created // instance. Verification happens every time the instance is (re)created or // restarted and consists of: 1. Waiting until health check specified as part // of this managed instance group's autohealing policy reports HEALTHY. Note: // Applies only if autohealing policy has a health check specified 2. Waiting // for addition verification steps performed as post-instance creation (subject // to future extensions). Action string `json:"action,omitempty"` // Instance: [Output Only] The URL of the instance. The URL can be set even if // the instance has not yet been created. Instance string `json:"instance,omitempty"` // Version: [Output Only] Version this instance was created from, or was being // created from, but the creation failed. Corresponds to one of the versions // that were set on the Instance Group Manager resource at the time this // instance was being created. Version *ManagedInstanceVersion `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
func (InstanceManagedByIgmErrorInstanceActionDetails) MarshalJSON ¶ added in v0.21.0
func (s InstanceManagedByIgmErrorInstanceActionDetails) MarshalJSON() ([]byte, error)
type InstanceManagedByIgmErrorManagedInstanceError ¶ added in v0.21.0
type InstanceManagedByIgmErrorManagedInstanceError struct { // Code: [Output Only] Error code. Code string `json:"code,omitempty"` // Message: [Output Only] Error message. Message string `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:"-"` }
func (InstanceManagedByIgmErrorManagedInstanceError) MarshalJSON ¶ added in v0.21.0
func (s InstanceManagedByIgmErrorManagedInstanceError) MarshalJSON() ([]byte, error)
type InstanceMoveRequest ¶
type InstanceMoveRequest struct { // DestinationZone: The URL of the destination zone to move the instance. This // can be a full or partial URL. For example, the following are all valid URLs // to a zone: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone - // projects/project/zones/zone - zones/zone DestinationZone string `json:"destinationZone,omitempty"` // TargetInstance: The URL of the target instance to move. This can be a full // or partial URL. For example, the following are all valid URLs to an // instance: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /instances/instance - projects/project/zones/zone/instances/instance - // zones/zone/instances/instance TargetInstance string `json:"targetInstance,omitempty"` // ForceSendFields is a list of field names (e.g. "DestinationZone") 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. "DestinationZone") 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:"-"` }
func (InstanceMoveRequest) MarshalJSON ¶
func (s InstanceMoveRequest) MarshalJSON() ([]byte, error)
type InstanceParams ¶ added in v0.69.0
type InstanceParams struct { // ResourceManagerTags: Resource manager tags to be bound to the instance. Tag // keys and values have the same definition as resource manager tags. Keys must // be in the format `tagKeys/{tag_key_id}`, and values are in the format // `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. ResourceManagerTags map[string]string `json:"resourceManagerTags,omitempty"` // ForceSendFields is a list of field names (e.g. "ResourceManagerTags") 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. "ResourceManagerTags") 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:"-"` }
InstanceParams: Additional instance params.
func (InstanceParams) MarshalJSON ¶ added in v0.69.0
func (s InstanceParams) MarshalJSON() ([]byte, error)
type InstanceProperties ¶
type InstanceProperties struct { // AdvancedMachineFeatures: Controls for advanced machine-related behavior // features. Note that for MachineImage, this is not supported yet. AdvancedMachineFeatures *AdvancedMachineFeatures `json:"advancedMachineFeatures,omitempty"` // CanIpForward: Enables instances created based on these properties to send // packets with source IP addresses other than their own and receive packets // with destination IP addresses other than their own. If these instances will // be used as an IP gateway or it will be set as the next-hop in a Route // resource, specify true. If unsure, leave this set to false. See the Enable // IP forwarding documentation for more information. CanIpForward bool `json:"canIpForward,omitempty"` // ConfidentialInstanceConfig: Specifies the Confidential Instance options. // Note that for MachineImage, this is not supported yet. ConfidentialInstanceConfig *ConfidentialInstanceConfig `json:"confidentialInstanceConfig,omitempty"` // Description: An optional text description for the instances that are created // from these properties. Description string `json:"description,omitempty"` // Disks: An array of disks that are associated with the instances that are // created from these properties. Disks []*AttachedDisk `json:"disks,omitempty"` // GuestAccelerators: A list of guest accelerator cards' type and count to use // for instances created from these properties. GuestAccelerators []*AcceleratorConfig `json:"guestAccelerators,omitempty"` // KeyRevocationActionType: KeyRevocationActionType of the instance. Supported // options are "STOP" and "NONE". The default value is "NONE" if it is not // specified. // // Possible values: // "KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED" - Default value. This value is // unused. // "NONE" - Indicates user chose no operation. // "STOP" - Indicates user chose to opt for VM shutdown on key revocation. KeyRevocationActionType string `json:"keyRevocationActionType,omitempty"` // Labels: Labels to apply to instances that are created from these properties. Labels map[string]string `json:"labels,omitempty"` // MachineType: The machine type to use for instances that are created from // these properties. This field only accepts a machine type name, for example // `n2-standard-4`. If you use the machine type full or partial URL, for // example // `projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4`, // the request will result in an `INTERNAL_ERROR`. MachineType string `json:"machineType,omitempty"` // Metadata: The metadata key/value pairs to assign to instances that are // created from these properties. These pairs can consist of custom metadata or // predefined keys. See Project and instance metadata for more information. Metadata *Metadata `json:"metadata,omitempty"` // MinCpuPlatform: Minimum cpu/platform to be used by instances. The instance // may be scheduled on the specified or newer cpu/platform. Applicable values // are the friendly names of CPU platforms, such as minCpuPlatform: "Intel // Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read // Specifying a Minimum CPU Platform. MinCpuPlatform string `json:"minCpuPlatform,omitempty"` // NetworkInterfaces: An array of network access configurations for this // interface. NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"` // NetworkPerformanceConfig: Note that for MachineImage, this is not supported // yet. NetworkPerformanceConfig *NetworkPerformanceConfig `json:"networkPerformanceConfig,omitempty"` // PrivateIpv6GoogleAccess: The private IPv6 google access type for VMs. If not // specified, use INHERIT_FROM_SUBNETWORK as default. Note that for // MachineImage, this is not supported yet. // // Possible values: // "ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE" - Bidirectional private IPv6 // access to/from Google services. If specified, the subnetwork who is attached // to the instance's default network interface will be assigned an internal // IPv6 prefix if it doesn't have before. // "ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE" - Outbound private IPv6 access from // VMs in this subnet to Google services. If specified, the subnetwork who is // attached to the instance's default network interface will be assigned an // internal IPv6 prefix if it doesn't have before. // "INHERIT_FROM_SUBNETWORK" - Each network interface inherits // PrivateIpv6GoogleAccess from its subnetwork. PrivateIpv6GoogleAccess string `json:"privateIpv6GoogleAccess,omitempty"` // ReservationAffinity: Specifies the reservations that instances can consume // from. Note that for MachineImage, this is not supported yet. ReservationAffinity *ReservationAffinity `json:"reservationAffinity,omitempty"` // ResourceManagerTags: Resource manager tags to be bound to the instance. Tag // keys and values have the same definition as resource manager tags. Keys must // be in the format `tagKeys/{tag_key_id}`, and values are in the format // `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. ResourceManagerTags map[string]string `json:"resourceManagerTags,omitempty"` // ResourcePolicies: Resource policies (names, not URLs) applied to instances // created from these properties. Note that for MachineImage, this is not // supported yet. ResourcePolicies []string `json:"resourcePolicies,omitempty"` // Scheduling: Specifies the scheduling options for the instances that are // created from these properties. Scheduling *Scheduling `json:"scheduling,omitempty"` // ServiceAccounts: A list of service accounts with specified scopes. Access // tokens for these service accounts are available to the instances that are // created from these properties. Use metadata queries to obtain the access // tokens for these instances. ServiceAccounts []*ServiceAccount `json:"serviceAccounts,omitempty"` // ShieldedInstanceConfig: Note that for MachineImage, this is not supported // yet. ShieldedInstanceConfig *ShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"` // Tags: A list of tags to apply to the instances that are created from these // properties. The tags identify valid sources or targets for network // firewalls. The setTags method can modify this list of tags. Each tag within // the list must comply with RFC1035. Tags *Tags `json:"tags,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvancedMachineFeatures") 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. "AdvancedMachineFeatures") 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:"-"` }
func (InstanceProperties) MarshalJSON ¶
func (s InstanceProperties) MarshalJSON() ([]byte, error)
type InstancePropertiesPatch ¶ added in v0.163.0
type InstancePropertiesPatch struct { // Labels: The label key-value pairs that you want to patch onto the instance. Labels map[string]string `json:"labels,omitempty"` // Metadata: The metadata key-value pairs that you want to patch onto the // instance. For more information, see Project and instance metadata. Metadata map[string]string `json:"metadata,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:"-"` }
InstancePropertiesPatch: Represents the change that you want to make to the instance properties.
func (InstancePropertiesPatch) MarshalJSON ¶ added in v0.163.0
func (s InstancePropertiesPatch) MarshalJSON() ([]byte, error)
type InstanceReference ¶
type InstanceReference struct { // Instance: The URL for a specific instance. @required // compute.instancegroups.addInstances/removeInstances Instance string `json:"instance,omitempty"` // ForceSendFields is a list of field names (e.g. "Instance") 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. "Instance") 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:"-"` }
func (InstanceReference) MarshalJSON ¶
func (s InstanceReference) MarshalJSON() ([]byte, error)
type InstanceSettings ¶ added in v0.172.0
type InstanceSettings struct { // Fingerprint: Specifies a fingerprint for instance settings, which is // essentially a hash of the instance settings resource's contents and used for // optimistic locking. The fingerprint is initially generated by Compute Engine // and changes after every request to modify or update the instance settings // resource. You must always provide an up-to-date fingerprint hash in order to // update or change the resource, otherwise the request will fail with error // 412 conditionNotMet. To see the latest fingerprint, make a get() request to // retrieve the resource. Fingerprint string `json:"fingerprint,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#instance_settings // for instance settings. Kind string `json:"kind,omitempty"` // Metadata: The metadata key/value pairs assigned to all the instances in the // corresponding scope. Metadata *InstanceSettingsMetadata `json:"metadata,omitempty"` // Zone: [Output Only] URL of the zone where the resource resides You must // specify this field as part of the HTTP request URL. It is not settable as a // field in the request body. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Fingerprint") 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. "Fingerprint") 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:"-"` }
InstanceSettings: Represents a Instance Settings resource. You can use instance settings to configure default settings for Compute Engine VM instances. For example, you can use it to configure default machine type of Compute Engine VM instances.
func (InstanceSettings) MarshalJSON ¶ added in v0.172.0
func (s InstanceSettings) MarshalJSON() ([]byte, error)
type InstanceSettingsGetCall ¶ added in v0.172.0
type InstanceSettingsGetCall struct {
// contains filtered or unexported fields
}
func (*InstanceSettingsGetCall) Context ¶ added in v0.172.0
func (c *InstanceSettingsGetCall) Context(ctx context.Context) *InstanceSettingsGetCall
Context sets the context to be used in this call's Do method.
func (*InstanceSettingsGetCall) Do ¶ added in v0.172.0
func (c *InstanceSettingsGetCall) Do(opts ...googleapi.CallOption) (*InstanceSettings, error)
Do executes the "compute.instanceSettings.get" call. Any non-2xx status code is an error. Response headers are in either *InstanceSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceSettingsGetCall) Fields ¶ added in v0.172.0
func (c *InstanceSettingsGetCall) Fields(s ...googleapi.Field) *InstanceSettingsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceSettingsGetCall) Header ¶ added in v0.172.0
func (c *InstanceSettingsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceSettingsGetCall) IfNoneMatch ¶ added in v0.172.0
func (c *InstanceSettingsGetCall) IfNoneMatch(entityTag string) *InstanceSettingsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InstanceSettingsMetadata ¶ added in v0.172.0
type InstanceSettingsMetadata struct { // Items: A metadata key/value items map. The total size of all keys and values // must be less than 512KB. Items map[string]string `json:"items,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#metadata for // metadata. Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"` }
func (InstanceSettingsMetadata) MarshalJSON ¶ added in v0.172.0
func (s InstanceSettingsMetadata) MarshalJSON() ([]byte, error)
type InstanceSettingsPatchCall ¶ added in v0.172.0
type InstanceSettingsPatchCall struct {
// contains filtered or unexported fields
}
func (*InstanceSettingsPatchCall) Context ¶ added in v0.172.0
func (c *InstanceSettingsPatchCall) Context(ctx context.Context) *InstanceSettingsPatchCall
Context sets the context to be used in this call's Do method.
func (*InstanceSettingsPatchCall) Do ¶ added in v0.172.0
func (c *InstanceSettingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceSettings.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceSettingsPatchCall) Fields ¶ added in v0.172.0
func (c *InstanceSettingsPatchCall) Fields(s ...googleapi.Field) *InstanceSettingsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceSettingsPatchCall) Header ¶ added in v0.172.0
func (c *InstanceSettingsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceSettingsPatchCall) RequestId ¶ added in v0.172.0
func (c *InstanceSettingsPatchCall) RequestId(requestId string) *InstanceSettingsPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*InstanceSettingsPatchCall) UpdateMask ¶ added in v0.172.0
func (c *InstanceSettingsPatchCall) UpdateMask(updateMask string) *InstanceSettingsPatchCall
UpdateMask sets the optional parameter "updateMask": update_mask indicates fields to be updated as part of this request.
type InstanceSettingsService ¶ added in v0.172.0
type InstanceSettingsService struct {
// contains filtered or unexported fields
}
func NewInstanceSettingsService ¶ added in v0.172.0
func NewInstanceSettingsService(s *Service) *InstanceSettingsService
func (*InstanceSettingsService) Get ¶ added in v0.172.0
func (r *InstanceSettingsService) Get(project string, zone string) *InstanceSettingsGetCall
Get: Get Instance settings.
- project: Project ID for this request. - zone: Name of the zone for this request.
func (*InstanceSettingsService) Patch ¶ added in v0.172.0
func (r *InstanceSettingsService) Patch(project string, zone string, instancesettings *InstanceSettings) *InstanceSettingsPatchCall
Patch: Patch Instance settings
- project: Project ID for this request. - zone: The zone scoping this request. It should conform to RFC1035.
type InstanceTemplate ¶
type InstanceTemplate struct { // CreationTimestamp: [Output Only] The creation timestamp for this instance // template in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Id: [Output Only] A unique identifier for this instance template. The server // defines this identifier. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] The resource type, which is always // compute#instanceTemplate for instance templates. Kind string `json:"kind,omitempty"` // Name: Name of the resource; provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Properties: The instance properties for this instance template. Properties *InstanceProperties `json:"properties,omitempty"` // Region: [Output Only] URL of the region where the instance template resides. // Only applicable for regional resources. Region string `json:"region,omitempty"` // SelfLink: [Output Only] The URL for this instance template. The server // defines this URL. SelfLink string `json:"selfLink,omitempty"` // SourceInstance: The source instance used to create the template. You can // provide this as a partial or full URL to the resource. For example, the // following are valid values: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /instances/instance - projects/project/zones/zone/instances/instance SourceInstance string `json:"sourceInstance,omitempty"` // SourceInstanceParams: The source instance params to use to create this // instance template. SourceInstanceParams *SourceInstanceParams `json:"sourceInstanceParams,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
InstanceTemplate: Represents an Instance Template resource. Google Compute Engine has two Instance Template resources: * Global (/compute/docs/reference/rest/v1/instanceTemplates) * Regional (/compute/docs/reference/rest/v1/regionInstanceTemplates) You can reuse a global instance template in different regions whereas you can use a regional instance template in a specified region only. If you want to reduce cross-region dependency or achieve data residency, use a regional instance template. To create VMs, managed instance groups, and reservations, you can use either global or regional instance templates. For more information, read Instance Templates.
func (InstanceTemplate) MarshalJSON ¶
func (s InstanceTemplate) MarshalJSON() ([]byte, error)
type InstanceTemplateAggregatedList ¶ added in v0.111.0
type InstanceTemplateAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InstanceTemplatesScopedList resources. Items map[string]InstanceTemplatesScopedList `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InstanceTemplateAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
InstanceTemplateAggregatedList: Contains a list of InstanceTemplatesScopedList.
func (InstanceTemplateAggregatedList) MarshalJSON ¶ added in v0.111.0
func (s InstanceTemplateAggregatedList) MarshalJSON() ([]byte, error)
type InstanceTemplateAggregatedListWarning ¶ added in v0.111.0
type InstanceTemplateAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstanceTemplateAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstanceTemplateAggregatedListWarning: [Output Only] Informational warning message.
func (InstanceTemplateAggregatedListWarning) MarshalJSON ¶ added in v0.111.0
func (s InstanceTemplateAggregatedListWarning) MarshalJSON() ([]byte, error)
type InstanceTemplateAggregatedListWarningData ¶ added in v0.111.0
type InstanceTemplateAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstanceTemplateAggregatedListWarningData) MarshalJSON ¶ added in v0.111.0
func (s InstanceTemplateAggregatedListWarningData) MarshalJSON() ([]byte, error)
type InstanceTemplateList ¶
type InstanceTemplateList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InstanceTemplate resources. Items []*InstanceTemplate `json:"items,omitempty"` // Kind: [Output Only] The resource type, which is always // compute#instanceTemplatesListResponse for instance template lists. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InstanceTemplateListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
InstanceTemplateList: A list of instance templates.
func (InstanceTemplateList) MarshalJSON ¶
func (s InstanceTemplateList) MarshalJSON() ([]byte, error)
type InstanceTemplateListWarning ¶
type InstanceTemplateListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstanceTemplateListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstanceTemplateListWarning: [Output Only] Informational warning message.
func (InstanceTemplateListWarning) MarshalJSON ¶
func (s InstanceTemplateListWarning) MarshalJSON() ([]byte, error)
type InstanceTemplateListWarningData ¶
type InstanceTemplateListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstanceTemplateListWarningData) MarshalJSON ¶
func (s InstanceTemplateListWarningData) MarshalJSON() ([]byte, error)
type InstanceTemplatesAggregatedListCall ¶ added in v0.111.0
type InstanceTemplatesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*InstanceTemplatesAggregatedListCall) Context ¶ added in v0.111.0
func (c *InstanceTemplatesAggregatedListCall) Context(ctx context.Context) *InstanceTemplatesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*InstanceTemplatesAggregatedListCall) Do ¶ added in v0.111.0
func (c *InstanceTemplatesAggregatedListCall) Do(opts ...googleapi.CallOption) (*InstanceTemplateAggregatedList, error)
Do executes the "compute.instanceTemplates.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *InstanceTemplateAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceTemplatesAggregatedListCall) Fields ¶ added in v0.111.0
func (c *InstanceTemplatesAggregatedListCall) Fields(s ...googleapi.Field) *InstanceTemplatesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceTemplatesAggregatedListCall) Filter ¶ added in v0.111.0
func (c *InstanceTemplatesAggregatedListCall) Filter(filter string) *InstanceTemplatesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstanceTemplatesAggregatedListCall) Header ¶ added in v0.111.0
func (c *InstanceTemplatesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceTemplatesAggregatedListCall) IfNoneMatch ¶ added in v0.111.0
func (c *InstanceTemplatesAggregatedListCall) IfNoneMatch(entityTag string) *InstanceTemplatesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstanceTemplatesAggregatedListCall) IncludeAllScopes ¶ added in v0.111.0
func (c *InstanceTemplatesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *InstanceTemplatesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*InstanceTemplatesAggregatedListCall) MaxResults ¶ added in v0.111.0
func (c *InstanceTemplatesAggregatedListCall) MaxResults(maxResults int64) *InstanceTemplatesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstanceTemplatesAggregatedListCall) OrderBy ¶ added in v0.111.0
func (c *InstanceTemplatesAggregatedListCall) OrderBy(orderBy string) *InstanceTemplatesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstanceTemplatesAggregatedListCall) PageToken ¶ added in v0.111.0
func (c *InstanceTemplatesAggregatedListCall) PageToken(pageToken string) *InstanceTemplatesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstanceTemplatesAggregatedListCall) Pages ¶ added in v0.111.0
func (c *InstanceTemplatesAggregatedListCall) Pages(ctx context.Context, f func(*InstanceTemplateAggregatedList) 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 (*InstanceTemplatesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.111.0
func (c *InstanceTemplatesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceTemplatesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*InstanceTemplatesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *InstanceTemplatesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *InstanceTemplatesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type InstanceTemplatesDeleteCall ¶
type InstanceTemplatesDeleteCall struct {
// contains filtered or unexported fields
}
func (*InstanceTemplatesDeleteCall) Context ¶
func (c *InstanceTemplatesDeleteCall) Context(ctx context.Context) *InstanceTemplatesDeleteCall
Context sets the context to be used in this call's Do method.
func (*InstanceTemplatesDeleteCall) Do ¶
func (c *InstanceTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceTemplates.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceTemplatesDeleteCall) Fields ¶
func (c *InstanceTemplatesDeleteCall) Fields(s ...googleapi.Field) *InstanceTemplatesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceTemplatesDeleteCall) Header ¶
func (c *InstanceTemplatesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceTemplatesDeleteCall) RequestId ¶
func (c *InstanceTemplatesDeleteCall) RequestId(requestId string) *InstanceTemplatesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceTemplatesGetCall ¶
type InstanceTemplatesGetCall struct {
// contains filtered or unexported fields
}
func (*InstanceTemplatesGetCall) Context ¶
func (c *InstanceTemplatesGetCall) Context(ctx context.Context) *InstanceTemplatesGetCall
Context sets the context to be used in this call's Do method.
func (*InstanceTemplatesGetCall) Do ¶
func (c *InstanceTemplatesGetCall) Do(opts ...googleapi.CallOption) (*InstanceTemplate, error)
Do executes the "compute.instanceTemplates.get" call. Any non-2xx status code is an error. Response headers are in either *InstanceTemplate.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceTemplatesGetCall) Fields ¶
func (c *InstanceTemplatesGetCall) Fields(s ...googleapi.Field) *InstanceTemplatesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceTemplatesGetCall) Header ¶
func (c *InstanceTemplatesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceTemplatesGetCall) IfNoneMatch ¶
func (c *InstanceTemplatesGetCall) IfNoneMatch(entityTag string) *InstanceTemplatesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InstanceTemplatesGetIamPolicyCall ¶
type InstanceTemplatesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*InstanceTemplatesGetIamPolicyCall) Context ¶
func (c *InstanceTemplatesGetIamPolicyCall) Context(ctx context.Context) *InstanceTemplatesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*InstanceTemplatesGetIamPolicyCall) Do ¶
func (c *InstanceTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.instanceTemplates.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceTemplatesGetIamPolicyCall) Fields ¶
func (c *InstanceTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *InstanceTemplatesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceTemplatesGetIamPolicyCall) Header ¶
func (c *InstanceTemplatesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceTemplatesGetIamPolicyCall) IfNoneMatch ¶
func (c *InstanceTemplatesGetIamPolicyCall) IfNoneMatch(entityTag string) *InstanceTemplatesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstanceTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.30.0
func (c *InstanceTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *InstanceTemplatesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type InstanceTemplatesInsertCall ¶
type InstanceTemplatesInsertCall struct {
// contains filtered or unexported fields
}
func (*InstanceTemplatesInsertCall) Context ¶
func (c *InstanceTemplatesInsertCall) Context(ctx context.Context) *InstanceTemplatesInsertCall
Context sets the context to be used in this call's Do method.
func (*InstanceTemplatesInsertCall) Do ¶
func (c *InstanceTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceTemplates.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceTemplatesInsertCall) Fields ¶
func (c *InstanceTemplatesInsertCall) Fields(s ...googleapi.Field) *InstanceTemplatesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceTemplatesInsertCall) Header ¶
func (c *InstanceTemplatesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceTemplatesInsertCall) RequestId ¶
func (c *InstanceTemplatesInsertCall) RequestId(requestId string) *InstanceTemplatesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstanceTemplatesListCall ¶
type InstanceTemplatesListCall struct {
// contains filtered or unexported fields
}
func (*InstanceTemplatesListCall) Context ¶
func (c *InstanceTemplatesListCall) Context(ctx context.Context) *InstanceTemplatesListCall
Context sets the context to be used in this call's Do method.
func (*InstanceTemplatesListCall) Do ¶
func (c *InstanceTemplatesListCall) Do(opts ...googleapi.CallOption) (*InstanceTemplateList, error)
Do executes the "compute.instanceTemplates.list" call. Any non-2xx status code is an error. Response headers are in either *InstanceTemplateList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceTemplatesListCall) Fields ¶
func (c *InstanceTemplatesListCall) Fields(s ...googleapi.Field) *InstanceTemplatesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceTemplatesListCall) Filter ¶
func (c *InstanceTemplatesListCall) Filter(filter string) *InstanceTemplatesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstanceTemplatesListCall) Header ¶
func (c *InstanceTemplatesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstanceTemplatesListCall) IfNoneMatch ¶
func (c *InstanceTemplatesListCall) IfNoneMatch(entityTag string) *InstanceTemplatesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstanceTemplatesListCall) MaxResults ¶
func (c *InstanceTemplatesListCall) MaxResults(maxResults int64) *InstanceTemplatesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstanceTemplatesListCall) OrderBy ¶
func (c *InstanceTemplatesListCall) OrderBy(orderBy string) *InstanceTemplatesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstanceTemplatesListCall) PageToken ¶
func (c *InstanceTemplatesListCall) PageToken(pageToken string) *InstanceTemplatesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstanceTemplatesListCall) Pages ¶
func (c *InstanceTemplatesListCall) Pages(ctx context.Context, f func(*InstanceTemplateList) 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 (*InstanceTemplatesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InstanceTemplatesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstanceTemplatesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type InstanceTemplatesScopedList ¶ added in v0.111.0
type InstanceTemplatesScopedList struct { // InstanceTemplates: [Output Only] A list of instance templates that are // contained within the specified project and zone. InstanceTemplates []*InstanceTemplate `json:"instanceTemplates,omitempty"` // Warning: [Output Only] An informational warning that replaces the list of // instance templates when the list is empty. Warning *InstanceTemplatesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceTemplates") 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. "InstanceTemplates") 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:"-"` }
func (InstanceTemplatesScopedList) MarshalJSON ¶ added in v0.111.0
func (s InstanceTemplatesScopedList) MarshalJSON() ([]byte, error)
type InstanceTemplatesScopedListWarning ¶ added in v0.111.0
type InstanceTemplatesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstanceTemplatesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstanceTemplatesScopedListWarning: [Output Only] An informational warning that replaces the list of instance templates when the list is empty.
func (InstanceTemplatesScopedListWarning) MarshalJSON ¶ added in v0.111.0
func (s InstanceTemplatesScopedListWarning) MarshalJSON() ([]byte, error)
type InstanceTemplatesScopedListWarningData ¶ added in v0.111.0
type InstanceTemplatesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstanceTemplatesScopedListWarningData) MarshalJSON ¶ added in v0.111.0
func (s InstanceTemplatesScopedListWarningData) MarshalJSON() ([]byte, error)
type InstanceTemplatesService ¶
type InstanceTemplatesService struct {
// contains filtered or unexported fields
}
func NewInstanceTemplatesService ¶
func NewInstanceTemplatesService(s *Service) *InstanceTemplatesService
func (*InstanceTemplatesService) AggregatedList ¶ added in v0.111.0
func (r *InstanceTemplatesService) AggregatedList(project string) *InstanceTemplatesAggregatedListCall
AggregatedList: Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Name of the project scoping this request.
func (*InstanceTemplatesService) Delete ¶
func (r *InstanceTemplatesService) Delete(project string, instanceTemplate string) *InstanceTemplatesDeleteCall
Delete: Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed instance group.
- instanceTemplate: The name of the instance template to delete. - project: Project ID for this request.
func (*InstanceTemplatesService) Get ¶
func (r *InstanceTemplatesService) Get(project string, instanceTemplate string) *InstanceTemplatesGetCall
Get: Returns the specified instance template.
- instanceTemplate: The name of the instance template. - project: Project ID for this request.
func (*InstanceTemplatesService) GetIamPolicy ¶
func (r *InstanceTemplatesService) GetIamPolicy(project string, resource string) *InstanceTemplatesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*InstanceTemplatesService) Insert ¶
func (r *InstanceTemplatesService) Insert(project string, instancetemplate *InstanceTemplate) *InstanceTemplatesInsertCall
Insert: Creates an instance template in the specified project using the data that is included in the request. If you are creating a new template to update an existing instance group, your new instance template must use the same network or, if applicable, the same subnetwork as the original template.
- project: Project ID for this request.
func (*InstanceTemplatesService) List ¶
func (r *InstanceTemplatesService) List(project string) *InstanceTemplatesListCall
List: Retrieves a list of instance templates that are contained within the specified project.
- project: Project ID for this request.
func (*InstanceTemplatesService) SetIamPolicy ¶
func (r *InstanceTemplatesService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *InstanceTemplatesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*InstanceTemplatesService) TestIamPermissions ¶
func (r *InstanceTemplatesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *InstanceTemplatesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
type InstanceTemplatesSetIamPolicyCall ¶
type InstanceTemplatesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*InstanceTemplatesSetIamPolicyCall) Context ¶
func (c *InstanceTemplatesSetIamPolicyCall) Context(ctx context.Context) *InstanceTemplatesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*InstanceTemplatesSetIamPolicyCall) Do ¶
func (c *InstanceTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.instanceTemplates.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceTemplatesSetIamPolicyCall) Fields ¶
func (c *InstanceTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *InstanceTemplatesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceTemplatesSetIamPolicyCall) Header ¶
func (c *InstanceTemplatesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type InstanceTemplatesTestIamPermissionsCall ¶
type InstanceTemplatesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*InstanceTemplatesTestIamPermissionsCall) Context ¶
func (c *InstanceTemplatesTestIamPermissionsCall) Context(ctx context.Context) *InstanceTemplatesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*InstanceTemplatesTestIamPermissionsCall) Do ¶
func (c *InstanceTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.instanceTemplates.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceTemplatesTestIamPermissionsCall) Fields ¶
func (c *InstanceTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *InstanceTemplatesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstanceTemplatesTestIamPermissionsCall) Header ¶
func (c *InstanceTemplatesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type InstanceWithNamedPorts ¶
type InstanceWithNamedPorts struct { // Instance: [Output Only] The URL of the instance. Instance string `json:"instance,omitempty"` // NamedPorts: [Output Only] The named ports that belong to this instance // group. NamedPorts []*NamedPort `json:"namedPorts,omitempty"` // Status: [Output Only] The status of the instance. // // Possible values: // "DEPROVISIONING" - The instance is halted and we are performing tear down // tasks like network deprogramming, releasing quota, IP, tearing down disks // etc. // "PROVISIONING" - Resources are being allocated for the instance. // "REPAIRING" - The instance is in repair. // "RUNNING" - The instance is running. // "STAGING" - All required resources have been allocated and the instance is // being started. // "STOPPED" - The instance has stopped successfully. // "STOPPING" - The instance is currently stopping (either being deleted or // killed). // "SUSPENDED" - The instance has suspended. // "SUSPENDING" - The instance is suspending. // "TERMINATED" - The instance has stopped (either by explicit action or // underlying failure). Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "Instance") 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. "Instance") 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:"-"` }
func (InstanceWithNamedPorts) MarshalJSON ¶
func (s InstanceWithNamedPorts) MarshalJSON() ([]byte, error)
type InstancesAddAccessConfigCall ¶
type InstancesAddAccessConfigCall struct {
// contains filtered or unexported fields
}
func (*InstancesAddAccessConfigCall) Context ¶
func (c *InstancesAddAccessConfigCall) Context(ctx context.Context) *InstancesAddAccessConfigCall
Context sets the context to be used in this call's Do method.
func (*InstancesAddAccessConfigCall) Do ¶
func (c *InstancesAddAccessConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.addAccessConfig" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesAddAccessConfigCall) Fields ¶
func (c *InstancesAddAccessConfigCall) Fields(s ...googleapi.Field) *InstancesAddAccessConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesAddAccessConfigCall) Header ¶
func (c *InstancesAddAccessConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesAddAccessConfigCall) RequestId ¶
func (c *InstancesAddAccessConfigCall) RequestId(requestId string) *InstancesAddAccessConfigCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesAddResourcePoliciesCall ¶ added in v0.22.0
type InstancesAddResourcePoliciesCall struct {
// contains filtered or unexported fields
}
func (*InstancesAddResourcePoliciesCall) Context ¶ added in v0.22.0
func (c *InstancesAddResourcePoliciesCall) Context(ctx context.Context) *InstancesAddResourcePoliciesCall
Context sets the context to be used in this call's Do method.
func (*InstancesAddResourcePoliciesCall) Do ¶ added in v0.22.0
func (c *InstancesAddResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.addResourcePolicies" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesAddResourcePoliciesCall) Fields ¶ added in v0.22.0
func (c *InstancesAddResourcePoliciesCall) Fields(s ...googleapi.Field) *InstancesAddResourcePoliciesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesAddResourcePoliciesCall) Header ¶ added in v0.22.0
func (c *InstancesAddResourcePoliciesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesAddResourcePoliciesCall) RequestId ¶ added in v0.22.0
func (c *InstancesAddResourcePoliciesCall) RequestId(requestId string) *InstancesAddResourcePoliciesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesAddResourcePoliciesRequest ¶ added in v0.22.0
type InstancesAddResourcePoliciesRequest struct { // ResourcePolicies: Resource policies to be added to this instance. ResourcePolicies []string `json:"resourcePolicies,omitempty"` // ForceSendFields is a list of field names (e.g. "ResourcePolicies") 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. "ResourcePolicies") 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:"-"` }
func (InstancesAddResourcePoliciesRequest) MarshalJSON ¶ added in v0.22.0
func (s InstancesAddResourcePoliciesRequest) MarshalJSON() ([]byte, error)
type InstancesAggregatedListCall ¶
type InstancesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*InstancesAggregatedListCall) Context ¶
func (c *InstancesAggregatedListCall) Context(ctx context.Context) *InstancesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*InstancesAggregatedListCall) Do ¶
func (c *InstancesAggregatedListCall) Do(opts ...googleapi.CallOption) (*InstanceAggregatedList, error)
Do executes the "compute.instances.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *InstanceAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesAggregatedListCall) Fields ¶
func (c *InstancesAggregatedListCall) Fields(s ...googleapi.Field) *InstancesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesAggregatedListCall) Filter ¶
func (c *InstancesAggregatedListCall) Filter(filter string) *InstancesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstancesAggregatedListCall) Header ¶
func (c *InstancesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesAggregatedListCall) IfNoneMatch ¶
func (c *InstancesAggregatedListCall) IfNoneMatch(entityTag string) *InstancesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstancesAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *InstancesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *InstancesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*InstancesAggregatedListCall) MaxResults ¶
func (c *InstancesAggregatedListCall) MaxResults(maxResults int64) *InstancesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstancesAggregatedListCall) OrderBy ¶
func (c *InstancesAggregatedListCall) OrderBy(orderBy string) *InstancesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstancesAggregatedListCall) PageToken ¶
func (c *InstancesAggregatedListCall) PageToken(pageToken string) *InstancesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstancesAggregatedListCall) Pages ¶
func (c *InstancesAggregatedListCall) Pages(ctx context.Context, f func(*InstanceAggregatedList) 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 (*InstancesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InstancesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstancesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*InstancesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *InstancesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *InstancesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type InstancesAttachDiskCall ¶
type InstancesAttachDiskCall struct {
// contains filtered or unexported fields
}
func (*InstancesAttachDiskCall) Context ¶
func (c *InstancesAttachDiskCall) Context(ctx context.Context) *InstancesAttachDiskCall
Context sets the context to be used in this call's Do method.
func (*InstancesAttachDiskCall) Do ¶
func (c *InstancesAttachDiskCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.attachDisk" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesAttachDiskCall) Fields ¶
func (c *InstancesAttachDiskCall) Fields(s ...googleapi.Field) *InstancesAttachDiskCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesAttachDiskCall) ForceAttach ¶
func (c *InstancesAttachDiskCall) ForceAttach(forceAttach bool) *InstancesAttachDiskCall
ForceAttach sets the optional parameter "forceAttach": Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error.
func (*InstancesAttachDiskCall) Header ¶
func (c *InstancesAttachDiskCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesAttachDiskCall) RequestId ¶
func (c *InstancesAttachDiskCall) RequestId(requestId string) *InstancesAttachDiskCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesBulkInsertCall ¶ added in v0.41.0
type InstancesBulkInsertCall struct {
// contains filtered or unexported fields
}
func (*InstancesBulkInsertCall) Context ¶ added in v0.41.0
func (c *InstancesBulkInsertCall) Context(ctx context.Context) *InstancesBulkInsertCall
Context sets the context to be used in this call's Do method.
func (*InstancesBulkInsertCall) Do ¶ added in v0.41.0
func (c *InstancesBulkInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.bulkInsert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesBulkInsertCall) Fields ¶ added in v0.41.0
func (c *InstancesBulkInsertCall) Fields(s ...googleapi.Field) *InstancesBulkInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesBulkInsertCall) Header ¶ added in v0.41.0
func (c *InstancesBulkInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesBulkInsertCall) RequestId ¶ added in v0.41.0
func (c *InstancesBulkInsertCall) RequestId(requestId string) *InstancesBulkInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesBulkInsertOperationMetadata ¶ added in v0.139.0
type InstancesBulkInsertOperationMetadata struct { // PerLocationStatus: Status information per location (location name is key). // Example key: zones/us-central1-a PerLocationStatus map[string]BulkInsertOperationStatus `json:"perLocationStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "PerLocationStatus") 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. "PerLocationStatus") 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:"-"` }
func (InstancesBulkInsertOperationMetadata) MarshalJSON ¶ added in v0.139.0
func (s InstancesBulkInsertOperationMetadata) MarshalJSON() ([]byte, error)
type InstancesDeleteAccessConfigCall ¶
type InstancesDeleteAccessConfigCall struct {
// contains filtered or unexported fields
}
func (*InstancesDeleteAccessConfigCall) Context ¶
func (c *InstancesDeleteAccessConfigCall) Context(ctx context.Context) *InstancesDeleteAccessConfigCall
Context sets the context to be used in this call's Do method.
func (*InstancesDeleteAccessConfigCall) Do ¶
func (c *InstancesDeleteAccessConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.deleteAccessConfig" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesDeleteAccessConfigCall) Fields ¶
func (c *InstancesDeleteAccessConfigCall) Fields(s ...googleapi.Field) *InstancesDeleteAccessConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesDeleteAccessConfigCall) Header ¶
func (c *InstancesDeleteAccessConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesDeleteAccessConfigCall) RequestId ¶
func (c *InstancesDeleteAccessConfigCall) RequestId(requestId string) *InstancesDeleteAccessConfigCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesDeleteCall ¶
type InstancesDeleteCall struct {
// contains filtered or unexported fields
}
func (*InstancesDeleteCall) Context ¶
func (c *InstancesDeleteCall) Context(ctx context.Context) *InstancesDeleteCall
Context sets the context to be used in this call's Do method.
func (*InstancesDeleteCall) Do ¶
func (c *InstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesDeleteCall) Fields ¶
func (c *InstancesDeleteCall) Fields(s ...googleapi.Field) *InstancesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesDeleteCall) Header ¶
func (c *InstancesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesDeleteCall) RequestId ¶
func (c *InstancesDeleteCall) RequestId(requestId string) *InstancesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesDetachDiskCall ¶
type InstancesDetachDiskCall struct {
// contains filtered or unexported fields
}
func (*InstancesDetachDiskCall) Context ¶
func (c *InstancesDetachDiskCall) Context(ctx context.Context) *InstancesDetachDiskCall
Context sets the context to be used in this call's Do method.
func (*InstancesDetachDiskCall) Do ¶
func (c *InstancesDetachDiskCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.detachDisk" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesDetachDiskCall) Fields ¶
func (c *InstancesDetachDiskCall) Fields(s ...googleapi.Field) *InstancesDetachDiskCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesDetachDiskCall) Header ¶
func (c *InstancesDetachDiskCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesDetachDiskCall) RequestId ¶
func (c *InstancesDetachDiskCall) RequestId(requestId string) *InstancesDetachDiskCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesGetCall ¶
type InstancesGetCall struct {
// contains filtered or unexported fields
}
func (*InstancesGetCall) Context ¶
func (c *InstancesGetCall) Context(ctx context.Context) *InstancesGetCall
Context sets the context to be used in this call's Do method.
func (*InstancesGetCall) Do ¶
func (c *InstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error)
Do executes the "compute.instances.get" call. Any non-2xx status code is an error. Response headers are in either *Instance.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesGetCall) Fields ¶
func (c *InstancesGetCall) Fields(s ...googleapi.Field) *InstancesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesGetCall) Header ¶
func (c *InstancesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesGetCall) IfNoneMatch ¶
func (c *InstancesGetCall) IfNoneMatch(entityTag string) *InstancesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InstancesGetEffectiveFirewallsCall ¶ added in v0.41.0
type InstancesGetEffectiveFirewallsCall struct {
// contains filtered or unexported fields
}
func (*InstancesGetEffectiveFirewallsCall) Context ¶ added in v0.41.0
func (c *InstancesGetEffectiveFirewallsCall) Context(ctx context.Context) *InstancesGetEffectiveFirewallsCall
Context sets the context to be used in this call's Do method.
func (*InstancesGetEffectiveFirewallsCall) Do ¶ added in v0.41.0
func (c *InstancesGetEffectiveFirewallsCall) Do(opts ...googleapi.CallOption) (*InstancesGetEffectiveFirewallsResponse, error)
Do executes the "compute.instances.getEffectiveFirewalls" call. Any non-2xx status code is an error. Response headers are in either *InstancesGetEffectiveFirewallsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesGetEffectiveFirewallsCall) Fields ¶ added in v0.41.0
func (c *InstancesGetEffectiveFirewallsCall) Fields(s ...googleapi.Field) *InstancesGetEffectiveFirewallsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesGetEffectiveFirewallsCall) Header ¶ added in v0.41.0
func (c *InstancesGetEffectiveFirewallsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesGetEffectiveFirewallsCall) IfNoneMatch ¶ added in v0.41.0
func (c *InstancesGetEffectiveFirewallsCall) IfNoneMatch(entityTag string) *InstancesGetEffectiveFirewallsCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InstancesGetEffectiveFirewallsResponse ¶ added in v0.41.0
type InstancesGetEffectiveFirewallsResponse struct { // FirewallPolicys: Effective firewalls from firewall policies. FirewallPolicys []*InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy `json:"firewallPolicys,omitempty"` // Firewalls: Effective firewalls on the instance. Firewalls []*Firewall `json:"firewalls,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "FirewallPolicys") 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. "FirewallPolicys") 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:"-"` }
func (InstancesGetEffectiveFirewallsResponse) MarshalJSON ¶ added in v0.41.0
func (s InstancesGetEffectiveFirewallsResponse) MarshalJSON() ([]byte, error)
type InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy ¶ added in v0.41.0
type InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy struct { // DisplayName: [Output Only] Deprecated, please use short name instead. The // display name of the firewall policy. DisplayName string `json:"displayName,omitempty"` // Name: [Output Only] The name of the firewall policy. Name string `json:"name,omitempty"` // Priority: [Output only] Priority of firewall policy association. Not // applicable for type=HIERARCHY. Priority int64 `json:"priority,omitempty"` // Rules: The rules that apply to the network. Rules []*FirewallPolicyRule `json:"rules,omitempty"` // ShortName: [Output Only] The short name of the firewall policy. ShortName string `json:"shortName,omitempty"` // Type: [Output Only] The type of the firewall policy. Can be one of // HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. // // Possible values: // "HIERARCHY" // "NETWORK" // "NETWORK_REGIONAL" // "SYSTEM_GLOBAL" // "SYSTEM_REGIONAL" // "UNSPECIFIED" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
func (InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy) MarshalJSON ¶ added in v0.41.0
func (s InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy) MarshalJSON() ([]byte, error)
type InstancesGetGuestAttributesCall ¶ added in v0.7.0
type InstancesGetGuestAttributesCall struct {
// contains filtered or unexported fields
}
func (*InstancesGetGuestAttributesCall) Context ¶ added in v0.7.0
func (c *InstancesGetGuestAttributesCall) Context(ctx context.Context) *InstancesGetGuestAttributesCall
Context sets the context to be used in this call's Do method.
func (*InstancesGetGuestAttributesCall) Do ¶ added in v0.7.0
func (c *InstancesGetGuestAttributesCall) Do(opts ...googleapi.CallOption) (*GuestAttributes, error)
Do executes the "compute.instances.getGuestAttributes" call. Any non-2xx status code is an error. Response headers are in either *GuestAttributes.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesGetGuestAttributesCall) Fields ¶ added in v0.7.0
func (c *InstancesGetGuestAttributesCall) Fields(s ...googleapi.Field) *InstancesGetGuestAttributesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesGetGuestAttributesCall) Header ¶ added in v0.7.0
func (c *InstancesGetGuestAttributesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesGetGuestAttributesCall) IfNoneMatch ¶ added in v0.7.0
func (c *InstancesGetGuestAttributesCall) IfNoneMatch(entityTag string) *InstancesGetGuestAttributesCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstancesGetGuestAttributesCall) QueryPath ¶ added in v0.7.0
func (c *InstancesGetGuestAttributesCall) QueryPath(queryPath string) *InstancesGetGuestAttributesCall
QueryPath sets the optional parameter "queryPath": Specifies the guest attributes path to be queried.
func (*InstancesGetGuestAttributesCall) VariableKey ¶ added in v0.7.0
func (c *InstancesGetGuestAttributesCall) VariableKey(variableKey string) *InstancesGetGuestAttributesCall
VariableKey sets the optional parameter "variableKey": Specifies the key for the guest attributes entry.
type InstancesGetIamPolicyCall ¶
type InstancesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*InstancesGetIamPolicyCall) Context ¶
func (c *InstancesGetIamPolicyCall) Context(ctx context.Context) *InstancesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*InstancesGetIamPolicyCall) Do ¶
func (c *InstancesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.instances.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesGetIamPolicyCall) Fields ¶
func (c *InstancesGetIamPolicyCall) Fields(s ...googleapi.Field) *InstancesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesGetIamPolicyCall) Header ¶
func (c *InstancesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesGetIamPolicyCall) IfNoneMatch ¶
func (c *InstancesGetIamPolicyCall) IfNoneMatch(entityTag string) *InstancesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstancesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.30.0
func (c *InstancesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *InstancesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type InstancesGetScreenshotCall ¶ added in v0.31.0
type InstancesGetScreenshotCall struct {
// contains filtered or unexported fields
}
func (*InstancesGetScreenshotCall) Context ¶ added in v0.31.0
func (c *InstancesGetScreenshotCall) Context(ctx context.Context) *InstancesGetScreenshotCall
Context sets the context to be used in this call's Do method.
func (*InstancesGetScreenshotCall) Do ¶ added in v0.31.0
func (c *InstancesGetScreenshotCall) Do(opts ...googleapi.CallOption) (*Screenshot, error)
Do executes the "compute.instances.getScreenshot" call. Any non-2xx status code is an error. Response headers are in either *Screenshot.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesGetScreenshotCall) Fields ¶ added in v0.31.0
func (c *InstancesGetScreenshotCall) Fields(s ...googleapi.Field) *InstancesGetScreenshotCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesGetScreenshotCall) Header ¶ added in v0.31.0
func (c *InstancesGetScreenshotCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesGetScreenshotCall) IfNoneMatch ¶ added in v0.31.0
func (c *InstancesGetScreenshotCall) IfNoneMatch(entityTag string) *InstancesGetScreenshotCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InstancesGetSerialPortOutputCall ¶
type InstancesGetSerialPortOutputCall struct {
// contains filtered or unexported fields
}
func (*InstancesGetSerialPortOutputCall) Context ¶
func (c *InstancesGetSerialPortOutputCall) Context(ctx context.Context) *InstancesGetSerialPortOutputCall
Context sets the context to be used in this call's Do method.
func (*InstancesGetSerialPortOutputCall) Do ¶
func (c *InstancesGetSerialPortOutputCall) Do(opts ...googleapi.CallOption) (*SerialPortOutput, error)
Do executes the "compute.instances.getSerialPortOutput" call. Any non-2xx status code is an error. Response headers are in either *SerialPortOutput.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesGetSerialPortOutputCall) Fields ¶
func (c *InstancesGetSerialPortOutputCall) Fields(s ...googleapi.Field) *InstancesGetSerialPortOutputCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesGetSerialPortOutputCall) Header ¶
func (c *InstancesGetSerialPortOutputCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesGetSerialPortOutputCall) IfNoneMatch ¶
func (c *InstancesGetSerialPortOutputCall) IfNoneMatch(entityTag string) *InstancesGetSerialPortOutputCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstancesGetSerialPortOutputCall) Port ¶
func (c *InstancesGetSerialPortOutputCall) Port(port int64) *InstancesGetSerialPortOutputCall
Port sets the optional parameter "port": Specifies which COM or serial port to retrieve data from.
func (*InstancesGetSerialPortOutputCall) Start ¶
func (c *InstancesGetSerialPortOutputCall) Start(start int64) *InstancesGetSerialPortOutputCall
Start sets the optional parameter "start": Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
type InstancesGetShieldedInstanceIdentityCall ¶ added in v0.3.0
type InstancesGetShieldedInstanceIdentityCall struct {
// contains filtered or unexported fields
}
func (*InstancesGetShieldedInstanceIdentityCall) Context ¶ added in v0.3.0
func (c *InstancesGetShieldedInstanceIdentityCall) Context(ctx context.Context) *InstancesGetShieldedInstanceIdentityCall
Context sets the context to be used in this call's Do method.
func (*InstancesGetShieldedInstanceIdentityCall) Do ¶ added in v0.3.0
func (c *InstancesGetShieldedInstanceIdentityCall) Do(opts ...googleapi.CallOption) (*ShieldedInstanceIdentity, error)
Do executes the "compute.instances.getShieldedInstanceIdentity" call. Any non-2xx status code is an error. Response headers are in either *ShieldedInstanceIdentity.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesGetShieldedInstanceIdentityCall) Fields ¶ added in v0.3.0
func (c *InstancesGetShieldedInstanceIdentityCall) Fields(s ...googleapi.Field) *InstancesGetShieldedInstanceIdentityCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesGetShieldedInstanceIdentityCall) Header ¶ added in v0.3.0
func (c *InstancesGetShieldedInstanceIdentityCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesGetShieldedInstanceIdentityCall) IfNoneMatch ¶ added in v0.3.0
func (c *InstancesGetShieldedInstanceIdentityCall) IfNoneMatch(entityTag string) *InstancesGetShieldedInstanceIdentityCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InstancesInsertCall ¶
type InstancesInsertCall struct {
// contains filtered or unexported fields
}
func (*InstancesInsertCall) Context ¶
func (c *InstancesInsertCall) Context(ctx context.Context) *InstancesInsertCall
Context sets the context to be used in this call's Do method.
func (*InstancesInsertCall) Do ¶
func (c *InstancesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesInsertCall) Fields ¶
func (c *InstancesInsertCall) Fields(s ...googleapi.Field) *InstancesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesInsertCall) Header ¶
func (c *InstancesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesInsertCall) RequestId ¶
func (c *InstancesInsertCall) RequestId(requestId string) *InstancesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*InstancesInsertCall) SourceInstanceTemplate ¶
func (c *InstancesInsertCall) SourceInstanceTemplate(sourceInstanceTemplate string) *InstancesInsertCall
SourceInstanceTemplate sets the optional parameter "sourceInstanceTemplate": Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate
func (*InstancesInsertCall) SourceMachineImage ¶ added in v0.62.0
func (c *InstancesInsertCall) SourceMachineImage(sourceMachineImage string) *InstancesInsertCall
SourceMachineImage sets the optional parameter "sourceMachineImage": Specifies the machine image to use to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to a machine image: - https://www.googleapis.com/compute/v1/projects/project/global/global /machineImages/machineImage - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage
type InstancesListCall ¶
type InstancesListCall struct {
// contains filtered or unexported fields
}
func (*InstancesListCall) Context ¶
func (c *InstancesListCall) Context(ctx context.Context) *InstancesListCall
Context sets the context to be used in this call's Do method.
func (*InstancesListCall) Do ¶
func (c *InstancesListCall) Do(opts ...googleapi.CallOption) (*InstanceList, error)
Do executes the "compute.instances.list" call. Any non-2xx status code is an error. Response headers are in either *InstanceList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesListCall) Fields ¶
func (c *InstancesListCall) Fields(s ...googleapi.Field) *InstancesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesListCall) Filter ¶
func (c *InstancesListCall) Filter(filter string) *InstancesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstancesListCall) Header ¶
func (c *InstancesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesListCall) IfNoneMatch ¶
func (c *InstancesListCall) IfNoneMatch(entityTag string) *InstancesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstancesListCall) MaxResults ¶
func (c *InstancesListCall) MaxResults(maxResults int64) *InstancesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstancesListCall) OrderBy ¶
func (c *InstancesListCall) OrderBy(orderBy string) *InstancesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstancesListCall) PageToken ¶
func (c *InstancesListCall) PageToken(pageToken string) *InstancesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstancesListCall) Pages ¶
func (c *InstancesListCall) Pages(ctx context.Context, f func(*InstanceList) 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 (*InstancesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InstancesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstancesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type InstancesListReferrersCall ¶
type InstancesListReferrersCall struct {
// contains filtered or unexported fields
}
func (*InstancesListReferrersCall) Context ¶
func (c *InstancesListReferrersCall) Context(ctx context.Context) *InstancesListReferrersCall
Context sets the context to be used in this call's Do method.
func (*InstancesListReferrersCall) Do ¶
func (c *InstancesListReferrersCall) Do(opts ...googleapi.CallOption) (*InstanceListReferrers, error)
Do executes the "compute.instances.listReferrers" call. Any non-2xx status code is an error. Response headers are in either *InstanceListReferrers.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesListReferrersCall) Fields ¶
func (c *InstancesListReferrersCall) Fields(s ...googleapi.Field) *InstancesListReferrersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesListReferrersCall) Filter ¶
func (c *InstancesListReferrersCall) Filter(filter string) *InstancesListReferrersCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstancesListReferrersCall) Header ¶
func (c *InstancesListReferrersCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesListReferrersCall) IfNoneMatch ¶
func (c *InstancesListReferrersCall) IfNoneMatch(entityTag string) *InstancesListReferrersCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstancesListReferrersCall) MaxResults ¶
func (c *InstancesListReferrersCall) MaxResults(maxResults int64) *InstancesListReferrersCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstancesListReferrersCall) OrderBy ¶
func (c *InstancesListReferrersCall) OrderBy(orderBy string) *InstancesListReferrersCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstancesListReferrersCall) PageToken ¶
func (c *InstancesListReferrersCall) PageToken(pageToken string) *InstancesListReferrersCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstancesListReferrersCall) Pages ¶
func (c *InstancesListReferrersCall) Pages(ctx context.Context, f func(*InstanceListReferrers) 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 (*InstancesListReferrersCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InstancesListReferrersCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstancesListReferrersCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type InstancesPerformMaintenanceCall ¶ added in v0.156.0
type InstancesPerformMaintenanceCall struct {
// contains filtered or unexported fields
}
func (*InstancesPerformMaintenanceCall) Context ¶ added in v0.156.0
func (c *InstancesPerformMaintenanceCall) Context(ctx context.Context) *InstancesPerformMaintenanceCall
Context sets the context to be used in this call's Do method.
func (*InstancesPerformMaintenanceCall) Do ¶ added in v0.156.0
func (c *InstancesPerformMaintenanceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.performMaintenance" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesPerformMaintenanceCall) Fields ¶ added in v0.156.0
func (c *InstancesPerformMaintenanceCall) Fields(s ...googleapi.Field) *InstancesPerformMaintenanceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesPerformMaintenanceCall) Header ¶ added in v0.156.0
func (c *InstancesPerformMaintenanceCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesPerformMaintenanceCall) RequestId ¶ added in v0.156.0
func (c *InstancesPerformMaintenanceCall) RequestId(requestId string) *InstancesPerformMaintenanceCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesRemoveResourcePoliciesCall ¶ added in v0.22.0
type InstancesRemoveResourcePoliciesCall struct {
// contains filtered or unexported fields
}
func (*InstancesRemoveResourcePoliciesCall) Context ¶ added in v0.22.0
func (c *InstancesRemoveResourcePoliciesCall) Context(ctx context.Context) *InstancesRemoveResourcePoliciesCall
Context sets the context to be used in this call's Do method.
func (*InstancesRemoveResourcePoliciesCall) Do ¶ added in v0.22.0
func (c *InstancesRemoveResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.removeResourcePolicies" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesRemoveResourcePoliciesCall) Fields ¶ added in v0.22.0
func (c *InstancesRemoveResourcePoliciesCall) Fields(s ...googleapi.Field) *InstancesRemoveResourcePoliciesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesRemoveResourcePoliciesCall) Header ¶ added in v0.22.0
func (c *InstancesRemoveResourcePoliciesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesRemoveResourcePoliciesCall) RequestId ¶ added in v0.22.0
func (c *InstancesRemoveResourcePoliciesCall) RequestId(requestId string) *InstancesRemoveResourcePoliciesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesRemoveResourcePoliciesRequest ¶ added in v0.22.0
type InstancesRemoveResourcePoliciesRequest struct { // ResourcePolicies: Resource policies to be removed from this instance. ResourcePolicies []string `json:"resourcePolicies,omitempty"` // ForceSendFields is a list of field names (e.g. "ResourcePolicies") 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. "ResourcePolicies") 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:"-"` }
func (InstancesRemoveResourcePoliciesRequest) MarshalJSON ¶ added in v0.22.0
func (s InstancesRemoveResourcePoliciesRequest) MarshalJSON() ([]byte, error)
type InstancesResetCall ¶
type InstancesResetCall struct {
// contains filtered or unexported fields
}
func (*InstancesResetCall) Context ¶
func (c *InstancesResetCall) Context(ctx context.Context) *InstancesResetCall
Context sets the context to be used in this call's Do method.
func (*InstancesResetCall) Do ¶
func (c *InstancesResetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.reset" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesResetCall) Fields ¶
func (c *InstancesResetCall) Fields(s ...googleapi.Field) *InstancesResetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesResetCall) Header ¶
func (c *InstancesResetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesResetCall) RequestId ¶
func (c *InstancesResetCall) RequestId(requestId string) *InstancesResetCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesResumeCall ¶ added in v0.67.0
type InstancesResumeCall struct {
// contains filtered or unexported fields
}
func (*InstancesResumeCall) Context ¶ added in v0.67.0
func (c *InstancesResumeCall) Context(ctx context.Context) *InstancesResumeCall
Context sets the context to be used in this call's Do method.
func (*InstancesResumeCall) Do ¶ added in v0.67.0
func (c *InstancesResumeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.resume" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesResumeCall) Fields ¶ added in v0.67.0
func (c *InstancesResumeCall) Fields(s ...googleapi.Field) *InstancesResumeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesResumeCall) Header ¶ added in v0.67.0
func (c *InstancesResumeCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesResumeCall) RequestId ¶ added in v0.67.0
func (c *InstancesResumeCall) RequestId(requestId string) *InstancesResumeCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesScopedList ¶
type InstancesScopedList struct { // Instances: [Output Only] A list of instances contained in this scope. Instances []*Instance `json:"instances,omitempty"` // Warning: [Output Only] Informational warning which replaces the list of // instances when the list is empty. Warning *InstancesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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:"-"` }
func (InstancesScopedList) MarshalJSON ¶
func (s InstancesScopedList) MarshalJSON() ([]byte, error)
type InstancesScopedListWarning ¶
type InstancesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstancesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstancesScopedListWarning: [Output Only] Informational warning which replaces the list of instances when the list is empty.
func (InstancesScopedListWarning) MarshalJSON ¶
func (s InstancesScopedListWarning) MarshalJSON() ([]byte, error)
type InstancesScopedListWarningData ¶
type InstancesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstancesScopedListWarningData) MarshalJSON ¶
func (s InstancesScopedListWarningData) MarshalJSON() ([]byte, error)
type InstancesSendDiagnosticInterruptCall ¶ added in v0.55.0
type InstancesSendDiagnosticInterruptCall struct {
// contains filtered or unexported fields
}
func (*InstancesSendDiagnosticInterruptCall) Context ¶ added in v0.55.0
func (c *InstancesSendDiagnosticInterruptCall) Context(ctx context.Context) *InstancesSendDiagnosticInterruptCall
Context sets the context to be used in this call's Do method.
func (*InstancesSendDiagnosticInterruptCall) Do ¶ added in v0.55.0
func (c *InstancesSendDiagnosticInterruptCall) Do(opts ...googleapi.CallOption) error
Do executes the "compute.instances.sendDiagnosticInterrupt" call.
func (*InstancesSendDiagnosticInterruptCall) Fields ¶ added in v0.55.0
func (c *InstancesSendDiagnosticInterruptCall) Fields(s ...googleapi.Field) *InstancesSendDiagnosticInterruptCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSendDiagnosticInterruptCall) Header ¶ added in v0.55.0
func (c *InstancesSendDiagnosticInterruptCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type InstancesService ¶
type InstancesService struct {
// contains filtered or unexported fields
}
func NewInstancesService ¶
func NewInstancesService(s *Service) *InstancesService
func (*InstancesService) AddAccessConfig ¶
func (r *InstancesService) AddAccessConfig(project string, zone string, instance string, networkInterface string, accessconfig *AccessConfig) *InstancesAddAccessConfigCall
AddAccessConfig: Adds an access config to an instance's network interface.
- instance: The instance name for this request.
- networkInterface: The name of the network interface to add to this instance.
- project: Project ID for this request.
- zone: The name of the zone for this request.
func (*InstancesService) AddResourcePolicies ¶ added in v0.22.0
func (r *InstancesService) AddResourcePolicies(project string, zone string, instance string, instancesaddresourcepoliciesrequest *InstancesAddResourcePoliciesRequest) *InstancesAddResourcePoliciesCall
AddResourcePolicies: Adds existing resource policies to an instance. You can only add one policy right now which will be applied to this instance for scheduling live migrations.
- instance: The instance name for this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) AggregatedList ¶
func (r *InstancesService) AggregatedList(project string) *InstancesAggregatedListCall
AggregatedList: Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*InstancesService) AttachDisk ¶
func (r *InstancesService) AttachDisk(project string, zone string, instance string, attacheddisk *AttachedDisk) *InstancesAttachDiskCall
AttachDisk: Attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, read Adding a persistent disk to your instance.
- instance: The instance name for this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) BulkInsert ¶ added in v0.41.0
func (r *InstancesService) BulkInsert(project string, zone string, bulkinsertinstanceresource *BulkInsertInstanceResource) *InstancesBulkInsertCall
BulkInsert: Creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs.
- project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) Delete ¶
func (r *InstancesService) Delete(project string, zone string, instance string) *InstancesDeleteCall
Delete: Deletes the specified Instance resource. For more information, see Deleting an instance.
- instance: Name of the instance resource to delete. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) DeleteAccessConfig ¶
func (r *InstancesService) DeleteAccessConfig(project string, zone string, instance string, accessConfig string, networkInterface string) *InstancesDeleteAccessConfigCall
DeleteAccessConfig: Deletes an access config from an instance's network interface.
- accessConfig: The name of the access config to delete. - instance: The instance name for this request. - networkInterface: The name of the network interface. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) DetachDisk ¶
func (r *InstancesService) DetachDisk(project string, zone string, instance string, deviceName string) *InstancesDetachDiskCall
DetachDisk: Detaches a disk from an instance.
- deviceName: The device name of the disk to detach. Make a get() request on the instance to view currently attached disks and device names.
- instance: Instance name for this request.
- project: Project ID for this request.
- zone: The name of the zone for this request.
func (*InstancesService) Get ¶
func (r *InstancesService) Get(project string, zone string, instance string) *InstancesGetCall
Get: Returns the specified Instance resource.
- instance: Name of the instance resource to return. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) GetEffectiveFirewalls ¶ added in v0.41.0
func (r *InstancesService) GetEffectiveFirewalls(project string, zone string, instance string, networkInterface string) *InstancesGetEffectiveFirewallsCall
GetEffectiveFirewalls: Returns effective firewalls applied to an interface of the instance.
- instance: Name of the instance scoping this request.
- networkInterface: The name of the network interface to get the effective firewalls.
- project: Project ID for this request.
- zone: The name of the zone for this request.
func (*InstancesService) GetGuestAttributes ¶ added in v0.7.0
func (r *InstancesService) GetGuestAttributes(project string, zone string, instance string) *InstancesGetGuestAttributesCall
GetGuestAttributes: Returns the specified guest attributes entry.
- instance: Name of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) GetIamPolicy ¶
func (r *InstancesService) GetIamPolicy(project string, zone string, resource string) *InstancesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*InstancesService) GetScreenshot ¶ added in v0.31.0
func (r *InstancesService) GetScreenshot(project string, zone string, instance string) *InstancesGetScreenshotCall
GetScreenshot: Returns the screenshot from the specified instance.
- instance: Name of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) GetSerialPortOutput ¶
func (r *InstancesService) GetSerialPortOutput(project string, zone string, instance string) *InstancesGetSerialPortOutputCall
GetSerialPortOutput: Returns the last 1 MB of serial port output from the specified instance.
- instance: Name of the instance for this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) GetShieldedInstanceIdentity ¶ added in v0.3.0
func (r *InstancesService) GetShieldedInstanceIdentity(project string, zone string, instance string) *InstancesGetShieldedInstanceIdentityCall
GetShieldedInstanceIdentity: Returns the Shielded Instance Identity of an instance
- instance: Name or id of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) Insert ¶
func (r *InstancesService) Insert(project string, zone string, instance *Instance) *InstancesInsertCall
Insert: Creates an instance resource in the specified project using the data included in the request.
- project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) List ¶
func (r *InstancesService) List(project string, zone string) *InstancesListCall
List: Retrieves the list of instances contained within the specified zone.
- project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) ListReferrers ¶
func (r *InstancesService) ListReferrers(project string, zone string, instance string) *InstancesListReferrersCall
ListReferrers: Retrieves a list of resources that refer to the VM instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. For more information, read Viewing referrers to VM instances.
- instance: Name of the target instance scoping this request, or '-' if the request should span over all instances in the container.
- project: Project ID for this request.
- zone: The name of the zone for this request.
func (*InstancesService) PerformMaintenance ¶ added in v0.156.0
func (r *InstancesService) PerformMaintenance(project string, zone string, instance string) *InstancesPerformMaintenanceCall
PerformMaintenance: Perform a manual maintenance on the instance.
- instance: Name of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) RemoveResourcePolicies ¶ added in v0.22.0
func (r *InstancesService) RemoveResourcePolicies(project string, zone string, instance string, instancesremoveresourcepoliciesrequest *InstancesRemoveResourcePoliciesRequest) *InstancesRemoveResourcePoliciesCall
RemoveResourcePolicies: Removes resource policies from an instance.
- instance: The instance name for this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) Reset ¶
func (r *InstancesService) Reset(project string, zone string, instance string) *InstancesResetCall
Reset: Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance.
- instance: Name of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) Resume ¶ added in v0.67.0
func (r *InstancesService) Resume(project string, zone string, instance string) *InstancesResumeCall
Resume: Resumes an instance that was suspended using the instances().suspend method.
- instance: Name of the instance resource to resume. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) SendDiagnosticInterrupt ¶ added in v0.55.0
func (r *InstancesService) SendDiagnosticInterrupt(project string, zone string, instance string) *InstancesSendDiagnosticInterruptCall
SendDiagnosticInterrupt: Sends diagnostic interrupt to the instance.
- instance: Name of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) SetDeletionProtection ¶
func (r *InstancesService) SetDeletionProtection(project string, zone string, resource string) *InstancesSetDeletionProtectionCall
SetDeletionProtection: Sets deletion protection on the instance.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*InstancesService) SetDiskAutoDelete ¶
func (r *InstancesService) SetDiskAutoDelete(project string, zone string, instance string, autoDelete bool, deviceName string) *InstancesSetDiskAutoDeleteCall
SetDiskAutoDelete: Sets the auto-delete flag for a disk attached to an instance.
- autoDelete: Whether to auto-delete the disk when the instance is deleted.
- deviceName: The device name of the disk to modify. Make a get() request on the instance to view currently attached disks and device names.
- instance: The instance name for this request.
- project: Project ID for this request.
- zone: The name of the zone for this request.
func (*InstancesService) SetIamPolicy ¶
func (r *InstancesService) SetIamPolicy(project string, zone string, resource string, zonesetpolicyrequest *ZoneSetPolicyRequest) *InstancesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*InstancesService) SetLabels ¶
func (r *InstancesService) SetLabels(project string, zone string, instance string, instancessetlabelsrequest *InstancesSetLabelsRequest) *InstancesSetLabelsCall
SetLabels: Sets labels on an instance. To learn more about labels, read the Labeling Resources documentation.
- instance: Name of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) SetMachineResources ¶
func (r *InstancesService) SetMachineResources(project string, zone string, instance string, instancessetmachineresourcesrequest *InstancesSetMachineResourcesRequest) *InstancesSetMachineResourcesCall
SetMachineResources: Changes the number and/or type of accelerator for a stopped instance to the values specified in the request.
- instance: Name of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) SetMachineType ¶
func (r *InstancesService) SetMachineType(project string, zone string, instance string, instancessetmachinetyperequest *InstancesSetMachineTypeRequest) *InstancesSetMachineTypeCall
SetMachineType: Changes the machine type for a stopped instance to the machine type specified in the request.
- instance: Name of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) SetMetadata ¶
func (r *InstancesService) SetMetadata(project string, zone string, instance string, metadata *Metadata) *InstancesSetMetadataCall
SetMetadata: Sets metadata for the specified instance to the data included in the request.
- instance: Name of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) SetMinCpuPlatform ¶
func (r *InstancesService) SetMinCpuPlatform(project string, zone string, instance string, instancessetmincpuplatformrequest *InstancesSetMinCpuPlatformRequest) *InstancesSetMinCpuPlatformCall
SetMinCpuPlatform: Changes the minimum CPU platform that this instance should use. This method can only be called on a stopped instance. For more information, read Specifying a Minimum CPU Platform.
- instance: Name of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) SetName ¶ added in v0.111.0
func (r *InstancesService) SetName(project string, zone string, instance string, instancessetnamerequest *InstancesSetNameRequest) *InstancesSetNameCall
SetName: Sets name of an instance.
- instance: The instance name for this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) SetScheduling ¶
func (r *InstancesService) SetScheduling(project string, zone string, instance string, scheduling *Scheduling) *InstancesSetSchedulingCall
SetScheduling: Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM host maintenance policy.
- instance: Instance name for this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) SetSecurityPolicy ¶ added in v0.139.0
func (r *InstancesService) SetSecurityPolicy(project string, zone string, instance string, instancessetsecuritypolicyrequest *InstancesSetSecurityPolicyRequest) *InstancesSetSecurityPolicyCall
SetSecurityPolicy: Sets the Google Cloud Armor security policy for the specified instance. For more information, see Google Cloud Armor Overview
- instance: Name of the Instance resource to which the security policy should be set. The name should conform to RFC1035.
- project: Project ID for this request.
- zone: Name of the zone scoping this request.
func (*InstancesService) SetServiceAccount ¶
func (r *InstancesService) SetServiceAccount(project string, zone string, instance string, instancessetserviceaccountrequest *InstancesSetServiceAccountRequest) *InstancesSetServiceAccountCall
SetServiceAccount: Sets the service account on the instance. For more information, read Changing the service account and access scopes for an instance.
- instance: Name of the instance resource to start. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) SetShieldedInstanceIntegrityPolicy ¶ added in v0.3.0
func (r *InstancesService) SetShieldedInstanceIntegrityPolicy(project string, zone string, instance string, shieldedinstanceintegritypolicy *ShieldedInstanceIntegrityPolicy) *InstancesSetShieldedInstanceIntegrityPolicyCall
SetShieldedInstanceIntegrityPolicy: Sets the Shielded Instance integrity policy for an instance. You can only use this method on a running instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- instance: Name or id of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) SetTags ¶
func (r *InstancesService) SetTags(project string, zone string, instance string, tags *Tags) *InstancesSetTagsCall
SetTags: Sets network tags for the specified instance to the data included in the request.
- instance: Name of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) SimulateMaintenanceEvent ¶
func (r *InstancesService) SimulateMaintenanceEvent(project string, zone string, instance string) *InstancesSimulateMaintenanceEventCall
SimulateMaintenanceEvent: Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event.
- instance: Name of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) Start ¶
func (r *InstancesService) Start(project string, zone string, instance string) *InstancesStartCall
Start: Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.
- instance: Name of the instance resource to start. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) StartWithEncryptionKey ¶
func (r *InstancesService) StartWithEncryptionKey(project string, zone string, instance string, instancesstartwithencryptionkeyrequest *InstancesStartWithEncryptionKeyRequest) *InstancesStartWithEncryptionKeyCall
StartWithEncryptionKey: Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.
- instance: Name of the instance resource to start. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) Stop ¶
func (r *InstancesService) Stop(project string, zone string, instance string) *InstancesStopCall
Stop: Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance.
- instance: Name of the instance resource to stop. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) Suspend ¶ added in v0.67.0
func (r *InstancesService) Suspend(project string, zone string, instance string) *InstancesSuspendCall
Suspend: This method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance.
- instance: Name of the instance resource to suspend. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) TestIamPermissions ¶
func (r *InstancesService) TestIamPermissions(project string, zone string, resource string, testpermissionsrequest *TestPermissionsRequest) *InstancesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*InstancesService) Update ¶ added in v0.21.0
func (r *InstancesService) Update(project string, zone string, instance string, instance2 *Instance) *InstancesUpdateCall
Update: Updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See Updating a running instance for a list of updatable instance properties.
- instance: Name of the instance resource to update. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) UpdateAccessConfig ¶
func (r *InstancesService) UpdateAccessConfig(project string, zone string, instance string, networkInterface string, accessconfig *AccessConfig) *InstancesUpdateAccessConfigCall
UpdateAccessConfig: Updates the specified access config from an instance's network interface with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- instance: The instance name for this request.
- networkInterface: The name of the network interface where the access config is attached.
- project: Project ID for this request.
- zone: The name of the zone for this request.
func (*InstancesService) UpdateDisplayDevice ¶ added in v0.11.0
func (r *InstancesService) UpdateDisplayDevice(project string, zone string, instance string, displaydevice *DisplayDevice) *InstancesUpdateDisplayDeviceCall
UpdateDisplayDevice: Updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- instance: Name of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) UpdateNetworkInterface ¶
func (r *InstancesService) UpdateNetworkInterface(project string, zone string, instance string, networkInterface string, networkinterface *NetworkInterface) *InstancesUpdateNetworkInterfaceCall
UpdateNetworkInterface: Updates an instance's network interface. This method can only update an interface's alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on migrating an interface. This method follows PATCH semantics.
- instance: The instance name for this request. - networkInterface: The name of the network interface to update. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstancesService) UpdateShieldedInstanceConfig ¶ added in v0.3.0
func (r *InstancesService) UpdateShieldedInstanceConfig(project string, zone string, instance string, shieldedinstanceconfig *ShieldedInstanceConfig) *InstancesUpdateShieldedInstanceConfigCall
UpdateShieldedInstanceConfig: Updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- instance: Name or id of the instance scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
type InstancesSetDeletionProtectionCall ¶
type InstancesSetDeletionProtectionCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetDeletionProtectionCall) Context ¶
func (c *InstancesSetDeletionProtectionCall) Context(ctx context.Context) *InstancesSetDeletionProtectionCall
Context sets the context to be used in this call's Do method.
func (*InstancesSetDeletionProtectionCall) DeletionProtection ¶
func (c *InstancesSetDeletionProtectionCall) DeletionProtection(deletionProtection bool) *InstancesSetDeletionProtectionCall
DeletionProtection sets the optional parameter "deletionProtection": Whether the resource should be protected against deletion.
func (*InstancesSetDeletionProtectionCall) Do ¶
func (c *InstancesSetDeletionProtectionCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setDeletionProtection" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSetDeletionProtectionCall) Fields ¶
func (c *InstancesSetDeletionProtectionCall) Fields(s ...googleapi.Field) *InstancesSetDeletionProtectionCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSetDeletionProtectionCall) Header ¶
func (c *InstancesSetDeletionProtectionCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesSetDeletionProtectionCall) RequestId ¶
func (c *InstancesSetDeletionProtectionCall) RequestId(requestId string) *InstancesSetDeletionProtectionCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesSetDiskAutoDeleteCall ¶
type InstancesSetDiskAutoDeleteCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetDiskAutoDeleteCall) Context ¶
func (c *InstancesSetDiskAutoDeleteCall) Context(ctx context.Context) *InstancesSetDiskAutoDeleteCall
Context sets the context to be used in this call's Do method.
func (*InstancesSetDiskAutoDeleteCall) Do ¶
func (c *InstancesSetDiskAutoDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setDiskAutoDelete" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSetDiskAutoDeleteCall) Fields ¶
func (c *InstancesSetDiskAutoDeleteCall) Fields(s ...googleapi.Field) *InstancesSetDiskAutoDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSetDiskAutoDeleteCall) Header ¶
func (c *InstancesSetDiskAutoDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesSetDiskAutoDeleteCall) RequestId ¶
func (c *InstancesSetDiskAutoDeleteCall) RequestId(requestId string) *InstancesSetDiskAutoDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesSetIamPolicyCall ¶
type InstancesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetIamPolicyCall) Context ¶
func (c *InstancesSetIamPolicyCall) Context(ctx context.Context) *InstancesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*InstancesSetIamPolicyCall) Do ¶
func (c *InstancesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.instances.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSetIamPolicyCall) Fields ¶
func (c *InstancesSetIamPolicyCall) Fields(s ...googleapi.Field) *InstancesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSetIamPolicyCall) Header ¶
func (c *InstancesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type InstancesSetLabelsCall ¶
type InstancesSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetLabelsCall) Context ¶
func (c *InstancesSetLabelsCall) Context(ctx context.Context) *InstancesSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*InstancesSetLabelsCall) Do ¶
func (c *InstancesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSetLabelsCall) Fields ¶
func (c *InstancesSetLabelsCall) Fields(s ...googleapi.Field) *InstancesSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSetLabelsCall) Header ¶
func (c *InstancesSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesSetLabelsCall) RequestId ¶
func (c *InstancesSetLabelsCall) RequestId(requestId string) *InstancesSetLabelsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesSetLabelsRequest ¶
type InstancesSetLabelsRequest struct { // LabelFingerprint: Fingerprint of the previous set of labels for this // resource, used to prevent conflicts. Provide the latest fingerprint value // when making a request to add or change labels. LabelFingerprint string `json:"labelFingerprint,omitempty"` Labels map[string]string `json:"labels,omitempty"` // ForceSendFields is a list of field names (e.g. "LabelFingerprint") 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. "LabelFingerprint") 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:"-"` }
func (InstancesSetLabelsRequest) MarshalJSON ¶
func (s InstancesSetLabelsRequest) MarshalJSON() ([]byte, error)
type InstancesSetMachineResourcesCall ¶
type InstancesSetMachineResourcesCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetMachineResourcesCall) Context ¶
func (c *InstancesSetMachineResourcesCall) Context(ctx context.Context) *InstancesSetMachineResourcesCall
Context sets the context to be used in this call's Do method.
func (*InstancesSetMachineResourcesCall) Do ¶
func (c *InstancesSetMachineResourcesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setMachineResources" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSetMachineResourcesCall) Fields ¶
func (c *InstancesSetMachineResourcesCall) Fields(s ...googleapi.Field) *InstancesSetMachineResourcesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSetMachineResourcesCall) Header ¶
func (c *InstancesSetMachineResourcesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesSetMachineResourcesCall) RequestId ¶
func (c *InstancesSetMachineResourcesCall) RequestId(requestId string) *InstancesSetMachineResourcesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesSetMachineResourcesRequest ¶
type InstancesSetMachineResourcesRequest struct { // GuestAccelerators: A list of the type and count of accelerator cards // attached to the instance. GuestAccelerators []*AcceleratorConfig `json:"guestAccelerators,omitempty"` // ForceSendFields is a list of field names (e.g. "GuestAccelerators") 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. "GuestAccelerators") 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:"-"` }
func (InstancesSetMachineResourcesRequest) MarshalJSON ¶
func (s InstancesSetMachineResourcesRequest) MarshalJSON() ([]byte, error)
type InstancesSetMachineTypeCall ¶
type InstancesSetMachineTypeCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetMachineTypeCall) Context ¶
func (c *InstancesSetMachineTypeCall) Context(ctx context.Context) *InstancesSetMachineTypeCall
Context sets the context to be used in this call's Do method.
func (*InstancesSetMachineTypeCall) Do ¶
func (c *InstancesSetMachineTypeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setMachineType" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSetMachineTypeCall) Fields ¶
func (c *InstancesSetMachineTypeCall) Fields(s ...googleapi.Field) *InstancesSetMachineTypeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSetMachineTypeCall) Header ¶
func (c *InstancesSetMachineTypeCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesSetMachineTypeCall) RequestId ¶
func (c *InstancesSetMachineTypeCall) RequestId(requestId string) *InstancesSetMachineTypeCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesSetMachineTypeRequest ¶
type InstancesSetMachineTypeRequest struct { // MachineType: Full or partial URL of the machine type resource. See Machine // Types for a full list of machine types. For example: // zones/us-central1-f/machineTypes/n1-standard-1 MachineType string `json:"machineType,omitempty"` // ForceSendFields is a list of field names (e.g. "MachineType") 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. "MachineType") 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:"-"` }
func (InstancesSetMachineTypeRequest) MarshalJSON ¶
func (s InstancesSetMachineTypeRequest) MarshalJSON() ([]byte, error)
type InstancesSetMetadataCall ¶
type InstancesSetMetadataCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetMetadataCall) Context ¶
func (c *InstancesSetMetadataCall) Context(ctx context.Context) *InstancesSetMetadataCall
Context sets the context to be used in this call's Do method.
func (*InstancesSetMetadataCall) Do ¶
func (c *InstancesSetMetadataCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setMetadata" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSetMetadataCall) Fields ¶
func (c *InstancesSetMetadataCall) Fields(s ...googleapi.Field) *InstancesSetMetadataCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSetMetadataCall) Header ¶
func (c *InstancesSetMetadataCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesSetMetadataCall) RequestId ¶
func (c *InstancesSetMetadataCall) RequestId(requestId string) *InstancesSetMetadataCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesSetMinCpuPlatformCall ¶
type InstancesSetMinCpuPlatformCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetMinCpuPlatformCall) Context ¶
func (c *InstancesSetMinCpuPlatformCall) Context(ctx context.Context) *InstancesSetMinCpuPlatformCall
Context sets the context to be used in this call's Do method.
func (*InstancesSetMinCpuPlatformCall) Do ¶
func (c *InstancesSetMinCpuPlatformCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setMinCpuPlatform" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSetMinCpuPlatformCall) Fields ¶
func (c *InstancesSetMinCpuPlatformCall) Fields(s ...googleapi.Field) *InstancesSetMinCpuPlatformCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSetMinCpuPlatformCall) Header ¶
func (c *InstancesSetMinCpuPlatformCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesSetMinCpuPlatformCall) RequestId ¶
func (c *InstancesSetMinCpuPlatformCall) RequestId(requestId string) *InstancesSetMinCpuPlatformCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesSetMinCpuPlatformRequest ¶
type InstancesSetMinCpuPlatformRequest struct { // MinCpuPlatform: Minimum cpu/platform this instance should be started at. MinCpuPlatform string `json:"minCpuPlatform,omitempty"` // ForceSendFields is a list of field names (e.g. "MinCpuPlatform") 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. "MinCpuPlatform") 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:"-"` }
func (InstancesSetMinCpuPlatformRequest) MarshalJSON ¶
func (s InstancesSetMinCpuPlatformRequest) MarshalJSON() ([]byte, error)
type InstancesSetNameCall ¶ added in v0.111.0
type InstancesSetNameCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetNameCall) Context ¶ added in v0.111.0
func (c *InstancesSetNameCall) Context(ctx context.Context) *InstancesSetNameCall
Context sets the context to be used in this call's Do method.
func (*InstancesSetNameCall) Do ¶ added in v0.111.0
func (c *InstancesSetNameCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setName" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSetNameCall) Fields ¶ added in v0.111.0
func (c *InstancesSetNameCall) Fields(s ...googleapi.Field) *InstancesSetNameCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSetNameCall) Header ¶ added in v0.111.0
func (c *InstancesSetNameCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesSetNameCall) RequestId ¶ added in v0.111.0
func (c *InstancesSetNameCall) RequestId(requestId string) *InstancesSetNameCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesSetNameRequest ¶ added in v0.111.0
type InstancesSetNameRequest struct { // CurrentName: The current name of this resource, used to prevent conflicts. // Provide the latest name when making a request to change name. CurrentName string `json:"currentName,omitempty"` // Name: The name to be applied to the instance. Needs to be RFC 1035 // compliant. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "CurrentName") 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. "CurrentName") 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:"-"` }
func (InstancesSetNameRequest) MarshalJSON ¶ added in v0.111.0
func (s InstancesSetNameRequest) MarshalJSON() ([]byte, error)
type InstancesSetSchedulingCall ¶
type InstancesSetSchedulingCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetSchedulingCall) Context ¶
func (c *InstancesSetSchedulingCall) Context(ctx context.Context) *InstancesSetSchedulingCall
Context sets the context to be used in this call's Do method.
func (*InstancesSetSchedulingCall) Do ¶
func (c *InstancesSetSchedulingCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setScheduling" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSetSchedulingCall) Fields ¶
func (c *InstancesSetSchedulingCall) Fields(s ...googleapi.Field) *InstancesSetSchedulingCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSetSchedulingCall) Header ¶
func (c *InstancesSetSchedulingCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesSetSchedulingCall) RequestId ¶
func (c *InstancesSetSchedulingCall) RequestId(requestId string) *InstancesSetSchedulingCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesSetSecurityPolicyCall ¶ added in v0.139.0
type InstancesSetSecurityPolicyCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetSecurityPolicyCall) Context ¶ added in v0.139.0
func (c *InstancesSetSecurityPolicyCall) Context(ctx context.Context) *InstancesSetSecurityPolicyCall
Context sets the context to be used in this call's Do method.
func (*InstancesSetSecurityPolicyCall) Do ¶ added in v0.139.0
func (c *InstancesSetSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setSecurityPolicy" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSetSecurityPolicyCall) Fields ¶ added in v0.139.0
func (c *InstancesSetSecurityPolicyCall) Fields(s ...googleapi.Field) *InstancesSetSecurityPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSetSecurityPolicyCall) Header ¶ added in v0.139.0
func (c *InstancesSetSecurityPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesSetSecurityPolicyCall) RequestId ¶ added in v0.139.0
func (c *InstancesSetSecurityPolicyCall) RequestId(requestId string) *InstancesSetSecurityPolicyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesSetSecurityPolicyRequest ¶ added in v0.139.0
type InstancesSetSecurityPolicyRequest struct { // NetworkInterfaces: The network interfaces that the security policy will be // applied to. Network interfaces use the nicN naming format. You can only set // a security policy for network interfaces with an access config. NetworkInterfaces []string `json:"networkInterfaces,omitempty"` // SecurityPolicy: A full or partial URL to a security policy to add to this // instance. If this field is set to an empty string it will remove the // associated security policy. SecurityPolicy string `json:"securityPolicy,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkInterfaces") 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. "NetworkInterfaces") 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:"-"` }
func (InstancesSetSecurityPolicyRequest) MarshalJSON ¶ added in v0.139.0
func (s InstancesSetSecurityPolicyRequest) MarshalJSON() ([]byte, error)
type InstancesSetServiceAccountCall ¶
type InstancesSetServiceAccountCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetServiceAccountCall) Context ¶
func (c *InstancesSetServiceAccountCall) Context(ctx context.Context) *InstancesSetServiceAccountCall
Context sets the context to be used in this call's Do method.
func (*InstancesSetServiceAccountCall) Do ¶
func (c *InstancesSetServiceAccountCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setServiceAccount" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSetServiceAccountCall) Fields ¶
func (c *InstancesSetServiceAccountCall) Fields(s ...googleapi.Field) *InstancesSetServiceAccountCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSetServiceAccountCall) Header ¶
func (c *InstancesSetServiceAccountCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesSetServiceAccountCall) RequestId ¶
func (c *InstancesSetServiceAccountCall) RequestId(requestId string) *InstancesSetServiceAccountCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesSetServiceAccountRequest ¶
type InstancesSetServiceAccountRequest struct { // Email: Email address of the service account. Email string `json:"email,omitempty"` // Scopes: The list of scopes to be made available for this service account. Scopes []string `json:"scopes,omitempty"` // ForceSendFields is a list of field names (e.g. "Email") 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. "Email") 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:"-"` }
func (InstancesSetServiceAccountRequest) MarshalJSON ¶
func (s InstancesSetServiceAccountRequest) MarshalJSON() ([]byte, error)
type InstancesSetShieldedInstanceIntegrityPolicyCall ¶ added in v0.3.0
type InstancesSetShieldedInstanceIntegrityPolicyCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetShieldedInstanceIntegrityPolicyCall) Context ¶ added in v0.3.0
func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Context(ctx context.Context) *InstancesSetShieldedInstanceIntegrityPolicyCall
Context sets the context to be used in this call's Do method.
func (*InstancesSetShieldedInstanceIntegrityPolicyCall) Do ¶ added in v0.3.0
func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setShieldedInstanceIntegrityPolicy" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSetShieldedInstanceIntegrityPolicyCall) Fields ¶ added in v0.3.0
func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Fields(s ...googleapi.Field) *InstancesSetShieldedInstanceIntegrityPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSetShieldedInstanceIntegrityPolicyCall) Header ¶ added in v0.3.0
func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesSetShieldedInstanceIntegrityPolicyCall) RequestId ¶ added in v0.3.0
func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) RequestId(requestId string) *InstancesSetShieldedInstanceIntegrityPolicyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesSetTagsCall ¶
type InstancesSetTagsCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetTagsCall) Context ¶
func (c *InstancesSetTagsCall) Context(ctx context.Context) *InstancesSetTagsCall
Context sets the context to be used in this call's Do method.
func (*InstancesSetTagsCall) Do ¶
func (c *InstancesSetTagsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setTags" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSetTagsCall) Fields ¶
func (c *InstancesSetTagsCall) Fields(s ...googleapi.Field) *InstancesSetTagsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSetTagsCall) Header ¶
func (c *InstancesSetTagsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesSetTagsCall) RequestId ¶
func (c *InstancesSetTagsCall) RequestId(requestId string) *InstancesSetTagsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesSimulateMaintenanceEventCall ¶
type InstancesSimulateMaintenanceEventCall struct {
// contains filtered or unexported fields
}
func (*InstancesSimulateMaintenanceEventCall) Context ¶
func (c *InstancesSimulateMaintenanceEventCall) Context(ctx context.Context) *InstancesSimulateMaintenanceEventCall
Context sets the context to be used in this call's Do method.
func (*InstancesSimulateMaintenanceEventCall) Do ¶
func (c *InstancesSimulateMaintenanceEventCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.simulateMaintenanceEvent" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSimulateMaintenanceEventCall) Fields ¶
func (c *InstancesSimulateMaintenanceEventCall) Fields(s ...googleapi.Field) *InstancesSimulateMaintenanceEventCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSimulateMaintenanceEventCall) Header ¶
func (c *InstancesSimulateMaintenanceEventCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesSimulateMaintenanceEventCall) RequestId ¶ added in v0.121.0
func (c *InstancesSimulateMaintenanceEventCall) RequestId(requestId string) *InstancesSimulateMaintenanceEventCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*InstancesSimulateMaintenanceEventCall) WithExtendedNotifications ¶ added in v0.156.0
func (c *InstancesSimulateMaintenanceEventCall) WithExtendedNotifications(withExtendedNotifications bool) *InstancesSimulateMaintenanceEventCall
WithExtendedNotifications sets the optional parameter "withExtendedNotifications": Determines whether the customers receive notifications before migration. Only applicable to SF vms.
type InstancesStartCall ¶
type InstancesStartCall struct {
// contains filtered or unexported fields
}
func (*InstancesStartCall) Context ¶
func (c *InstancesStartCall) Context(ctx context.Context) *InstancesStartCall
Context sets the context to be used in this call's Do method.
func (*InstancesStartCall) Do ¶
func (c *InstancesStartCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.start" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesStartCall) Fields ¶
func (c *InstancesStartCall) Fields(s ...googleapi.Field) *InstancesStartCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesStartCall) Header ¶
func (c *InstancesStartCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesStartCall) RequestId ¶
func (c *InstancesStartCall) RequestId(requestId string) *InstancesStartCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesStartWithEncryptionKeyCall ¶
type InstancesStartWithEncryptionKeyCall struct {
// contains filtered or unexported fields
}
func (*InstancesStartWithEncryptionKeyCall) Context ¶
func (c *InstancesStartWithEncryptionKeyCall) Context(ctx context.Context) *InstancesStartWithEncryptionKeyCall
Context sets the context to be used in this call's Do method.
func (*InstancesStartWithEncryptionKeyCall) Do ¶
func (c *InstancesStartWithEncryptionKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.startWithEncryptionKey" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesStartWithEncryptionKeyCall) Fields ¶
func (c *InstancesStartWithEncryptionKeyCall) Fields(s ...googleapi.Field) *InstancesStartWithEncryptionKeyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesStartWithEncryptionKeyCall) Header ¶
func (c *InstancesStartWithEncryptionKeyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesStartWithEncryptionKeyCall) RequestId ¶
func (c *InstancesStartWithEncryptionKeyCall) RequestId(requestId string) *InstancesStartWithEncryptionKeyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesStartWithEncryptionKeyRequest ¶
type InstancesStartWithEncryptionKeyRequest struct { // Disks: Array of disks associated with this instance that are protected with // a customer-supplied encryption key. In order to start the instance, the disk // url and its corresponding key must be provided. If the disk is not protected // with a customer-supplied encryption key it should not be specified. Disks []*CustomerEncryptionKeyProtectedDisk `json:"disks,omitempty"` // ForceSendFields is a list of field names (e.g. "Disks") 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. "Disks") 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:"-"` }
func (InstancesStartWithEncryptionKeyRequest) MarshalJSON ¶
func (s InstancesStartWithEncryptionKeyRequest) MarshalJSON() ([]byte, error)
type InstancesStopCall ¶
type InstancesStopCall struct {
// contains filtered or unexported fields
}
func (*InstancesStopCall) Context ¶
func (c *InstancesStopCall) Context(ctx context.Context) *InstancesStopCall
Context sets the context to be used in this call's Do method.
func (*InstancesStopCall) DiscardLocalSsd ¶ added in v0.104.0
func (c *InstancesStopCall) DiscardLocalSsd(discardLocalSsd bool) *InstancesStopCall
DiscardLocalSsd sets the optional parameter "discardLocalSsd": This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded.
func (*InstancesStopCall) Do ¶
func (c *InstancesStopCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.stop" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesStopCall) Fields ¶
func (c *InstancesStopCall) Fields(s ...googleapi.Field) *InstancesStopCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesStopCall) Header ¶
func (c *InstancesStopCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesStopCall) RequestId ¶
func (c *InstancesStopCall) RequestId(requestId string) *InstancesStopCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesSuspendCall ¶ added in v0.67.0
type InstancesSuspendCall struct {
// contains filtered or unexported fields
}
func (*InstancesSuspendCall) Context ¶ added in v0.67.0
func (c *InstancesSuspendCall) Context(ctx context.Context) *InstancesSuspendCall
Context sets the context to be used in this call's Do method.
func (*InstancesSuspendCall) DiscardLocalSsd ¶ added in v0.104.0
func (c *InstancesSuspendCall) DiscardLocalSsd(discardLocalSsd bool) *InstancesSuspendCall
DiscardLocalSsd sets the optional parameter "discardLocalSsd": This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded.
func (*InstancesSuspendCall) Do ¶ added in v0.67.0
func (c *InstancesSuspendCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.suspend" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSuspendCall) Fields ¶ added in v0.67.0
func (c *InstancesSuspendCall) Fields(s ...googleapi.Field) *InstancesSuspendCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesSuspendCall) Header ¶ added in v0.67.0
func (c *InstancesSuspendCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesSuspendCall) RequestId ¶ added in v0.67.0
func (c *InstancesSuspendCall) RequestId(requestId string) *InstancesSuspendCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesTestIamPermissionsCall ¶
type InstancesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*InstancesTestIamPermissionsCall) Context ¶
func (c *InstancesTestIamPermissionsCall) Context(ctx context.Context) *InstancesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*InstancesTestIamPermissionsCall) Do ¶
func (c *InstancesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.instances.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesTestIamPermissionsCall) Fields ¶
func (c *InstancesTestIamPermissionsCall) Fields(s ...googleapi.Field) *InstancesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesTestIamPermissionsCall) Header ¶
func (c *InstancesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type InstancesUpdateAccessConfigCall ¶
type InstancesUpdateAccessConfigCall struct {
// contains filtered or unexported fields
}
func (*InstancesUpdateAccessConfigCall) Context ¶
func (c *InstancesUpdateAccessConfigCall) Context(ctx context.Context) *InstancesUpdateAccessConfigCall
Context sets the context to be used in this call's Do method.
func (*InstancesUpdateAccessConfigCall) Do ¶
func (c *InstancesUpdateAccessConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.updateAccessConfig" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesUpdateAccessConfigCall) Fields ¶
func (c *InstancesUpdateAccessConfigCall) Fields(s ...googleapi.Field) *InstancesUpdateAccessConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesUpdateAccessConfigCall) Header ¶
func (c *InstancesUpdateAccessConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesUpdateAccessConfigCall) RequestId ¶
func (c *InstancesUpdateAccessConfigCall) RequestId(requestId string) *InstancesUpdateAccessConfigCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesUpdateCall ¶ added in v0.21.0
type InstancesUpdateCall struct {
// contains filtered or unexported fields
}
func (*InstancesUpdateCall) Context ¶ added in v0.21.0
func (c *InstancesUpdateCall) Context(ctx context.Context) *InstancesUpdateCall
Context sets the context to be used in this call's Do method.
func (*InstancesUpdateCall) Do ¶ added in v0.21.0
func (c *InstancesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesUpdateCall) Fields ¶ added in v0.21.0
func (c *InstancesUpdateCall) Fields(s ...googleapi.Field) *InstancesUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesUpdateCall) Header ¶ added in v0.21.0
func (c *InstancesUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesUpdateCall) MinimalAction ¶ added in v0.21.0
func (c *InstancesUpdateCall) MinimalAction(minimalAction string) *InstancesUpdateCall
MinimalAction sets the optional parameter "minimalAction": Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require.
Possible values:
"INVALID" "NO_EFFECT" - No changes can be made to the instance. "REFRESH" - The instance will not restart. "RESTART" - The instance will restart.
func (*InstancesUpdateCall) MostDisruptiveAllowedAction ¶ added in v0.21.0
func (c *InstancesUpdateCall) MostDisruptiveAllowedAction(mostDisruptiveAllowedAction string) *InstancesUpdateCall
MostDisruptiveAllowedAction sets the optional parameter "mostDisruptiveAllowedAction": Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
Possible values:
"INVALID" "NO_EFFECT" - No changes can be made to the instance. "REFRESH" - The instance will not restart. "RESTART" - The instance will restart.
func (*InstancesUpdateCall) RequestId ¶ added in v0.21.0
func (c *InstancesUpdateCall) RequestId(requestId string) *InstancesUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesUpdateDisplayDeviceCall ¶ added in v0.11.0
type InstancesUpdateDisplayDeviceCall struct {
// contains filtered or unexported fields
}
func (*InstancesUpdateDisplayDeviceCall) Context ¶ added in v0.11.0
func (c *InstancesUpdateDisplayDeviceCall) Context(ctx context.Context) *InstancesUpdateDisplayDeviceCall
Context sets the context to be used in this call's Do method.
func (*InstancesUpdateDisplayDeviceCall) Do ¶ added in v0.11.0
func (c *InstancesUpdateDisplayDeviceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.updateDisplayDevice" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesUpdateDisplayDeviceCall) Fields ¶ added in v0.11.0
func (c *InstancesUpdateDisplayDeviceCall) Fields(s ...googleapi.Field) *InstancesUpdateDisplayDeviceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesUpdateDisplayDeviceCall) Header ¶ added in v0.11.0
func (c *InstancesUpdateDisplayDeviceCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesUpdateDisplayDeviceCall) RequestId ¶ added in v0.11.0
func (c *InstancesUpdateDisplayDeviceCall) RequestId(requestId string) *InstancesUpdateDisplayDeviceCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesUpdateNetworkInterfaceCall ¶
type InstancesUpdateNetworkInterfaceCall struct {
// contains filtered or unexported fields
}
func (*InstancesUpdateNetworkInterfaceCall) Context ¶
func (c *InstancesUpdateNetworkInterfaceCall) Context(ctx context.Context) *InstancesUpdateNetworkInterfaceCall
Context sets the context to be used in this call's Do method.
func (*InstancesUpdateNetworkInterfaceCall) Do ¶
func (c *InstancesUpdateNetworkInterfaceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.updateNetworkInterface" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesUpdateNetworkInterfaceCall) Fields ¶
func (c *InstancesUpdateNetworkInterfaceCall) Fields(s ...googleapi.Field) *InstancesUpdateNetworkInterfaceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesUpdateNetworkInterfaceCall) Header ¶
func (c *InstancesUpdateNetworkInterfaceCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesUpdateNetworkInterfaceCall) RequestId ¶
func (c *InstancesUpdateNetworkInterfaceCall) RequestId(requestId string) *InstancesUpdateNetworkInterfaceCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstancesUpdateShieldedInstanceConfigCall ¶ added in v0.3.0
type InstancesUpdateShieldedInstanceConfigCall struct {
// contains filtered or unexported fields
}
func (*InstancesUpdateShieldedInstanceConfigCall) Context ¶ added in v0.3.0
func (c *InstancesUpdateShieldedInstanceConfigCall) Context(ctx context.Context) *InstancesUpdateShieldedInstanceConfigCall
Context sets the context to be used in this call's Do method.
func (*InstancesUpdateShieldedInstanceConfigCall) Do ¶ added in v0.3.0
func (c *InstancesUpdateShieldedInstanceConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.updateShieldedInstanceConfig" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesUpdateShieldedInstanceConfigCall) Fields ¶ added in v0.3.0
func (c *InstancesUpdateShieldedInstanceConfigCall) Fields(s ...googleapi.Field) *InstancesUpdateShieldedInstanceConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstancesUpdateShieldedInstanceConfigCall) Header ¶ added in v0.3.0
func (c *InstancesUpdateShieldedInstanceConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstancesUpdateShieldedInstanceConfigCall) RequestId ¶ added in v0.3.0
func (c *InstancesUpdateShieldedInstanceConfigCall) RequestId(requestId string) *InstancesUpdateShieldedInstanceConfigCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstantSnapshot ¶ added in v0.167.0
type InstantSnapshot struct { // Architecture: [Output Only] The architecture of the instant snapshot. Valid // values are ARM64 or X86_64. // // Possible values: // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture is not // set. // "ARM64" - Machines with architecture ARM64 // "X86_64" - Machines with architecture X86_64 Architecture string `json:"architecture,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // DiskSizeGb: [Output Only] Size of the source disk, specified in GB. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#instantSnapshot for // InstantSnapshot resources. Kind string `json:"kind,omitempty"` // LabelFingerprint: A fingerprint for the labels being applied to this // InstantSnapshot, which is essentially a hash of the labels set used for // optimistic locking. The fingerprint is initially generated by Compute Engine // and changes after every request to modify or update labels. You must always // provide an up-to-date fingerprint hash in order to update or change labels, // otherwise the request will fail with error 412 conditionNotMet. To see the // latest fingerprint, make a get() request to retrieve a InstantSnapshot. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels to apply to this InstantSnapshot. These can be later modified // by the setLabels method. Label values may be empty. Labels map[string]string `json:"labels,omitempty"` // Name: Name of the resource; provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Region: [Output Only] URL of the region where the instant snapshot resides. // You must specify this field as part of the HTTP request URL. It is not // settable as a field in the request body. Region string `json:"region,omitempty"` // ResourceStatus: [Output Only] Status information for the instant snapshot // resource. ResourceStatus *InstantSnapshotResourceStatus `json:"resourceStatus,omitempty"` // SatisfiesPzi: Output only. Reserved for future use. SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: [Output Only] Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource's // resource id. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` // SourceDisk: URL of the source disk used to create this instant snapshot. // Note that the source disk must be in the same zone/region as the instant // snapshot to be created. This can be a full or valid partial URL. For // example, the following are valid values: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /disks/disk - // https://www.googleapis.com/compute/v1/projects/project/regions/region // /disks/disk - projects/project/zones/zone/disks/disk - // projects/project/regions/region/disks/disk - zones/zone/disks/disk - // regions/region/disks/disk SourceDisk string `json:"sourceDisk,omitempty"` // SourceDiskId: [Output Only] The ID value of the disk used to create this // InstantSnapshot. This value may be used to determine whether the // InstantSnapshot was taken from the current or a previous instance of a given // disk name. SourceDiskId string `json:"sourceDiskId,omitempty"` // Status: [Output Only] The status of the instantSnapshot. This can be // CREATING, DELETING, FAILED, or READY. // // Possible values: // "CREATING" - InstantSnapshot creation is in progress. // "DELETING" - InstantSnapshot is currently being deleted. // "FAILED" - InstantSnapshot creation failed. // "READY" - InstantSnapshot has been created successfully. // "UNAVAILABLE" - InstantSnapshot is currently unavailable and cannot be // used for Disk restoration Status string `json:"status,omitempty"` // Zone: [Output Only] URL of the zone where the instant snapshot resides. You // must specify this field as part of the HTTP request URL. It is not settable // as a field in the request body. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Architecture") 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. "Architecture") 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:"-"` }
InstantSnapshot: Represents a InstantSnapshot resource. You can use instant snapshots to create disk rollback points quickly..
func (InstantSnapshot) MarshalJSON ¶ added in v0.167.0
func (s InstantSnapshot) MarshalJSON() ([]byte, error)
type InstantSnapshotAggregatedList ¶ added in v0.167.0
type InstantSnapshotAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InstantSnapshotsScopedList resources. Items map[string]InstantSnapshotsScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#instantSnapshotAggregatedList for aggregated lists of // instantSnapshots. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InstantSnapshotAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (InstantSnapshotAggregatedList) MarshalJSON ¶ added in v0.167.0
func (s InstantSnapshotAggregatedList) MarshalJSON() ([]byte, error)
type InstantSnapshotAggregatedListWarning ¶ added in v0.167.0
type InstantSnapshotAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstantSnapshotAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstantSnapshotAggregatedListWarning: [Output Only] Informational warning message.
func (InstantSnapshotAggregatedListWarning) MarshalJSON ¶ added in v0.167.0
func (s InstantSnapshotAggregatedListWarning) MarshalJSON() ([]byte, error)
type InstantSnapshotAggregatedListWarningData ¶ added in v0.167.0
type InstantSnapshotAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstantSnapshotAggregatedListWarningData) MarshalJSON ¶ added in v0.167.0
func (s InstantSnapshotAggregatedListWarningData) MarshalJSON() ([]byte, error)
type InstantSnapshotList ¶ added in v0.167.0
type InstantSnapshotList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InstantSnapshot resources. Items []*InstantSnapshot `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InstantSnapshotListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
InstantSnapshotList: Contains a list of InstantSnapshot resources.
func (InstantSnapshotList) MarshalJSON ¶ added in v0.167.0
func (s InstantSnapshotList) MarshalJSON() ([]byte, error)
type InstantSnapshotListWarning ¶ added in v0.167.0
type InstantSnapshotListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstantSnapshotListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstantSnapshotListWarning: [Output Only] Informational warning message.
func (InstantSnapshotListWarning) MarshalJSON ¶ added in v0.167.0
func (s InstantSnapshotListWarning) MarshalJSON() ([]byte, error)
type InstantSnapshotListWarningData ¶ added in v0.167.0
type InstantSnapshotListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstantSnapshotListWarningData) MarshalJSON ¶ added in v0.167.0
func (s InstantSnapshotListWarningData) MarshalJSON() ([]byte, error)
type InstantSnapshotResourceStatus ¶ added in v0.167.0
type InstantSnapshotResourceStatus struct { // StorageSizeBytes: [Output Only] The storage size of this instant snapshot. StorageSizeBytes int64 `json:"storageSizeBytes,omitempty,string"` // ForceSendFields is a list of field names (e.g. "StorageSizeBytes") 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. "StorageSizeBytes") 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:"-"` }
func (InstantSnapshotResourceStatus) MarshalJSON ¶ added in v0.167.0
func (s InstantSnapshotResourceStatus) MarshalJSON() ([]byte, error)
type InstantSnapshotsAggregatedListCall ¶ added in v0.167.0
type InstantSnapshotsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*InstantSnapshotsAggregatedListCall) Context ¶ added in v0.167.0
func (c *InstantSnapshotsAggregatedListCall) Context(ctx context.Context) *InstantSnapshotsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*InstantSnapshotsAggregatedListCall) Do ¶ added in v0.167.0
func (c *InstantSnapshotsAggregatedListCall) Do(opts ...googleapi.CallOption) (*InstantSnapshotAggregatedList, error)
Do executes the "compute.instantSnapshots.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *InstantSnapshotAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstantSnapshotsAggregatedListCall) Fields ¶ added in v0.167.0
func (c *InstantSnapshotsAggregatedListCall) Fields(s ...googleapi.Field) *InstantSnapshotsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstantSnapshotsAggregatedListCall) Filter ¶ added in v0.167.0
func (c *InstantSnapshotsAggregatedListCall) Filter(filter string) *InstantSnapshotsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstantSnapshotsAggregatedListCall) Header ¶ added in v0.167.0
func (c *InstantSnapshotsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstantSnapshotsAggregatedListCall) IfNoneMatch ¶ added in v0.167.0
func (c *InstantSnapshotsAggregatedListCall) IfNoneMatch(entityTag string) *InstantSnapshotsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstantSnapshotsAggregatedListCall) IncludeAllScopes ¶ added in v0.167.0
func (c *InstantSnapshotsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *InstantSnapshotsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*InstantSnapshotsAggregatedListCall) MaxResults ¶ added in v0.167.0
func (c *InstantSnapshotsAggregatedListCall) MaxResults(maxResults int64) *InstantSnapshotsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstantSnapshotsAggregatedListCall) OrderBy ¶ added in v0.167.0
func (c *InstantSnapshotsAggregatedListCall) OrderBy(orderBy string) *InstantSnapshotsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstantSnapshotsAggregatedListCall) PageToken ¶ added in v0.167.0
func (c *InstantSnapshotsAggregatedListCall) PageToken(pageToken string) *InstantSnapshotsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstantSnapshotsAggregatedListCall) Pages ¶ added in v0.167.0
func (c *InstantSnapshotsAggregatedListCall) Pages(ctx context.Context, f func(*InstantSnapshotAggregatedList) 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 (*InstantSnapshotsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.167.0
func (c *InstantSnapshotsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstantSnapshotsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*InstantSnapshotsAggregatedListCall) ServiceProjectNumber ¶ added in v0.167.0
func (c *InstantSnapshotsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *InstantSnapshotsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type InstantSnapshotsDeleteCall ¶ added in v0.167.0
type InstantSnapshotsDeleteCall struct {
// contains filtered or unexported fields
}
func (*InstantSnapshotsDeleteCall) Context ¶ added in v0.167.0
func (c *InstantSnapshotsDeleteCall) Context(ctx context.Context) *InstantSnapshotsDeleteCall
Context sets the context to be used in this call's Do method.
func (*InstantSnapshotsDeleteCall) Do ¶ added in v0.167.0
func (c *InstantSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instantSnapshots.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstantSnapshotsDeleteCall) Fields ¶ added in v0.167.0
func (c *InstantSnapshotsDeleteCall) Fields(s ...googleapi.Field) *InstantSnapshotsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstantSnapshotsDeleteCall) Header ¶ added in v0.167.0
func (c *InstantSnapshotsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstantSnapshotsDeleteCall) RequestId ¶ added in v0.167.0
func (c *InstantSnapshotsDeleteCall) RequestId(requestId string) *InstantSnapshotsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstantSnapshotsGetCall ¶ added in v0.167.0
type InstantSnapshotsGetCall struct {
// contains filtered or unexported fields
}
func (*InstantSnapshotsGetCall) Context ¶ added in v0.167.0
func (c *InstantSnapshotsGetCall) Context(ctx context.Context) *InstantSnapshotsGetCall
Context sets the context to be used in this call's Do method.
func (*InstantSnapshotsGetCall) Do ¶ added in v0.167.0
func (c *InstantSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*InstantSnapshot, error)
Do executes the "compute.instantSnapshots.get" call. Any non-2xx status code is an error. Response headers are in either *InstantSnapshot.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstantSnapshotsGetCall) Fields ¶ added in v0.167.0
func (c *InstantSnapshotsGetCall) Fields(s ...googleapi.Field) *InstantSnapshotsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstantSnapshotsGetCall) Header ¶ added in v0.167.0
func (c *InstantSnapshotsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstantSnapshotsGetCall) IfNoneMatch ¶ added in v0.167.0
func (c *InstantSnapshotsGetCall) IfNoneMatch(entityTag string) *InstantSnapshotsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InstantSnapshotsGetIamPolicyCall ¶ added in v0.167.0
type InstantSnapshotsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*InstantSnapshotsGetIamPolicyCall) Context ¶ added in v0.167.0
func (c *InstantSnapshotsGetIamPolicyCall) Context(ctx context.Context) *InstantSnapshotsGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*InstantSnapshotsGetIamPolicyCall) Do ¶ added in v0.167.0
func (c *InstantSnapshotsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.instantSnapshots.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstantSnapshotsGetIamPolicyCall) Fields ¶ added in v0.167.0
func (c *InstantSnapshotsGetIamPolicyCall) Fields(s ...googleapi.Field) *InstantSnapshotsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstantSnapshotsGetIamPolicyCall) Header ¶ added in v0.167.0
func (c *InstantSnapshotsGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstantSnapshotsGetIamPolicyCall) IfNoneMatch ¶ added in v0.167.0
func (c *InstantSnapshotsGetIamPolicyCall) IfNoneMatch(entityTag string) *InstantSnapshotsGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstantSnapshotsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.167.0
func (c *InstantSnapshotsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *InstantSnapshotsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type InstantSnapshotsInsertCall ¶ added in v0.167.0
type InstantSnapshotsInsertCall struct {
// contains filtered or unexported fields
}
func (*InstantSnapshotsInsertCall) Context ¶ added in v0.167.0
func (c *InstantSnapshotsInsertCall) Context(ctx context.Context) *InstantSnapshotsInsertCall
Context sets the context to be used in this call's Do method.
func (*InstantSnapshotsInsertCall) Do ¶ added in v0.167.0
func (c *InstantSnapshotsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instantSnapshots.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstantSnapshotsInsertCall) Fields ¶ added in v0.167.0
func (c *InstantSnapshotsInsertCall) Fields(s ...googleapi.Field) *InstantSnapshotsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstantSnapshotsInsertCall) Header ¶ added in v0.167.0
func (c *InstantSnapshotsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstantSnapshotsInsertCall) RequestId ¶ added in v0.167.0
func (c *InstantSnapshotsInsertCall) RequestId(requestId string) *InstantSnapshotsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstantSnapshotsListCall ¶ added in v0.167.0
type InstantSnapshotsListCall struct {
// contains filtered or unexported fields
}
func (*InstantSnapshotsListCall) Context ¶ added in v0.167.0
func (c *InstantSnapshotsListCall) Context(ctx context.Context) *InstantSnapshotsListCall
Context sets the context to be used in this call's Do method.
func (*InstantSnapshotsListCall) Do ¶ added in v0.167.0
func (c *InstantSnapshotsListCall) Do(opts ...googleapi.CallOption) (*InstantSnapshotList, error)
Do executes the "compute.instantSnapshots.list" call. Any non-2xx status code is an error. Response headers are in either *InstantSnapshotList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstantSnapshotsListCall) Fields ¶ added in v0.167.0
func (c *InstantSnapshotsListCall) Fields(s ...googleapi.Field) *InstantSnapshotsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstantSnapshotsListCall) Filter ¶ added in v0.167.0
func (c *InstantSnapshotsListCall) Filter(filter string) *InstantSnapshotsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InstantSnapshotsListCall) Header ¶ added in v0.167.0
func (c *InstantSnapshotsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstantSnapshotsListCall) IfNoneMatch ¶ added in v0.167.0
func (c *InstantSnapshotsListCall) IfNoneMatch(entityTag string) *InstantSnapshotsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InstantSnapshotsListCall) MaxResults ¶ added in v0.167.0
func (c *InstantSnapshotsListCall) MaxResults(maxResults int64) *InstantSnapshotsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InstantSnapshotsListCall) OrderBy ¶ added in v0.167.0
func (c *InstantSnapshotsListCall) OrderBy(orderBy string) *InstantSnapshotsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InstantSnapshotsListCall) PageToken ¶ added in v0.167.0
func (c *InstantSnapshotsListCall) PageToken(pageToken string) *InstantSnapshotsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InstantSnapshotsListCall) Pages ¶ added in v0.167.0
func (c *InstantSnapshotsListCall) Pages(ctx context.Context, f func(*InstantSnapshotList) 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 (*InstantSnapshotsListCall) ReturnPartialSuccess ¶ added in v0.167.0
func (c *InstantSnapshotsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InstantSnapshotsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type InstantSnapshotsScopedList ¶ added in v0.167.0
type InstantSnapshotsScopedList struct { // InstantSnapshots: [Output Only] A list of instantSnapshots contained in this // scope. InstantSnapshots []*InstantSnapshot `json:"instantSnapshots,omitempty"` // Warning: [Output Only] Informational warning which replaces the list of // instantSnapshots when the list is empty. Warning *InstantSnapshotsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "InstantSnapshots") 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. "InstantSnapshots") 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:"-"` }
func (InstantSnapshotsScopedList) MarshalJSON ¶ added in v0.167.0
func (s InstantSnapshotsScopedList) MarshalJSON() ([]byte, error)
type InstantSnapshotsScopedListWarning ¶ added in v0.167.0
type InstantSnapshotsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InstantSnapshotsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InstantSnapshotsScopedListWarning: [Output Only] Informational warning which replaces the list of instantSnapshots when the list is empty.
func (InstantSnapshotsScopedListWarning) MarshalJSON ¶ added in v0.167.0
func (s InstantSnapshotsScopedListWarning) MarshalJSON() ([]byte, error)
type InstantSnapshotsScopedListWarningData ¶ added in v0.167.0
type InstantSnapshotsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InstantSnapshotsScopedListWarningData) MarshalJSON ¶ added in v0.167.0
func (s InstantSnapshotsScopedListWarningData) MarshalJSON() ([]byte, error)
type InstantSnapshotsService ¶ added in v0.167.0
type InstantSnapshotsService struct {
// contains filtered or unexported fields
}
func NewInstantSnapshotsService ¶ added in v0.167.0
func NewInstantSnapshotsService(s *Service) *InstantSnapshotsService
func (*InstantSnapshotsService) AggregatedList ¶ added in v0.167.0
func (r *InstantSnapshotsService) AggregatedList(project string) *InstantSnapshotsAggregatedListCall
AggregatedList: Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*InstantSnapshotsService) Delete ¶ added in v0.167.0
func (r *InstantSnapshotsService) Delete(project string, zone string, instantSnapshot string) *InstantSnapshotsDeleteCall
Delete: Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots.
- instantSnapshot: Name of the InstantSnapshot resource to delete. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstantSnapshotsService) Get ¶ added in v0.167.0
func (r *InstantSnapshotsService) Get(project string, zone string, instantSnapshot string) *InstantSnapshotsGetCall
Get: Returns the specified InstantSnapshot resource in the specified zone.
- instantSnapshot: Name of the InstantSnapshot resource to return. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstantSnapshotsService) GetIamPolicy ¶ added in v0.167.0
func (r *InstantSnapshotsService) GetIamPolicy(project string, zone string, resource string) *InstantSnapshotsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*InstantSnapshotsService) Insert ¶ added in v0.167.0
func (r *InstantSnapshotsService) Insert(project string, zone string, instantsnapshot *InstantSnapshot) *InstantSnapshotsInsertCall
Insert: Creates an instant snapshot in the specified zone.
- project: Project ID for this request. - zone: Name of the zone for this request.
func (*InstantSnapshotsService) List ¶ added in v0.167.0
func (r *InstantSnapshotsService) List(project string, zone string) *InstantSnapshotsListCall
List: Retrieves the list of InstantSnapshot resources contained within the specified zone.
- project: Project ID for this request. - zone: The name of the zone for this request.
func (*InstantSnapshotsService) SetIamPolicy ¶ added in v0.167.0
func (r *InstantSnapshotsService) SetIamPolicy(project string, zone string, resource string, zonesetpolicyrequest *ZoneSetPolicyRequest) *InstantSnapshotsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*InstantSnapshotsService) SetLabels ¶ added in v0.167.0
func (r *InstantSnapshotsService) SetLabels(project string, zone string, resource string, zonesetlabelsrequest *ZoneSetLabelsRequest) *InstantSnapshotsSetLabelsCall
SetLabels: Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*InstantSnapshotsService) TestIamPermissions ¶ added in v0.167.0
func (r *InstantSnapshotsService) TestIamPermissions(project string, zone string, resource string, testpermissionsrequest *TestPermissionsRequest) *InstantSnapshotsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
type InstantSnapshotsSetIamPolicyCall ¶ added in v0.167.0
type InstantSnapshotsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*InstantSnapshotsSetIamPolicyCall) Context ¶ added in v0.167.0
func (c *InstantSnapshotsSetIamPolicyCall) Context(ctx context.Context) *InstantSnapshotsSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*InstantSnapshotsSetIamPolicyCall) Do ¶ added in v0.167.0
func (c *InstantSnapshotsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.instantSnapshots.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstantSnapshotsSetIamPolicyCall) Fields ¶ added in v0.167.0
func (c *InstantSnapshotsSetIamPolicyCall) Fields(s ...googleapi.Field) *InstantSnapshotsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstantSnapshotsSetIamPolicyCall) Header ¶ added in v0.167.0
func (c *InstantSnapshotsSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type InstantSnapshotsSetLabelsCall ¶ added in v0.167.0
type InstantSnapshotsSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*InstantSnapshotsSetLabelsCall) Context ¶ added in v0.167.0
func (c *InstantSnapshotsSetLabelsCall) Context(ctx context.Context) *InstantSnapshotsSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*InstantSnapshotsSetLabelsCall) Do ¶ added in v0.167.0
func (c *InstantSnapshotsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instantSnapshots.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstantSnapshotsSetLabelsCall) Fields ¶ added in v0.167.0
func (c *InstantSnapshotsSetLabelsCall) Fields(s ...googleapi.Field) *InstantSnapshotsSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstantSnapshotsSetLabelsCall) Header ¶ added in v0.167.0
func (c *InstantSnapshotsSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InstantSnapshotsSetLabelsCall) RequestId ¶ added in v0.167.0
func (c *InstantSnapshotsSetLabelsCall) RequestId(requestId string) *InstantSnapshotsSetLabelsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InstantSnapshotsTestIamPermissionsCall ¶ added in v0.167.0
type InstantSnapshotsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*InstantSnapshotsTestIamPermissionsCall) Context ¶ added in v0.167.0
func (c *InstantSnapshotsTestIamPermissionsCall) Context(ctx context.Context) *InstantSnapshotsTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*InstantSnapshotsTestIamPermissionsCall) Do ¶ added in v0.167.0
func (c *InstantSnapshotsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.instantSnapshots.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstantSnapshotsTestIamPermissionsCall) Fields ¶ added in v0.167.0
func (c *InstantSnapshotsTestIamPermissionsCall) Fields(s ...googleapi.Field) *InstantSnapshotsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InstantSnapshotsTestIamPermissionsCall) Header ¶ added in v0.167.0
func (c *InstantSnapshotsTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type Int64RangeMatch ¶ added in v0.11.0
type Int64RangeMatch struct { // RangeEnd: The end of the range (exclusive) in signed long integer format. RangeEnd int64 `json:"rangeEnd,omitempty,string"` // RangeStart: The start of the range (inclusive) in signed long integer // format. RangeStart int64 `json:"rangeStart,omitempty,string"` // ForceSendFields is a list of field names (e.g. "RangeEnd") 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. "RangeEnd") 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:"-"` }
Int64RangeMatch: HttpRouteRuleMatch criteria for field values that must stay within the specified integer range.
func (Int64RangeMatch) MarshalJSON ¶ added in v0.11.0
func (s Int64RangeMatch) MarshalJSON() ([]byte, error)
type Interconnect ¶
type Interconnect struct { // AdminEnabled: Administrative status of the interconnect. When this is set to // true, the Interconnect is functional and can carry traffic. When set to // false, no packets can be carried over the interconnect and no BGP routes are // exchanged over it. By default, the status is set to true. AdminEnabled bool `json:"adminEnabled,omitempty"` // AvailableFeatures: [Output only] List of features available for this // Interconnect connection, which can take one of the following values: - // IF_MACSEC If present then the Interconnect connection is provisioned on // MACsec capable hardware ports. If not present then the Interconnect // connection is provisioned on non-MACsec capable ports and MACsec isn't // supported and enabling MACsec fails. // // Possible values: // "IF_MACSEC" - Media Access Control security (MACsec) AvailableFeatures []string `json:"availableFeatures,omitempty"` // CircuitInfos: [Output Only] A list of CircuitInfo objects, that describe the // individual circuits in this LAG. CircuitInfos []*InterconnectCircuitInfo `json:"circuitInfos,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // CustomerName: Customer name, to put in the Letter of Authorization as the // party authorized to request a crossconnect. CustomerName string `json:"customerName,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // ExpectedOutages: [Output Only] A list of outages expected for this // Interconnect. ExpectedOutages []*InterconnectOutageNotification `json:"expectedOutages,omitempty"` // GoogleIpAddress: [Output Only] IP address configured on the Google side of // the Interconnect link. This can be used only for ping tests. GoogleIpAddress string `json:"googleIpAddress,omitempty"` // GoogleReferenceId: [Output Only] Google reference ID to be used when raising // support tickets with Google or otherwise to debug backend connectivity // issues. GoogleReferenceId string `json:"googleReferenceId,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // InterconnectAttachments: [Output Only] A list of the URLs of all // InterconnectAttachments configured to use this Interconnect. InterconnectAttachments []string `json:"interconnectAttachments,omitempty"` // InterconnectType: Type of interconnect, which can take one of the following // values: - PARTNER: A partner-managed interconnection shared between // customers though a partner. - DEDICATED: A dedicated physical // interconnection with the customer. Note that a value IT_PRIVATE has been // deprecated in favor of DEDICATED. // // Possible values: // "DEDICATED" - A dedicated physical interconnection with the customer. // "IT_PRIVATE" - [Deprecated] A private, physical interconnection with the // customer. // "PARTNER" - A partner-managed interconnection shared between customers via // partner. InterconnectType string `json:"interconnectType,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#interconnect for // interconnects. Kind string `json:"kind,omitempty"` // LabelFingerprint: A fingerprint for the labels being applied to this // Interconnect, which is essentially a hash of the labels set used for // optimistic locking. The fingerprint is initially generated by Compute Engine // and changes after every request to modify or update labels. You must always // provide an up-to-date fingerprint hash in order to update or change labels, // otherwise the request will fail with error 412 conditionNotMet. To see the // latest fingerprint, make a get() request to retrieve an Interconnect. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels for this resource. These can only be added or modified by the // setLabels method. Each label key/value pair must comply with RFC1035. Label // values may be empty. Labels map[string]string `json:"labels,omitempty"` // LinkType: Type of link requested, which can take one of the following // values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - // LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this // field indicates the speed of each of the links in the bundle, not the speed // of the entire bundle. // // Possible values: // "LINK_TYPE_ETHERNET_100G_LR" - 100G Ethernet, LR Optics. // "LINK_TYPE_ETHERNET_10G_LR" - 10G Ethernet, LR Optics. [(rate_bps) = // 10000000000]; LinkType string `json:"linkType,omitempty"` // Location: URL of the InterconnectLocation object that represents where this // connection is to be provisioned. Location string `json:"location,omitempty"` // Macsec: Configuration that enables Media Access Control security (MACsec) on // the Cloud Interconnect connection between Google and your on-premises // router. Macsec *InterconnectMacsec `json:"macsec,omitempty"` // MacsecEnabled: Enable or disable MACsec on this Interconnect connection. // MACsec enablement fails if the MACsec object is not specified. MacsecEnabled bool `json:"macsecEnabled,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // NocContactEmail: Email address to contact the customer NOC for operations // and maintenance notifications regarding this Interconnect. If specified, // this will be used for notifications in addition to all other forms // described, such as Cloud Monitoring logs alerting and Cloud Notifications. // This field is required for users who sign up for Cloud Interconnect using // workforce identity federation. NocContactEmail string `json:"nocContactEmail,omitempty"` // OperationalStatus: [Output Only] The current status of this Interconnect's // functionality, which can take one of the following values: - OS_ACTIVE: A // valid Interconnect, which is turned up and is ready to use. Attachments may // be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect // that has not completed turnup. No attachments may be provisioned on this // Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing // internal maintenance. No attachments may be provisioned or updated on this // Interconnect. // // Possible values: // "OS_ACTIVE" - The interconnect is valid, turned up, and ready to use. // Attachments may be provisioned on this interconnect. // "OS_UNPROVISIONED" - The interconnect has not completed turnup. No // attachments may be provisioned on this interconnect. OperationalStatus string `json:"operationalStatus,omitempty"` // PeerIpAddress: [Output Only] IP address configured on the customer side of // the Interconnect link. The customer should configure this IP address during // turnup when prompted by Google NOC. This can be used only for ping tests. PeerIpAddress string `json:"peerIpAddress,omitempty"` // ProvisionedLinkCount: [Output Only] Number of links actually provisioned in // this interconnect. ProvisionedLinkCount int64 `json:"provisionedLinkCount,omitempty"` // RemoteLocation: Indicates that this is a Cross-Cloud Interconnect. This // field specifies the location outside of Google's network that the // interconnect is connected to. RemoteLocation string `json:"remoteLocation,omitempty"` // RequestedFeatures: Optional. List of features requested for this // Interconnect connection, which can take one of the following values: - // IF_MACSEC If specified then the connection is created on MACsec capable // hardware ports. If not specified, the default value is false, which // allocates non-MACsec capable ports first if available. This parameter can be // provided only with Interconnect INSERT. It isn't valid for Interconnect // PATCH. // // Possible values: // "IF_MACSEC" - Media Access Control security (MACsec) RequestedFeatures []string `json:"requestedFeatures,omitempty"` // RequestedLinkCount: Target number of physical links in the link bundle, as // requested by the customer. RequestedLinkCount int64 `json:"requestedLinkCount,omitempty"` // SatisfiesPzs: [Output Only] Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // State: [Output Only] The current state of Interconnect functionality, which // can take one of the following values: - ACTIVE: The Interconnect is valid, // turned up and ready to use. Attachments may be provisioned on this // Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No // attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: // The Interconnect is undergoing internal maintenance. No attachments may be // provisioned or updated on this Interconnect. // // Possible values: // "ACTIVE" - The interconnect is valid, turned up, and ready to use. // Attachments may be provisioned on this interconnect. // "UNPROVISIONED" - The interconnect has not completed turnup. No // attachments may be provisioned on this interconnect. State string `json:"state,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AdminEnabled") 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. "AdminEnabled") 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:"-"` }
Interconnect: Represents an Interconnect resource. An Interconnect resource is a dedicated connection between the Google Cloud network and your on-premises network. For more information, read the Dedicated Interconnect Overview.
func (Interconnect) MarshalJSON ¶
func (s Interconnect) MarshalJSON() ([]byte, error)
type InterconnectAttachment ¶
type InterconnectAttachment struct { // AdminEnabled: Determines whether this Attachment will carry packets. Not // present for PARTNER_PROVIDER. AdminEnabled bool `json:"adminEnabled,omitempty"` // Bandwidth: Provisioned bandwidth capacity for the interconnect attachment. // For attachments of type DEDICATED, the user can set the bandwidth. For // attachments of type PARTNER, the Google Partner that is operating the // interconnect must set the bandwidth. Output only for PARTNER type, mutable // for PARTNER_PROVIDER and DEDICATED, and can take one of the following // values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - // BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: // 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - // BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s // // Possible values: // "BPS_100M" - 100 Mbit/s // "BPS_10G" - 10 Gbit/s // "BPS_1G" - 1 Gbit/s // "BPS_200M" - 200 Mbit/s // "BPS_20G" - 20 Gbit/s // "BPS_2G" - 2 Gbit/s // "BPS_300M" - 300 Mbit/s // "BPS_400M" - 400 Mbit/s // "BPS_500M" - 500 Mbit/s // "BPS_50G" - 50 Gbit/s // "BPS_50M" - 50 Mbit/s // "BPS_5G" - 5 Gbit/s Bandwidth string `json:"bandwidth,omitempty"` // CandidateIpv6Subnets: This field is not available. CandidateIpv6Subnets []string `json:"candidateIpv6Subnets,omitempty"` // CandidateSubnets: Up to 16 candidate prefixes that can be used to restrict // the allocation of cloudRouterIpAddress and customerRouterIpAddress for this // attachment. All prefixes must be within link-local address space // (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will // attempt to select an unused /29 from the supplied candidate prefix(es). The // request will fail if all possible /29s are in use on Google's edge. If not // supplied, Google will randomly select an unused /29 from all of link-local // space. CandidateSubnets []string `json:"candidateSubnets,omitempty"` // CloudRouterIpAddress: [Output Only] IPv4 address + prefix length to be // configured on Cloud Router Interface for this interconnect attachment. CloudRouterIpAddress string `json:"cloudRouterIpAddress,omitempty"` // CloudRouterIpv6Address: [Output Only] IPv6 address + prefix length to be // configured on Cloud Router Interface for this interconnect attachment. CloudRouterIpv6Address string `json:"cloudRouterIpv6Address,omitempty"` // CloudRouterIpv6InterfaceId: This field is not available. CloudRouterIpv6InterfaceId string `json:"cloudRouterIpv6InterfaceId,omitempty"` // ConfigurationConstraints: [Output Only] Constraints for this attachment, if // any. The attachment does not work if these constraints are not met. ConfigurationConstraints *InterconnectAttachmentConfigurationConstraints `json:"configurationConstraints,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // CustomerRouterIpAddress: [Output Only] IPv4 address + prefix length to be // configured on the customer router subinterface for this interconnect // attachment. CustomerRouterIpAddress string `json:"customerRouterIpAddress,omitempty"` // CustomerRouterIpv6Address: [Output Only] IPv6 address + prefix length to be // configured on the customer router subinterface for this interconnect // attachment. CustomerRouterIpv6Address string `json:"customerRouterIpv6Address,omitempty"` // CustomerRouterIpv6InterfaceId: This field is not available. CustomerRouterIpv6InterfaceId string `json:"customerRouterIpv6InterfaceId,omitempty"` // DataplaneVersion: [Output Only] Dataplane version for this // InterconnectAttachment. This field is only present for Dataplane version 2 // and higher. Absence of this field in the API output indicates that the // Dataplane is version 1. DataplaneVersion int64 `json:"dataplaneVersion,omitempty"` // Description: An optional description of this resource. Description string `json:"description,omitempty"` // EdgeAvailabilityDomain: Desired availability domain for the attachment. Only // available for type PARTNER, at creation time, and can take one of the // following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - // AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a // pair of attachments, one per availability domain. The selected availability // domain will be provided to the Partner via the pairing key, so that the // provisioned circuit will lie in the specified domain. If not specified, the // value will default to AVAILABILITY_DOMAIN_ANY. // // Possible values: // "AVAILABILITY_DOMAIN_1" // "AVAILABILITY_DOMAIN_2" // "AVAILABILITY_DOMAIN_ANY" EdgeAvailabilityDomain string `json:"edgeAvailabilityDomain,omitempty"` // Encryption: Indicates the user-supplied encryption option of this VLAN // attachment (interconnectAttachment). Can only be specified at attachment // creation for PARTNER or DEDICATED attachments. Possible values are: - NONE - // This is the default value, which means that the VLAN attachment carries // unencrypted traffic. VMs are able to send traffic to, or receive traffic // from, such a VLAN attachment. - IPSEC - The VLAN attachment carries only // encrypted traffic that is encrypted by an IPsec device, such as an HA VPN // gateway or third-party IPsec VPN. VMs cannot directly send traffic to, or // receive traffic from, such a VLAN attachment. To use *HA VPN over Cloud // Interconnect*, the VLAN attachment must be created with this option. // // Possible values: // "IPSEC" - The interconnect attachment will carry only encrypted traffic // that is encrypted by an IPsec device such as HA VPN gateway; VMs cannot // directly send traffic to or receive traffic from such an interconnect // attachment. To use HA VPN over Cloud Interconnect, the interconnect // attachment must be created with this option. // "NONE" - This is the default value, which means the Interconnect // Attachment will carry unencrypted traffic. VMs will be able to send traffic // to or receive traffic from such interconnect attachment. Encryption string `json:"encryption,omitempty"` // GoogleReferenceId: [Output Only] Google reference ID, to be used when // raising support tickets with Google or otherwise to debug backend // connectivity issues. [Deprecated] This field is not used. GoogleReferenceId string `json:"googleReferenceId,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Interconnect: URL of the underlying Interconnect object that this // attachment's traffic will traverse through. Interconnect string `json:"interconnect,omitempty"` // IpsecInternalAddresses: A list of URLs of addresses that have been reserved // for the VLAN attachment. Used only for the VLAN attachment that has the // encryption option as IPSEC. The addresses must be regional internal IP // address ranges. When creating an HA VPN gateway over the VLAN attachment, if // the attachment is configured to use a regional internal IP address, then the // VPN gateway's IP address is allocated from the IP address range specified // here. For example, if the HA VPN gateway's interface 0 is paired to this // VLAN attachment, then a regional internal IP address for the VPN gateway // interface 0 will be allocated from the IP address specified for this VLAN // attachment. If this field is not specified when creating the VLAN // attachment, then later on when creating an HA VPN gateway on this VLAN // attachment, the HA VPN gateway's IP address is allocated from the regional // external IP address pool. IpsecInternalAddresses []string `json:"ipsecInternalAddresses,omitempty"` // Kind: [Output Only] Type of the resource. Always // compute#interconnectAttachment for interconnect attachments. Kind string `json:"kind,omitempty"` // LabelFingerprint: A fingerprint for the labels being applied to this // InterconnectAttachment, which is essentially a hash of the labels set used // for optimistic locking. The fingerprint is initially generated by Compute // Engine and changes after every request to modify or update labels. You must // always provide an up-to-date fingerprint hash in order to update or change // labels, otherwise the request will fail with error 412 conditionNotMet. To // see the latest fingerprint, make a get() request to retrieve an // InterconnectAttachment. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels for this resource. These can only be added or modified by the // setLabels method. Each label key/value pair must comply with RFC1035. Label // values may be empty. Labels map[string]string `json:"labels,omitempty"` // Mtu: Maximum Transmission Unit (MTU), in bytes, of packets passing through // this interconnect attachment. Only 1440 and 1500 are allowed. If not // specified, the value will default to 1440. Mtu int64 `json:"mtu,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // OperationalStatus: [Output Only] The current status of whether or not this // interconnect attachment is functional, which can take one of the following // values: - OS_ACTIVE: The attachment has been turned up and is ready to use. // - OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup // is not complete. // // Possible values: // "OS_ACTIVE" - Indicates that attachment has been turned up and is ready to // use. // "OS_UNPROVISIONED" - Indicates that attachment is not ready to use yet, // because turnup is not complete. OperationalStatus string `json:"operationalStatus,omitempty"` // PairingKey: [Output only for type PARTNER. Input only for PARTNER_PROVIDER. // Not present for DEDICATED]. The opaque identifier of a PARTNER attachment // used to initiate provisioning with a selected partner. Of the form // "XXXXX/region/domain" PairingKey string `json:"pairingKey,omitempty"` // PartnerAsn: Optional BGP ASN for the router supplied by a Layer 3 Partner if // they configured BGP on behalf of the customer. Output only for PARTNER type, // input only for PARTNER_PROVIDER, not available for DEDICATED. PartnerAsn int64 `json:"partnerAsn,omitempty,string"` // PartnerMetadata: Informational metadata about Partner attachments from // Partners to display to customers. Output only for PARTNER type, mutable for // PARTNER_PROVIDER, not available for DEDICATED. PartnerMetadata *InterconnectAttachmentPartnerMetadata `json:"partnerMetadata,omitempty"` // PrivateInterconnectInfo: [Output Only] Information specific to an // InterconnectAttachment. This property is populated if the interconnect that // this is attached to is of type DEDICATED. PrivateInterconnectInfo *InterconnectAttachmentPrivateInfo `json:"privateInterconnectInfo,omitempty"` // Region: [Output Only] URL of the region where the regional interconnect // attachment resides. You must specify this field as part of the HTTP request // URL. It is not settable as a field in the request body. Region string `json:"region,omitempty"` // RemoteService: [Output Only] If the attachment is on a Cross-Cloud // Interconnect connection, this field contains the interconnect's remote // location service provider. Example values: "Amazon Web Services" "Microsoft // Azure". The field is set only for attachments on Cross-Cloud Interconnect // connections. Its value is copied from the InterconnectRemoteLocation // remoteService field. RemoteService string `json:"remoteService,omitempty"` // Router: URL of the Cloud Router to be used for dynamic routing. This router // must be in the same region as this InterconnectAttachment. The // InterconnectAttachment will automatically connect the Interconnect to the // network & region within which the Cloud Router is configured. Router string `json:"router,omitempty"` // SatisfiesPzs: [Output Only] Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // StackType: The stack type for this interconnect attachment to identify // whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will // be used. This field can be both set at interconnect attachments creation and // update interconnect attachment operations. // // Possible values: // "IPV4_IPV6" - The interconnect attachment can have both IPv4 and IPv6 // addresses. // "IPV4_ONLY" - The interconnect attachment will only be assigned IPv4 // addresses. StackType string `json:"stackType,omitempty"` // State: [Output Only] The current state of this attachment's functionality. // Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, // PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values // PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for // only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can // take one of the following values: - ACTIVE: The attachment has been turned // up and is ready to use. - UNPROVISIONED: The attachment is not ready to use // yet, because turnup is not complete. - PENDING_PARTNER: A newly-created // PARTNER attachment that has not yet been configured on the Partner side. - // PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of // provisioning after a PARTNER_PROVIDER attachment was created that references // it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is // waiting for a customer to activate it. - DEFUNCT: The attachment was deleted // externally and is no longer functional. This could be because the associated // Interconnect was removed, or because the other side of a Partner attachment // was deleted. // // Possible values: // "ACTIVE" - Indicates that attachment has been turned up and is ready to // use. // "DEFUNCT" - The attachment was deleted externally and is no longer // functional. This could be because the associated Interconnect was wiped out, // or because the other side of a Partner attachment was deleted. // "PARTNER_REQUEST_RECEIVED" - A PARTNER attachment is in the process of // provisioning after a PARTNER_PROVIDER attachment was created that references // it. // "PENDING_CUSTOMER" - PARTNER or PARTNER_PROVIDER attachment that is // waiting for the customer to activate. // "PENDING_PARTNER" - A newly created PARTNER attachment that has not yet // been configured on the Partner side. // "STATE_UNSPECIFIED" // "UNPROVISIONED" - Indicates that attachment is not ready to use yet, // because turnup is not complete. State string `json:"state,omitempty"` // SubnetLength: Length of the IPv4 subnet mask. Allowed values: - 29 (default) // - 30 The default value is 29, except for Cross-Cloud Interconnect // connections that use an InterconnectRemoteLocation with a // constraints.subnetLengthRange.min equal to 30. For example, connections that // use an Azure remote location fall into this category. In these cases, the // default value is 30, and requesting 29 returns an error. Where both 29 and // 30 are allowed, 29 is preferred, because it gives Google Cloud Support more // debugging visibility. SubnetLength int64 `json:"subnetLength,omitempty"` // Type: The type of interconnect attachment this is, which can take one of the // following values: - DEDICATED: an attachment to a Dedicated Interconnect. - // PARTNER: an attachment to a Partner Interconnect, created by the customer. - // PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the // partner. // // Possible values: // "DEDICATED" - Attachment to a dedicated interconnect. // "PARTNER" - Attachment to a partner interconnect, created by the customer. // "PARTNER_PROVIDER" - Attachment to a partner interconnect, created by the // partner. Type string `json:"type,omitempty"` // VlanTag8021q: The IEEE 802.1Q VLAN tag for this attachment, in the range // 2-4093. Only specified at creation time. VlanTag8021q int64 `json:"vlanTag8021q,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AdminEnabled") 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. "AdminEnabled") 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:"-"` }
InterconnectAttachment: Represents an Interconnect Attachment (VLAN) resource. You can use Interconnect attachments (VLANS) to connect your Virtual Private Cloud networks to your on-premises networks through an Interconnect. For more information, read Creating VLAN Attachments.
func (InterconnectAttachment) MarshalJSON ¶
func (s InterconnectAttachment) MarshalJSON() ([]byte, error)
type InterconnectAttachmentAggregatedList ¶
type InterconnectAttachmentAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InterconnectAttachmentsScopedList resources. Items map[string]InterconnectAttachmentsScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#interconnectAttachmentAggregatedList for aggregated lists of // interconnect attachments. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InterconnectAttachmentAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (InterconnectAttachmentAggregatedList) MarshalJSON ¶
func (s InterconnectAttachmentAggregatedList) MarshalJSON() ([]byte, error)
type InterconnectAttachmentAggregatedListWarning ¶
type InterconnectAttachmentAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InterconnectAttachmentAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InterconnectAttachmentAggregatedListWarning: [Output Only] Informational warning message.
func (InterconnectAttachmentAggregatedListWarning) MarshalJSON ¶
func (s InterconnectAttachmentAggregatedListWarning) MarshalJSON() ([]byte, error)
type InterconnectAttachmentAggregatedListWarningData ¶
type InterconnectAttachmentAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InterconnectAttachmentAggregatedListWarningData) MarshalJSON ¶
func (s InterconnectAttachmentAggregatedListWarningData) MarshalJSON() ([]byte, error)
type InterconnectAttachmentConfigurationConstraints ¶ added in v0.123.0
type InterconnectAttachmentConfigurationConstraints struct { // BgpMd5: [Output Only] Whether the attachment's BGP session // requires/allows/disallows BGP MD5 authentication. This can take one of the // following values: MD5_OPTIONAL, MD5_REQUIRED, MD5_UNSUPPORTED. For example, // a Cross-Cloud Interconnect connection to a remote cloud provider that // requires BGP MD5 authentication has the interconnectRemoteLocation // attachment_configuration_constraints.bgp_md5 field set to MD5_REQUIRED, and // that property is propagated to the attachment. Similarly, if BGP MD5 is // MD5_UNSUPPORTED, an error is returned if MD5 is requested. // // Possible values: // "MD5_OPTIONAL" - MD5_OPTIONAL: BGP MD5 authentication is supported and can // optionally be configured. // "MD5_REQUIRED" - MD5_REQUIRED: BGP MD5 authentication must be configured. // "MD5_UNSUPPORTED" - MD5_UNSUPPORTED: BGP MD5 authentication must not be // configured BgpMd5 string `json:"bgpMd5,omitempty"` // BgpPeerAsnRanges: [Output Only] List of ASN ranges that the remote location // is known to support. Formatted as an array of inclusive ranges {min: // min-value, max: max-value}. For example, [{min: 123, max: 123}, {min: 64512, // max: 65534}] allows the peer ASN to be 123 or anything in the range // 64512-65534. This field is only advisory. Although the API accepts other // ranges, these are the ranges that we recommend. BgpPeerAsnRanges []*InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange `json:"bgpPeerAsnRanges,omitempty"` // ForceSendFields is a list of field names (e.g. "BgpMd5") 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. "BgpMd5") 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:"-"` }
func (InterconnectAttachmentConfigurationConstraints) MarshalJSON ¶ added in v0.123.0
func (s InterconnectAttachmentConfigurationConstraints) MarshalJSON() ([]byte, error)
type InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange ¶ added in v0.123.0
type InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange struct { Max int64 `json:"max,omitempty"` Min int64 `json:"min,omitempty"` // ForceSendFields is a list of field names (e.g. "Max") 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. "Max") 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:"-"` }
func (InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange) MarshalJSON ¶ added in v0.123.0
func (s InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange) MarshalJSON() ([]byte, error)
type InterconnectAttachmentList ¶
type InterconnectAttachmentList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InterconnectAttachment resources. Items []*InterconnectAttachment `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#interconnectAttachmentList for lists of interconnect attachments. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InterconnectAttachmentListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
InterconnectAttachmentList: Response to the list request, and contains a list of interconnect attachments.
func (InterconnectAttachmentList) MarshalJSON ¶
func (s InterconnectAttachmentList) MarshalJSON() ([]byte, error)
type InterconnectAttachmentListWarning ¶
type InterconnectAttachmentListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InterconnectAttachmentListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InterconnectAttachmentListWarning: [Output Only] Informational warning message.
func (InterconnectAttachmentListWarning) MarshalJSON ¶
func (s InterconnectAttachmentListWarning) MarshalJSON() ([]byte, error)
type InterconnectAttachmentListWarningData ¶
type InterconnectAttachmentListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InterconnectAttachmentListWarningData) MarshalJSON ¶
func (s InterconnectAttachmentListWarningData) MarshalJSON() ([]byte, error)
type InterconnectAttachmentPartnerMetadata ¶
type InterconnectAttachmentPartnerMetadata struct { // InterconnectName: Plain text name of the Interconnect this attachment is // connected to, as displayed in the Partner's portal. For instance "Chicago // 1". This value may be validated to match approved Partner values. InterconnectName string `json:"interconnectName,omitempty"` // PartnerName: Plain text name of the Partner providing this attachment. This // value may be validated to match approved Partner values. PartnerName string `json:"partnerName,omitempty"` // PortalUrl: URL of the Partner's portal for this Attachment. Partners may // customise this to be a deep link to the specific resource on the Partner // portal. This value may be validated to match approved Partner values. PortalUrl string `json:"portalUrl,omitempty"` // ForceSendFields is a list of field names (e.g. "InterconnectName") 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. "InterconnectName") 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:"-"` }
InterconnectAttachmentPartnerMetadata: Informational metadata about Partner attachments from Partners to display to customers. These fields are propagated from PARTNER_PROVIDER attachments to their corresponding PARTNER attachments.
func (InterconnectAttachmentPartnerMetadata) MarshalJSON ¶
func (s InterconnectAttachmentPartnerMetadata) MarshalJSON() ([]byte, error)
type InterconnectAttachmentPrivateInfo ¶
type InterconnectAttachmentPrivateInfo struct { // Tag8021q: [Output Only] 802.1q encapsulation tag to be used for traffic // between Google and the customer, going to and from this network and region. Tag8021q int64 `json:"tag8021q,omitempty"` // ForceSendFields is a list of field names (e.g. "Tag8021q") 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. "Tag8021q") 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:"-"` }
InterconnectAttachmentPrivateInfo: Information for an interconnect attachment when this belongs to an interconnect of type DEDICATED.
func (InterconnectAttachmentPrivateInfo) MarshalJSON ¶
func (s InterconnectAttachmentPrivateInfo) MarshalJSON() ([]byte, error)
type InterconnectAttachmentsAggregatedListCall ¶
type InterconnectAttachmentsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*InterconnectAttachmentsAggregatedListCall) Context ¶
func (c *InterconnectAttachmentsAggregatedListCall) Context(ctx context.Context) *InterconnectAttachmentsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*InterconnectAttachmentsAggregatedListCall) Do ¶
func (c *InterconnectAttachmentsAggregatedListCall) Do(opts ...googleapi.CallOption) (*InterconnectAttachmentAggregatedList, error)
Do executes the "compute.interconnectAttachments.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *InterconnectAttachmentAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectAttachmentsAggregatedListCall) Fields ¶
func (c *InterconnectAttachmentsAggregatedListCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectAttachmentsAggregatedListCall) Filter ¶
func (c *InterconnectAttachmentsAggregatedListCall) Filter(filter string) *InterconnectAttachmentsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InterconnectAttachmentsAggregatedListCall) Header ¶
func (c *InterconnectAttachmentsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectAttachmentsAggregatedListCall) IfNoneMatch ¶
func (c *InterconnectAttachmentsAggregatedListCall) IfNoneMatch(entityTag string) *InterconnectAttachmentsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InterconnectAttachmentsAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *InterconnectAttachmentsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *InterconnectAttachmentsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*InterconnectAttachmentsAggregatedListCall) MaxResults ¶
func (c *InterconnectAttachmentsAggregatedListCall) MaxResults(maxResults int64) *InterconnectAttachmentsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InterconnectAttachmentsAggregatedListCall) OrderBy ¶
func (c *InterconnectAttachmentsAggregatedListCall) OrderBy(orderBy string) *InterconnectAttachmentsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InterconnectAttachmentsAggregatedListCall) PageToken ¶
func (c *InterconnectAttachmentsAggregatedListCall) PageToken(pageToken string) *InterconnectAttachmentsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InterconnectAttachmentsAggregatedListCall) Pages ¶
func (c *InterconnectAttachmentsAggregatedListCall) Pages(ctx context.Context, f func(*InterconnectAttachmentAggregatedList) 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 (*InterconnectAttachmentsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InterconnectAttachmentsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InterconnectAttachmentsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*InterconnectAttachmentsAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *InterconnectAttachmentsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *InterconnectAttachmentsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type InterconnectAttachmentsDeleteCall ¶
type InterconnectAttachmentsDeleteCall struct {
// contains filtered or unexported fields
}
func (*InterconnectAttachmentsDeleteCall) Context ¶
func (c *InterconnectAttachmentsDeleteCall) Context(ctx context.Context) *InterconnectAttachmentsDeleteCall
Context sets the context to be used in this call's Do method.
func (*InterconnectAttachmentsDeleteCall) Do ¶
func (c *InterconnectAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnectAttachments.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectAttachmentsDeleteCall) Fields ¶
func (c *InterconnectAttachmentsDeleteCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectAttachmentsDeleteCall) Header ¶
func (c *InterconnectAttachmentsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectAttachmentsDeleteCall) RequestId ¶
func (c *InterconnectAttachmentsDeleteCall) RequestId(requestId string) *InterconnectAttachmentsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InterconnectAttachmentsGetCall ¶
type InterconnectAttachmentsGetCall struct {
// contains filtered or unexported fields
}
func (*InterconnectAttachmentsGetCall) Context ¶
func (c *InterconnectAttachmentsGetCall) Context(ctx context.Context) *InterconnectAttachmentsGetCall
Context sets the context to be used in this call's Do method.
func (*InterconnectAttachmentsGetCall) Do ¶
func (c *InterconnectAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*InterconnectAttachment, error)
Do executes the "compute.interconnectAttachments.get" call. Any non-2xx status code is an error. Response headers are in either *InterconnectAttachment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectAttachmentsGetCall) Fields ¶
func (c *InterconnectAttachmentsGetCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectAttachmentsGetCall) Header ¶
func (c *InterconnectAttachmentsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectAttachmentsGetCall) IfNoneMatch ¶
func (c *InterconnectAttachmentsGetCall) IfNoneMatch(entityTag string) *InterconnectAttachmentsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InterconnectAttachmentsInsertCall ¶
type InterconnectAttachmentsInsertCall struct {
// contains filtered or unexported fields
}
func (*InterconnectAttachmentsInsertCall) Context ¶
func (c *InterconnectAttachmentsInsertCall) Context(ctx context.Context) *InterconnectAttachmentsInsertCall
Context sets the context to be used in this call's Do method.
func (*InterconnectAttachmentsInsertCall) Do ¶
func (c *InterconnectAttachmentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnectAttachments.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectAttachmentsInsertCall) Fields ¶
func (c *InterconnectAttachmentsInsertCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectAttachmentsInsertCall) Header ¶
func (c *InterconnectAttachmentsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectAttachmentsInsertCall) RequestId ¶
func (c *InterconnectAttachmentsInsertCall) RequestId(requestId string) *InterconnectAttachmentsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*InterconnectAttachmentsInsertCall) ValidateOnly ¶ added in v0.16.0
func (c *InterconnectAttachmentsInsertCall) ValidateOnly(validateOnly bool) *InterconnectAttachmentsInsertCall
ValidateOnly sets the optional parameter "validateOnly": If true, the request will not be committed.
type InterconnectAttachmentsListCall ¶
type InterconnectAttachmentsListCall struct {
// contains filtered or unexported fields
}
func (*InterconnectAttachmentsListCall) Context ¶
func (c *InterconnectAttachmentsListCall) Context(ctx context.Context) *InterconnectAttachmentsListCall
Context sets the context to be used in this call's Do method.
func (*InterconnectAttachmentsListCall) Do ¶
func (c *InterconnectAttachmentsListCall) Do(opts ...googleapi.CallOption) (*InterconnectAttachmentList, error)
Do executes the "compute.interconnectAttachments.list" call. Any non-2xx status code is an error. Response headers are in either *InterconnectAttachmentList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectAttachmentsListCall) Fields ¶
func (c *InterconnectAttachmentsListCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectAttachmentsListCall) Filter ¶
func (c *InterconnectAttachmentsListCall) Filter(filter string) *InterconnectAttachmentsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InterconnectAttachmentsListCall) Header ¶
func (c *InterconnectAttachmentsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectAttachmentsListCall) IfNoneMatch ¶
func (c *InterconnectAttachmentsListCall) IfNoneMatch(entityTag string) *InterconnectAttachmentsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InterconnectAttachmentsListCall) MaxResults ¶
func (c *InterconnectAttachmentsListCall) MaxResults(maxResults int64) *InterconnectAttachmentsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InterconnectAttachmentsListCall) OrderBy ¶
func (c *InterconnectAttachmentsListCall) OrderBy(orderBy string) *InterconnectAttachmentsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InterconnectAttachmentsListCall) PageToken ¶
func (c *InterconnectAttachmentsListCall) PageToken(pageToken string) *InterconnectAttachmentsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InterconnectAttachmentsListCall) Pages ¶
func (c *InterconnectAttachmentsListCall) Pages(ctx context.Context, f func(*InterconnectAttachmentList) 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 (*InterconnectAttachmentsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InterconnectAttachmentsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InterconnectAttachmentsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type InterconnectAttachmentsPatchCall ¶
type InterconnectAttachmentsPatchCall struct {
// contains filtered or unexported fields
}
func (*InterconnectAttachmentsPatchCall) Context ¶
func (c *InterconnectAttachmentsPatchCall) Context(ctx context.Context) *InterconnectAttachmentsPatchCall
Context sets the context to be used in this call's Do method.
func (*InterconnectAttachmentsPatchCall) Do ¶
func (c *InterconnectAttachmentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnectAttachments.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectAttachmentsPatchCall) Fields ¶
func (c *InterconnectAttachmentsPatchCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectAttachmentsPatchCall) Header ¶
func (c *InterconnectAttachmentsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectAttachmentsPatchCall) RequestId ¶
func (c *InterconnectAttachmentsPatchCall) RequestId(requestId string) *InterconnectAttachmentsPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InterconnectAttachmentsScopedList ¶
type InterconnectAttachmentsScopedList struct { // InterconnectAttachments: A list of interconnect attachments contained in // this scope. InterconnectAttachments []*InterconnectAttachment `json:"interconnectAttachments,omitempty"` // Warning: Informational warning which replaces the list of addresses when the // list is empty. Warning *InterconnectAttachmentsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "InterconnectAttachments") 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. "InterconnectAttachments") 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:"-"` }
func (InterconnectAttachmentsScopedList) MarshalJSON ¶
func (s InterconnectAttachmentsScopedList) MarshalJSON() ([]byte, error)
type InterconnectAttachmentsScopedListWarning ¶
type InterconnectAttachmentsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InterconnectAttachmentsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InterconnectAttachmentsScopedListWarning: Informational warning which replaces the list of addresses when the list is empty.
func (InterconnectAttachmentsScopedListWarning) MarshalJSON ¶
func (s InterconnectAttachmentsScopedListWarning) MarshalJSON() ([]byte, error)
type InterconnectAttachmentsScopedListWarningData ¶
type InterconnectAttachmentsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InterconnectAttachmentsScopedListWarningData) MarshalJSON ¶
func (s InterconnectAttachmentsScopedListWarningData) MarshalJSON() ([]byte, error)
type InterconnectAttachmentsService ¶
type InterconnectAttachmentsService struct {
// contains filtered or unexported fields
}
func NewInterconnectAttachmentsService ¶
func NewInterconnectAttachmentsService(s *Service) *InterconnectAttachmentsService
func (*InterconnectAttachmentsService) AggregatedList ¶
func (r *InterconnectAttachmentsService) AggregatedList(project string) *InterconnectAttachmentsAggregatedListCall
AggregatedList: Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*InterconnectAttachmentsService) Delete ¶
func (r *InterconnectAttachmentsService) Delete(project string, region string, interconnectAttachment string) *InterconnectAttachmentsDeleteCall
Delete: Deletes the specified interconnect attachment.
- interconnectAttachment: Name of the interconnect attachment to delete. - project: Project ID for this request. - region: Name of the region for this request.
func (*InterconnectAttachmentsService) Get ¶
func (r *InterconnectAttachmentsService) Get(project string, region string, interconnectAttachment string) *InterconnectAttachmentsGetCall
Get: Returns the specified interconnect attachment.
- interconnectAttachment: Name of the interconnect attachment to return. - project: Project ID for this request. - region: Name of the region for this request.
func (*InterconnectAttachmentsService) Insert ¶
func (r *InterconnectAttachmentsService) Insert(project string, region string, interconnectattachment *InterconnectAttachment) *InterconnectAttachmentsInsertCall
Insert: Creates an InterconnectAttachment in the specified project using the data included in the request.
- project: Project ID for this request. - region: Name of the region for this request.
func (*InterconnectAttachmentsService) List ¶
func (r *InterconnectAttachmentsService) List(project string, region string) *InterconnectAttachmentsListCall
List: Retrieves the list of interconnect attachments contained within the specified region.
- project: Project ID for this request. - region: Name of the region for this request.
func (*InterconnectAttachmentsService) Patch ¶
func (r *InterconnectAttachmentsService) Patch(project string, region string, interconnectAttachment string, interconnectattachment *InterconnectAttachment) *InterconnectAttachmentsPatchCall
Patch: Updates the specified interconnect attachment with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- interconnectAttachment: Name of the interconnect attachment to patch. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*InterconnectAttachmentsService) SetLabels ¶ added in v0.96.0
func (r *InterconnectAttachmentsService) SetLabels(project string, region string, resource string, regionsetlabelsrequest *RegionSetLabelsRequest) *InterconnectAttachmentsSetLabelsCall
SetLabels: Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling Resources documentation.
- project: Project ID for this request. - region: The region for this request. - resource: Name or id of the resource for this request.
type InterconnectAttachmentsSetLabelsCall ¶ added in v0.96.0
type InterconnectAttachmentsSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*InterconnectAttachmentsSetLabelsCall) Context ¶ added in v0.96.0
func (c *InterconnectAttachmentsSetLabelsCall) Context(ctx context.Context) *InterconnectAttachmentsSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*InterconnectAttachmentsSetLabelsCall) Do ¶ added in v0.96.0
func (c *InterconnectAttachmentsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnectAttachments.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectAttachmentsSetLabelsCall) Fields ¶ added in v0.96.0
func (c *InterconnectAttachmentsSetLabelsCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectAttachmentsSetLabelsCall) Header ¶ added in v0.96.0
func (c *InterconnectAttachmentsSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectAttachmentsSetLabelsCall) RequestId ¶ added in v0.96.0
func (c *InterconnectAttachmentsSetLabelsCall) RequestId(requestId string) *InterconnectAttachmentsSetLabelsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InterconnectCircuitInfo ¶
type InterconnectCircuitInfo struct { // CustomerDemarcId: Customer-side demarc ID for this circuit. CustomerDemarcId string `json:"customerDemarcId,omitempty"` // GoogleCircuitId: Google-assigned unique ID for this circuit. Assigned at // circuit turn-up. GoogleCircuitId string `json:"googleCircuitId,omitempty"` // GoogleDemarcId: Google-side demarc ID for this circuit. Assigned at circuit // turn-up and provided by Google to the customer in the LOA. GoogleDemarcId string `json:"googleDemarcId,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomerDemarcId") 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. "CustomerDemarcId") 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:"-"` }
InterconnectCircuitInfo: Describes a single physical circuit between the Customer and Google. CircuitInfo objects are created by Google, so all fields are output only.
func (InterconnectCircuitInfo) MarshalJSON ¶
func (s InterconnectCircuitInfo) MarshalJSON() ([]byte, error)
type InterconnectDiagnostics ¶
type InterconnectDiagnostics struct { // ArpCaches: A list of InterconnectDiagnostics.ARPEntry objects, describing // individual neighbors currently seen by the Google router in the ARP cache // for the Interconnect. This will be empty when the Interconnect is not // bundled. ArpCaches []*InterconnectDiagnosticsARPEntry `json:"arpCaches,omitempty"` // BundleAggregationType: The aggregation type of the bundle interface. // // Possible values: // "BUNDLE_AGGREGATION_TYPE_LACP" - LACP is enabled. // "BUNDLE_AGGREGATION_TYPE_STATIC" - LACP is disabled. BundleAggregationType string `json:"bundleAggregationType,omitempty"` // BundleOperationalStatus: The operational status of the bundle interface. // // Possible values: // "BUNDLE_OPERATIONAL_STATUS_DOWN" - If bundleAggregationType is LACP: LACP // is not established and/or all links in the bundle have DOWN operational // status. If bundleAggregationType is STATIC: one or more links in the bundle // has DOWN operational status. // "BUNDLE_OPERATIONAL_STATUS_UP" - If bundleAggregationType is LACP: LACP is // established and at least one link in the bundle has UP operational status. // If bundleAggregationType is STATIC: all links in the bundle (typically just // one) have UP operational status. BundleOperationalStatus string `json:"bundleOperationalStatus,omitempty"` // Links: A list of InterconnectDiagnostics.LinkStatus objects, describing the // status for each link on the Interconnect. Links []*InterconnectDiagnosticsLinkStatus `json:"links,omitempty"` // MacAddress: The MAC address of the Interconnect's bundle interface. MacAddress string `json:"macAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "ArpCaches") 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. "ArpCaches") 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:"-"` }
InterconnectDiagnostics: Diagnostics information about the Interconnect connection, which contains detailed and current technical information about Google's side of the connection.
func (InterconnectDiagnostics) MarshalJSON ¶
func (s InterconnectDiagnostics) MarshalJSON() ([]byte, error)
type InterconnectDiagnosticsARPEntry ¶
type InterconnectDiagnosticsARPEntry struct { // IpAddress: The IP address of this ARP neighbor. IpAddress string `json:"ipAddress,omitempty"` // MacAddress: The MAC address of this ARP neighbor. MacAddress string `json:"macAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "IpAddress") 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. "IpAddress") 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:"-"` }
InterconnectDiagnosticsARPEntry: Describing the ARP neighbor entries seen on this link
func (InterconnectDiagnosticsARPEntry) MarshalJSON ¶
func (s InterconnectDiagnosticsARPEntry) MarshalJSON() ([]byte, error)
type InterconnectDiagnosticsLinkLACPStatus ¶
type InterconnectDiagnosticsLinkLACPStatus struct { // GoogleSystemId: System ID of the port on Google's side of the LACP exchange. GoogleSystemId string `json:"googleSystemId,omitempty"` // NeighborSystemId: System ID of the port on the neighbor's side of the LACP // exchange. NeighborSystemId string `json:"neighborSystemId,omitempty"` // State: The state of a LACP link, which can take one of the following values: // - ACTIVE: The link is configured and active within the bundle. - DETACHED: // The link is not configured within the bundle. This means that the rest of // the object should be empty. // // Possible values: // "ACTIVE" - The link is configured and active within the bundle. // "DETACHED" - The link is not configured within the bundle, this means the // rest of the object should be empty. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "GoogleSystemId") 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. "GoogleSystemId") 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:"-"` }
func (InterconnectDiagnosticsLinkLACPStatus) MarshalJSON ¶
func (s InterconnectDiagnosticsLinkLACPStatus) MarshalJSON() ([]byte, error)
type InterconnectDiagnosticsLinkOpticalPower ¶
type InterconnectDiagnosticsLinkOpticalPower struct { // State: The status of the current value when compared to the warning and // alarm levels for the receiving or transmitting transceiver. Possible states // include: - OK: The value has not crossed a warning threshold. - LOW_WARNING: // The value has crossed below the low warning threshold. - HIGH_WARNING: The // value has crossed above the high warning threshold. - LOW_ALARM: The value // has crossed below the low alarm threshold. - HIGH_ALARM: The value has // crossed above the high alarm threshold. // // Possible values: // "HIGH_ALARM" - The value has crossed above the high alarm threshold. // "HIGH_WARNING" - The value of the current optical power has crossed above // the high warning threshold. // "LOW_ALARM" - The value of the current optical power has crossed below the // low alarm threshold. // "LOW_WARNING" - The value of the current optical power has crossed below // the low warning threshold. // "OK" - The value of the current optical power has not crossed a warning // threshold. State string `json:"state,omitempty"` // Value: Value of the current receiving or transmitting optical power, read in // dBm. Take a known good optical value, give it a 10% margin and trigger // warnings relative to that value. In general, a -7dBm warning and a -11dBm // alarm are good optical value estimates for most links. Value float64 `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "State") 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. "State") 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:"-"` }
func (InterconnectDiagnosticsLinkOpticalPower) MarshalJSON ¶
func (s InterconnectDiagnosticsLinkOpticalPower) MarshalJSON() ([]byte, error)
func (*InterconnectDiagnosticsLinkOpticalPower) UnmarshalJSON ¶
func (s *InterconnectDiagnosticsLinkOpticalPower) UnmarshalJSON(data []byte) error
type InterconnectDiagnosticsLinkStatus ¶
type InterconnectDiagnosticsLinkStatus struct { // ArpCaches: A list of InterconnectDiagnostics.ARPEntry objects, describing // the ARP neighbor entries seen on this link. This will be empty if the link // is bundled ArpCaches []*InterconnectDiagnosticsARPEntry `json:"arpCaches,omitempty"` // CircuitId: The unique ID for this link assigned during turn up by Google. CircuitId string `json:"circuitId,omitempty"` // GoogleDemarc: The Demarc address assigned by Google and provided in the LoA. GoogleDemarc string `json:"googleDemarc,omitempty"` LacpStatus *InterconnectDiagnosticsLinkLACPStatus `json:"lacpStatus,omitempty"` // Macsec: Describes the status of MACsec encryption on this link. Macsec *InterconnectDiagnosticsMacsecStatus `json:"macsec,omitempty"` // OperationalStatus: The operational status of the link. // // Possible values: // "LINK_OPERATIONAL_STATUS_DOWN" - The interface is unable to communicate // with the remote end. // "LINK_OPERATIONAL_STATUS_UP" - The interface has low level communication // with the remote end. OperationalStatus string `json:"operationalStatus,omitempty"` // ReceivingOpticalPower: An InterconnectDiagnostics.LinkOpticalPower object, // describing the current value and status of the received light level. ReceivingOpticalPower *InterconnectDiagnosticsLinkOpticalPower `json:"receivingOpticalPower,omitempty"` // TransmittingOpticalPower: An InterconnectDiagnostics.LinkOpticalPower // object, describing the current value and status of the transmitted light // level. TransmittingOpticalPower *InterconnectDiagnosticsLinkOpticalPower `json:"transmittingOpticalPower,omitempty"` // ForceSendFields is a list of field names (e.g. "ArpCaches") 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. "ArpCaches") 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:"-"` }
func (InterconnectDiagnosticsLinkStatus) MarshalJSON ¶
func (s InterconnectDiagnosticsLinkStatus) MarshalJSON() ([]byte, error)
type InterconnectDiagnosticsMacsecStatus ¶ added in v0.144.0
type InterconnectDiagnosticsMacsecStatus struct { // Ckn: Indicates the Connectivity Association Key Name (CKN) currently being // used if MACsec is operational. Ckn string `json:"ckn,omitempty"` // Operational: Indicates whether or not MACsec is operational on this link. Operational bool `json:"operational,omitempty"` // ForceSendFields is a list of field names (e.g. "Ckn") 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. "Ckn") 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:"-"` }
InterconnectDiagnosticsMacsecStatus: Describes the status of MACsec encryption on the link.
func (InterconnectDiagnosticsMacsecStatus) MarshalJSON ¶ added in v0.144.0
func (s InterconnectDiagnosticsMacsecStatus) MarshalJSON() ([]byte, error)
type InterconnectList ¶
type InterconnectList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Interconnect resources. Items []*Interconnect `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#interconnectList for // lists of interconnects. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InterconnectListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
InterconnectList: Response to the list request, and contains a list of interconnects.
func (InterconnectList) MarshalJSON ¶
func (s InterconnectList) MarshalJSON() ([]byte, error)
type InterconnectListWarning ¶
type InterconnectListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InterconnectListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InterconnectListWarning: [Output Only] Informational warning message.
func (InterconnectListWarning) MarshalJSON ¶
func (s InterconnectListWarning) MarshalJSON() ([]byte, error)
type InterconnectListWarningData ¶
type InterconnectListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InterconnectListWarningData) MarshalJSON ¶
func (s InterconnectListWarningData) MarshalJSON() ([]byte, error)
type InterconnectLocation ¶
type InterconnectLocation struct { // Address: [Output Only] The postal address of the Point of Presence, each // line in the address is separated by a newline character. Address string `json:"address,omitempty"` // AvailabilityZone: [Output Only] Availability zone for this // InterconnectLocation. Within a metropolitan area (metro), maintenance will // not be simultaneously scheduled in more than one availability zone. Example: // "zone1" or "zone2". AvailabilityZone string `json:"availabilityZone,omitempty"` // AvailableFeatures: [Output only] List of features available at this // InterconnectLocation, which can take one of the following values: - MACSEC // // Possible values: // "IF_MACSEC" - Media Access Control security (MACsec) AvailableFeatures []string `json:"availableFeatures,omitempty"` // AvailableLinkTypes: [Output only] List of link types available at this // InterconnectLocation, which can take one of the following values: - // LINK_TYPE_ETHERNET_10G_LR - LINK_TYPE_ETHERNET_100G_LR // // Possible values: // "LINK_TYPE_ETHERNET_100G_LR" - 100G Ethernet, LR Optics. // "LINK_TYPE_ETHERNET_10G_LR" - 10G Ethernet, LR Optics. [(rate_bps) = // 10000000000]; AvailableLinkTypes []string `json:"availableLinkTypes,omitempty"` // City: [Output Only] Metropolitan area designator that indicates which city // an interconnect is located. For example: "Chicago, IL", "Amsterdam, // Netherlands". City string `json:"city,omitempty"` // Continent: [Output Only] Continent for this location, which can take one of // the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - // SOUTH_AMERICA // // Possible values: // "AFRICA" // "ASIA_PAC" // "C_AFRICA" // "C_ASIA_PAC" // "C_EUROPE" // "C_NORTH_AMERICA" // "C_SOUTH_AMERICA" // "EUROPE" // "NORTH_AMERICA" // "SOUTH_AMERICA" Continent string `json:"continent,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: [Output Only] An optional description of the resource. Description string `json:"description,omitempty"` // FacilityProvider: [Output Only] The name of the provider for this facility // (e.g., EQUINIX). FacilityProvider string `json:"facilityProvider,omitempty"` // FacilityProviderFacilityId: [Output Only] A provider-assigned Identifier for // this facility (e.g., Ashburn-DC1). FacilityProviderFacilityId string `json:"facilityProviderFacilityId,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always // compute#interconnectLocation for interconnect locations. Kind string `json:"kind,omitempty"` // Name: [Output Only] Name of the resource. Name string `json:"name,omitempty"` // PeeringdbFacilityId: [Output Only] The peeringdb identifier for this // facility (corresponding with a netfac type in peeringdb). PeeringdbFacilityId string `json:"peeringdbFacilityId,omitempty"` // RegionInfos: [Output Only] A list of InterconnectLocation.RegionInfo // objects, that describe parameters pertaining to the relation between this // InterconnectLocation and various Google Cloud regions. RegionInfos []*InterconnectLocationRegionInfo `json:"regionInfos,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Status: [Output Only] The status of this InterconnectLocation, which can // take one of the following values: - CLOSED: The InterconnectLocation is // closed and is unavailable for provisioning new Interconnects. - AVAILABLE: // The InterconnectLocation is available for provisioning new Interconnects. // // Possible values: // "AVAILABLE" - The InterconnectLocation is available for provisioning new // Interconnects. // "CLOSED" - The InterconnectLocation is closed for provisioning new // Interconnects. Status string `json:"status,omitempty"` // SupportsPzs: [Output Only] Reserved for future use. SupportsPzs bool `json:"supportsPzs,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Address") 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. "Address") 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:"-"` }
InterconnectLocation: Represents an Interconnect Attachment (VLAN) Location resource. You can use this resource to find location details about an Interconnect attachment (VLAN). For more information about interconnect attachments, read Creating VLAN Attachments.
func (InterconnectLocation) MarshalJSON ¶
func (s InterconnectLocation) MarshalJSON() ([]byte, error)
type InterconnectLocationList ¶
type InterconnectLocationList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InterconnectLocation resources. Items []*InterconnectLocation `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#interconnectLocationList for lists of interconnect locations. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InterconnectLocationListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
InterconnectLocationList: Response to the list request, and contains a list of interconnect locations.
func (InterconnectLocationList) MarshalJSON ¶
func (s InterconnectLocationList) MarshalJSON() ([]byte, error)
type InterconnectLocationListWarning ¶
type InterconnectLocationListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InterconnectLocationListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InterconnectLocationListWarning: [Output Only] Informational warning message.
func (InterconnectLocationListWarning) MarshalJSON ¶
func (s InterconnectLocationListWarning) MarshalJSON() ([]byte, error)
type InterconnectLocationListWarningData ¶
type InterconnectLocationListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InterconnectLocationListWarningData) MarshalJSON ¶
func (s InterconnectLocationListWarningData) MarshalJSON() ([]byte, error)
type InterconnectLocationRegionInfo ¶
type InterconnectLocationRegionInfo struct { // ExpectedRttMs: Expected round-trip time in milliseconds, from this // InterconnectLocation to a VM in this region. ExpectedRttMs int64 `json:"expectedRttMs,omitempty,string"` // LocationPresence: Identifies the network presence of this location. // // Possible values: // "GLOBAL" - This region is not in any common network presence with this // InterconnectLocation. // "LOCAL_REGION" - This region shares the same regional network presence as // this InterconnectLocation. // "LP_GLOBAL" - [Deprecated] This region is not in any common network // presence with this InterconnectLocation. // "LP_LOCAL_REGION" - [Deprecated] This region shares the same regional // network presence as this InterconnectLocation. LocationPresence string `json:"locationPresence,omitempty"` // Region: URL for the region of this location. Region string `json:"region,omitempty"` // ForceSendFields is a list of field names (e.g. "ExpectedRttMs") 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. "ExpectedRttMs") 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:"-"` }
InterconnectLocationRegionInfo: Information about any potential InterconnectAttachments between an Interconnect at a specific InterconnectLocation, and a specific Cloud Region.
func (InterconnectLocationRegionInfo) MarshalJSON ¶
func (s InterconnectLocationRegionInfo) MarshalJSON() ([]byte, error)
type InterconnectLocationsGetCall ¶
type InterconnectLocationsGetCall struct {
// contains filtered or unexported fields
}
func (*InterconnectLocationsGetCall) Context ¶
func (c *InterconnectLocationsGetCall) Context(ctx context.Context) *InterconnectLocationsGetCall
Context sets the context to be used in this call's Do method.
func (*InterconnectLocationsGetCall) Do ¶
func (c *InterconnectLocationsGetCall) Do(opts ...googleapi.CallOption) (*InterconnectLocation, error)
Do executes the "compute.interconnectLocations.get" call. Any non-2xx status code is an error. Response headers are in either *InterconnectLocation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectLocationsGetCall) Fields ¶
func (c *InterconnectLocationsGetCall) Fields(s ...googleapi.Field) *InterconnectLocationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectLocationsGetCall) Header ¶
func (c *InterconnectLocationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectLocationsGetCall) IfNoneMatch ¶
func (c *InterconnectLocationsGetCall) IfNoneMatch(entityTag string) *InterconnectLocationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InterconnectLocationsListCall ¶
type InterconnectLocationsListCall struct {
// contains filtered or unexported fields
}
func (*InterconnectLocationsListCall) Context ¶
func (c *InterconnectLocationsListCall) Context(ctx context.Context) *InterconnectLocationsListCall
Context sets the context to be used in this call's Do method.
func (*InterconnectLocationsListCall) Do ¶
func (c *InterconnectLocationsListCall) Do(opts ...googleapi.CallOption) (*InterconnectLocationList, error)
Do executes the "compute.interconnectLocations.list" call. Any non-2xx status code is an error. Response headers are in either *InterconnectLocationList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectLocationsListCall) Fields ¶
func (c *InterconnectLocationsListCall) Fields(s ...googleapi.Field) *InterconnectLocationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectLocationsListCall) Filter ¶
func (c *InterconnectLocationsListCall) Filter(filter string) *InterconnectLocationsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InterconnectLocationsListCall) Header ¶
func (c *InterconnectLocationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectLocationsListCall) IfNoneMatch ¶
func (c *InterconnectLocationsListCall) IfNoneMatch(entityTag string) *InterconnectLocationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InterconnectLocationsListCall) MaxResults ¶
func (c *InterconnectLocationsListCall) MaxResults(maxResults int64) *InterconnectLocationsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InterconnectLocationsListCall) OrderBy ¶
func (c *InterconnectLocationsListCall) OrderBy(orderBy string) *InterconnectLocationsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InterconnectLocationsListCall) PageToken ¶
func (c *InterconnectLocationsListCall) PageToken(pageToken string) *InterconnectLocationsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InterconnectLocationsListCall) Pages ¶
func (c *InterconnectLocationsListCall) Pages(ctx context.Context, f func(*InterconnectLocationList) 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 (*InterconnectLocationsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InterconnectLocationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InterconnectLocationsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type InterconnectLocationsService ¶
type InterconnectLocationsService struct {
// contains filtered or unexported fields
}
func NewInterconnectLocationsService ¶
func NewInterconnectLocationsService(s *Service) *InterconnectLocationsService
func (*InterconnectLocationsService) Get ¶
func (r *InterconnectLocationsService) Get(project string, interconnectLocation string) *InterconnectLocationsGetCall
Get: Returns the details for the specified interconnect location. Gets a list of available interconnect locations by making a list() request.
- interconnectLocation: Name of the interconnect location to return. - project: Project ID for this request.
func (*InterconnectLocationsService) List ¶
func (r *InterconnectLocationsService) List(project string) *InterconnectLocationsListCall
List: Retrieves the list of interconnect locations available to the specified project.
- project: Project ID for this request.
type InterconnectMacsec ¶ added in v0.144.0
type InterconnectMacsec struct { // FailOpen: If set to true, the Interconnect connection is configured with a // should-secure MACsec security policy, that allows the Google router to // fallback to cleartext traffic if the MKA session cannot be established. By // default, the Interconnect connection is configured with a must-secure // security policy that drops all traffic if the MKA session cannot be // established with your router. FailOpen bool `json:"failOpen,omitempty"` // key objects along with their start times. A MACsec CKN/CAK is generated for // each key in the key chain. Google router automatically picks the key with // the most recent startTime when establishing or re-establishing a MACsec // secure link. PreSharedKeys []*InterconnectMacsecPreSharedKey `json:"preSharedKeys,omitempty"` // ForceSendFields is a list of field names (e.g. "FailOpen") 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. "FailOpen") 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:"-"` }
InterconnectMacsec: Configuration information for enabling Media Access Control security (MACsec) on this Cloud Interconnect connection between Google and your on-premises router.
func (InterconnectMacsec) MarshalJSON ¶ added in v0.144.0
func (s InterconnectMacsec) MarshalJSON() ([]byte, error)
type InterconnectMacsecConfig ¶ added in v0.144.0
type InterconnectMacsecConfig struct { // along with their start times. A MACsec CKN/CAK is generated for each key in // the key chain. Google router automatically picks the key with the most // recent startTime when establishing or re-establishing a MACsec secure link. PreSharedKeys []*InterconnectMacsecConfigPreSharedKey `json:"preSharedKeys,omitempty"` // ForceSendFields is a list of field names (e.g. "PreSharedKeys") 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. "PreSharedKeys") 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:"-"` }
InterconnectMacsecConfig: MACsec configuration information for the Interconnect connection. Contains the generated Connectivity Association Key Name (CKN) and the key (CAK) for this Interconnect connection.
func (InterconnectMacsecConfig) MarshalJSON ¶ added in v0.144.0
func (s InterconnectMacsecConfig) MarshalJSON() ([]byte, error)
type InterconnectMacsecConfigPreSharedKey ¶ added in v0.144.0
type InterconnectMacsecConfigPreSharedKey struct { string `json:"cak,omitempty"` Ckn string `json:"ckn,omitempty"` Name string `json:"name,omitempty"` StartTime string `json:"startTime,omitempty"` // 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:"-"` // 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:"-"` }Cak
InterconnectMacsecConfigPreSharedKey: Describes a pre-shared key used to setup MACsec in static connectivity association key (CAK) mode.
func (InterconnectMacsecConfigPreSharedKey) MarshalJSON ¶ added in v0.144.0
func (s InterconnectMacsecConfigPreSharedKey) MarshalJSON() ([]byte, error)
type InterconnectMacsecPreSharedKey ¶ added in v0.144.0
type InterconnectMacsecPreSharedKey struct { // characters long, and comply with RFC1035. Specifically, the name must be // 1-63 characters long and match the regular expression // `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a // lowercase letter, and all following characters must be a dash, lowercase // letter, or digit, except the last character, which cannot be a dash. Name string `json:"name,omitempty"` // can be in the future. If the keychain has a single key, startTime can be // omitted. If the keychain has multiple keys, startTime is mandatory for each // key. The start times of keys must be in increasing order. The start times of // two consecutive keys must be at least 6 hours apart. StartTime string `json:"startTime,omitempty"` // 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:"-"` // 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:"-"` }
InterconnectMacsecPreSharedKey: Describes a pre-shared key used to setup MACsec in static connectivity association key (CAK) mode.
func (InterconnectMacsecPreSharedKey) MarshalJSON ¶ added in v0.144.0
func (s InterconnectMacsecPreSharedKey) MarshalJSON() ([]byte, error)
type InterconnectOutageNotification ¶
type InterconnectOutageNotification struct { // AffectedCircuits: If issue_type is IT_PARTIAL_OUTAGE, a list of the // Google-side circuit IDs that will be affected. AffectedCircuits []string `json:"affectedCircuits,omitempty"` // Description: A description about the purpose of the outage. Description string `json:"description,omitempty"` // EndTime: Scheduled end time for the outage (milliseconds since Unix epoch). EndTime int64 `json:"endTime,omitempty,string"` // IssueType: Form this outage is expected to take, which can take one of the // following values: - OUTAGE: The Interconnect may be completely out of // service for some or all of the specified window. - PARTIAL_OUTAGE: Some // circuits comprising the Interconnect as a whole should remain up, but with // reduced bandwidth. Note that the versions of this enum prefixed with "IT_" // have been deprecated in favor of the unprefixed values. // // Possible values: // "IT_OUTAGE" - [Deprecated] The Interconnect may be completely out of // service for some or all of the specified window. // "IT_PARTIAL_OUTAGE" - [Deprecated] Some circuits comprising the // Interconnect will be out of service during the expected window. The // interconnect as a whole should remain up, albeit with reduced bandwidth. // "OUTAGE" - The Interconnect may be completely out of service for some or // all of the specified window. // "PARTIAL_OUTAGE" - Some circuits comprising the Interconnect will be out // of service during the expected window. The interconnect as a whole should // remain up, albeit with reduced bandwidth. IssueType string `json:"issueType,omitempty"` // Name: Unique identifier for this outage notification. Name string `json:"name,omitempty"` // Source: The party that generated this notification, which can take the // following value: - GOOGLE: this notification as generated by Google. Note // that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. // // Possible values: // "GOOGLE" - This notification was generated by Google. // "NSRC_GOOGLE" - [Deprecated] This notification was generated by Google. Source string `json:"source,omitempty"` // StartTime: Scheduled start time for the outage (milliseconds since Unix // epoch). StartTime int64 `json:"startTime,omitempty,string"` // State: State of this notification, which can take one of the following // values: - ACTIVE: This outage notification is active. The event could be in // the past, present, or future. See start_time and end_time for scheduling. - // CANCELLED: The outage associated with this notification was cancelled before // the outage was due to start. - COMPLETED: The outage associated with this // notification is complete. Note that the versions of this enum prefixed with // "NS_" have been deprecated in favor of the unprefixed values. // // Possible values: // "ACTIVE" - This outage notification is active. The event could be in the // future, present, or past. See start_time and end_time for scheduling. // "CANCELLED" - The outage associated with this notification was cancelled // before the outage was due to start. // "COMPLETED" - The outage associated with this notification is complete. // "NS_ACTIVE" - [Deprecated] This outage notification is active. The event // could be in the future, present, or past. See start_time and end_time for // scheduling. // "NS_CANCELED" - [Deprecated] The outage associated with this notification // was canceled before the outage was due to start. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "AffectedCircuits") 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. "AffectedCircuits") 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:"-"` }
InterconnectOutageNotification: Description of a planned outage on this Interconnect.
func (InterconnectOutageNotification) MarshalJSON ¶
func (s InterconnectOutageNotification) MarshalJSON() ([]byte, error)
type InterconnectRemoteLocation ¶ added in v0.123.0
type InterconnectRemoteLocation struct { // Address: [Output Only] The postal address of the Point of Presence, each // line in the address is separated by a newline character. Address string `json:"address,omitempty"` // AttachmentConfigurationConstraints: [Output Only] Subset of fields from // InterconnectAttachment's |configurationConstraints| field that apply to all // attachments for this remote location. AttachmentConfigurationConstraints *InterconnectAttachmentConfigurationConstraints `json:"attachmentConfigurationConstraints,omitempty"` // City: [Output Only] Metropolitan area designator that indicates which city // an interconnect is located. For example: "Chicago, IL", "Amsterdam, // Netherlands". City string `json:"city,omitempty"` // Constraints: [Output Only] Constraints on the parameters for creating // Cross-Cloud Interconnect and associated InterconnectAttachments. Constraints *InterconnectRemoteLocationConstraints `json:"constraints,omitempty"` // Continent: [Output Only] Continent for this location, which can take one of // the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - // SOUTH_AMERICA // // Possible values: // "AFRICA" // "ASIA_PAC" // "EUROPE" // "NORTH_AMERICA" // "SOUTH_AMERICA" Continent string `json:"continent,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: [Output Only] An optional description of the resource. Description string `json:"description,omitempty"` // FacilityProvider: [Output Only] The name of the provider for this facility // (e.g., EQUINIX). FacilityProvider string `json:"facilityProvider,omitempty"` // FacilityProviderFacilityId: [Output Only] A provider-assigned Identifier for // this facility (e.g., Ashburn-DC1). FacilityProviderFacilityId string `json:"facilityProviderFacilityId,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always // compute#interconnectRemoteLocation for interconnect remote locations. Kind string `json:"kind,omitempty"` // Lacp: [Output Only] Link Aggregation Control Protocol (LACP) constraints, // which can take one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED // // Possible values: // "LACP_SUPPORTED" - LACP_SUPPORTED: LACP is supported, and enabled by // default on the Cross-Cloud Interconnect. // "LACP_UNSUPPORTED" - LACP_UNSUPPORTED: LACP is not supported and is not be // enabled on this port. GetDiagnostics shows bundleAggregationType as // "static". GCP does not support LAGs without LACP, so requestedLinkCount must // be 1. Lacp string `json:"lacp,omitempty"` // MaxLagSize100Gbps: [Output Only] The maximum number of 100 Gbps ports // supported in a link aggregation group (LAG). When linkType is 100 Gbps, // requestedLinkCount cannot exceed max_lag_size_100_gbps. MaxLagSize100Gbps int64 `json:"maxLagSize100Gbps,omitempty"` // MaxLagSize10Gbps: [Output Only] The maximum number of 10 Gbps ports // supported in a link aggregation group (LAG). When linkType is 10 Gbps, // requestedLinkCount cannot exceed max_lag_size_10_gbps. MaxLagSize10Gbps int64 `json:"maxLagSize10Gbps,omitempty"` // Name: [Output Only] Name of the resource. Name string `json:"name,omitempty"` // PeeringdbFacilityId: [Output Only] The peeringdb identifier for this // facility (corresponding with a netfac type in peeringdb). PeeringdbFacilityId string `json:"peeringdbFacilityId,omitempty"` // PermittedConnections: [Output Only] Permitted connections. PermittedConnections []*InterconnectRemoteLocationPermittedConnections `json:"permittedConnections,omitempty"` // RemoteService: [Output Only] Indicates the service provider present at the // remote location. Example values: "Amazon Web Services", "Microsoft Azure". RemoteService string `json:"remoteService,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Status: [Output Only] The status of this InterconnectRemoteLocation, which // can take one of the following values: - CLOSED: The // InterconnectRemoteLocation is closed and is unavailable for provisioning new // Cross-Cloud Interconnects. - AVAILABLE: The InterconnectRemoteLocation is // available for provisioning new Cross-Cloud Interconnects. // // Possible values: // "AVAILABLE" - The InterconnectRemoteLocation is available for provisioning // new Cross-Cloud Interconnects. // "CLOSED" - The InterconnectRemoteLocation is closed for provisioning new // Cross-Cloud Interconnects. Status string `json:"status,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Address") 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. "Address") 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:"-"` }
InterconnectRemoteLocation: Represents a Cross-Cloud Interconnect Remote Location resource. You can use this resource to find remote location details about an Interconnect attachment (VLAN).
func (InterconnectRemoteLocation) MarshalJSON ¶ added in v0.123.0
func (s InterconnectRemoteLocation) MarshalJSON() ([]byte, error)
type InterconnectRemoteLocationConstraints ¶ added in v0.123.0
type InterconnectRemoteLocationConstraints struct { // PortPairRemoteLocation: [Output Only] Port pair remote location constraints, // which can take one of the following values: // PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION. // Google Cloud API refers only to individual ports, but the UI uses this field // when ordering a pair of ports, to prevent users from accidentally ordering // something that is incompatible with their cloud provider. Specifically, when // ordering a redundant pair of Cross-Cloud Interconnect ports, and one of them // uses a remote location with portPairMatchingRemoteLocation set to matching, // the UI requires that both ports use the same remote location. // // Possible values: // "PORT_PAIR_MATCHING_REMOTE_LOCATION" - If // PORT_PAIR_MATCHING_REMOTE_LOCATION, the remote cloud provider allocates // ports in pairs, and the user should choose the same remote location for both // ports. // "PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION" - If // PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, a user may opt to provision a // redundant pair of Cross-Cloud Interconnects using two different remote // locations in the same city. PortPairRemoteLocation string `json:"portPairRemoteLocation,omitempty"` // PortPairVlan: [Output Only] Port pair VLAN constraints, which can take one // of the following values: PORT_PAIR_UNCONSTRAINED_VLAN, // PORT_PAIR_MATCHING_VLAN // // Possible values: // "PORT_PAIR_MATCHING_VLAN" - If PORT_PAIR_MATCHING_VLAN, the Interconnect // for this attachment is part of a pair of ports that should have matching // VLAN allocations. This occurs with Cross-Cloud Interconnect to Azure remote // locations. While GCP's API does not explicitly group pairs of ports, the UI // uses this field to ensure matching VLAN ids when configuring a redundant // VLAN pair. // "PORT_PAIR_UNCONSTRAINED_VLAN" - PORT_PAIR_UNCONSTRAINED_VLAN means there // is no constraint. PortPairVlan string `json:"portPairVlan,omitempty"` // SubnetLengthRange: [Output Only] [min-length, max-length] The minimum and // maximum value (inclusive) for the IPv4 subnet length. For example, an // interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure // requires /30 subnets. This range specifies the values supported by both // cloud providers. Interconnect currently supports /29 and /30 IPv4 subnet // lengths. If a remote cloud has no constraint on IPv4 subnet length, the // range would thus be {min: 29, max: 30}. SubnetLengthRange *InterconnectRemoteLocationConstraintsSubnetLengthRange `json:"subnetLengthRange,omitempty"` // ForceSendFields is a list of field names (e.g. "PortPairRemoteLocation") 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. "PortPairRemoteLocation") 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:"-"` }
func (InterconnectRemoteLocationConstraints) MarshalJSON ¶ added in v0.123.0
func (s InterconnectRemoteLocationConstraints) MarshalJSON() ([]byte, error)
type InterconnectRemoteLocationConstraintsSubnetLengthRange ¶ added in v0.123.0
type InterconnectRemoteLocationConstraintsSubnetLengthRange struct { Max int64 `json:"max,omitempty"` Min int64 `json:"min,omitempty"` // ForceSendFields is a list of field names (e.g. "Max") 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. "Max") 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:"-"` }
func (InterconnectRemoteLocationConstraintsSubnetLengthRange) MarshalJSON ¶ added in v0.123.0
func (s InterconnectRemoteLocationConstraintsSubnetLengthRange) MarshalJSON() ([]byte, error)
type InterconnectRemoteLocationList ¶ added in v0.123.0
type InterconnectRemoteLocationList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InterconnectRemoteLocation resources. Items []*InterconnectRemoteLocation `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#interconnectRemoteLocationList for lists of interconnect remote // locations. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token lets you get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *InterconnectRemoteLocationListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
InterconnectRemoteLocationList: Response to the list request, and contains a list of interconnect remote locations.
func (InterconnectRemoteLocationList) MarshalJSON ¶ added in v0.123.0
func (s InterconnectRemoteLocationList) MarshalJSON() ([]byte, error)
type InterconnectRemoteLocationListWarning ¶ added in v0.123.0
type InterconnectRemoteLocationListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*InterconnectRemoteLocationListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
InterconnectRemoteLocationListWarning: [Output Only] Informational warning message.
func (InterconnectRemoteLocationListWarning) MarshalJSON ¶ added in v0.123.0
func (s InterconnectRemoteLocationListWarning) MarshalJSON() ([]byte, error)
type InterconnectRemoteLocationListWarningData ¶ added in v0.123.0
type InterconnectRemoteLocationListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (InterconnectRemoteLocationListWarningData) MarshalJSON ¶ added in v0.123.0
func (s InterconnectRemoteLocationListWarningData) MarshalJSON() ([]byte, error)
type InterconnectRemoteLocationPermittedConnections ¶ added in v0.123.0
type InterconnectRemoteLocationPermittedConnections struct { // InterconnectLocation: [Output Only] URL of an Interconnect location that is // permitted to connect to this Interconnect remote location. InterconnectLocation string `json:"interconnectLocation,omitempty"` // ForceSendFields is a list of field names (e.g. "InterconnectLocation") 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. "InterconnectLocation") 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:"-"` }
func (InterconnectRemoteLocationPermittedConnections) MarshalJSON ¶ added in v0.123.0
func (s InterconnectRemoteLocationPermittedConnections) MarshalJSON() ([]byte, error)
type InterconnectRemoteLocationsGetCall ¶ added in v0.123.0
type InterconnectRemoteLocationsGetCall struct {
// contains filtered or unexported fields
}
func (*InterconnectRemoteLocationsGetCall) Context ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsGetCall) Context(ctx context.Context) *InterconnectRemoteLocationsGetCall
Context sets the context to be used in this call's Do method.
func (*InterconnectRemoteLocationsGetCall) Do ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsGetCall) Do(opts ...googleapi.CallOption) (*InterconnectRemoteLocation, error)
Do executes the "compute.interconnectRemoteLocations.get" call. Any non-2xx status code is an error. Response headers are in either *InterconnectRemoteLocation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectRemoteLocationsGetCall) Fields ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsGetCall) Fields(s ...googleapi.Field) *InterconnectRemoteLocationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectRemoteLocationsGetCall) Header ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectRemoteLocationsGetCall) IfNoneMatch ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsGetCall) IfNoneMatch(entityTag string) *InterconnectRemoteLocationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InterconnectRemoteLocationsListCall ¶ added in v0.123.0
type InterconnectRemoteLocationsListCall struct {
// contains filtered or unexported fields
}
func (*InterconnectRemoteLocationsListCall) Context ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsListCall) Context(ctx context.Context) *InterconnectRemoteLocationsListCall
Context sets the context to be used in this call's Do method.
func (*InterconnectRemoteLocationsListCall) Do ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsListCall) Do(opts ...googleapi.CallOption) (*InterconnectRemoteLocationList, error)
Do executes the "compute.interconnectRemoteLocations.list" call. Any non-2xx status code is an error. Response headers are in either *InterconnectRemoteLocationList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectRemoteLocationsListCall) Fields ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsListCall) Fields(s ...googleapi.Field) *InterconnectRemoteLocationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectRemoteLocationsListCall) Filter ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsListCall) Filter(filter string) *InterconnectRemoteLocationsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InterconnectRemoteLocationsListCall) Header ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectRemoteLocationsListCall) IfNoneMatch ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsListCall) IfNoneMatch(entityTag string) *InterconnectRemoteLocationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InterconnectRemoteLocationsListCall) MaxResults ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsListCall) MaxResults(maxResults int64) *InterconnectRemoteLocationsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InterconnectRemoteLocationsListCall) OrderBy ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsListCall) OrderBy(orderBy string) *InterconnectRemoteLocationsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InterconnectRemoteLocationsListCall) PageToken ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsListCall) PageToken(pageToken string) *InterconnectRemoteLocationsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InterconnectRemoteLocationsListCall) Pages ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsListCall) Pages(ctx context.Context, f func(*InterconnectRemoteLocationList) 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 (*InterconnectRemoteLocationsListCall) ReturnPartialSuccess ¶ added in v0.123.0
func (c *InterconnectRemoteLocationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InterconnectRemoteLocationsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type InterconnectRemoteLocationsService ¶ added in v0.123.0
type InterconnectRemoteLocationsService struct {
// contains filtered or unexported fields
}
func NewInterconnectRemoteLocationsService ¶ added in v0.123.0
func NewInterconnectRemoteLocationsService(s *Service) *InterconnectRemoteLocationsService
func (*InterconnectRemoteLocationsService) Get ¶ added in v0.123.0
func (r *InterconnectRemoteLocationsService) Get(project string, interconnectRemoteLocation string) *InterconnectRemoteLocationsGetCall
Get: Returns the details for the specified interconnect remote location. Gets a list of available interconnect remote locations by making a list() request.
- interconnectRemoteLocation: Name of the interconnect remote location to return.
- project: Project ID for this request.
func (*InterconnectRemoteLocationsService) List ¶ added in v0.123.0
func (r *InterconnectRemoteLocationsService) List(project string) *InterconnectRemoteLocationsListCall
List: Retrieves the list of interconnect remote locations available to the specified project.
- project: Project ID for this request.
type InterconnectsDeleteCall ¶
type InterconnectsDeleteCall struct {
// contains filtered or unexported fields
}
func (*InterconnectsDeleteCall) Context ¶
func (c *InterconnectsDeleteCall) Context(ctx context.Context) *InterconnectsDeleteCall
Context sets the context to be used in this call's Do method.
func (*InterconnectsDeleteCall) Do ¶
func (c *InterconnectsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnects.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectsDeleteCall) Fields ¶
func (c *InterconnectsDeleteCall) Fields(s ...googleapi.Field) *InterconnectsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectsDeleteCall) Header ¶
func (c *InterconnectsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectsDeleteCall) RequestId ¶
func (c *InterconnectsDeleteCall) RequestId(requestId string) *InterconnectsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InterconnectsGetCall ¶
type InterconnectsGetCall struct {
// contains filtered or unexported fields
}
func (*InterconnectsGetCall) Context ¶
func (c *InterconnectsGetCall) Context(ctx context.Context) *InterconnectsGetCall
Context sets the context to be used in this call's Do method.
func (*InterconnectsGetCall) Do ¶
func (c *InterconnectsGetCall) Do(opts ...googleapi.CallOption) (*Interconnect, error)
Do executes the "compute.interconnects.get" call. Any non-2xx status code is an error. Response headers are in either *Interconnect.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectsGetCall) Fields ¶
func (c *InterconnectsGetCall) Fields(s ...googleapi.Field) *InterconnectsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectsGetCall) Header ¶
func (c *InterconnectsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectsGetCall) IfNoneMatch ¶
func (c *InterconnectsGetCall) IfNoneMatch(entityTag string) *InterconnectsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InterconnectsGetDiagnosticsCall ¶
type InterconnectsGetDiagnosticsCall struct {
// contains filtered or unexported fields
}
func (*InterconnectsGetDiagnosticsCall) Context ¶
func (c *InterconnectsGetDiagnosticsCall) Context(ctx context.Context) *InterconnectsGetDiagnosticsCall
Context sets the context to be used in this call's Do method.
func (*InterconnectsGetDiagnosticsCall) Do ¶
func (c *InterconnectsGetDiagnosticsCall) Do(opts ...googleapi.CallOption) (*InterconnectsGetDiagnosticsResponse, error)
Do executes the "compute.interconnects.getDiagnostics" call. Any non-2xx status code is an error. Response headers are in either *InterconnectsGetDiagnosticsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectsGetDiagnosticsCall) Fields ¶
func (c *InterconnectsGetDiagnosticsCall) Fields(s ...googleapi.Field) *InterconnectsGetDiagnosticsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectsGetDiagnosticsCall) Header ¶
func (c *InterconnectsGetDiagnosticsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectsGetDiagnosticsCall) IfNoneMatch ¶
func (c *InterconnectsGetDiagnosticsCall) IfNoneMatch(entityTag string) *InterconnectsGetDiagnosticsCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InterconnectsGetDiagnosticsResponse ¶
type InterconnectsGetDiagnosticsResponse struct { Result *InterconnectDiagnostics `json:"result,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Result") 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. "Result") 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:"-"` }
InterconnectsGetDiagnosticsResponse: Response for the InterconnectsGetDiagnosticsRequest.
func (InterconnectsGetDiagnosticsResponse) MarshalJSON ¶
func (s InterconnectsGetDiagnosticsResponse) MarshalJSON() ([]byte, error)
type InterconnectsGetMacsecConfigCall ¶ added in v0.144.0
type InterconnectsGetMacsecConfigCall struct {
// contains filtered or unexported fields
}
func (*InterconnectsGetMacsecConfigCall) Context ¶ added in v0.144.0
func (c *InterconnectsGetMacsecConfigCall) Context(ctx context.Context) *InterconnectsGetMacsecConfigCall
Context sets the context to be used in this call's Do method.
func (*InterconnectsGetMacsecConfigCall) Do ¶ added in v0.144.0
func (c *InterconnectsGetMacsecConfigCall) Do(opts ...googleapi.CallOption) (*InterconnectsGetMacsecConfigResponse, error)
Do executes the "compute.interconnects.getMacsecConfig" call. Any non-2xx status code is an error. Response headers are in either *InterconnectsGetMacsecConfigResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectsGetMacsecConfigCall) Fields ¶ added in v0.144.0
func (c *InterconnectsGetMacsecConfigCall) Fields(s ...googleapi.Field) *InterconnectsGetMacsecConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectsGetMacsecConfigCall) Header ¶ added in v0.144.0
func (c *InterconnectsGetMacsecConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectsGetMacsecConfigCall) IfNoneMatch ¶ added in v0.144.0
func (c *InterconnectsGetMacsecConfigCall) IfNoneMatch(entityTag string) *InterconnectsGetMacsecConfigCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type InterconnectsGetMacsecConfigResponse ¶ added in v0.144.0
type InterconnectsGetMacsecConfigResponse struct { // Etag: end_interface: MixerGetResponseWithEtagBuilder Etag string `json:"etag,omitempty"` Result *InterconnectMacsecConfig `json:"result,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Etag") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
InterconnectsGetMacsecConfigResponse: Response for the InterconnectsGetMacsecConfigRequest.
func (InterconnectsGetMacsecConfigResponse) MarshalJSON ¶ added in v0.144.0
func (s InterconnectsGetMacsecConfigResponse) MarshalJSON() ([]byte, error)
type InterconnectsInsertCall ¶
type InterconnectsInsertCall struct {
// contains filtered or unexported fields
}
func (*InterconnectsInsertCall) Context ¶
func (c *InterconnectsInsertCall) Context(ctx context.Context) *InterconnectsInsertCall
Context sets the context to be used in this call's Do method.
func (*InterconnectsInsertCall) Do ¶
func (c *InterconnectsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnects.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectsInsertCall) Fields ¶
func (c *InterconnectsInsertCall) Fields(s ...googleapi.Field) *InterconnectsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectsInsertCall) Header ¶
func (c *InterconnectsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectsInsertCall) RequestId ¶
func (c *InterconnectsInsertCall) RequestId(requestId string) *InterconnectsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InterconnectsListCall ¶
type InterconnectsListCall struct {
// contains filtered or unexported fields
}
func (*InterconnectsListCall) Context ¶
func (c *InterconnectsListCall) Context(ctx context.Context) *InterconnectsListCall
Context sets the context to be used in this call's Do method.
func (*InterconnectsListCall) Do ¶
func (c *InterconnectsListCall) Do(opts ...googleapi.CallOption) (*InterconnectList, error)
Do executes the "compute.interconnects.list" call. Any non-2xx status code is an error. Response headers are in either *InterconnectList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectsListCall) Fields ¶
func (c *InterconnectsListCall) Fields(s ...googleapi.Field) *InterconnectsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectsListCall) Filter ¶
func (c *InterconnectsListCall) Filter(filter string) *InterconnectsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*InterconnectsListCall) Header ¶
func (c *InterconnectsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectsListCall) IfNoneMatch ¶
func (c *InterconnectsListCall) IfNoneMatch(entityTag string) *InterconnectsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*InterconnectsListCall) MaxResults ¶
func (c *InterconnectsListCall) MaxResults(maxResults int64) *InterconnectsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*InterconnectsListCall) OrderBy ¶
func (c *InterconnectsListCall) OrderBy(orderBy string) *InterconnectsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*InterconnectsListCall) PageToken ¶
func (c *InterconnectsListCall) PageToken(pageToken string) *InterconnectsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*InterconnectsListCall) Pages ¶
func (c *InterconnectsListCall) Pages(ctx context.Context, f func(*InterconnectList) 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 (*InterconnectsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *InterconnectsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InterconnectsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type InterconnectsPatchCall ¶
type InterconnectsPatchCall struct {
// contains filtered or unexported fields
}
func (*InterconnectsPatchCall) Context ¶
func (c *InterconnectsPatchCall) Context(ctx context.Context) *InterconnectsPatchCall
Context sets the context to be used in this call's Do method.
func (*InterconnectsPatchCall) Do ¶
func (c *InterconnectsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnects.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectsPatchCall) Fields ¶
func (c *InterconnectsPatchCall) Fields(s ...googleapi.Field) *InterconnectsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectsPatchCall) Header ¶
func (c *InterconnectsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*InterconnectsPatchCall) RequestId ¶
func (c *InterconnectsPatchCall) RequestId(requestId string) *InterconnectsPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type InterconnectsService ¶
type InterconnectsService struct {
// contains filtered or unexported fields
}
func NewInterconnectsService ¶
func NewInterconnectsService(s *Service) *InterconnectsService
func (*InterconnectsService) Delete ¶
func (r *InterconnectsService) Delete(project string, interconnect string) *InterconnectsDeleteCall
Delete: Deletes the specified Interconnect.
- interconnect: Name of the interconnect to delete. - project: Project ID for this request.
func (*InterconnectsService) Get ¶
func (r *InterconnectsService) Get(project string, interconnect string) *InterconnectsGetCall
Get: Returns the specified Interconnect. Get a list of available Interconnects by making a list() request.
- interconnect: Name of the interconnect to return. - project: Project ID for this request.
func (*InterconnectsService) GetDiagnostics ¶
func (r *InterconnectsService) GetDiagnostics(project string, interconnect string) *InterconnectsGetDiagnosticsCall
GetDiagnostics: Returns the interconnectDiagnostics for the specified Interconnect. In the event of a global outage, do not use this API to make decisions about where to redirect your network traffic. Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global resource. A global outage can prevent this API from functioning properly.
- interconnect: Name of the interconnect resource to query. - project: Project ID for this request.
func (*InterconnectsService) GetMacsecConfig ¶ added in v0.144.0
func (r *InterconnectsService) GetMacsecConfig(project string, interconnect string) *InterconnectsGetMacsecConfigCall
GetMacsecConfig: Returns the interconnectMacsecConfig for the specified Interconnect.
- interconnect: Name of the interconnect resource to query. - project: Project ID for this request.
func (*InterconnectsService) Insert ¶
func (r *InterconnectsService) Insert(project string, interconnect *Interconnect) *InterconnectsInsertCall
Insert: Creates an Interconnect in the specified project using the data included in the request.
- project: Project ID for this request.
func (*InterconnectsService) List ¶
func (r *InterconnectsService) List(project string) *InterconnectsListCall
List: Retrieves the list of Interconnects available to the specified project.
- project: Project ID for this request.
func (*InterconnectsService) Patch ¶
func (r *InterconnectsService) Patch(project string, interconnect string, interconnect2 *Interconnect) *InterconnectsPatchCall
Patch: Updates the specified Interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- interconnect: Name of the interconnect to update. - project: Project ID for this request.
func (*InterconnectsService) SetLabels ¶ added in v0.96.0
func (r *InterconnectsService) SetLabels(project string, resource string, globalsetlabelsrequest *GlobalSetLabelsRequest) *InterconnectsSetLabelsCall
SetLabels: Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources documentation.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
type InterconnectsSetLabelsCall ¶ added in v0.96.0
type InterconnectsSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*InterconnectsSetLabelsCall) Context ¶ added in v0.96.0
func (c *InterconnectsSetLabelsCall) Context(ctx context.Context) *InterconnectsSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*InterconnectsSetLabelsCall) Do ¶ added in v0.96.0
func (c *InterconnectsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnects.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InterconnectsSetLabelsCall) Fields ¶ added in v0.96.0
func (c *InterconnectsSetLabelsCall) Fields(s ...googleapi.Field) *InterconnectsSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*InterconnectsSetLabelsCall) Header ¶ added in v0.96.0
func (c *InterconnectsSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type License ¶
type License struct { // ChargesUseFee: [Output Only] Deprecated. This field no longer reflects // whether a license charges a usage fee. ChargesUseFee bool `json:"chargesUseFee,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional textual description of the resource; provided by // the client when the resource is created. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of resource. Always compute#license for licenses. Kind string `json:"kind,omitempty"` // LicenseCode: [Output Only] The unique code used to attach this license to // images, snapshots, and disks. LicenseCode uint64 `json:"licenseCode,omitempty,string"` // Name: Name of the resource. The name must be 1-63 characters long and comply // with RFC1035. Name string `json:"name,omitempty"` ResourceRequirements *LicenseResourceRequirements `json:"resourceRequirements,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Transferable: If false, licenses will not be copied from the source resource // when creating an image from a disk, disk from snapshot, or snapshot from // disk. Transferable bool `json:"transferable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ChargesUseFee") 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. "ChargesUseFee") 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:"-"` }
License: Represents a License resource. A License represents billing and aggregate usage data for public and marketplace images. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
func (License) MarshalJSON ¶
type LicenseCode ¶
type LicenseCode struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: [Output Only] Description of this License Code. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of resource. Always compute#licenseCode for // licenses. Kind string `json:"kind,omitempty"` // LicenseAlias: [Output Only] URL and description aliases of Licenses with the // same License Code. LicenseAlias []*LicenseCodeLicenseAlias `json:"licenseAlias,omitempty"` // Name: [Output Only] Name of the resource. The name is 1-20 characters long // and must be a valid 64 bit integer. Name string `json:"name,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // State: [Output Only] Current state of this License Code. // // Possible values: // "DISABLED" - Machines are not allowed to attach boot disks with this // License Code. Requests to create new resources with this license will be // rejected. // "ENABLED" - Use is allowed for anyone with USE_READ_ONLY access to this // License Code. // "RESTRICTED" - Use of this license is limited to a project whitelist. // "STATE_UNSPECIFIED" // "TERMINATED" - Reserved state. State string `json:"state,omitempty"` // Transferable: [Output Only] If true, the license will remain attached when // creating images or snapshots from disks. Otherwise, the license is not // transferred. Transferable bool `json:"transferable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
LicenseCode: Represents a License Code resource. A License Code is a unique identifier used to represent a license resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
func (LicenseCode) MarshalJSON ¶
func (s LicenseCode) MarshalJSON() ([]byte, error)
type LicenseCodeLicenseAlias ¶
type LicenseCodeLicenseAlias struct { // Description: [Output Only] Description of this License Code. Description string `json:"description,omitempty"` // SelfLink: [Output Only] URL of license corresponding to this License Code. SelfLink string `json:"selfLink,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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:"-"` }
func (LicenseCodeLicenseAlias) MarshalJSON ¶
func (s LicenseCodeLicenseAlias) MarshalJSON() ([]byte, error)
type LicenseCodesGetCall ¶
type LicenseCodesGetCall struct {
// contains filtered or unexported fields
}
func (*LicenseCodesGetCall) Context ¶
func (c *LicenseCodesGetCall) Context(ctx context.Context) *LicenseCodesGetCall
Context sets the context to be used in this call's Do method.
func (*LicenseCodesGetCall) Do ¶
func (c *LicenseCodesGetCall) Do(opts ...googleapi.CallOption) (*LicenseCode, error)
Do executes the "compute.licenseCodes.get" call. Any non-2xx status code is an error. Response headers are in either *LicenseCode.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LicenseCodesGetCall) Fields ¶
func (c *LicenseCodesGetCall) Fields(s ...googleapi.Field) *LicenseCodesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*LicenseCodesGetCall) Header ¶
func (c *LicenseCodesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*LicenseCodesGetCall) IfNoneMatch ¶
func (c *LicenseCodesGetCall) IfNoneMatch(entityTag string) *LicenseCodesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type LicenseCodesService ¶
type LicenseCodesService struct {
// contains filtered or unexported fields
}
func NewLicenseCodesService ¶
func NewLicenseCodesService(s *Service) *LicenseCodesService
func (*LicenseCodesService) Get ¶
func (r *LicenseCodesService) Get(project string, licenseCode string) *LicenseCodesGetCall
Get: Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
- licenseCode: Number corresponding to the License code resource to return. - project: Project ID for this request.
func (*LicenseCodesService) TestIamPermissions ¶
func (r *LicenseCodesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *LicenseCodesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
type LicenseCodesTestIamPermissionsCall ¶
type LicenseCodesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*LicenseCodesTestIamPermissionsCall) Context ¶
func (c *LicenseCodesTestIamPermissionsCall) Context(ctx context.Context) *LicenseCodesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*LicenseCodesTestIamPermissionsCall) Do ¶
func (c *LicenseCodesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.licenseCodes.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LicenseCodesTestIamPermissionsCall) Fields ¶
func (c *LicenseCodesTestIamPermissionsCall) Fields(s ...googleapi.Field) *LicenseCodesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*LicenseCodesTestIamPermissionsCall) Header ¶
func (c *LicenseCodesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type LicenseResourceCommitment ¶ added in v0.31.0
type LicenseResourceCommitment struct { // Amount: The number of licenses purchased. Amount int64 `json:"amount,omitempty,string"` // CoresPerLicense: Specifies the core range of the instance for which this // license applies. CoresPerLicense string `json:"coresPerLicense,omitempty"` // License: Any applicable license URI. License string `json:"license,omitempty"` // ForceSendFields is a list of field names (e.g. "Amount") 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. "Amount") 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:"-"` }
LicenseResourceCommitment: Commitment for a particular license resource.
func (LicenseResourceCommitment) MarshalJSON ¶ added in v0.31.0
func (s LicenseResourceCommitment) MarshalJSON() ([]byte, error)
type LicenseResourceRequirements ¶
type LicenseResourceRequirements struct { // MinGuestCpuCount: Minimum number of guest cpus required to use the Instance. // Enforced at Instance creation and Instance start. MinGuestCpuCount int64 `json:"minGuestCpuCount,omitempty"` // MinMemoryMb: Minimum memory required to use the Instance. Enforced at // Instance creation and Instance start. MinMemoryMb int64 `json:"minMemoryMb,omitempty"` // ForceSendFields is a list of field names (e.g. "MinGuestCpuCount") 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. "MinGuestCpuCount") 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:"-"` }
func (LicenseResourceRequirements) MarshalJSON ¶
func (s LicenseResourceRequirements) MarshalJSON() ([]byte, error)
type LicensesDeleteCall ¶
type LicensesDeleteCall struct {
// contains filtered or unexported fields
}
func (*LicensesDeleteCall) Context ¶
func (c *LicensesDeleteCall) Context(ctx context.Context) *LicensesDeleteCall
Context sets the context to be used in this call's Do method.
func (*LicensesDeleteCall) Do ¶
func (c *LicensesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.licenses.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LicensesDeleteCall) Fields ¶
func (c *LicensesDeleteCall) Fields(s ...googleapi.Field) *LicensesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*LicensesDeleteCall) Header ¶
func (c *LicensesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*LicensesDeleteCall) RequestId ¶
func (c *LicensesDeleteCall) RequestId(requestId string) *LicensesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type LicensesGetCall ¶
type LicensesGetCall struct {
// contains filtered or unexported fields
}
func (*LicensesGetCall) Context ¶
func (c *LicensesGetCall) Context(ctx context.Context) *LicensesGetCall
Context sets the context to be used in this call's Do method.
func (*LicensesGetCall) Do ¶
func (c *LicensesGetCall) Do(opts ...googleapi.CallOption) (*License, error)
Do executes the "compute.licenses.get" call. Any non-2xx status code is an error. Response headers are in either *License.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LicensesGetCall) Fields ¶
func (c *LicensesGetCall) Fields(s ...googleapi.Field) *LicensesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*LicensesGetCall) Header ¶
func (c *LicensesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*LicensesGetCall) IfNoneMatch ¶
func (c *LicensesGetCall) IfNoneMatch(entityTag string) *LicensesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type LicensesGetIamPolicyCall ¶
type LicensesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*LicensesGetIamPolicyCall) Context ¶
func (c *LicensesGetIamPolicyCall) Context(ctx context.Context) *LicensesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*LicensesGetIamPolicyCall) Do ¶
func (c *LicensesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.licenses.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LicensesGetIamPolicyCall) Fields ¶
func (c *LicensesGetIamPolicyCall) Fields(s ...googleapi.Field) *LicensesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*LicensesGetIamPolicyCall) Header ¶
func (c *LicensesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*LicensesGetIamPolicyCall) IfNoneMatch ¶
func (c *LicensesGetIamPolicyCall) IfNoneMatch(entityTag string) *LicensesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*LicensesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.30.0
func (c *LicensesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *LicensesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type LicensesInsertCall ¶
type LicensesInsertCall struct {
// contains filtered or unexported fields
}
func (*LicensesInsertCall) Context ¶
func (c *LicensesInsertCall) Context(ctx context.Context) *LicensesInsertCall
Context sets the context to be used in this call's Do method.
func (*LicensesInsertCall) Do ¶
func (c *LicensesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.licenses.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LicensesInsertCall) Fields ¶
func (c *LicensesInsertCall) Fields(s ...googleapi.Field) *LicensesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*LicensesInsertCall) Header ¶
func (c *LicensesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*LicensesInsertCall) RequestId ¶
func (c *LicensesInsertCall) RequestId(requestId string) *LicensesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type LicensesListCall ¶
type LicensesListCall struct {
// contains filtered or unexported fields
}
func (*LicensesListCall) Context ¶
func (c *LicensesListCall) Context(ctx context.Context) *LicensesListCall
Context sets the context to be used in this call's Do method.
func (*LicensesListCall) Do ¶
func (c *LicensesListCall) Do(opts ...googleapi.CallOption) (*LicensesListResponse, error)
Do executes the "compute.licenses.list" call. Any non-2xx status code is an error. Response headers are in either *LicensesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LicensesListCall) Fields ¶
func (c *LicensesListCall) Fields(s ...googleapi.Field) *LicensesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*LicensesListCall) Filter ¶
func (c *LicensesListCall) Filter(filter string) *LicensesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*LicensesListCall) Header ¶
func (c *LicensesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*LicensesListCall) IfNoneMatch ¶
func (c *LicensesListCall) IfNoneMatch(entityTag string) *LicensesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*LicensesListCall) MaxResults ¶
func (c *LicensesListCall) MaxResults(maxResults int64) *LicensesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*LicensesListCall) OrderBy ¶
func (c *LicensesListCall) OrderBy(orderBy string) *LicensesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*LicensesListCall) PageToken ¶
func (c *LicensesListCall) PageToken(pageToken string) *LicensesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*LicensesListCall) Pages ¶
func (c *LicensesListCall) Pages(ctx context.Context, f func(*LicensesListResponse) 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 (*LicensesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *LicensesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *LicensesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type LicensesListResponse ¶
type LicensesListResponse struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of License resources. Items []*License `json:"items,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *LicensesListResponseWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (LicensesListResponse) MarshalJSON ¶
func (s LicensesListResponse) MarshalJSON() ([]byte, error)
type LicensesListResponseWarning ¶
type LicensesListResponseWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*LicensesListResponseWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
LicensesListResponseWarning: [Output Only] Informational warning message.
func (LicensesListResponseWarning) MarshalJSON ¶
func (s LicensesListResponseWarning) MarshalJSON() ([]byte, error)
type LicensesListResponseWarningData ¶
type LicensesListResponseWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (LicensesListResponseWarningData) MarshalJSON ¶
func (s LicensesListResponseWarningData) MarshalJSON() ([]byte, error)
type LicensesService ¶
type LicensesService struct {
// contains filtered or unexported fields
}
func NewLicensesService ¶
func NewLicensesService(s *Service) *LicensesService
func (*LicensesService) Delete ¶
func (r *LicensesService) Delete(project string, license string) *LicensesDeleteCall
Delete: Deletes the specified license. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
- license: Name of the license resource to delete. - project: Project ID for this request.
func (*LicensesService) Get ¶
func (r *LicensesService) Get(project string, license string) *LicensesGetCall
Get: Returns the specified License resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
- license: Name of the License resource to return. - project: Project ID for this request.
func (*LicensesService) GetIamPolicy ¶
func (r *LicensesService) GetIamPolicy(project string, resource string) *LicensesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*LicensesService) Insert ¶
func (r *LicensesService) Insert(project string, license *License) *LicensesInsertCall
Insert: Create a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
- project: Project ID for this request.
func (*LicensesService) List ¶
func (r *LicensesService) List(project string) *LicensesListCall
List: Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
- project: Project ID for this request.
func (*LicensesService) SetIamPolicy ¶
func (r *LicensesService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *LicensesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*LicensesService) TestIamPermissions ¶
func (r *LicensesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *LicensesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
type LicensesSetIamPolicyCall ¶
type LicensesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*LicensesSetIamPolicyCall) Context ¶
func (c *LicensesSetIamPolicyCall) Context(ctx context.Context) *LicensesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*LicensesSetIamPolicyCall) Do ¶
func (c *LicensesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.licenses.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LicensesSetIamPolicyCall) Fields ¶
func (c *LicensesSetIamPolicyCall) Fields(s ...googleapi.Field) *LicensesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*LicensesSetIamPolicyCall) Header ¶
func (c *LicensesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type LicensesTestIamPermissionsCall ¶
type LicensesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*LicensesTestIamPermissionsCall) Context ¶
func (c *LicensesTestIamPermissionsCall) Context(ctx context.Context) *LicensesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*LicensesTestIamPermissionsCall) Do ¶
func (c *LicensesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.licenses.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LicensesTestIamPermissionsCall) Fields ¶
func (c *LicensesTestIamPermissionsCall) Fields(s ...googleapi.Field) *LicensesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*LicensesTestIamPermissionsCall) Header ¶
func (c *LicensesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type LocalDisk ¶ added in v0.37.0
type LocalDisk struct { // DiskCount: Specifies the number of such disks. DiskCount int64 `json:"diskCount,omitempty"` // DiskSizeGb: Specifies the size of the disk in base-2 GB. DiskSizeGb int64 `json:"diskSizeGb,omitempty"` // DiskType: Specifies the desired disk type on the node. This disk type must // be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this // should be the name of the disk type and not its URL. DiskType string `json:"diskType,omitempty"` // ForceSendFields is a list of field names (e.g. "DiskCount") 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. "DiskCount") 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:"-"` }
func (LocalDisk) MarshalJSON ¶ added in v0.37.0
type LocalizedMessage ¶ added in v0.87.0
type LocalizedMessage struct { // Locale: The locale used following the specification defined at // https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", // "fr-CH", "es-MX" Locale string `json:"locale,omitempty"` // Message: The localized error message in the above locale. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Locale") 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. "Locale") 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:"-"` }
LocalizedMessage: Provides a localized error message that is safe to return to the user which can be attached to an RPC error.
func (LocalizedMessage) MarshalJSON ¶ added in v0.87.0
func (s LocalizedMessage) MarshalJSON() ([]byte, error)
type LocationPolicy ¶ added in v0.41.0
type LocationPolicy struct { // Locations: Location configurations mapped by location name. Currently only // zone names are supported and must be represented as valid internal URLs, // such as zones/us-central1-a. Locations map[string]LocationPolicyLocation `json:"locations,omitempty"` // TargetShape: Strategy for distributing VMs across zones in a region. // // Possible values: // "ANY" - GCE picks zones for creating VM instances to fulfill the requested // number of VMs within present resource constraints and to maximize // utilization of unused zonal reservations. Recommended for batch workloads // that do not require high availability. // "ANY_SINGLE_ZONE" - GCE always selects a single zone for all the VMs, // optimizing for resource quotas, available reservations and general capacity. // Recommended for batch workloads that cannot tollerate distribution over // multiple zones. This the default shape in Bulk Insert and Capacity Advisor // APIs. // "BALANCED" - GCE prioritizes acquisition of resources, scheduling VMs in // zones where resources are available while distributing VMs as evenly as // possible across allowed zones to minimize the impact of zonal failure. // Recommended for highly available serving workloads. TargetShape string `json:"targetShape,omitempty"` // ForceSendFields is a list of field names (e.g. "Locations") 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. "Locations") 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:"-"` }
LocationPolicy: Configuration for location policy among multiple possible locations (e.g. preferences for zone selection among zones in a single region).
func (LocationPolicy) MarshalJSON ¶ added in v0.41.0
func (s LocationPolicy) MarshalJSON() ([]byte, error)
type LocationPolicyLocation ¶ added in v0.41.0
type LocationPolicyLocation struct { // Constraints: Constraints that the caller requires on the result distribution // in this zone. Constraints *LocationPolicyLocationConstraints `json:"constraints,omitempty"` // Preference: Preference for a given location. Set to either ALLOW or DENY. // // Possible values: // "ALLOW" - Location is allowed for use. // "DENY" - Location is prohibited. // "PREFERENCE_UNSPECIFIED" - Default value, unused. Preference string `json:"preference,omitempty"` // ForceSendFields is a list of field names (e.g. "Constraints") 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. "Constraints") 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:"-"` }
func (LocationPolicyLocation) MarshalJSON ¶ added in v0.41.0
func (s LocationPolicyLocation) MarshalJSON() ([]byte, error)
type LocationPolicyLocationConstraints ¶ added in v0.85.0
type LocationPolicyLocationConstraints struct { // MaxCount: Maximum number of items that are allowed to be placed in this // zone. The value must be non-negative. MaxCount int64 `json:"maxCount,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxCount") 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. "MaxCount") 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:"-"` }
LocationPolicyLocationConstraints: Per-zone constraints on location policy for this zone.
func (LocationPolicyLocationConstraints) MarshalJSON ¶ added in v0.85.0
func (s LocationPolicyLocationConstraints) MarshalJSON() ([]byte, error)
type LogConfig ¶
type LogConfig struct { // CloudAudit: This is deprecated and has no effect. Do not use. CloudAudit *LogConfigCloudAuditOptions `json:"cloudAudit,omitempty"` // Counter: This is deprecated and has no effect. Do not use. Counter *LogConfigCounterOptions `json:"counter,omitempty"` // DataAccess: This is deprecated and has no effect. Do not use. DataAccess *LogConfigDataAccessOptions `json:"dataAccess,omitempty"` // ForceSendFields is a list of field names (e.g. "CloudAudit") 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. "CloudAudit") 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:"-"` }
LogConfig: This is deprecated and has no effect. Do not use.
func (LogConfig) MarshalJSON ¶
type LogConfigCloudAuditOptions ¶
type LogConfigCloudAuditOptions struct { // LogName: This is deprecated and has no effect. Do not use. // // Possible values: // "ADMIN_ACTIVITY" - This is deprecated and has no effect. Do not use. // "DATA_ACCESS" - This is deprecated and has no effect. Do not use. // "UNSPECIFIED_LOG_NAME" - This is deprecated and has no effect. Do not use. LogName string `json:"logName,omitempty"` // ForceSendFields is a list of field names (e.g. "LogName") 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. "LogName") 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:"-"` }
LogConfigCloudAuditOptions: This is deprecated and has no effect. Do not use.
func (LogConfigCloudAuditOptions) MarshalJSON ¶
func (s LogConfigCloudAuditOptions) MarshalJSON() ([]byte, error)
type LogConfigCounterOptions ¶
type LogConfigCounterOptions struct { // CustomFields: This is deprecated and has no effect. Do not use. CustomFields []*LogConfigCounterOptionsCustomField `json:"customFields,omitempty"` // Field: This is deprecated and has no effect. Do not use. Field string `json:"field,omitempty"` // Metric: This is deprecated and has no effect. Do not use. Metric string `json:"metric,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomFields") 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. "CustomFields") 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:"-"` }
LogConfigCounterOptions: This is deprecated and has no effect. Do not use.
func (LogConfigCounterOptions) MarshalJSON ¶
func (s LogConfigCounterOptions) MarshalJSON() ([]byte, error)
type LogConfigCounterOptionsCustomField ¶ added in v0.12.0
type LogConfigCounterOptionsCustomField struct { // Name: This is deprecated and has no effect. Do not use. Name string `json:"name,omitempty"` // Value: This is deprecated and has no effect. Do not use. Value string `json:"value,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:"-"` }
LogConfigCounterOptionsCustomField: This is deprecated and has no effect. Do not use.
func (LogConfigCounterOptionsCustomField) MarshalJSON ¶ added in v0.12.0
func (s LogConfigCounterOptionsCustomField) MarshalJSON() ([]byte, error)
type LogConfigDataAccessOptions ¶
type LogConfigDataAccessOptions struct { // LogMode: This is deprecated and has no effect. Do not use. // // Possible values: // "LOG_FAIL_CLOSED" - This is deprecated and has no effect. Do not use. // "LOG_MODE_UNSPECIFIED" - This is deprecated and has no effect. Do not use. LogMode string `json:"logMode,omitempty"` // ForceSendFields is a list of field names (e.g. "LogMode") 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. "LogMode") 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:"-"` }
LogConfigDataAccessOptions: This is deprecated and has no effect. Do not use.
func (LogConfigDataAccessOptions) MarshalJSON ¶
func (s LogConfigDataAccessOptions) MarshalJSON() ([]byte, error)
type MachineImage ¶ added in v0.62.0
type MachineImage struct { // CreationTimestamp: [Output Only] The creation timestamp for this machine // image in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // GuestFlush: [Input Only] Whether to attempt an application consistent // machine image by informing the OS to prepare for the snapshot process. GuestFlush bool `json:"guestFlush,omitempty"` // Id: [Output Only] A unique identifier for this machine image. The server // defines this identifier. Id uint64 `json:"id,omitempty,string"` // InstanceProperties: [Output Only] Properties of source instance InstanceProperties *InstanceProperties `json:"instanceProperties,omitempty"` // Kind: [Output Only] The resource type, which is always compute#machineImage // for machine image. Kind string `json:"kind,omitempty"` // MachineImageEncryptionKey: Encrypts the machine image using a // customer-supplied encryption key. After you encrypt a machine image using a // customer-supplied key, you must provide the same key if you use the machine // image later. For example, you must provide the encryption key when you // create an instance from the encrypted machine image in a future request. // Customer-supplied encryption keys do not protect access to metadata of the // machine image. If you do not provide an encryption key when creating the // machine image, then the machine image will be encrypted using an // automatically generated key and you do not need to provide a key to use the // machine image later. MachineImageEncryptionKey *CustomerEncryptionKey `json:"machineImageEncryptionKey,omitempty"` // Name: Name of the resource; provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // SatisfiesPzi: Output only. Reserved for future use. SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: [Output Only] Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SavedDisks: An array of Machine Image specific properties for disks attached // to the source instance SavedDisks []*SavedDisk `json:"savedDisks,omitempty"` // SelfLink: [Output Only] The URL for this machine image. The server defines // this URL. SelfLink string `json:"selfLink,omitempty"` // SourceDiskEncryptionKeys: [Input Only] The customer-supplied encryption key // of the disks attached to the source instance. Required if the source disk is // protected by a customer-supplied encryption key. SourceDiskEncryptionKeys []*SourceDiskEncryptionKey `json:"sourceDiskEncryptionKeys,omitempty"` // SourceInstance: The source instance used to create the machine image. You // can provide this as a partial or full URL to the resource. For example, the // following are valid values: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /instances/instance - projects/project/zones/zone/instances/instance SourceInstance string `json:"sourceInstance,omitempty"` // SourceInstanceProperties: [Output Only] DEPRECATED: Please use // instance_properties instead for source instance related properties. New // properties will not be added to this field. SourceInstanceProperties *SourceInstanceProperties `json:"sourceInstanceProperties,omitempty"` // Status: [Output Only] The status of the machine image. One of the following // values: INVALID, CREATING, READY, DELETING, and UPLOADING. // // Possible values: // "CREATING" // "DELETING" // "INVALID" // "READY" // "UPLOADING" Status string `json:"status,omitempty"` // StorageLocations: The regional or multi-regional Cloud Storage bucket // location where the machine image is stored. StorageLocations []string `json:"storageLocations,omitempty"` // TotalStorageBytes: [Output Only] Total size of the storage used by the // machine image. TotalStorageBytes int64 `json:"totalStorageBytes,omitempty,string"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
MachineImage: Represents a machine image resource. A machine image is a Compute Engine resource that stores all the configuration, metadata, permissions, and data from one or more disks required to create a Virtual machine (VM) instance. For more information, see Machine images.
func (MachineImage) MarshalJSON ¶ added in v0.62.0
func (s MachineImage) MarshalJSON() ([]byte, error)
type MachineImageList ¶ added in v0.62.0
type MachineImageList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of MachineImage resources. Items []*MachineImage `json:"items,omitempty"` // Kind: [Output Only] The resource type, which is always // compute#machineImagesListResponse for machine image lists. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *MachineImageListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
MachineImageList: A list of machine images.
func (MachineImageList) MarshalJSON ¶ added in v0.62.0
func (s MachineImageList) MarshalJSON() ([]byte, error)
type MachineImageListWarning ¶ added in v0.62.0
type MachineImageListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*MachineImageListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
MachineImageListWarning: [Output Only] Informational warning message.
func (MachineImageListWarning) MarshalJSON ¶ added in v0.62.0
func (s MachineImageListWarning) MarshalJSON() ([]byte, error)
type MachineImageListWarningData ¶ added in v0.62.0
type MachineImageListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (MachineImageListWarningData) MarshalJSON ¶ added in v0.62.0
func (s MachineImageListWarningData) MarshalJSON() ([]byte, error)
type MachineImagesDeleteCall ¶ added in v0.62.0
type MachineImagesDeleteCall struct {
// contains filtered or unexported fields
}
func (*MachineImagesDeleteCall) Context ¶ added in v0.62.0
func (c *MachineImagesDeleteCall) Context(ctx context.Context) *MachineImagesDeleteCall
Context sets the context to be used in this call's Do method.
func (*MachineImagesDeleteCall) Do ¶ added in v0.62.0
func (c *MachineImagesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.machineImages.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*MachineImagesDeleteCall) Fields ¶ added in v0.62.0
func (c *MachineImagesDeleteCall) Fields(s ...googleapi.Field) *MachineImagesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*MachineImagesDeleteCall) Header ¶ added in v0.62.0
func (c *MachineImagesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*MachineImagesDeleteCall) RequestId ¶ added in v0.62.0
func (c *MachineImagesDeleteCall) RequestId(requestId string) *MachineImagesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type MachineImagesGetCall ¶ added in v0.62.0
type MachineImagesGetCall struct {
// contains filtered or unexported fields
}
func (*MachineImagesGetCall) Context ¶ added in v0.62.0
func (c *MachineImagesGetCall) Context(ctx context.Context) *MachineImagesGetCall
Context sets the context to be used in this call's Do method.
func (*MachineImagesGetCall) Do ¶ added in v0.62.0
func (c *MachineImagesGetCall) Do(opts ...googleapi.CallOption) (*MachineImage, error)
Do executes the "compute.machineImages.get" call. Any non-2xx status code is an error. Response headers are in either *MachineImage.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*MachineImagesGetCall) Fields ¶ added in v0.62.0
func (c *MachineImagesGetCall) Fields(s ...googleapi.Field) *MachineImagesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*MachineImagesGetCall) Header ¶ added in v0.62.0
func (c *MachineImagesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*MachineImagesGetCall) IfNoneMatch ¶ added in v0.62.0
func (c *MachineImagesGetCall) IfNoneMatch(entityTag string) *MachineImagesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type MachineImagesGetIamPolicyCall ¶ added in v0.62.0
type MachineImagesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*MachineImagesGetIamPolicyCall) Context ¶ added in v0.62.0
func (c *MachineImagesGetIamPolicyCall) Context(ctx context.Context) *MachineImagesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*MachineImagesGetIamPolicyCall) Do ¶ added in v0.62.0
func (c *MachineImagesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.machineImages.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*MachineImagesGetIamPolicyCall) Fields ¶ added in v0.62.0
func (c *MachineImagesGetIamPolicyCall) Fields(s ...googleapi.Field) *MachineImagesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*MachineImagesGetIamPolicyCall) Header ¶ added in v0.62.0
func (c *MachineImagesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*MachineImagesGetIamPolicyCall) IfNoneMatch ¶ added in v0.62.0
func (c *MachineImagesGetIamPolicyCall) IfNoneMatch(entityTag string) *MachineImagesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*MachineImagesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.62.0
func (c *MachineImagesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *MachineImagesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type MachineImagesInsertCall ¶ added in v0.62.0
type MachineImagesInsertCall struct {
// contains filtered or unexported fields
}
func (*MachineImagesInsertCall) Context ¶ added in v0.62.0
func (c *MachineImagesInsertCall) Context(ctx context.Context) *MachineImagesInsertCall
Context sets the context to be used in this call's Do method.
func (*MachineImagesInsertCall) Do ¶ added in v0.62.0
func (c *MachineImagesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.machineImages.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*MachineImagesInsertCall) Fields ¶ added in v0.62.0
func (c *MachineImagesInsertCall) Fields(s ...googleapi.Field) *MachineImagesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*MachineImagesInsertCall) Header ¶ added in v0.62.0
func (c *MachineImagesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*MachineImagesInsertCall) RequestId ¶ added in v0.62.0
func (c *MachineImagesInsertCall) RequestId(requestId string) *MachineImagesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*MachineImagesInsertCall) SourceInstance ¶ added in v0.62.0
func (c *MachineImagesInsertCall) SourceInstance(sourceInstance string) *MachineImagesInsertCall
SourceInstance sets the optional parameter "sourceInstance": Required. Source instance that is used to create the machine image from.
type MachineImagesListCall ¶ added in v0.62.0
type MachineImagesListCall struct {
// contains filtered or unexported fields
}
func (*MachineImagesListCall) Context ¶ added in v0.62.0
func (c *MachineImagesListCall) Context(ctx context.Context) *MachineImagesListCall
Context sets the context to be used in this call's Do method.
func (*MachineImagesListCall) Do ¶ added in v0.62.0
func (c *MachineImagesListCall) Do(opts ...googleapi.CallOption) (*MachineImageList, error)
Do executes the "compute.machineImages.list" call. Any non-2xx status code is an error. Response headers are in either *MachineImageList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*MachineImagesListCall) Fields ¶ added in v0.62.0
func (c *MachineImagesListCall) Fields(s ...googleapi.Field) *MachineImagesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*MachineImagesListCall) Filter ¶ added in v0.62.0
func (c *MachineImagesListCall) Filter(filter string) *MachineImagesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*MachineImagesListCall) Header ¶ added in v0.62.0
func (c *MachineImagesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*MachineImagesListCall) IfNoneMatch ¶ added in v0.62.0
func (c *MachineImagesListCall) IfNoneMatch(entityTag string) *MachineImagesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*MachineImagesListCall) MaxResults ¶ added in v0.62.0
func (c *MachineImagesListCall) MaxResults(maxResults int64) *MachineImagesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*MachineImagesListCall) OrderBy ¶ added in v0.62.0
func (c *MachineImagesListCall) OrderBy(orderBy string) *MachineImagesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*MachineImagesListCall) PageToken ¶ added in v0.62.0
func (c *MachineImagesListCall) PageToken(pageToken string) *MachineImagesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*MachineImagesListCall) Pages ¶ added in v0.62.0
func (c *MachineImagesListCall) Pages(ctx context.Context, f func(*MachineImageList) 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 (*MachineImagesListCall) ReturnPartialSuccess ¶ added in v0.62.0
func (c *MachineImagesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MachineImagesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type MachineImagesService ¶ added in v0.62.0
type MachineImagesService struct {
// contains filtered or unexported fields
}
func NewMachineImagesService ¶ added in v0.62.0
func NewMachineImagesService(s *Service) *MachineImagesService
func (*MachineImagesService) Delete ¶ added in v0.62.0
func (r *MachineImagesService) Delete(project string, machineImage string) *MachineImagesDeleteCall
Delete: Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone.
- machineImage: The name of the machine image to delete. - project: Project ID for this request.
func (*MachineImagesService) Get ¶ added in v0.62.0
func (r *MachineImagesService) Get(project string, machineImage string) *MachineImagesGetCall
Get: Returns the specified machine image.
- machineImage: The name of the machine image. - project: Project ID for this request.
func (*MachineImagesService) GetIamPolicy ¶ added in v0.62.0
func (r *MachineImagesService) GetIamPolicy(project string, resource string) *MachineImagesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*MachineImagesService) Insert ¶ added in v0.62.0
func (r *MachineImagesService) Insert(project string, machineimage *MachineImage) *MachineImagesInsertCall
Insert: Creates a machine image in the specified project using the data that is included in the request. If you are creating a new machine image to update an existing instance, your new machine image should use the same network or, if applicable, the same subnetwork as the original instance.
- project: Project ID for this request.
func (*MachineImagesService) List ¶ added in v0.62.0
func (r *MachineImagesService) List(project string) *MachineImagesListCall
List: Retrieves a list of machine images that are contained within the specified project.
- project: Project ID for this request.
func (*MachineImagesService) SetIamPolicy ¶ added in v0.62.0
func (r *MachineImagesService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *MachineImagesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*MachineImagesService) TestIamPermissions ¶ added in v0.62.0
func (r *MachineImagesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *MachineImagesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
type MachineImagesSetIamPolicyCall ¶ added in v0.62.0
type MachineImagesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*MachineImagesSetIamPolicyCall) Context ¶ added in v0.62.0
func (c *MachineImagesSetIamPolicyCall) Context(ctx context.Context) *MachineImagesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*MachineImagesSetIamPolicyCall) Do ¶ added in v0.62.0
func (c *MachineImagesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.machineImages.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*MachineImagesSetIamPolicyCall) Fields ¶ added in v0.62.0
func (c *MachineImagesSetIamPolicyCall) Fields(s ...googleapi.Field) *MachineImagesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*MachineImagesSetIamPolicyCall) Header ¶ added in v0.62.0
func (c *MachineImagesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type MachineImagesTestIamPermissionsCall ¶ added in v0.62.0
type MachineImagesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*MachineImagesTestIamPermissionsCall) Context ¶ added in v0.62.0
func (c *MachineImagesTestIamPermissionsCall) Context(ctx context.Context) *MachineImagesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*MachineImagesTestIamPermissionsCall) Do ¶ added in v0.62.0
func (c *MachineImagesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.machineImages.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*MachineImagesTestIamPermissionsCall) Fields ¶ added in v0.62.0
func (c *MachineImagesTestIamPermissionsCall) Fields(s ...googleapi.Field) *MachineImagesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*MachineImagesTestIamPermissionsCall) Header ¶ added in v0.62.0
func (c *MachineImagesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type MachineType ¶
type MachineType struct { // Accelerators: [Output Only] A list of accelerator configurations assigned to // this machine type. Accelerators []*MachineTypeAccelerators `json:"accelerators,omitempty"` // Architecture: [Output Only] The architecture of the machine type. // // Possible values: // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture is not // set. // "ARM64" - Machines with architecture ARM64 // "X86_64" - Machines with architecture X86_64 Architecture string `json:"architecture,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Deprecated -- [Output Only] The deprecation status associated with this // machine type. Only applicable if the machine type is unavailable. Deprecated *DeprecationStatus `json:"deprecated,omitempty"` // Description: [Output Only] An optional textual description of the resource. Description string `json:"description,omitempty"` // GuestCpus: [Output Only] The number of virtual CPUs that are available to // the instance. GuestCpus int64 `json:"guestCpus,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // ImageSpaceGb: [Deprecated] This property is deprecated and will never be // populated with any relevant values. ImageSpaceGb int64 `json:"imageSpaceGb,omitempty"` // Shared-core machine types for more information. IsSharedCpu bool `json:"isSharedCpu,omitempty"` // Kind: [Output Only] The type of the resource. Always compute#machineType for // machine types. Kind string `json:"kind,omitempty"` // MaximumPersistentDisks: [Output Only] Maximum persistent disks allowed. MaximumPersistentDisks int64 `json:"maximumPersistentDisks,omitempty"` // MaximumPersistentDisksSizeGb: [Output Only] Maximum total persistent disks // size (GB) allowed. MaximumPersistentDisksSizeGb int64 `json:"maximumPersistentDisksSizeGb,omitempty,string"` // MemoryMb: [Output Only] The amount of physical memory available to the // instance, defined in MB. MemoryMb int64 `json:"memoryMb,omitempty"` // Name: [Output Only] Name of the resource. Name string `json:"name,omitempty"` // ScratchDisks: [Output Only] A list of extended scratch disks assigned to the // instance. ScratchDisks []*MachineTypeScratchDisks `json:"scratchDisks,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Zone: [Output Only] The name of the zone where the machine type resides, // such as us-central1-a. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Accelerators") 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. "Accelerators") 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:"-"` }
MachineType: Represents a Machine Type resource. You can use specific machine types for your VM instances based on performance and pricing requirements. For more information, read Machine Types.
func (MachineType) MarshalJSON ¶
func (s MachineType) MarshalJSON() ([]byte, error)
type MachineTypeAccelerators ¶ added in v0.25.0
type MachineTypeAccelerators struct { // GuestAcceleratorCount: Number of accelerator cards exposed to the guest. GuestAcceleratorCount int64 `json:"guestAcceleratorCount,omitempty"` // GuestAcceleratorType: The accelerator type resource name, not a full URL, // e.g. nvidia-tesla-t4. GuestAcceleratorType string `json:"guestAcceleratorType,omitempty"` // ForceSendFields is a list of field names (e.g. "GuestAcceleratorCount") 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. "GuestAcceleratorCount") 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:"-"` }
func (MachineTypeAccelerators) MarshalJSON ¶ added in v0.25.0
func (s MachineTypeAccelerators) MarshalJSON() ([]byte, error)
type MachineTypeAggregatedList ¶
type MachineTypeAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of MachineTypesScopedList resources. Items map[string]MachineTypesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#machineTypeAggregatedList for aggregated lists of machine types. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *MachineTypeAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (MachineTypeAggregatedList) MarshalJSON ¶
func (s MachineTypeAggregatedList) MarshalJSON() ([]byte, error)
type MachineTypeAggregatedListWarning ¶
type MachineTypeAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*MachineTypeAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
MachineTypeAggregatedListWarning: [Output Only] Informational warning message.
func (MachineTypeAggregatedListWarning) MarshalJSON ¶
func (s MachineTypeAggregatedListWarning) MarshalJSON() ([]byte, error)
type MachineTypeAggregatedListWarningData ¶
type MachineTypeAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (MachineTypeAggregatedListWarningData) MarshalJSON ¶
func (s MachineTypeAggregatedListWarningData) MarshalJSON() ([]byte, error)
type MachineTypeList ¶
type MachineTypeList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of MachineType resources. Items []*MachineType `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#machineTypeList for // lists of machine types. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *MachineTypeListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
MachineTypeList: Contains a list of machine types.
func (MachineTypeList) MarshalJSON ¶
func (s MachineTypeList) MarshalJSON() ([]byte, error)
type MachineTypeListWarning ¶
type MachineTypeListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*MachineTypeListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
MachineTypeListWarning: [Output Only] Informational warning message.
func (MachineTypeListWarning) MarshalJSON ¶
func (s MachineTypeListWarning) MarshalJSON() ([]byte, error)
type MachineTypeListWarningData ¶
type MachineTypeListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (MachineTypeListWarningData) MarshalJSON ¶
func (s MachineTypeListWarningData) MarshalJSON() ([]byte, error)
type MachineTypeScratchDisks ¶
type MachineTypeScratchDisks struct { // DiskGb: Size of the scratch disk, defined in GB. DiskGb int64 `json:"diskGb,omitempty"` // ForceSendFields is a list of field names (e.g. "DiskGb") 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. "DiskGb") 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:"-"` }
func (MachineTypeScratchDisks) MarshalJSON ¶
func (s MachineTypeScratchDisks) MarshalJSON() ([]byte, error)
type MachineTypesAggregatedListCall ¶
type MachineTypesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*MachineTypesAggregatedListCall) Context ¶
func (c *MachineTypesAggregatedListCall) Context(ctx context.Context) *MachineTypesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*MachineTypesAggregatedListCall) Do ¶
func (c *MachineTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*MachineTypeAggregatedList, error)
Do executes the "compute.machineTypes.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *MachineTypeAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*MachineTypesAggregatedListCall) Fields ¶
func (c *MachineTypesAggregatedListCall) Fields(s ...googleapi.Field) *MachineTypesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*MachineTypesAggregatedListCall) Filter ¶
func (c *MachineTypesAggregatedListCall) Filter(filter string) *MachineTypesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*MachineTypesAggregatedListCall) Header ¶
func (c *MachineTypesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*MachineTypesAggregatedListCall) IfNoneMatch ¶
func (c *MachineTypesAggregatedListCall) IfNoneMatch(entityTag string) *MachineTypesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*MachineTypesAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *MachineTypesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *MachineTypesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*MachineTypesAggregatedListCall) MaxResults ¶
func (c *MachineTypesAggregatedListCall) MaxResults(maxResults int64) *MachineTypesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*MachineTypesAggregatedListCall) OrderBy ¶
func (c *MachineTypesAggregatedListCall) OrderBy(orderBy string) *MachineTypesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*MachineTypesAggregatedListCall) PageToken ¶
func (c *MachineTypesAggregatedListCall) PageToken(pageToken string) *MachineTypesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*MachineTypesAggregatedListCall) Pages ¶
func (c *MachineTypesAggregatedListCall) Pages(ctx context.Context, f func(*MachineTypeAggregatedList) 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 (*MachineTypesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *MachineTypesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MachineTypesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*MachineTypesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *MachineTypesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *MachineTypesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type MachineTypesGetCall ¶
type MachineTypesGetCall struct {
// contains filtered or unexported fields
}
func (*MachineTypesGetCall) Context ¶
func (c *MachineTypesGetCall) Context(ctx context.Context) *MachineTypesGetCall
Context sets the context to be used in this call's Do method.
func (*MachineTypesGetCall) Do ¶
func (c *MachineTypesGetCall) Do(opts ...googleapi.CallOption) (*MachineType, error)
Do executes the "compute.machineTypes.get" call. Any non-2xx status code is an error. Response headers are in either *MachineType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*MachineTypesGetCall) Fields ¶
func (c *MachineTypesGetCall) Fields(s ...googleapi.Field) *MachineTypesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*MachineTypesGetCall) Header ¶
func (c *MachineTypesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*MachineTypesGetCall) IfNoneMatch ¶
func (c *MachineTypesGetCall) IfNoneMatch(entityTag string) *MachineTypesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type MachineTypesListCall ¶
type MachineTypesListCall struct {
// contains filtered or unexported fields
}
func (*MachineTypesListCall) Context ¶
func (c *MachineTypesListCall) Context(ctx context.Context) *MachineTypesListCall
Context sets the context to be used in this call's Do method.
func (*MachineTypesListCall) Do ¶
func (c *MachineTypesListCall) Do(opts ...googleapi.CallOption) (*MachineTypeList, error)
Do executes the "compute.machineTypes.list" call. Any non-2xx status code is an error. Response headers are in either *MachineTypeList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*MachineTypesListCall) Fields ¶
func (c *MachineTypesListCall) Fields(s ...googleapi.Field) *MachineTypesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*MachineTypesListCall) Filter ¶
func (c *MachineTypesListCall) Filter(filter string) *MachineTypesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*MachineTypesListCall) Header ¶
func (c *MachineTypesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*MachineTypesListCall) IfNoneMatch ¶
func (c *MachineTypesListCall) IfNoneMatch(entityTag string) *MachineTypesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*MachineTypesListCall) MaxResults ¶
func (c *MachineTypesListCall) MaxResults(maxResults int64) *MachineTypesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*MachineTypesListCall) OrderBy ¶
func (c *MachineTypesListCall) OrderBy(orderBy string) *MachineTypesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*MachineTypesListCall) PageToken ¶
func (c *MachineTypesListCall) PageToken(pageToken string) *MachineTypesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*MachineTypesListCall) Pages ¶
func (c *MachineTypesListCall) Pages(ctx context.Context, f func(*MachineTypeList) 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 (*MachineTypesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *MachineTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MachineTypesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type MachineTypesScopedList ¶
type MachineTypesScopedList struct { // MachineTypes: [Output Only] A list of machine types contained in this scope. MachineTypes []*MachineType `json:"machineTypes,omitempty"` // Warning: [Output Only] An informational warning that appears when the // machine types list is empty. Warning *MachineTypesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "MachineTypes") 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. "MachineTypes") 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:"-"` }
func (MachineTypesScopedList) MarshalJSON ¶
func (s MachineTypesScopedList) MarshalJSON() ([]byte, error)
type MachineTypesScopedListWarning ¶
type MachineTypesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*MachineTypesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
MachineTypesScopedListWarning: [Output Only] An informational warning that appears when the machine types list is empty.
func (MachineTypesScopedListWarning) MarshalJSON ¶
func (s MachineTypesScopedListWarning) MarshalJSON() ([]byte, error)
type MachineTypesScopedListWarningData ¶
type MachineTypesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (MachineTypesScopedListWarningData) MarshalJSON ¶
func (s MachineTypesScopedListWarningData) MarshalJSON() ([]byte, error)
type MachineTypesService ¶
type MachineTypesService struct {
// contains filtered or unexported fields
}
func NewMachineTypesService ¶
func NewMachineTypesService(s *Service) *MachineTypesService
func (*MachineTypesService) AggregatedList ¶
func (r *MachineTypesService) AggregatedList(project string) *MachineTypesAggregatedListCall
AggregatedList: Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*MachineTypesService) Get ¶
func (r *MachineTypesService) Get(project string, zone string, machineType string) *MachineTypesGetCall
Get: Returns the specified machine type.
- machineType: Name of the machine type to return. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*MachineTypesService) List ¶
func (r *MachineTypesService) List(project string, zone string) *MachineTypesListCall
List: Retrieves a list of machine types available to the specified project.
- project: Project ID for this request. - zone: The name of the zone for this request.
type ManagedInstance ¶
type ManagedInstance struct { // CurrentAction: [Output Only] The current action that the managed instance // group has scheduled for the instance. Possible values: - NONE The instance // is running, and the managed instance group does not have any scheduled // actions for this instance. - CREATING The managed instance group is creating // this instance. If the group fails to create this instance, it will try again // until it is successful. - CREATING_WITHOUT_RETRIES The managed instance // group is attempting to create this instance only once. If the group fails to // create this instance, it does not try again and the group's targetSize value // is decreased instead. - RECREATING The managed instance group is recreating // this instance. - DELETING The managed instance group is permanently deleting // this instance. - ABANDONING The managed instance group is abandoning this // instance. The instance will be removed from the instance group and from any // target pools that are associated with this group. - RESTARTING The managed // instance group is restarting the instance. - REFRESHING The managed instance // group is applying configuration changes to the instance without stopping it. // For example, the group can update the target pool list for an instance // without stopping that instance. - VERIFYING The managed instance group has // created the instance and it is in the process of being verified. // // Possible values: // "ABANDONING" - The managed instance group is abandoning this instance. The // instance will be removed from the instance group and from any target pools // that are associated with this group. // "CREATING" - The managed instance group is creating this instance. If the // group fails to create this instance, it will try again until it is // successful. // "CREATING_WITHOUT_RETRIES" - The managed instance group is attempting to // create this instance only once. If the group fails to create this instance, // it does not try again and the group's targetSize value is decreased. // "DELETING" - The managed instance group is permanently deleting this // instance. // "NONE" - The managed instance group has not scheduled any actions for this // instance. // "RECREATING" - The managed instance group is recreating this instance. // "REFRESHING" - The managed instance group is applying configuration // changes to the instance without stopping it. For example, the group can // update the target pool list for an instance without stopping that instance. // "RESTARTING" - The managed instance group is restarting this instance. // "RESUMING" - The managed instance group is resuming this instance. // "STARTING" - The managed instance group is starting this instance. // "STOPPING" - The managed instance group is stopping this instance. // "SUSPENDING" - The managed instance group is suspending this instance. // "VERIFYING" - The managed instance group is verifying this already created // instance. Verification happens every time the instance is (re)created or // restarted and consists of: 1. Waiting until health check specified as part // of this managed instance group's autohealing policy reports HEALTHY. Note: // Applies only if autohealing policy has a health check specified 2. Waiting // for addition verification steps performed as post-instance creation (subject // to future extensions). CurrentAction string `json:"currentAction,omitempty"` // Id: [Output only] The unique identifier for this resource. This field is // empty when instance does not exist. Id uint64 `json:"id,omitempty,string"` // Instance: [Output Only] The URL of the instance. The URL can exist even if // the instance has not yet been created. Instance string `json:"instance,omitempty"` // InstanceHealth: [Output Only] Health state of the instance per health-check. InstanceHealth []*ManagedInstanceInstanceHealth `json:"instanceHealth,omitempty"` // InstanceStatus: [Output Only] The status of the instance. This field is // empty when the instance does not exist. // // Possible values: // "DEPROVISIONING" - The instance is halted and we are performing tear down // tasks like network deprogramming, releasing quota, IP, tearing down disks // etc. // "PROVISIONING" - Resources are being allocated for the instance. // "REPAIRING" - The instance is in repair. // "RUNNING" - The instance is running. // "STAGING" - All required resources have been allocated and the instance is // being started. // "STOPPED" - The instance has stopped successfully. // "STOPPING" - The instance is currently stopping (either being deleted or // killed). // "SUSPENDED" - The instance has suspended. // "SUSPENDING" - The instance is suspending. // "TERMINATED" - The instance has stopped (either by explicit action or // underlying failure). InstanceStatus string `json:"instanceStatus,omitempty"` // LastAttempt: [Output Only] Information about the last attempt to create or // delete the instance. LastAttempt *ManagedInstanceLastAttempt `json:"lastAttempt,omitempty"` // Name: [Output Only] The name of the instance. The name always exists even if // the instance has not yet been created. Name string `json:"name,omitempty"` // PreservedStateFromConfig: [Output Only] Preserved state applied from // per-instance config for this instance. PreservedStateFromConfig *PreservedState `json:"preservedStateFromConfig,omitempty"` // PreservedStateFromPolicy: [Output Only] Preserved state generated based on // stateful policy for this instance. PreservedStateFromPolicy *PreservedState `json:"preservedStateFromPolicy,omitempty"` // Version: [Output Only] Intended version of this instance. Version *ManagedInstanceVersion `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CurrentAction") 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. "CurrentAction") 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:"-"` }
ManagedInstance: A Managed Instance resource.
func (ManagedInstance) MarshalJSON ¶
func (s ManagedInstance) MarshalJSON() ([]byte, error)
type ManagedInstanceInstanceHealth ¶ added in v0.16.0
type ManagedInstanceInstanceHealth struct { // DetailedHealthState: [Output Only] The current detailed instance health // state. // // Possible values: // "DRAINING" - The instance is being drained. The existing connections to // the instance have time to complete, but the new ones are being refused. // "HEALTHY" - The instance is reachable i.e. a connection to the application // health checking endpoint can be established, and conforms to the // requirements defined by the health check. // "TIMEOUT" - The instance is unreachable i.e. a connection to the // application health checking endpoint cannot be established, or the server // does not respond within the specified timeout. // "UNHEALTHY" - The instance is reachable, but does not conform to the // requirements defined by the health check. // "UNKNOWN" - The health checking system is aware of the instance but its // health is not known at the moment. DetailedHealthState string `json:"detailedHealthState,omitempty"` // HealthCheck: [Output Only] The URL for the health check that verifies // whether the instance is healthy. HealthCheck string `json:"healthCheck,omitempty"` // ForceSendFields is a list of field names (e.g. "DetailedHealthState") 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. "DetailedHealthState") 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:"-"` }
func (ManagedInstanceInstanceHealth) MarshalJSON ¶ added in v0.16.0
func (s ManagedInstanceInstanceHealth) MarshalJSON() ([]byte, error)
type ManagedInstanceLastAttempt ¶
type ManagedInstanceLastAttempt struct { // Errors: [Output Only] Encountered errors during the last attempt to create // or delete the instance. Errors *ManagedInstanceLastAttemptErrors `json:"errors,omitempty"` // ForceSendFields is a list of field names (e.g. "Errors") 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. "Errors") 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:"-"` }
func (ManagedInstanceLastAttempt) MarshalJSON ¶
func (s ManagedInstanceLastAttempt) MarshalJSON() ([]byte, error)
type ManagedInstanceLastAttemptErrors ¶
type ManagedInstanceLastAttemptErrors struct { // Errors: [Output Only] The array of errors encountered while processing this // operation. Errors []*ManagedInstanceLastAttemptErrorsErrors `json:"errors,omitempty"` // ForceSendFields is a list of field names (e.g. "Errors") 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. "Errors") 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:"-"` }
ManagedInstanceLastAttemptErrors: [Output Only] Encountered errors during the last attempt to create or delete the instance.
func (ManagedInstanceLastAttemptErrors) MarshalJSON ¶
func (s ManagedInstanceLastAttemptErrors) MarshalJSON() ([]byte, error)
type ManagedInstanceLastAttemptErrorsErrors ¶
type ManagedInstanceLastAttemptErrorsErrors struct { // Code: [Output Only] The error type identifier for this error. Code string `json:"code,omitempty"` // ErrorDetails: [Output Only] An optional list of messages that contain the // error details. There is a set of defined message types to use for providing // details.The syntax depends on the error code. For example, QuotaExceededInfo // will have details when the error code is QUOTA_EXCEEDED. ErrorDetails []*ManagedInstanceLastAttemptErrorsErrorsErrorDetails `json:"errorDetails,omitempty"` // Location: [Output Only] Indicates the field in the request that caused the // error. This property is optional. Location string `json:"location,omitempty"` // Message: [Output Only] An optional, human-readable error message. Message string `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:"-"` }
func (ManagedInstanceLastAttemptErrorsErrors) MarshalJSON ¶
func (s ManagedInstanceLastAttemptErrorsErrors) MarshalJSON() ([]byte, error)
type ManagedInstanceLastAttemptErrorsErrorsErrorDetails ¶ added in v0.87.0
type ManagedInstanceLastAttemptErrorsErrorsErrorDetails struct { ErrorInfo *ErrorInfo `json:"errorInfo,omitempty"` Help *Help `json:"help,omitempty"` LocalizedMessage *LocalizedMessage `json:"localizedMessage,omitempty"` QuotaInfo *QuotaExceededInfo `json:"quotaInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "ErrorInfo") 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. "ErrorInfo") 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:"-"` }
func (ManagedInstanceLastAttemptErrorsErrorsErrorDetails) MarshalJSON ¶ added in v0.87.0
func (s ManagedInstanceLastAttemptErrorsErrorsErrorDetails) MarshalJSON() ([]byte, error)
type ManagedInstanceVersion ¶ added in v0.2.0
type ManagedInstanceVersion struct { // InstanceTemplate: [Output Only] The intended template of the instance. This // field is empty when current_action is one of { DELETING, ABANDONING }. InstanceTemplate string `json:"instanceTemplate,omitempty"` // Name: [Output Only] Name of the version. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceTemplate") 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. "InstanceTemplate") 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:"-"` }
func (ManagedInstanceVersion) MarshalJSON ¶ added in v0.2.0
func (s ManagedInstanceVersion) MarshalJSON() ([]byte, error)
type Metadata ¶
type Metadata struct { // Fingerprint: Specifies a fingerprint for this request, which is essentially // a hash of the metadata's contents and used for optimistic locking. The // fingerprint is initially generated by Compute Engine and changes after every // request to modify or update metadata. You must always provide an up-to-date // fingerprint hash in order to update or change metadata, otherwise the // request will fail with error 412 conditionNotMet. To see the latest // fingerprint, make a get() request to retrieve the resource. Fingerprint string `json:"fingerprint,omitempty"` // Items: Array of key/value pairs. The total size of all keys and values must // be less than 512 KB. Items []*MetadataItems `json:"items,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#metadata for // metadata. Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "Fingerprint") 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. "Fingerprint") 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:"-"` }
Metadata: A metadata key/value entry.
func (Metadata) MarshalJSON ¶
type MetadataFilter ¶ added in v0.11.0
type MetadataFilter struct { // FilterLabels: The list of label value pairs that must match labels in the // provided metadata based on filterMatchCriteria This list must not be empty // and can have at the most 64 entries. FilterLabels []*MetadataFilterLabelMatch `json:"filterLabels,omitempty"` // FilterMatchCriteria: Specifies how individual filter label matches within // the list of filterLabels and contributes toward the overall metadataFilter // match. Supported values are: - MATCH_ANY: at least one of the filterLabels // must have a matching label in the provided metadata. - MATCH_ALL: all // filterLabels must have matching labels in the provided metadata. // // Possible values: // "MATCH_ALL" - Specifies that all filterLabels must match for the // metadataFilter to be considered a match. // "MATCH_ANY" - Specifies that any filterLabel must match for the // metadataFilter to be considered a match. // "NOT_SET" - Indicates that the match criteria was not set. A // metadataFilter must never be created with this value. FilterMatchCriteria string `json:"filterMatchCriteria,omitempty"` // ForceSendFields is a list of field names (e.g. "FilterLabels") 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. "FilterLabels") 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:"-"` }
MetadataFilter: Opaque filter criteria used by load balancers to restrict routing configuration to a limited set of load balancing proxies. Proxies and sidecars involved in load balancing would typically present metadata to the load balancers that need to match criteria specified here. If a match takes place, the relevant configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. An example for using metadataFilters would be: if load balancing involves Envoys, they receive routing configuration when values in metadataFilters match values supplied in of their XDS requests to loadbalancers.
func (MetadataFilter) MarshalJSON ¶ added in v0.11.0
func (s MetadataFilter) MarshalJSON() ([]byte, error)
type MetadataFilterLabelMatch ¶ added in v0.11.0
type MetadataFilterLabelMatch struct { // Name: Name of metadata label. The name can have a maximum length of 1024 // characters and must be at least 1 character long. Name string `json:"name,omitempty"` // Value: The value of the label must match the specified value. value can have // a maximum length of 1024 characters. Value string `json:"value,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:"-"` }
MetadataFilterLabelMatch: MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the load balancer.
func (MetadataFilterLabelMatch) MarshalJSON ¶ added in v0.11.0
func (s MetadataFilterLabelMatch) MarshalJSON() ([]byte, error)
type MetadataItems ¶
type MetadataItems struct { // Key: Key for the metadata entry. Keys must conform to the following regexp: // [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as // part of a URL in the metadata server. Additionally, to avoid ambiguity, keys // must not conflict with any other metadata keys for the project. Key string `json:"key,omitempty"` // Value: Value for the metadata entry. These are free-form strings, and only // have meaning as interpreted by the image running in the instance. The only // restriction placed on values is that their size must be less than or equal // to 262144 bytes (256 KiB). Value *string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
MetadataItems: Metadata
func (MetadataItems) MarshalJSON ¶
func (s MetadataItems) MarshalJSON() ([]byte, error)
type NamedPort ¶
type NamedPort struct { // Name: The name for this named port. The name must be 1-63 characters long, // and comply with RFC1035. Name string `json:"name,omitempty"` // Port: The port number, which can be a value between 1 and 65535. Port int64 `json:"port,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:"-"` }
NamedPort: The named port. For example: <"http", 80>.
func (NamedPort) MarshalJSON ¶
type NatIpInfo ¶ added in v0.135.0
type NatIpInfo struct { // NatIpInfoMappings: A list of all NAT IPs assigned to this NAT config. NatIpInfoMappings []*NatIpInfoNatIpInfoMapping `json:"natIpInfoMappings,omitempty"` // NatName: Name of the NAT config which the NAT IP belongs to. NatName string `json:"natName,omitempty"` // ForceSendFields is a list of field names (e.g. "NatIpInfoMappings") 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. "NatIpInfoMappings") 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:"-"` }
NatIpInfo: Contains NAT IP information of a NAT config (i.e. usage status, mode).
func (NatIpInfo) MarshalJSON ¶ added in v0.135.0
type NatIpInfoNatIpInfoMapping ¶ added in v0.135.0
type NatIpInfoNatIpInfoMapping struct { // Mode: Specifies whether NAT IP is auto or manual. // // Possible values: // "AUTO" // "MANUAL" Mode string `json:"mode,omitempty"` // NatIp: NAT IP address. For example: 203.0.113.11. NatIp string `json:"natIp,omitempty"` // Usage: Specifies whether NAT IP is currently serving at least one endpoint // or not. // // Possible values: // "IN_USE" // "UNUSED" Usage string `json:"usage,omitempty"` // ForceSendFields is a list of field names (e.g. "Mode") 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. "Mode") 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:"-"` }
NatIpInfoNatIpInfoMapping: Contains information of a NAT IP.
func (NatIpInfoNatIpInfoMapping) MarshalJSON ¶ added in v0.135.0
func (s NatIpInfoNatIpInfoMapping) MarshalJSON() ([]byte, error)
type NatIpInfoResponse ¶ added in v0.135.0
type NatIpInfoResponse struct { // Result: [Output Only] A list of NAT IP information. Result []*NatIpInfo `json:"result,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Result") 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. "Result") 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:"-"` }
func (NatIpInfoResponse) MarshalJSON ¶ added in v0.135.0
func (s NatIpInfoResponse) MarshalJSON() ([]byte, error)
type Network ¶
type Network struct { // IPv4Range: Deprecated in favor of subnet mode networks. The range of // internal addresses that are legal on this network. This range is a CIDR // specification, for example: 192.168.0.0/16. Provided by the client when the // network is created. IPv4Range string `json:"IPv4Range,omitempty"` // AutoCreateSubnetworks: Must be set to create a VPC network. If not set, a // legacy network is created. When set to true, the VPC network is created in // auto mode. When set to false, the VPC network is created in custom mode. An // auto mode VPC network starts with one subnet per region. Each subnet has a // predetermined range as described in Auto mode VPC network IP ranges. For // custom mode VPC networks, you can add subnets using the subnetworks insert // method. AutoCreateSubnetworks bool `json:"autoCreateSubnetworks,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this field // when you create the resource. Description string `json:"description,omitempty"` // EnableUlaInternalIpv6: Enable ULA internal ipv6 on this network. Enabling // this feature will assign a /48 from google defined ULA prefix fd20::/20. . EnableUlaInternalIpv6 bool `json:"enableUlaInternalIpv6,omitempty"` // FirewallPolicy: [Output Only] URL of the firewall policy the network is // associated with. FirewallPolicy string `json:"firewallPolicy,omitempty"` // GatewayIPv4: [Output Only] The gateway address for default routing out of // the network, selected by Google Cloud. GatewayIPv4 string `json:"gatewayIPv4,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // InternalIpv6Range: When enabling ula internal ipv6, caller optionally can // specify the /48 range they want from the google defined ULA prefix // fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within // the fd20::/20. Operation will fail if the speficied /48 is already in used // by another resource. If the field is not speficied, then a /48 range will be // randomly allocated from fd20::/20 and returned via this field. . InternalIpv6Range string `json:"internalIpv6Range,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#network for // networks. Kind string `json:"kind,omitempty"` // Mtu: Maximum Transmission Unit in bytes. The minimum value for this field is // 1300 and the maximum value is 8896. The suggested value is 1500, which is // the default MTU used on the Internet, or 8896 if you want to use Jumbo // frames. If unspecified, the value defaults to 1460. Mtu int64 `json:"mtu,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a // lowercase letter, and all following characters (except for the last // character) must be a dash, lowercase letter, or digit. The last character // must be a lowercase letter or digit. Name string `json:"name,omitempty"` // NetworkFirewallPolicyEnforcementOrder: The network firewall policy // enforcement order. Can be either AFTER_CLASSIC_FIREWALL or // BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is // not specified. // // Possible values: // "AFTER_CLASSIC_FIREWALL" // "BEFORE_CLASSIC_FIREWALL" NetworkFirewallPolicyEnforcementOrder string `json:"networkFirewallPolicyEnforcementOrder,omitempty"` // Peerings: [Output Only] A list of network peerings for the resource. Peerings []*NetworkPeering `json:"peerings,omitempty"` // RoutingConfig: The network-level routing configuration for this network. // Used by Cloud Router to determine what type of network-wide routing behavior // to enforce. RoutingConfig *NetworkRoutingConfig `json:"routingConfig,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource with the // resource id. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` // Subnetworks: [Output Only] Server-defined fully-qualified URLs for all // subnetworks in this VPC network. Subnetworks []string `json:"subnetworks,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "IPv4Range") 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. "IPv4Range") 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:"-"` }
Network: Represents a VPC Network resource. Networks connect resources to each other and to the internet. For more information, read Virtual Private Cloud (VPC) Network.
func (Network) MarshalJSON ¶
type NetworkAttachment ¶ added in v0.104.0
type NetworkAttachment struct { // ConnectionEndpoints: [Output Only] An array of connections for all the // producers connected to this network attachment. ConnectionEndpoints []*NetworkAttachmentConnectedEndpoint `json:"connectionEndpoints,omitempty"` // Possible values: // "ACCEPT_AUTOMATIC" // "ACCEPT_MANUAL" // "INVALID" ConnectionPreference string `json:"connectionPreference,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents stored in // this object. This field is used in optimistic locking. An up-to-date // fingerprint must be provided in order to patch. Fingerprint string `json:"fingerprint,omitempty"` // Id: [Output Only] The unique identifier for the resource type. The server // generates this identifier. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Network: [Output Only] The URL of the network which the Network Attachment // belongs to. Practically it is inferred by fetching the network of the first // subnetwork associated. Because it is required that all the subnetworks must // be from the same network, it is assured that the Network Attachment belongs // to the same network as all the subnetworks. Network string `json:"network,omitempty"` // ProducerAcceptLists: Projects that are allowed to connect to this network // attachment. The project can be specified using its id or number. ProducerAcceptLists []string `json:"producerAcceptLists,omitempty"` // ProducerRejectLists: Projects that are not allowed to connect to this // network attachment. The project can be specified using its id or number. ProducerRejectLists []string `json:"producerRejectLists,omitempty"` // Region: [Output Only] URL of the region where the network attachment // resides. This field applies only to the region resource. You must specify // this field as part of the HTTP request URL. It is not settable as a field in // the request body. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource's // resource id. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` // Subnetworks: An array of URLs where each entry is the URL of a subnet // provided by the service consumer to use for endpoints in the producers that // connect to this network attachment. Subnetworks []string `json:"subnetworks,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ConnectionEndpoints") 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. "ConnectionEndpoints") 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:"-"` }
NetworkAttachment: NetworkAttachments A network attachment resource ...
func (NetworkAttachment) MarshalJSON ¶ added in v0.104.0
func (s NetworkAttachment) MarshalJSON() ([]byte, error)
type NetworkAttachmentAggregatedList ¶ added in v0.104.0
type NetworkAttachmentAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of NetworkAttachmentsScopedList resources. Items map[string]NetworkAttachmentsScopedList `json:"items,omitempty"` Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *NetworkAttachmentAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
NetworkAttachmentAggregatedList: Contains a list of NetworkAttachmentsScopedList.
func (NetworkAttachmentAggregatedList) MarshalJSON ¶ added in v0.104.0
func (s NetworkAttachmentAggregatedList) MarshalJSON() ([]byte, error)
type NetworkAttachmentAggregatedListWarning ¶ added in v0.104.0
type NetworkAttachmentAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NetworkAttachmentAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NetworkAttachmentAggregatedListWarning: [Output Only] Informational warning message.
func (NetworkAttachmentAggregatedListWarning) MarshalJSON ¶ added in v0.104.0
func (s NetworkAttachmentAggregatedListWarning) MarshalJSON() ([]byte, error)
type NetworkAttachmentAggregatedListWarningData ¶ added in v0.104.0
type NetworkAttachmentAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NetworkAttachmentAggregatedListWarningData) MarshalJSON ¶ added in v0.104.0
func (s NetworkAttachmentAggregatedListWarningData) MarshalJSON() ([]byte, error)
type NetworkAttachmentConnectedEndpoint ¶ added in v0.104.0
type NetworkAttachmentConnectedEndpoint struct { // IpAddress: The IPv4 address assigned to the producer instance network // interface. This value will be a range in case of Serverless. IpAddress string `json:"ipAddress,omitempty"` // Ipv6Address: The IPv6 address assigned to the producer instance network // interface. This is only assigned when the stack types of both the instance // network interface and the consumer subnet are IPv4_IPv6. Ipv6Address string `json:"ipv6Address,omitempty"` // ProjectIdOrNum: The project id or number of the interface to which the IP // was assigned. ProjectIdOrNum string `json:"projectIdOrNum,omitempty"` // SecondaryIpCidrRanges: Alias IP ranges from the same subnetwork. SecondaryIpCidrRanges []string `json:"secondaryIpCidrRanges,omitempty"` // Status: The status of a connected endpoint to this network attachment. // // Possible values: // "ACCEPTED" - The consumer allows traffic from the producer to reach its // VPC. // "CLOSED" - The consumer network attachment no longer exists. // "NEEDS_ATTENTION" - The consumer needs to take further action before // traffic can be served. // "PENDING" - The consumer neither allows nor prohibits traffic from the // producer to reach its VPC. // "REJECTED" - The consumer prohibits traffic from the producer to reach its // VPC. // "STATUS_UNSPECIFIED" Status string `json:"status,omitempty"` // Subnetwork: The subnetwork used to assign the IP to the producer instance // network interface. Subnetwork string `json:"subnetwork,omitempty"` // SubnetworkCidrRange: [Output Only] The CIDR range of the subnet from which // the IPv4 internal IP was allocated from. SubnetworkCidrRange string `json:"subnetworkCidrRange,omitempty"` // ForceSendFields is a list of field names (e.g. "IpAddress") 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. "IpAddress") 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:"-"` }
NetworkAttachmentConnectedEndpoint: [Output Only] A connection connected to this network attachment.
func (NetworkAttachmentConnectedEndpoint) MarshalJSON ¶ added in v0.104.0
func (s NetworkAttachmentConnectedEndpoint) MarshalJSON() ([]byte, error)
type NetworkAttachmentList ¶ added in v0.104.0
type NetworkAttachmentList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of NetworkAttachment resources. Items []*NetworkAttachment `json:"items,omitempty"` Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *NetworkAttachmentListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (NetworkAttachmentList) MarshalJSON ¶ added in v0.104.0
func (s NetworkAttachmentList) MarshalJSON() ([]byte, error)
type NetworkAttachmentListWarning ¶ added in v0.104.0
type NetworkAttachmentListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NetworkAttachmentListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NetworkAttachmentListWarning: [Output Only] Informational warning message.
func (NetworkAttachmentListWarning) MarshalJSON ¶ added in v0.104.0
func (s NetworkAttachmentListWarning) MarshalJSON() ([]byte, error)
type NetworkAttachmentListWarningData ¶ added in v0.104.0
type NetworkAttachmentListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NetworkAttachmentListWarningData) MarshalJSON ¶ added in v0.104.0
func (s NetworkAttachmentListWarningData) MarshalJSON() ([]byte, error)
type NetworkAttachmentsAggregatedListCall ¶ added in v0.104.0
type NetworkAttachmentsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*NetworkAttachmentsAggregatedListCall) Context ¶ added in v0.104.0
func (c *NetworkAttachmentsAggregatedListCall) Context(ctx context.Context) *NetworkAttachmentsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*NetworkAttachmentsAggregatedListCall) Do ¶ added in v0.104.0
func (c *NetworkAttachmentsAggregatedListCall) Do(opts ...googleapi.CallOption) (*NetworkAttachmentAggregatedList, error)
Do executes the "compute.networkAttachments.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *NetworkAttachmentAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkAttachmentsAggregatedListCall) Fields ¶ added in v0.104.0
func (c *NetworkAttachmentsAggregatedListCall) Fields(s ...googleapi.Field) *NetworkAttachmentsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkAttachmentsAggregatedListCall) Filter ¶ added in v0.104.0
func (c *NetworkAttachmentsAggregatedListCall) Filter(filter string) *NetworkAttachmentsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NetworkAttachmentsAggregatedListCall) Header ¶ added in v0.104.0
func (c *NetworkAttachmentsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkAttachmentsAggregatedListCall) IfNoneMatch ¶ added in v0.104.0
func (c *NetworkAttachmentsAggregatedListCall) IfNoneMatch(entityTag string) *NetworkAttachmentsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NetworkAttachmentsAggregatedListCall) IncludeAllScopes ¶ added in v0.104.0
func (c *NetworkAttachmentsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *NetworkAttachmentsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*NetworkAttachmentsAggregatedListCall) MaxResults ¶ added in v0.104.0
func (c *NetworkAttachmentsAggregatedListCall) MaxResults(maxResults int64) *NetworkAttachmentsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NetworkAttachmentsAggregatedListCall) OrderBy ¶ added in v0.104.0
func (c *NetworkAttachmentsAggregatedListCall) OrderBy(orderBy string) *NetworkAttachmentsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NetworkAttachmentsAggregatedListCall) PageToken ¶ added in v0.104.0
func (c *NetworkAttachmentsAggregatedListCall) PageToken(pageToken string) *NetworkAttachmentsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NetworkAttachmentsAggregatedListCall) Pages ¶ added in v0.104.0
func (c *NetworkAttachmentsAggregatedListCall) Pages(ctx context.Context, f func(*NetworkAttachmentAggregatedList) 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 (*NetworkAttachmentsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.104.0
func (c *NetworkAttachmentsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworkAttachmentsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*NetworkAttachmentsAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *NetworkAttachmentsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *NetworkAttachmentsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type NetworkAttachmentsDeleteCall ¶ added in v0.104.0
type NetworkAttachmentsDeleteCall struct {
// contains filtered or unexported fields
}
func (*NetworkAttachmentsDeleteCall) Context ¶ added in v0.104.0
func (c *NetworkAttachmentsDeleteCall) Context(ctx context.Context) *NetworkAttachmentsDeleteCall
Context sets the context to be used in this call's Do method.
func (*NetworkAttachmentsDeleteCall) Do ¶ added in v0.104.0
func (c *NetworkAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkAttachments.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkAttachmentsDeleteCall) Fields ¶ added in v0.104.0
func (c *NetworkAttachmentsDeleteCall) Fields(s ...googleapi.Field) *NetworkAttachmentsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkAttachmentsDeleteCall) Header ¶ added in v0.104.0
func (c *NetworkAttachmentsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkAttachmentsDeleteCall) RequestId ¶ added in v0.104.0
func (c *NetworkAttachmentsDeleteCall) RequestId(requestId string) *NetworkAttachmentsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
type NetworkAttachmentsGetCall ¶ added in v0.104.0
type NetworkAttachmentsGetCall struct {
// contains filtered or unexported fields
}
func (*NetworkAttachmentsGetCall) Context ¶ added in v0.104.0
func (c *NetworkAttachmentsGetCall) Context(ctx context.Context) *NetworkAttachmentsGetCall
Context sets the context to be used in this call's Do method.
func (*NetworkAttachmentsGetCall) Do ¶ added in v0.104.0
func (c *NetworkAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*NetworkAttachment, error)
Do executes the "compute.networkAttachments.get" call. Any non-2xx status code is an error. Response headers are in either *NetworkAttachment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkAttachmentsGetCall) Fields ¶ added in v0.104.0
func (c *NetworkAttachmentsGetCall) Fields(s ...googleapi.Field) *NetworkAttachmentsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkAttachmentsGetCall) Header ¶ added in v0.104.0
func (c *NetworkAttachmentsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkAttachmentsGetCall) IfNoneMatch ¶ added in v0.104.0
func (c *NetworkAttachmentsGetCall) IfNoneMatch(entityTag string) *NetworkAttachmentsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type NetworkAttachmentsGetIamPolicyCall ¶ added in v0.104.0
type NetworkAttachmentsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*NetworkAttachmentsGetIamPolicyCall) Context ¶ added in v0.104.0
func (c *NetworkAttachmentsGetIamPolicyCall) Context(ctx context.Context) *NetworkAttachmentsGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*NetworkAttachmentsGetIamPolicyCall) Do ¶ added in v0.104.0
func (c *NetworkAttachmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.networkAttachments.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkAttachmentsGetIamPolicyCall) Fields ¶ added in v0.104.0
func (c *NetworkAttachmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *NetworkAttachmentsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkAttachmentsGetIamPolicyCall) Header ¶ added in v0.104.0
func (c *NetworkAttachmentsGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkAttachmentsGetIamPolicyCall) IfNoneMatch ¶ added in v0.104.0
func (c *NetworkAttachmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *NetworkAttachmentsGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NetworkAttachmentsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.104.0
func (c *NetworkAttachmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *NetworkAttachmentsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type NetworkAttachmentsInsertCall ¶ added in v0.104.0
type NetworkAttachmentsInsertCall struct {
// contains filtered or unexported fields
}
func (*NetworkAttachmentsInsertCall) Context ¶ added in v0.104.0
func (c *NetworkAttachmentsInsertCall) Context(ctx context.Context) *NetworkAttachmentsInsertCall
Context sets the context to be used in this call's Do method.
func (*NetworkAttachmentsInsertCall) Do ¶ added in v0.104.0
func (c *NetworkAttachmentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkAttachments.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkAttachmentsInsertCall) Fields ¶ added in v0.104.0
func (c *NetworkAttachmentsInsertCall) Fields(s ...googleapi.Field) *NetworkAttachmentsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkAttachmentsInsertCall) Header ¶ added in v0.104.0
func (c *NetworkAttachmentsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkAttachmentsInsertCall) RequestId ¶ added in v0.104.0
func (c *NetworkAttachmentsInsertCall) RequestId(requestId string) *NetworkAttachmentsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
type NetworkAttachmentsListCall ¶ added in v0.104.0
type NetworkAttachmentsListCall struct {
// contains filtered or unexported fields
}
func (*NetworkAttachmentsListCall) Context ¶ added in v0.104.0
func (c *NetworkAttachmentsListCall) Context(ctx context.Context) *NetworkAttachmentsListCall
Context sets the context to be used in this call's Do method.
func (*NetworkAttachmentsListCall) Do ¶ added in v0.104.0
func (c *NetworkAttachmentsListCall) Do(opts ...googleapi.CallOption) (*NetworkAttachmentList, error)
Do executes the "compute.networkAttachments.list" call. Any non-2xx status code is an error. Response headers are in either *NetworkAttachmentList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkAttachmentsListCall) Fields ¶ added in v0.104.0
func (c *NetworkAttachmentsListCall) Fields(s ...googleapi.Field) *NetworkAttachmentsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkAttachmentsListCall) Filter ¶ added in v0.104.0
func (c *NetworkAttachmentsListCall) Filter(filter string) *NetworkAttachmentsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NetworkAttachmentsListCall) Header ¶ added in v0.104.0
func (c *NetworkAttachmentsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkAttachmentsListCall) IfNoneMatch ¶ added in v0.104.0
func (c *NetworkAttachmentsListCall) IfNoneMatch(entityTag string) *NetworkAttachmentsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NetworkAttachmentsListCall) MaxResults ¶ added in v0.104.0
func (c *NetworkAttachmentsListCall) MaxResults(maxResults int64) *NetworkAttachmentsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NetworkAttachmentsListCall) OrderBy ¶ added in v0.104.0
func (c *NetworkAttachmentsListCall) OrderBy(orderBy string) *NetworkAttachmentsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NetworkAttachmentsListCall) PageToken ¶ added in v0.104.0
func (c *NetworkAttachmentsListCall) PageToken(pageToken string) *NetworkAttachmentsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NetworkAttachmentsListCall) Pages ¶ added in v0.104.0
func (c *NetworkAttachmentsListCall) Pages(ctx context.Context, f func(*NetworkAttachmentList) 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 (*NetworkAttachmentsListCall) ReturnPartialSuccess ¶ added in v0.104.0
func (c *NetworkAttachmentsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworkAttachmentsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type NetworkAttachmentsPatchCall ¶ added in v0.147.0
type NetworkAttachmentsPatchCall struct {
// contains filtered or unexported fields
}
func (*NetworkAttachmentsPatchCall) Context ¶ added in v0.147.0
func (c *NetworkAttachmentsPatchCall) Context(ctx context.Context) *NetworkAttachmentsPatchCall
Context sets the context to be used in this call's Do method.
func (*NetworkAttachmentsPatchCall) Do ¶ added in v0.147.0
func (c *NetworkAttachmentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkAttachments.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkAttachmentsPatchCall) Fields ¶ added in v0.147.0
func (c *NetworkAttachmentsPatchCall) Fields(s ...googleapi.Field) *NetworkAttachmentsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkAttachmentsPatchCall) Header ¶ added in v0.147.0
func (c *NetworkAttachmentsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkAttachmentsPatchCall) RequestId ¶ added in v0.147.0
func (c *NetworkAttachmentsPatchCall) RequestId(requestId string) *NetworkAttachmentsPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
type NetworkAttachmentsScopedList ¶ added in v0.104.0
type NetworkAttachmentsScopedList struct { // NetworkAttachments: A list of NetworkAttachments contained in this scope. NetworkAttachments []*NetworkAttachment `json:"networkAttachments,omitempty"` // Warning: Informational warning which replaces the list of network // attachments when the list is empty. Warning *NetworkAttachmentsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkAttachments") 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. "NetworkAttachments") 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:"-"` }
func (NetworkAttachmentsScopedList) MarshalJSON ¶ added in v0.104.0
func (s NetworkAttachmentsScopedList) MarshalJSON() ([]byte, error)
type NetworkAttachmentsScopedListWarning ¶ added in v0.104.0
type NetworkAttachmentsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NetworkAttachmentsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NetworkAttachmentsScopedListWarning: Informational warning which replaces the list of network attachments when the list is empty.
func (NetworkAttachmentsScopedListWarning) MarshalJSON ¶ added in v0.104.0
func (s NetworkAttachmentsScopedListWarning) MarshalJSON() ([]byte, error)
type NetworkAttachmentsScopedListWarningData ¶ added in v0.104.0
type NetworkAttachmentsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NetworkAttachmentsScopedListWarningData) MarshalJSON ¶ added in v0.104.0
func (s NetworkAttachmentsScopedListWarningData) MarshalJSON() ([]byte, error)
type NetworkAttachmentsService ¶ added in v0.104.0
type NetworkAttachmentsService struct {
// contains filtered or unexported fields
}
func NewNetworkAttachmentsService ¶ added in v0.104.0
func NewNetworkAttachmentsService(s *Service) *NetworkAttachmentsService
func (*NetworkAttachmentsService) AggregatedList ¶ added in v0.104.0
func (r *NetworkAttachmentsService) AggregatedList(project string) *NetworkAttachmentsAggregatedListCall
AggregatedList: Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*NetworkAttachmentsService) Delete ¶ added in v0.104.0
func (r *NetworkAttachmentsService) Delete(project string, region string, networkAttachment string) *NetworkAttachmentsDeleteCall
Delete: Deletes the specified NetworkAttachment in the given scope
- networkAttachment: Name of the NetworkAttachment resource to delete. - project: Project ID for this request. - region: Name of the region of this request.
func (*NetworkAttachmentsService) Get ¶ added in v0.104.0
func (r *NetworkAttachmentsService) Get(project string, region string, networkAttachment string) *NetworkAttachmentsGetCall
Get: Returns the specified NetworkAttachment resource in the given scope.
- networkAttachment: Name of the NetworkAttachment resource to return. - project: Project ID for this request. - region: Name of the region of this request.
func (*NetworkAttachmentsService) GetIamPolicy ¶ added in v0.104.0
func (r *NetworkAttachmentsService) GetIamPolicy(project string, region string, resource string) *NetworkAttachmentsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*NetworkAttachmentsService) Insert ¶ added in v0.104.0
func (r *NetworkAttachmentsService) Insert(project string, region string, networkattachment *NetworkAttachment) *NetworkAttachmentsInsertCall
Insert: Creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request.
- project: Project ID for this request. - region: Name of the region of this request.
func (*NetworkAttachmentsService) List ¶ added in v0.104.0
func (r *NetworkAttachmentsService) List(project string, region string) *NetworkAttachmentsListCall
List: Lists the NetworkAttachments for a project in the given scope.
- project: Project ID for this request. - region: Name of the region of this request.
func (*NetworkAttachmentsService) Patch ¶ added in v0.147.0
func (r *NetworkAttachmentsService) Patch(project string, region string, networkAttachment string, networkattachment *NetworkAttachment) *NetworkAttachmentsPatchCall
Patch: Patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
- networkAttachment: Name of the NetworkAttachment resource to patch. - project: Project ID for this request. - region: Name of the region for this request.
func (*NetworkAttachmentsService) SetIamPolicy ¶ added in v0.104.0
func (r *NetworkAttachmentsService) SetIamPolicy(project string, region string, resource string, regionsetpolicyrequest *RegionSetPolicyRequest) *NetworkAttachmentsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*NetworkAttachmentsService) TestIamPermissions ¶ added in v0.104.0
func (r *NetworkAttachmentsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *NetworkAttachmentsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
type NetworkAttachmentsSetIamPolicyCall ¶ added in v0.104.0
type NetworkAttachmentsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*NetworkAttachmentsSetIamPolicyCall) Context ¶ added in v0.104.0
func (c *NetworkAttachmentsSetIamPolicyCall) Context(ctx context.Context) *NetworkAttachmentsSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*NetworkAttachmentsSetIamPolicyCall) Do ¶ added in v0.104.0
func (c *NetworkAttachmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.networkAttachments.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkAttachmentsSetIamPolicyCall) Fields ¶ added in v0.104.0
func (c *NetworkAttachmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *NetworkAttachmentsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkAttachmentsSetIamPolicyCall) Header ¶ added in v0.104.0
func (c *NetworkAttachmentsSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type NetworkAttachmentsTestIamPermissionsCall ¶ added in v0.104.0
type NetworkAttachmentsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*NetworkAttachmentsTestIamPermissionsCall) Context ¶ added in v0.104.0
func (c *NetworkAttachmentsTestIamPermissionsCall) Context(ctx context.Context) *NetworkAttachmentsTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*NetworkAttachmentsTestIamPermissionsCall) Do ¶ added in v0.104.0
func (c *NetworkAttachmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.networkAttachments.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkAttachmentsTestIamPermissionsCall) Fields ¶ added in v0.104.0
func (c *NetworkAttachmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *NetworkAttachmentsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkAttachmentsTestIamPermissionsCall) Header ¶ added in v0.104.0
func (c *NetworkAttachmentsTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type NetworkEdgeSecurityService ¶ added in v0.74.0
type NetworkEdgeSecurityService struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents stored in // this object. This field is used in optimistic locking. This field will be // ignored when inserting a NetworkEdgeSecurityService. An up-to-date // fingerprint must be provided in order to update the // NetworkEdgeSecurityService, otherwise the request will fail with error 412 // conditionNotMet. To see the latest fingerprint, make a get() request to // retrieve a NetworkEdgeSecurityService. Fingerprint string `json:"fingerprint,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output only] Type of the resource. Always // compute#networkEdgeSecurityService for NetworkEdgeSecurityServices Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Region: [Output Only] URL of the region where the resource resides. You must // specify this field as part of the HTTP request URL. It is not settable as a // field in the request body. Region string `json:"region,omitempty"` // SecurityPolicy: The resource URL for the network edge security service // associated with this network edge security service. SecurityPolicy string `json:"securityPolicy,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource with the // resource id. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
NetworkEdgeSecurityService: Represents a Google Cloud Armor network edge security service resource.
func (NetworkEdgeSecurityService) MarshalJSON ¶ added in v0.74.0
func (s NetworkEdgeSecurityService) MarshalJSON() ([]byte, error)
type NetworkEdgeSecurityServiceAggregatedList ¶ added in v0.74.0
type NetworkEdgeSecurityServiceAggregatedList struct { Etag string `json:"etag,omitempty"` // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of NetworkEdgeSecurityServicesScopedList resources. Items map[string]NetworkEdgeSecurityServicesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#networkEdgeSecurityServiceAggregatedList for lists of Network Edge // Security Services. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *NetworkEdgeSecurityServiceAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Etag") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
func (NetworkEdgeSecurityServiceAggregatedList) MarshalJSON ¶ added in v0.74.0
func (s NetworkEdgeSecurityServiceAggregatedList) MarshalJSON() ([]byte, error)
type NetworkEdgeSecurityServiceAggregatedListWarning ¶ added in v0.74.0
type NetworkEdgeSecurityServiceAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NetworkEdgeSecurityServiceAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NetworkEdgeSecurityServiceAggregatedListWarning: [Output Only] Informational warning message.
func (NetworkEdgeSecurityServiceAggregatedListWarning) MarshalJSON ¶ added in v0.74.0
func (s NetworkEdgeSecurityServiceAggregatedListWarning) MarshalJSON() ([]byte, error)
type NetworkEdgeSecurityServiceAggregatedListWarningData ¶ added in v0.74.0
type NetworkEdgeSecurityServiceAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NetworkEdgeSecurityServiceAggregatedListWarningData) MarshalJSON ¶ added in v0.74.0
func (s NetworkEdgeSecurityServiceAggregatedListWarningData) MarshalJSON() ([]byte, error)
type NetworkEdgeSecurityServicesAggregatedListCall ¶ added in v0.74.0
type NetworkEdgeSecurityServicesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*NetworkEdgeSecurityServicesAggregatedListCall) Context ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesAggregatedListCall) Context(ctx context.Context) *NetworkEdgeSecurityServicesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*NetworkEdgeSecurityServicesAggregatedListCall) Do ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesAggregatedListCall) Do(opts ...googleapi.CallOption) (*NetworkEdgeSecurityServiceAggregatedList, error)
Do executes the "compute.networkEdgeSecurityServices.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *NetworkEdgeSecurityServiceAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkEdgeSecurityServicesAggregatedListCall) Fields ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesAggregatedListCall) Fields(s ...googleapi.Field) *NetworkEdgeSecurityServicesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkEdgeSecurityServicesAggregatedListCall) Filter ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesAggregatedListCall) Filter(filter string) *NetworkEdgeSecurityServicesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NetworkEdgeSecurityServicesAggregatedListCall) Header ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkEdgeSecurityServicesAggregatedListCall) IfNoneMatch ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesAggregatedListCall) IfNoneMatch(entityTag string) *NetworkEdgeSecurityServicesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NetworkEdgeSecurityServicesAggregatedListCall) IncludeAllScopes ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *NetworkEdgeSecurityServicesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*NetworkEdgeSecurityServicesAggregatedListCall) MaxResults ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesAggregatedListCall) MaxResults(maxResults int64) *NetworkEdgeSecurityServicesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NetworkEdgeSecurityServicesAggregatedListCall) OrderBy ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesAggregatedListCall) OrderBy(orderBy string) *NetworkEdgeSecurityServicesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NetworkEdgeSecurityServicesAggregatedListCall) PageToken ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesAggregatedListCall) PageToken(pageToken string) *NetworkEdgeSecurityServicesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NetworkEdgeSecurityServicesAggregatedListCall) Pages ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesAggregatedListCall) Pages(ctx context.Context, f func(*NetworkEdgeSecurityServiceAggregatedList) 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 (*NetworkEdgeSecurityServicesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworkEdgeSecurityServicesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*NetworkEdgeSecurityServicesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *NetworkEdgeSecurityServicesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *NetworkEdgeSecurityServicesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type NetworkEdgeSecurityServicesDeleteCall ¶ added in v0.74.0
type NetworkEdgeSecurityServicesDeleteCall struct {
// contains filtered or unexported fields
}
func (*NetworkEdgeSecurityServicesDeleteCall) Context ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesDeleteCall) Context(ctx context.Context) *NetworkEdgeSecurityServicesDeleteCall
Context sets the context to be used in this call's Do method.
func (*NetworkEdgeSecurityServicesDeleteCall) Do ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkEdgeSecurityServices.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkEdgeSecurityServicesDeleteCall) Fields ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesDeleteCall) Fields(s ...googleapi.Field) *NetworkEdgeSecurityServicesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkEdgeSecurityServicesDeleteCall) Header ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkEdgeSecurityServicesDeleteCall) RequestId ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesDeleteCall) RequestId(requestId string) *NetworkEdgeSecurityServicesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworkEdgeSecurityServicesGetCall ¶ added in v0.74.0
type NetworkEdgeSecurityServicesGetCall struct {
// contains filtered or unexported fields
}
func (*NetworkEdgeSecurityServicesGetCall) Context ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesGetCall) Context(ctx context.Context) *NetworkEdgeSecurityServicesGetCall
Context sets the context to be used in this call's Do method.
func (*NetworkEdgeSecurityServicesGetCall) Do ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesGetCall) Do(opts ...googleapi.CallOption) (*NetworkEdgeSecurityService, error)
Do executes the "compute.networkEdgeSecurityServices.get" call. Any non-2xx status code is an error. Response headers are in either *NetworkEdgeSecurityService.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkEdgeSecurityServicesGetCall) Fields ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesGetCall) Fields(s ...googleapi.Field) *NetworkEdgeSecurityServicesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkEdgeSecurityServicesGetCall) Header ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkEdgeSecurityServicesGetCall) IfNoneMatch ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesGetCall) IfNoneMatch(entityTag string) *NetworkEdgeSecurityServicesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type NetworkEdgeSecurityServicesInsertCall ¶ added in v0.74.0
type NetworkEdgeSecurityServicesInsertCall struct {
// contains filtered or unexported fields
}
func (*NetworkEdgeSecurityServicesInsertCall) Context ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesInsertCall) Context(ctx context.Context) *NetworkEdgeSecurityServicesInsertCall
Context sets the context to be used in this call's Do method.
func (*NetworkEdgeSecurityServicesInsertCall) Do ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkEdgeSecurityServices.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkEdgeSecurityServicesInsertCall) Fields ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesInsertCall) Fields(s ...googleapi.Field) *NetworkEdgeSecurityServicesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkEdgeSecurityServicesInsertCall) Header ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkEdgeSecurityServicesInsertCall) RequestId ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesInsertCall) RequestId(requestId string) *NetworkEdgeSecurityServicesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*NetworkEdgeSecurityServicesInsertCall) ValidateOnly ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesInsertCall) ValidateOnly(validateOnly bool) *NetworkEdgeSecurityServicesInsertCall
ValidateOnly sets the optional parameter "validateOnly": If true, the request will not be committed.
type NetworkEdgeSecurityServicesPatchCall ¶ added in v0.74.0
type NetworkEdgeSecurityServicesPatchCall struct {
// contains filtered or unexported fields
}
func (*NetworkEdgeSecurityServicesPatchCall) Context ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesPatchCall) Context(ctx context.Context) *NetworkEdgeSecurityServicesPatchCall
Context sets the context to be used in this call's Do method.
func (*NetworkEdgeSecurityServicesPatchCall) Do ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkEdgeSecurityServices.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkEdgeSecurityServicesPatchCall) Fields ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesPatchCall) Fields(s ...googleapi.Field) *NetworkEdgeSecurityServicesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkEdgeSecurityServicesPatchCall) Header ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkEdgeSecurityServicesPatchCall) Paths ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesPatchCall) Paths(paths ...string) *NetworkEdgeSecurityServicesPatchCall
Paths sets the optional parameter "paths":
func (*NetworkEdgeSecurityServicesPatchCall) RequestId ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesPatchCall) RequestId(requestId string) *NetworkEdgeSecurityServicesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*NetworkEdgeSecurityServicesPatchCall) UpdateMask ¶ added in v0.74.0
func (c *NetworkEdgeSecurityServicesPatchCall) UpdateMask(updateMask string) *NetworkEdgeSecurityServicesPatchCall
UpdateMask sets the optional parameter "updateMask": Indicates fields to be updated as part of this request.
type NetworkEdgeSecurityServicesScopedList ¶ added in v0.74.0
type NetworkEdgeSecurityServicesScopedList struct { // NetworkEdgeSecurityServices: A list of NetworkEdgeSecurityServices contained // in this scope. NetworkEdgeSecurityServices []*NetworkEdgeSecurityService `json:"networkEdgeSecurityServices,omitempty"` // Warning: Informational warning which replaces the list of security policies // when the list is empty. Warning *NetworkEdgeSecurityServicesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. // "NetworkEdgeSecurityServices") 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. "NetworkEdgeSecurityServices") 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:"-"` }
func (NetworkEdgeSecurityServicesScopedList) MarshalJSON ¶ added in v0.74.0
func (s NetworkEdgeSecurityServicesScopedList) MarshalJSON() ([]byte, error)
type NetworkEdgeSecurityServicesScopedListWarning ¶ added in v0.74.0
type NetworkEdgeSecurityServicesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NetworkEdgeSecurityServicesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NetworkEdgeSecurityServicesScopedListWarning: Informational warning which replaces the list of security policies when the list is empty.
func (NetworkEdgeSecurityServicesScopedListWarning) MarshalJSON ¶ added in v0.74.0
func (s NetworkEdgeSecurityServicesScopedListWarning) MarshalJSON() ([]byte, error)
type NetworkEdgeSecurityServicesScopedListWarningData ¶ added in v0.74.0
type NetworkEdgeSecurityServicesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NetworkEdgeSecurityServicesScopedListWarningData) MarshalJSON ¶ added in v0.74.0
func (s NetworkEdgeSecurityServicesScopedListWarningData) MarshalJSON() ([]byte, error)
type NetworkEdgeSecurityServicesService ¶ added in v0.74.0
type NetworkEdgeSecurityServicesService struct {
// contains filtered or unexported fields
}
func NewNetworkEdgeSecurityServicesService ¶ added in v0.74.0
func NewNetworkEdgeSecurityServicesService(s *Service) *NetworkEdgeSecurityServicesService
func (*NetworkEdgeSecurityServicesService) AggregatedList ¶ added in v0.74.0
func (r *NetworkEdgeSecurityServicesService) AggregatedList(project string) *NetworkEdgeSecurityServicesAggregatedListCall
AggregatedList: Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Name of the project scoping this request.
func (*NetworkEdgeSecurityServicesService) Delete ¶ added in v0.74.0
func (r *NetworkEdgeSecurityServicesService) Delete(project string, region string, networkEdgeSecurityService string) *NetworkEdgeSecurityServicesDeleteCall
Delete: Deletes the specified service.
- networkEdgeSecurityService: Name of the network edge security service to delete.
- project: Project ID for this request.
- region: Name of the region scoping this request.
func (*NetworkEdgeSecurityServicesService) Get ¶ added in v0.74.0
func (r *NetworkEdgeSecurityServicesService) Get(project string, region string, networkEdgeSecurityService string) *NetworkEdgeSecurityServicesGetCall
Get: Gets a specified NetworkEdgeSecurityService.
- networkEdgeSecurityService: Name of the network edge security service to get.
- project: Project ID for this request.
- region: Name of the region scoping this request.
func (*NetworkEdgeSecurityServicesService) Insert ¶ added in v0.74.0
func (r *NetworkEdgeSecurityServicesService) Insert(project string, region string, networkedgesecurityservice *NetworkEdgeSecurityService) *NetworkEdgeSecurityServicesInsertCall
Insert: Creates a new service in the specified project using the data included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*NetworkEdgeSecurityServicesService) Patch ¶ added in v0.74.0
func (r *NetworkEdgeSecurityServicesService) Patch(project string, region string, networkEdgeSecurityService string, networkedgesecurityservice *NetworkEdgeSecurityService) *NetworkEdgeSecurityServicesPatchCall
Patch: Patches the specified policy with the data included in the request.
- networkEdgeSecurityService: Name of the network edge security service to update.
- project: Project ID for this request.
- region: Name of the region scoping this request.
type NetworkEndpoint ¶ added in v0.3.1
type NetworkEndpoint struct { // Annotations: Metadata defined as annotations on the network endpoint. Annotations map[string]string `json:"annotations,omitempty"` // ClientDestinationPort: Represents the port number to which PSC consumer // sends packets. Only valid for network endpoint groups created with // GCE_VM_IP_PORTMAP endpoint type. ClientDestinationPort int64 `json:"clientDestinationPort,omitempty"` // Fqdn: Optional fully qualified domain name of network endpoint. This can // only be specified when NetworkEndpointGroup.network_endpoint_type is // NON_GCP_FQDN_PORT. Fqdn string `json:"fqdn,omitempty"` // Instance: The name or a URL of VM instance of this network endpoint. This // field is required for network endpoints of type GCE_VM_IP and // GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint // group (for zonal NEGs) or in the zone within the region of the NEG (for // regional NEGs). If the ipAddress is specified, it must belongs to the VM // instance. The name must be 1-63 characters long, and comply with RFC1035 or // be a valid URL pointing to an existing instance. Instance string `json:"instance,omitempty"` // IpAddress: Optional IPv4 address of network endpoint. The IP address must // belong to a VM in Compute Engine (either the primary IP or as part of an // aliased IP range). If the IP address is not specified, then the primary IP // address for the VM instance in the network that the network endpoint group // belongs to will be used. This field is redundant and need not be set for // network endpoints of type GCE_VM_IP. If set, it must be set to the primary // internal IP address of the attached VM instance that matches the subnetwork // of the NEG. The primary internal IP address from any NIC of a multi-NIC VM // instance can be added to a NEG as long as it matches the NEG subnetwork. IpAddress string `json:"ipAddress,omitempty"` // Port: Optional port number of network endpoint. If not specified, the // defaultPort for the network endpoint group will be used. This field can not // be set for network endpoints of type GCE_VM_IP. Port int64 `json:"port,omitempty"` // ForceSendFields is a list of field names (e.g. "Annotations") 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. "Annotations") 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:"-"` }
NetworkEndpoint: The network endpoint.
func (NetworkEndpoint) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpoint) MarshalJSON() ([]byte, error)
type NetworkEndpointGroup ¶ added in v0.3.1
type NetworkEndpointGroup struct { // Annotations: Metadata defined as annotations on the network endpoint group. Annotations map[string]string `json:"annotations,omitempty"` // AppEngine: Only valid when networkEndpointType is SERVERLESS. Only one of // cloudRun, appEngine or cloudFunction may be set. AppEngine *NetworkEndpointGroupAppEngine `json:"appEngine,omitempty"` // CloudFunction: Only valid when networkEndpointType is SERVERLESS. Only one // of cloudRun, appEngine or cloudFunction may be set. CloudFunction *NetworkEndpointGroupCloudFunction `json:"cloudFunction,omitempty"` // CloudRun: Only valid when networkEndpointType is SERVERLESS. Only one of // cloudRun, appEngine or cloudFunction may be set. CloudRun *NetworkEndpointGroupCloudRun `json:"cloudRun,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // DefaultPort: The default port used if the port number is not specified in // the network endpoint. If the network endpoint type is either GCE_VM_IP, // SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified. DefaultPort int64 `json:"defaultPort,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always // compute#networkEndpointGroup for network endpoint group. Kind string `json:"kind,omitempty"` // Name: Name of the resource; provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Network: The URL of the network to which all network endpoints in the NEG // belong. Uses default project network if unspecified. Network string `json:"network,omitempty"` // NetworkEndpointType: Type of network endpoints in this network endpoint // group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, // INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT, // GCE_VM_IP_PORTMAP. // // Possible values: // "GCE_VM_IP" - The network endpoint is represented by an IP address. // "GCE_VM_IP_PORT" - The network endpoint is represented by IP address and // port pair. // "GCE_VM_IP_PORTMAP" - The network endpoint is represented by an IP, Port // and Client Destination Port. // "INTERNET_FQDN_PORT" - The network endpoint is represented by fully // qualified domain name and port. // "INTERNET_IP_PORT" - The network endpoint is represented by an internet IP // address and port. // "NON_GCP_PRIVATE_IP_PORT" - The network endpoint is represented by an IP // address and port. The endpoint belongs to a VM or pod running in a // customer's on-premises. // "PRIVATE_SERVICE_CONNECT" - The network endpoint is either public Google // APIs or services exposed by other GCP Project with a Service Attachment. The // connection is set up by private service connect // "SERVERLESS" - The network endpoint is handled by specified serverless // infrastructure. NetworkEndpointType string `json:"networkEndpointType,omitempty"` PscData *NetworkEndpointGroupPscData `json:"pscData,omitempty"` // PscTargetService: The target service url used to set up private service // connection to a Google API or a PSC Producer Service Attachment. An example // value is: asia-northeast3-cloudkms.googleapis.com PscTargetService string `json:"pscTargetService,omitempty"` // Region: [Output Only] The URL of the region where the network endpoint group // is located. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Size: [Output only] Number of network endpoints in the network endpoint // group. Size int64 `json:"size,omitempty"` // Subnetwork: Optional URL of the subnetwork to which all network endpoints in // the NEG belong. Subnetwork string `json:"subnetwork,omitempty"` // Zone: [Output Only] The URL of the zone where the network endpoint group is // located. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Annotations") 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. "Annotations") 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:"-"` }
NetworkEndpointGroup: Represents a collection of network endpoints. A network endpoint group (NEG) defines how a set of endpoints should be reached, whether they are reachable, and where they are located. For more information about using NEGs for different use cases, see Network endpoint groups overview.
func (NetworkEndpointGroup) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroup) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupAggregatedList ¶ added in v0.3.1
type NetworkEndpointGroupAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of NetworkEndpointGroupsScopedList resources. Items map[string]NetworkEndpointGroupsScopedList `json:"items,omitempty"` // Kind: [Output Only] The resource type, which is always // compute#networkEndpointGroupAggregatedList for aggregated lists of network // endpoint groups. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *NetworkEndpointGroupAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (NetworkEndpointGroupAggregatedList) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroupAggregatedList) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupAggregatedListWarning ¶ added in v0.3.1
type NetworkEndpointGroupAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NetworkEndpointGroupAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NetworkEndpointGroupAggregatedListWarning: [Output Only] Informational warning message.
func (NetworkEndpointGroupAggregatedListWarning) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroupAggregatedListWarning) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupAggregatedListWarningData ¶ added in v0.3.1
type NetworkEndpointGroupAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NetworkEndpointGroupAggregatedListWarningData) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroupAggregatedListWarningData) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupAppEngine ¶ added in v0.31.0
type NetworkEndpointGroupAppEngine struct { // Service: Optional serving service. The service name is case-sensitive and // must be 1-63 characters long. Example value: default, my-service. Service string `json:"service,omitempty"` // UrlMask: An URL mask is one of the main components of the Cloud Function. A // template to parse service and version fields from a request URL. URL mask // allows for routing to multiple App Engine services without having to create // multiple Network Endpoint Groups and backend services. For example, the // request URLs foo1-dot-appname.appspot.com/v1 and // foo1-dot-appname.appspot.com/v2 can be backed by the same Serverless NEG // with URL mask <service>-dot-appname.appspot.com/<version>. The URL mask will // parse them to { service = "foo1", version = "v1" } and { service = "foo1", // version = "v2" } respectively. UrlMask string `json:"urlMask,omitempty"` // Version: Optional serving version. The version name is case-sensitive and // must be 1-100 characters long. Example value: v1, v2. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Service") 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. "Service") 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:"-"` }
NetworkEndpointGroupAppEngine: Configuration for an App Engine network endpoint group (NEG). The service is optional, may be provided explicitly or in the URL mask. The version is optional and can only be provided explicitly or in the URL mask when service is present. Note: App Engine service must be in the same project and located in the same region as the Serverless NEG.
func (NetworkEndpointGroupAppEngine) MarshalJSON ¶ added in v0.31.0
func (s NetworkEndpointGroupAppEngine) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupCloudFunction ¶ added in v0.31.0
type NetworkEndpointGroupCloudFunction struct { // Function: A user-defined name of the Cloud Function. The function name is // case-sensitive and must be 1-63 characters long. Example value: func1. Function string `json:"function,omitempty"` // UrlMask: An URL mask is one of the main components of the Cloud Function. A // template to parse function field from a request URL. URL mask allows for // routing to multiple Cloud Functions without having to create multiple // Network Endpoint Groups and backend services. For example, request URLs // mydomain.com/function1 and mydomain.com/function2 can be backed by the same // Serverless NEG with URL mask /<function>. The URL mask will parse them to { // function = "function1" } and { function = "function2" } respectively. UrlMask string `json:"urlMask,omitempty"` // ForceSendFields is a list of field names (e.g. "Function") 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. "Function") 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:"-"` }
NetworkEndpointGroupCloudFunction: Configuration for a Cloud Function network endpoint group (NEG). The function must be provided explicitly or in the URL mask. Note: Cloud Function must be in the same project and located in the same region as the Serverless NEG.
func (NetworkEndpointGroupCloudFunction) MarshalJSON ¶ added in v0.31.0
func (s NetworkEndpointGroupCloudFunction) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupCloudRun ¶ added in v0.31.0
type NetworkEndpointGroupCloudRun struct { // Service: Cloud Run service is the main resource of Cloud Run. The service // must be 1-63 characters long, and comply with RFC1035. Example value: // "run-service". Service string `json:"service,omitempty"` // Tag: Optional Cloud Run tag represents the "named-revision" to provide // additional fine-grained traffic routing information. The tag must be 1-63 // characters long, and comply with RFC1035. Example value: "revision-0010". Tag string `json:"tag,omitempty"` // UrlMask: An URL mask is one of the main components of the Cloud Function. A // template to parse <service> and <tag> fields from a request URL. URL mask // allows for routing to multiple Run services without having to create // multiple network endpoint groups and backend services. For example, request // URLs foo1.domain.com/bar1 and foo1.domain.com/bar2 can be backed by the same // Serverless Network Endpoint Group (NEG) with URL mask // <tag>.domain.com/<service>. The URL mask will parse them to { // service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } // respectively. UrlMask string `json:"urlMask,omitempty"` // ForceSendFields is a list of field names (e.g. "Service") 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. "Service") 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:"-"` }
NetworkEndpointGroupCloudRun: Configuration for a Cloud Run network endpoint group (NEG). The service must be provided explicitly or in the URL mask. The tag is optional, may be provided explicitly or in the URL mask. Note: Cloud Run service must be in the same project and located in the same region as the Serverless NEG.
func (NetworkEndpointGroupCloudRun) MarshalJSON ¶ added in v0.31.0
func (s NetworkEndpointGroupCloudRun) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupList ¶ added in v0.3.1
type NetworkEndpointGroupList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of NetworkEndpointGroup resources. Items []*NetworkEndpointGroup `json:"items,omitempty"` // Kind: [Output Only] The resource type, which is always // compute#networkEndpointGroupList for network endpoint group lists. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *NetworkEndpointGroupListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (NetworkEndpointGroupList) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroupList) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupListWarning ¶ added in v0.3.1
type NetworkEndpointGroupListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NetworkEndpointGroupListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NetworkEndpointGroupListWarning: [Output Only] Informational warning message.
func (NetworkEndpointGroupListWarning) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroupListWarning) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupListWarningData ¶ added in v0.3.1
type NetworkEndpointGroupListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NetworkEndpointGroupListWarningData) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroupListWarningData) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupPscData ¶ added in v0.99.0
type NetworkEndpointGroupPscData struct { // ConsumerPscAddress: [Output Only] Address allocated from given subnetwork // for PSC. This IP address acts as a VIP for a PSC NEG, allowing it to act as // an endpoint in L7 PSC-XLB. ConsumerPscAddress string `json:"consumerPscAddress,omitempty"` // ProducerPort: The psc producer port is used to connect PSC NEG with specific // port on the PSC Producer side; should only be used for the // PRIVATE_SERVICE_CONNECT NEG type ProducerPort int64 `json:"producerPort,omitempty"` // PscConnectionId: [Output Only] The PSC connection id of the PSC Network // Endpoint Group Consumer. PscConnectionId uint64 `json:"pscConnectionId,omitempty,string"` // PscConnectionStatus: [Output Only] The connection status of the PSC // Forwarding Rule. // // Possible values: // "ACCEPTED" - The connection has been accepted by the producer. // "CLOSED" - The connection has been closed by the producer and will not // serve traffic going forward. // "NEEDS_ATTENTION" - The connection has been accepted by the producer, but // the producer needs to take further action before the forwarding rule can // serve traffic. // "PENDING" - The connection is pending acceptance by the producer. // "REJECTED" - The connection has been rejected by the producer. // "STATUS_UNSPECIFIED" PscConnectionStatus string `json:"pscConnectionStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "ConsumerPscAddress") 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. "ConsumerPscAddress") 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:"-"` }
NetworkEndpointGroupPscData: All data that is specifically relevant to only network endpoint groups of type PRIVATE_SERVICE_CONNECT.
func (NetworkEndpointGroupPscData) MarshalJSON ¶ added in v0.99.0
func (s NetworkEndpointGroupPscData) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsAggregatedListCall ¶ added in v0.3.1
type NetworkEndpointGroupsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsAggregatedListCall) Context ¶ added in v0.3.1
func (c *NetworkEndpointGroupsAggregatedListCall) Context(ctx context.Context) *NetworkEndpointGroupsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*NetworkEndpointGroupsAggregatedListCall) Do ¶ added in v0.3.1
func (c *NetworkEndpointGroupsAggregatedListCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupAggregatedList, error)
Do executes the "compute.networkEndpointGroups.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *NetworkEndpointGroupAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkEndpointGroupsAggregatedListCall) Fields ¶ added in v0.3.1
func (c *NetworkEndpointGroupsAggregatedListCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkEndpointGroupsAggregatedListCall) Filter ¶ added in v0.3.1
func (c *NetworkEndpointGroupsAggregatedListCall) Filter(filter string) *NetworkEndpointGroupsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NetworkEndpointGroupsAggregatedListCall) Header ¶ added in v0.3.1
func (c *NetworkEndpointGroupsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkEndpointGroupsAggregatedListCall) IfNoneMatch ¶ added in v0.3.1
func (c *NetworkEndpointGroupsAggregatedListCall) IfNoneMatch(entityTag string) *NetworkEndpointGroupsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NetworkEndpointGroupsAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *NetworkEndpointGroupsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *NetworkEndpointGroupsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*NetworkEndpointGroupsAggregatedListCall) MaxResults ¶ added in v0.3.1
func (c *NetworkEndpointGroupsAggregatedListCall) MaxResults(maxResults int64) *NetworkEndpointGroupsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NetworkEndpointGroupsAggregatedListCall) OrderBy ¶ added in v0.3.1
func (c *NetworkEndpointGroupsAggregatedListCall) OrderBy(orderBy string) *NetworkEndpointGroupsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NetworkEndpointGroupsAggregatedListCall) PageToken ¶ added in v0.3.1
func (c *NetworkEndpointGroupsAggregatedListCall) PageToken(pageToken string) *NetworkEndpointGroupsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NetworkEndpointGroupsAggregatedListCall) Pages ¶ added in v0.3.1
func (c *NetworkEndpointGroupsAggregatedListCall) Pages(ctx context.Context, f func(*NetworkEndpointGroupAggregatedList) 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 (*NetworkEndpointGroupsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *NetworkEndpointGroupsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworkEndpointGroupsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*NetworkEndpointGroupsAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *NetworkEndpointGroupsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *NetworkEndpointGroupsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type NetworkEndpointGroupsAttachEndpointsRequest ¶ added in v0.3.1
type NetworkEndpointGroupsAttachEndpointsRequest struct { // NetworkEndpoints: The list of network endpoints to be attached. NetworkEndpoints []*NetworkEndpoint `json:"networkEndpoints,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkEndpoints") 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. "NetworkEndpoints") 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:"-"` }
func (NetworkEndpointGroupsAttachEndpointsRequest) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroupsAttachEndpointsRequest) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsAttachNetworkEndpointsCall ¶ added in v0.3.1
type NetworkEndpointGroupsAttachNetworkEndpointsCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsAttachNetworkEndpointsCall) Context ¶ added in v0.3.1
func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) Context(ctx context.Context) *NetworkEndpointGroupsAttachNetworkEndpointsCall
Context sets the context to be used in this call's Do method.
func (*NetworkEndpointGroupsAttachNetworkEndpointsCall) Do ¶ added in v0.3.1
func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkEndpointGroups.attachNetworkEndpoints" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkEndpointGroupsAttachNetworkEndpointsCall) Fields ¶ added in v0.3.1
func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsAttachNetworkEndpointsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkEndpointGroupsAttachNetworkEndpointsCall) Header ¶ added in v0.3.1
func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkEndpointGroupsAttachNetworkEndpointsCall) RequestId ¶ added in v0.3.1
func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) RequestId(requestId string) *NetworkEndpointGroupsAttachNetworkEndpointsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworkEndpointGroupsDeleteCall ¶ added in v0.3.1
type NetworkEndpointGroupsDeleteCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsDeleteCall) Context ¶ added in v0.3.1
func (c *NetworkEndpointGroupsDeleteCall) Context(ctx context.Context) *NetworkEndpointGroupsDeleteCall
Context sets the context to be used in this call's Do method.
func (*NetworkEndpointGroupsDeleteCall) Do ¶ added in v0.3.1
func (c *NetworkEndpointGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkEndpointGroups.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkEndpointGroupsDeleteCall) Fields ¶ added in v0.3.1
func (c *NetworkEndpointGroupsDeleteCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkEndpointGroupsDeleteCall) Header ¶ added in v0.3.1
func (c *NetworkEndpointGroupsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkEndpointGroupsDeleteCall) RequestId ¶ added in v0.3.1
func (c *NetworkEndpointGroupsDeleteCall) RequestId(requestId string) *NetworkEndpointGroupsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworkEndpointGroupsDetachEndpointsRequest ¶ added in v0.3.1
type NetworkEndpointGroupsDetachEndpointsRequest struct { // NetworkEndpoints: The list of network endpoints to be detached. NetworkEndpoints []*NetworkEndpoint `json:"networkEndpoints,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkEndpoints") 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. "NetworkEndpoints") 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:"-"` }
func (NetworkEndpointGroupsDetachEndpointsRequest) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroupsDetachEndpointsRequest) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsDetachNetworkEndpointsCall ¶ added in v0.3.1
type NetworkEndpointGroupsDetachNetworkEndpointsCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsDetachNetworkEndpointsCall) Context ¶ added in v0.3.1
func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) Context(ctx context.Context) *NetworkEndpointGroupsDetachNetworkEndpointsCall
Context sets the context to be used in this call's Do method.
func (*NetworkEndpointGroupsDetachNetworkEndpointsCall) Do ¶ added in v0.3.1
func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkEndpointGroups.detachNetworkEndpoints" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkEndpointGroupsDetachNetworkEndpointsCall) Fields ¶ added in v0.3.1
func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsDetachNetworkEndpointsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkEndpointGroupsDetachNetworkEndpointsCall) Header ¶ added in v0.3.1
func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkEndpointGroupsDetachNetworkEndpointsCall) RequestId ¶ added in v0.3.1
func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) RequestId(requestId string) *NetworkEndpointGroupsDetachNetworkEndpointsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworkEndpointGroupsGetCall ¶ added in v0.3.1
type NetworkEndpointGroupsGetCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsGetCall) Context ¶ added in v0.3.1
func (c *NetworkEndpointGroupsGetCall) Context(ctx context.Context) *NetworkEndpointGroupsGetCall
Context sets the context to be used in this call's Do method.
func (*NetworkEndpointGroupsGetCall) Do ¶ added in v0.3.1
func (c *NetworkEndpointGroupsGetCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroup, error)
Do executes the "compute.networkEndpointGroups.get" call. Any non-2xx status code is an error. Response headers are in either *NetworkEndpointGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkEndpointGroupsGetCall) Fields ¶ added in v0.3.1
func (c *NetworkEndpointGroupsGetCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkEndpointGroupsGetCall) Header ¶ added in v0.3.1
func (c *NetworkEndpointGroupsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkEndpointGroupsGetCall) IfNoneMatch ¶ added in v0.3.1
func (c *NetworkEndpointGroupsGetCall) IfNoneMatch(entityTag string) *NetworkEndpointGroupsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type NetworkEndpointGroupsInsertCall ¶ added in v0.3.1
type NetworkEndpointGroupsInsertCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsInsertCall) Context ¶ added in v0.3.1
func (c *NetworkEndpointGroupsInsertCall) Context(ctx context.Context) *NetworkEndpointGroupsInsertCall
Context sets the context to be used in this call's Do method.
func (*NetworkEndpointGroupsInsertCall) Do ¶ added in v0.3.1
func (c *NetworkEndpointGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkEndpointGroups.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkEndpointGroupsInsertCall) Fields ¶ added in v0.3.1
func (c *NetworkEndpointGroupsInsertCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkEndpointGroupsInsertCall) Header ¶ added in v0.3.1
func (c *NetworkEndpointGroupsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkEndpointGroupsInsertCall) RequestId ¶ added in v0.3.1
func (c *NetworkEndpointGroupsInsertCall) RequestId(requestId string) *NetworkEndpointGroupsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworkEndpointGroupsListCall ¶ added in v0.3.1
type NetworkEndpointGroupsListCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsListCall) Context ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListCall) Context(ctx context.Context) *NetworkEndpointGroupsListCall
Context sets the context to be used in this call's Do method.
func (*NetworkEndpointGroupsListCall) Do ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupList, error)
Do executes the "compute.networkEndpointGroups.list" call. Any non-2xx status code is an error. Response headers are in either *NetworkEndpointGroupList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkEndpointGroupsListCall) Fields ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkEndpointGroupsListCall) Filter ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListCall) Filter(filter string) *NetworkEndpointGroupsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NetworkEndpointGroupsListCall) Header ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkEndpointGroupsListCall) IfNoneMatch ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListCall) IfNoneMatch(entityTag string) *NetworkEndpointGroupsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NetworkEndpointGroupsListCall) MaxResults ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListCall) MaxResults(maxResults int64) *NetworkEndpointGroupsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NetworkEndpointGroupsListCall) OrderBy ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListCall) OrderBy(orderBy string) *NetworkEndpointGroupsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NetworkEndpointGroupsListCall) PageToken ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListCall) PageToken(pageToken string) *NetworkEndpointGroupsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NetworkEndpointGroupsListCall) Pages ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListCall) Pages(ctx context.Context, f func(*NetworkEndpointGroupList) 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 (*NetworkEndpointGroupsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *NetworkEndpointGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworkEndpointGroupsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type NetworkEndpointGroupsListEndpointsRequest ¶ added in v0.3.1
type NetworkEndpointGroupsListEndpointsRequest struct { // HealthStatus: Optional query parameter for showing the health status of each // network endpoint. Valid options are SKIP or SHOW. If you don't specify this // parameter, the health status of network endpoints will not be provided. // // Possible values: // "SHOW" - Show the health status for each network endpoint. Impacts latency // of the call. // "SKIP" - Health status for network endpoints will not be provided. HealthStatus string `json:"healthStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "HealthStatus") 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. "HealthStatus") 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:"-"` }
func (NetworkEndpointGroupsListEndpointsRequest) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroupsListEndpointsRequest) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsListNetworkEndpoints ¶ added in v0.3.1
type NetworkEndpointGroupsListNetworkEndpoints struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of NetworkEndpointWithHealthStatus resources. Items []*NetworkEndpointWithHealthStatus `json:"items,omitempty"` // Kind: [Output Only] The resource type, which is always // compute#networkEndpointGroupsListNetworkEndpoints for the list of network // endpoints in the specified network endpoint group. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // Warning: [Output Only] Informational warning message. Warning *NetworkEndpointGroupsListNetworkEndpointsWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (NetworkEndpointGroupsListNetworkEndpoints) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroupsListNetworkEndpoints) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsListNetworkEndpointsCall ¶ added in v0.3.1
type NetworkEndpointGroupsListNetworkEndpointsCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsListNetworkEndpointsCall) Context ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Context(ctx context.Context) *NetworkEndpointGroupsListNetworkEndpointsCall
Context sets the context to be used in this call's Do method.
func (*NetworkEndpointGroupsListNetworkEndpointsCall) Do ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupsListNetworkEndpoints, error)
Do executes the "compute.networkEndpointGroups.listNetworkEndpoints" call. Any non-2xx status code is an error. Response headers are in either *NetworkEndpointGroupsListNetworkEndpoints.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkEndpointGroupsListNetworkEndpointsCall) Fields ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsListNetworkEndpointsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkEndpointGroupsListNetworkEndpointsCall) Filter ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Filter(filter string) *NetworkEndpointGroupsListNetworkEndpointsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NetworkEndpointGroupsListNetworkEndpointsCall) Header ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkEndpointGroupsListNetworkEndpointsCall) MaxResults ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListNetworkEndpointsCall) MaxResults(maxResults int64) *NetworkEndpointGroupsListNetworkEndpointsCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NetworkEndpointGroupsListNetworkEndpointsCall) OrderBy ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListNetworkEndpointsCall) OrderBy(orderBy string) *NetworkEndpointGroupsListNetworkEndpointsCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NetworkEndpointGroupsListNetworkEndpointsCall) PageToken ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListNetworkEndpointsCall) PageToken(pageToken string) *NetworkEndpointGroupsListNetworkEndpointsCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NetworkEndpointGroupsListNetworkEndpointsCall) Pages ¶ added in v0.3.1
func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Pages(ctx context.Context, f func(*NetworkEndpointGroupsListNetworkEndpoints) 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 (*NetworkEndpointGroupsListNetworkEndpointsCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *NetworkEndpointGroupsListNetworkEndpointsCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworkEndpointGroupsListNetworkEndpointsCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type NetworkEndpointGroupsListNetworkEndpointsWarning ¶ added in v0.3.1
type NetworkEndpointGroupsListNetworkEndpointsWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NetworkEndpointGroupsListNetworkEndpointsWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NetworkEndpointGroupsListNetworkEndpointsWarning: [Output Only] Informational warning message.
func (NetworkEndpointGroupsListNetworkEndpointsWarning) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroupsListNetworkEndpointsWarning) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsListNetworkEndpointsWarningData ¶ added in v0.3.1
type NetworkEndpointGroupsListNetworkEndpointsWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NetworkEndpointGroupsListNetworkEndpointsWarningData) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroupsListNetworkEndpointsWarningData) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsScopedList ¶ added in v0.3.1
type NetworkEndpointGroupsScopedList struct { // NetworkEndpointGroups: [Output Only] The list of network endpoint groups // that are contained in this scope. NetworkEndpointGroups []*NetworkEndpointGroup `json:"networkEndpointGroups,omitempty"` // Warning: [Output Only] An informational warning that replaces the list of // network endpoint groups when the list is empty. Warning *NetworkEndpointGroupsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkEndpointGroups") 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. "NetworkEndpointGroups") 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:"-"` }
func (NetworkEndpointGroupsScopedList) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroupsScopedList) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsScopedListWarning ¶ added in v0.3.1
type NetworkEndpointGroupsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NetworkEndpointGroupsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NetworkEndpointGroupsScopedListWarning: [Output Only] An informational warning that replaces the list of network endpoint groups when the list is empty.
func (NetworkEndpointGroupsScopedListWarning) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroupsScopedListWarning) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsScopedListWarningData ¶ added in v0.3.1
type NetworkEndpointGroupsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NetworkEndpointGroupsScopedListWarningData) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointGroupsScopedListWarningData) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsService ¶ added in v0.3.1
type NetworkEndpointGroupsService struct {
// contains filtered or unexported fields
}
func NewNetworkEndpointGroupsService ¶ added in v0.3.1
func NewNetworkEndpointGroupsService(s *Service) *NetworkEndpointGroupsService
func (*NetworkEndpointGroupsService) AggregatedList ¶ added in v0.3.1
func (r *NetworkEndpointGroupsService) AggregatedList(project string) *NetworkEndpointGroupsAggregatedListCall
AggregatedList: Retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*NetworkEndpointGroupsService) AttachNetworkEndpoints ¶ added in v0.3.1
func (r *NetworkEndpointGroupsService) AttachNetworkEndpoints(project string, zone string, networkEndpointGroup string, networkendpointgroupsattachendpointsrequest *NetworkEndpointGroupsAttachEndpointsRequest) *NetworkEndpointGroupsAttachNetworkEndpointsCall
AttachNetworkEndpoints: Attach a list of network endpoints to the specified network endpoint group.
- networkEndpointGroup: The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035.
- project: Project ID for this request.
- zone: The name of the zone where the network endpoint group is located. It should comply with RFC1035.
func (*NetworkEndpointGroupsService) Delete ¶ added in v0.3.1
func (r *NetworkEndpointGroupsService) Delete(project string, zone string, networkEndpointGroup string) *NetworkEndpointGroupsDeleteCall
Delete: Deletes the specified network endpoint group. The network endpoints in the NEG and the VM instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be deleted if there are backend services referencing it.
- networkEndpointGroup: The name of the network endpoint group to delete. It should comply with RFC1035.
- project: Project ID for this request.
- zone: The name of the zone where the network endpoint group is located. It should comply with RFC1035.
func (*NetworkEndpointGroupsService) DetachNetworkEndpoints ¶ added in v0.3.1
func (r *NetworkEndpointGroupsService) DetachNetworkEndpoints(project string, zone string, networkEndpointGroup string, networkendpointgroupsdetachendpointsrequest *NetworkEndpointGroupsDetachEndpointsRequest) *NetworkEndpointGroupsDetachNetworkEndpointsCall
DetachNetworkEndpoints: Detach a list of network endpoints from the specified network endpoint group.
- networkEndpointGroup: The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035.
- project: Project ID for this request.
- zone: The name of the zone where the network endpoint group is located. It should comply with RFC1035.
func (*NetworkEndpointGroupsService) Get ¶ added in v0.3.1
func (r *NetworkEndpointGroupsService) Get(project string, zone string, networkEndpointGroup string) *NetworkEndpointGroupsGetCall
Get: Returns the specified network endpoint group.
- networkEndpointGroup: The name of the network endpoint group. It should comply with RFC1035.
- project: Project ID for this request.
- zone: The name of the zone where the network endpoint group is located. It should comply with RFC1035.
func (*NetworkEndpointGroupsService) Insert ¶ added in v0.3.1
func (r *NetworkEndpointGroupsService) Insert(project string, zone string, networkendpointgroup *NetworkEndpointGroup) *NetworkEndpointGroupsInsertCall
Insert: Creates a network endpoint group in the specified project using the parameters that are included in the request.
- project: Project ID for this request.
- zone: The name of the zone where you want to create the network endpoint group. It should comply with RFC1035.
func (*NetworkEndpointGroupsService) List ¶ added in v0.3.1
func (r *NetworkEndpointGroupsService) List(project string, zone string) *NetworkEndpointGroupsListCall
List: Retrieves the list of network endpoint groups that are located in the specified project and zone.
- project: Project ID for this request.
- zone: The name of the zone where the network endpoint group is located. It should comply with RFC1035.
func (*NetworkEndpointGroupsService) ListNetworkEndpoints ¶ added in v0.3.1
func (r *NetworkEndpointGroupsService) ListNetworkEndpoints(project string, zone string, networkEndpointGroup string, networkendpointgroupslistendpointsrequest *NetworkEndpointGroupsListEndpointsRequest) *NetworkEndpointGroupsListNetworkEndpointsCall
ListNetworkEndpoints: Lists the network endpoints in the specified network endpoint group.
- networkEndpointGroup: The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035.
- project: Project ID for this request.
- zone: The name of the zone where the network endpoint group is located. It should comply with RFC1035.
func (*NetworkEndpointGroupsService) TestIamPermissions ¶ added in v0.3.1
func (r *NetworkEndpointGroupsService) TestIamPermissions(project string, zone string, resource string, testpermissionsrequest *TestPermissionsRequest) *NetworkEndpointGroupsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
type NetworkEndpointGroupsTestIamPermissionsCall ¶ added in v0.3.1
type NetworkEndpointGroupsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsTestIamPermissionsCall) Context ¶ added in v0.3.1
func (c *NetworkEndpointGroupsTestIamPermissionsCall) Context(ctx context.Context) *NetworkEndpointGroupsTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*NetworkEndpointGroupsTestIamPermissionsCall) Do ¶ added in v0.3.1
func (c *NetworkEndpointGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.networkEndpointGroups.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkEndpointGroupsTestIamPermissionsCall) Fields ¶ added in v0.3.1
func (c *NetworkEndpointGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *NetworkEndpointGroupsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkEndpointGroupsTestIamPermissionsCall) Header ¶ added in v0.3.1
func (c *NetworkEndpointGroupsTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type NetworkEndpointWithHealthStatus ¶ added in v0.3.1
type NetworkEndpointWithHealthStatus struct { // Healths: [Output only] The health status of network endpoint; Healths []*HealthStatusForNetworkEndpoint `json:"healths,omitempty"` // NetworkEndpoint: [Output only] The network endpoint; NetworkEndpoint *NetworkEndpoint `json:"networkEndpoint,omitempty"` // ForceSendFields is a list of field names (e.g. "Healths") 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. "Healths") 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:"-"` }
func (NetworkEndpointWithHealthStatus) MarshalJSON ¶ added in v0.3.1
func (s NetworkEndpointWithHealthStatus) MarshalJSON() ([]byte, error)
type NetworkFirewallPoliciesAddAssociationCall ¶ added in v0.69.0
type NetworkFirewallPoliciesAddAssociationCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesAddAssociationCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesAddAssociationCall) Context(ctx context.Context) *NetworkFirewallPoliciesAddAssociationCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesAddAssociationCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesAddAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkFirewallPolicies.addAssociation" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesAddAssociationCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesAddAssociationCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesAddAssociationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesAddAssociationCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesAddAssociationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkFirewallPoliciesAddAssociationCall) ReplaceExistingAssociation ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesAddAssociationCall) ReplaceExistingAssociation(replaceExistingAssociation bool) *NetworkFirewallPoliciesAddAssociationCall
ReplaceExistingAssociation sets the optional parameter "replaceExistingAssociation": Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists.
func (*NetworkFirewallPoliciesAddAssociationCall) RequestId ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesAddAssociationCall) RequestId(requestId string) *NetworkFirewallPoliciesAddAssociationCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworkFirewallPoliciesAddRuleCall ¶ added in v0.69.0
type NetworkFirewallPoliciesAddRuleCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesAddRuleCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesAddRuleCall) Context(ctx context.Context) *NetworkFirewallPoliciesAddRuleCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesAddRuleCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkFirewallPolicies.addRule" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesAddRuleCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesAddRuleCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesAddRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesAddRuleCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesAddRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkFirewallPoliciesAddRuleCall) MaxPriority ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesAddRuleCall) MaxPriority(maxPriority int64) *NetworkFirewallPoliciesAddRuleCall
MaxPriority sets the optional parameter "maxPriority": When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority.
func (*NetworkFirewallPoliciesAddRuleCall) MinPriority ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesAddRuleCall) MinPriority(minPriority int64) *NetworkFirewallPoliciesAddRuleCall
MinPriority sets the optional parameter "minPriority": When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority.
func (*NetworkFirewallPoliciesAddRuleCall) RequestId ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesAddRuleCall) RequestId(requestId string) *NetworkFirewallPoliciesAddRuleCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworkFirewallPoliciesCloneRulesCall ¶ added in v0.69.0
type NetworkFirewallPoliciesCloneRulesCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesCloneRulesCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesCloneRulesCall) Context(ctx context.Context) *NetworkFirewallPoliciesCloneRulesCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesCloneRulesCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesCloneRulesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkFirewallPolicies.cloneRules" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesCloneRulesCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesCloneRulesCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesCloneRulesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesCloneRulesCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesCloneRulesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkFirewallPoliciesCloneRulesCall) RequestId ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesCloneRulesCall) RequestId(requestId string) *NetworkFirewallPoliciesCloneRulesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*NetworkFirewallPoliciesCloneRulesCall) SourceFirewallPolicy ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesCloneRulesCall) SourceFirewallPolicy(sourceFirewallPolicy string) *NetworkFirewallPoliciesCloneRulesCall
SourceFirewallPolicy sets the optional parameter "sourceFirewallPolicy": The firewall policy from which to copy rules.
type NetworkFirewallPoliciesDeleteCall ¶ added in v0.69.0
type NetworkFirewallPoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesDeleteCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesDeleteCall) Context(ctx context.Context) *NetworkFirewallPoliciesDeleteCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesDeleteCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkFirewallPolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesDeleteCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesDeleteCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesDeleteCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkFirewallPoliciesDeleteCall) RequestId ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesDeleteCall) RequestId(requestId string) *NetworkFirewallPoliciesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworkFirewallPoliciesGetAssociationCall ¶ added in v0.69.0
type NetworkFirewallPoliciesGetAssociationCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesGetAssociationCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetAssociationCall) Context(ctx context.Context) *NetworkFirewallPoliciesGetAssociationCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesGetAssociationCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetAssociationCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyAssociation, error)
Do executes the "compute.networkFirewallPolicies.getAssociation" call. Any non-2xx status code is an error. Response headers are in either *FirewallPolicyAssociation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesGetAssociationCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetAssociationCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesGetAssociationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesGetAssociationCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetAssociationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkFirewallPoliciesGetAssociationCall) IfNoneMatch ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetAssociationCall) IfNoneMatch(entityTag string) *NetworkFirewallPoliciesGetAssociationCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NetworkFirewallPoliciesGetAssociationCall) Name ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetAssociationCall) Name(name string) *NetworkFirewallPoliciesGetAssociationCall
Name sets the optional parameter "name": The name of the association to get from the firewall policy.
type NetworkFirewallPoliciesGetCall ¶ added in v0.69.0
type NetworkFirewallPoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesGetCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetCall) Context(ctx context.Context) *NetworkFirewallPoliciesGetCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesGetCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetCall) Do(opts ...googleapi.CallOption) (*FirewallPolicy, error)
Do executes the "compute.networkFirewallPolicies.get" call. Any non-2xx status code is an error. Response headers are in either *FirewallPolicy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesGetCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesGetCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkFirewallPoliciesGetCall) IfNoneMatch ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetCall) IfNoneMatch(entityTag string) *NetworkFirewallPoliciesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type NetworkFirewallPoliciesGetIamPolicyCall ¶ added in v0.69.0
type NetworkFirewallPoliciesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesGetIamPolicyCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetIamPolicyCall) Context(ctx context.Context) *NetworkFirewallPoliciesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesGetIamPolicyCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.networkFirewallPolicies.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesGetIamPolicyCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesGetIamPolicyCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkFirewallPoliciesGetIamPolicyCall) IfNoneMatch ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *NetworkFirewallPoliciesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NetworkFirewallPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *NetworkFirewallPoliciesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type NetworkFirewallPoliciesGetRuleCall ¶ added in v0.69.0
type NetworkFirewallPoliciesGetRuleCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesGetRuleCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetRuleCall) Context(ctx context.Context) *NetworkFirewallPoliciesGetRuleCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesGetRuleCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyRule, error)
Do executes the "compute.networkFirewallPolicies.getRule" call. Any non-2xx status code is an error. Response headers are in either *FirewallPolicyRule.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesGetRuleCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetRuleCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesGetRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesGetRuleCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkFirewallPoliciesGetRuleCall) IfNoneMatch ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetRuleCall) IfNoneMatch(entityTag string) *NetworkFirewallPoliciesGetRuleCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NetworkFirewallPoliciesGetRuleCall) Priority ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesGetRuleCall) Priority(priority int64) *NetworkFirewallPoliciesGetRuleCall
Priority sets the optional parameter "priority": The priority of the rule to get from the firewall policy.
type NetworkFirewallPoliciesInsertCall ¶ added in v0.69.0
type NetworkFirewallPoliciesInsertCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesInsertCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesInsertCall) Context(ctx context.Context) *NetworkFirewallPoliciesInsertCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesInsertCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkFirewallPolicies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesInsertCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesInsertCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesInsertCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkFirewallPoliciesInsertCall) RequestId ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesInsertCall) RequestId(requestId string) *NetworkFirewallPoliciesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworkFirewallPoliciesListCall ¶ added in v0.69.0
type NetworkFirewallPoliciesListCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesListCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesListCall) Context(ctx context.Context) *NetworkFirewallPoliciesListCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesListCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesListCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyList, error)
Do executes the "compute.networkFirewallPolicies.list" call. Any non-2xx status code is an error. Response headers are in either *FirewallPolicyList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesListCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesListCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesListCall) Filter ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesListCall) Filter(filter string) *NetworkFirewallPoliciesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NetworkFirewallPoliciesListCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkFirewallPoliciesListCall) IfNoneMatch ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesListCall) IfNoneMatch(entityTag string) *NetworkFirewallPoliciesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NetworkFirewallPoliciesListCall) MaxResults ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesListCall) MaxResults(maxResults int64) *NetworkFirewallPoliciesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NetworkFirewallPoliciesListCall) OrderBy ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesListCall) OrderBy(orderBy string) *NetworkFirewallPoliciesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NetworkFirewallPoliciesListCall) PageToken ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesListCall) PageToken(pageToken string) *NetworkFirewallPoliciesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NetworkFirewallPoliciesListCall) Pages ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesListCall) Pages(ctx context.Context, f func(*FirewallPolicyList) 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 (*NetworkFirewallPoliciesListCall) ReturnPartialSuccess ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworkFirewallPoliciesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type NetworkFirewallPoliciesPatchCall ¶ added in v0.69.0
type NetworkFirewallPoliciesPatchCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesPatchCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesPatchCall) Context(ctx context.Context) *NetworkFirewallPoliciesPatchCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesPatchCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkFirewallPolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesPatchCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesPatchCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesPatchCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkFirewallPoliciesPatchCall) RequestId ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesPatchCall) RequestId(requestId string) *NetworkFirewallPoliciesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworkFirewallPoliciesPatchRuleCall ¶ added in v0.69.0
type NetworkFirewallPoliciesPatchRuleCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesPatchRuleCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesPatchRuleCall) Context(ctx context.Context) *NetworkFirewallPoliciesPatchRuleCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesPatchRuleCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkFirewallPolicies.patchRule" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesPatchRuleCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesPatchRuleCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesPatchRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesPatchRuleCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesPatchRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkFirewallPoliciesPatchRuleCall) Priority ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesPatchRuleCall) Priority(priority int64) *NetworkFirewallPoliciesPatchRuleCall
Priority sets the optional parameter "priority": The priority of the rule to patch.
func (*NetworkFirewallPoliciesPatchRuleCall) RequestId ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesPatchRuleCall) RequestId(requestId string) *NetworkFirewallPoliciesPatchRuleCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworkFirewallPoliciesRemoveAssociationCall ¶ added in v0.69.0
type NetworkFirewallPoliciesRemoveAssociationCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesRemoveAssociationCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesRemoveAssociationCall) Context(ctx context.Context) *NetworkFirewallPoliciesRemoveAssociationCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesRemoveAssociationCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesRemoveAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkFirewallPolicies.removeAssociation" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesRemoveAssociationCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesRemoveAssociationCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesRemoveAssociationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesRemoveAssociationCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesRemoveAssociationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkFirewallPoliciesRemoveAssociationCall) Name ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesRemoveAssociationCall) Name(name string) *NetworkFirewallPoliciesRemoveAssociationCall
Name sets the optional parameter "name": Name for the attachment that will be removed.
func (*NetworkFirewallPoliciesRemoveAssociationCall) RequestId ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesRemoveAssociationCall) RequestId(requestId string) *NetworkFirewallPoliciesRemoveAssociationCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworkFirewallPoliciesRemoveRuleCall ¶ added in v0.69.0
type NetworkFirewallPoliciesRemoveRuleCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesRemoveRuleCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesRemoveRuleCall) Context(ctx context.Context) *NetworkFirewallPoliciesRemoveRuleCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesRemoveRuleCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesRemoveRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkFirewallPolicies.removeRule" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesRemoveRuleCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesRemoveRuleCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesRemoveRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesRemoveRuleCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesRemoveRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworkFirewallPoliciesRemoveRuleCall) Priority ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesRemoveRuleCall) Priority(priority int64) *NetworkFirewallPoliciesRemoveRuleCall
Priority sets the optional parameter "priority": The priority of the rule to remove from the firewall policy.
func (*NetworkFirewallPoliciesRemoveRuleCall) RequestId ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesRemoveRuleCall) RequestId(requestId string) *NetworkFirewallPoliciesRemoveRuleCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworkFirewallPoliciesService ¶ added in v0.69.0
type NetworkFirewallPoliciesService struct {
// contains filtered or unexported fields
}
func NewNetworkFirewallPoliciesService ¶ added in v0.69.0
func NewNetworkFirewallPoliciesService(s *Service) *NetworkFirewallPoliciesService
func (*NetworkFirewallPoliciesService) AddAssociation ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) AddAssociation(project string, firewallPolicy string, firewallpolicyassociation *FirewallPolicyAssociation) *NetworkFirewallPoliciesAddAssociationCall
AddAssociation: Inserts an association for the specified firewall policy.
- firewallPolicy: Name of the firewall policy to update. - project: Project ID for this request.
func (*NetworkFirewallPoliciesService) AddRule ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) AddRule(project string, firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *NetworkFirewallPoliciesAddRuleCall
AddRule: Inserts a rule into a firewall policy.
- firewallPolicy: Name of the firewall policy to update. - project: Project ID for this request.
func (*NetworkFirewallPoliciesService) CloneRules ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) CloneRules(project string, firewallPolicy string) *NetworkFirewallPoliciesCloneRulesCall
CloneRules: Copies rules to the specified firewall policy.
- firewallPolicy: Name of the firewall policy to update. - project: Project ID for this request.
func (*NetworkFirewallPoliciesService) Delete ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) Delete(project string, firewallPolicy string) *NetworkFirewallPoliciesDeleteCall
Delete: Deletes the specified policy.
- firewallPolicy: Name of the firewall policy to delete. - project: Project ID for this request.
func (*NetworkFirewallPoliciesService) Get ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) Get(project string, firewallPolicy string) *NetworkFirewallPoliciesGetCall
Get: Returns the specified network firewall policy.
- firewallPolicy: Name of the firewall policy to get. - project: Project ID for this request.
func (*NetworkFirewallPoliciesService) GetAssociation ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) GetAssociation(project string, firewallPolicy string) *NetworkFirewallPoliciesGetAssociationCall
GetAssociation: Gets an association with the specified name.
- firewallPolicy: Name of the firewall policy to which the queried association belongs.
- project: Project ID for this request.
func (*NetworkFirewallPoliciesService) GetIamPolicy ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) GetIamPolicy(project string, resource string) *NetworkFirewallPoliciesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*NetworkFirewallPoliciesService) GetRule ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) GetRule(project string, firewallPolicy string) *NetworkFirewallPoliciesGetRuleCall
GetRule: Gets a rule of the specified priority.
- firewallPolicy: Name of the firewall policy to which the queried rule belongs.
- project: Project ID for this request.
func (*NetworkFirewallPoliciesService) Insert ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) Insert(project string, firewallpolicy *FirewallPolicy) *NetworkFirewallPoliciesInsertCall
Insert: Creates a new policy in the specified project using the data included in the request.
- project: Project ID for this request.
func (*NetworkFirewallPoliciesService) List ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) List(project string) *NetworkFirewallPoliciesListCall
List: Lists all the policies that have been configured for the specified project.
- project: Project ID for this request.
func (*NetworkFirewallPoliciesService) Patch ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) Patch(project string, firewallPolicy string, firewallpolicy *FirewallPolicy) *NetworkFirewallPoliciesPatchCall
Patch: Patches the specified policy with the data included in the request.
- firewallPolicy: Name of the firewall policy to update. - project: Project ID for this request.
func (*NetworkFirewallPoliciesService) PatchRule ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) PatchRule(project string, firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *NetworkFirewallPoliciesPatchRuleCall
PatchRule: Patches a rule of the specified priority.
- firewallPolicy: Name of the firewall policy to update. - project: Project ID for this request.
func (*NetworkFirewallPoliciesService) RemoveAssociation ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) RemoveAssociation(project string, firewallPolicy string) *NetworkFirewallPoliciesRemoveAssociationCall
RemoveAssociation: Removes an association for the specified firewall policy.
- firewallPolicy: Name of the firewall policy to update. - project: Project ID for this request.
func (*NetworkFirewallPoliciesService) RemoveRule ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) RemoveRule(project string, firewallPolicy string) *NetworkFirewallPoliciesRemoveRuleCall
RemoveRule: Deletes a rule of the specified priority.
- firewallPolicy: Name of the firewall policy to update. - project: Project ID for this request.
func (*NetworkFirewallPoliciesService) SetIamPolicy ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *NetworkFirewallPoliciesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*NetworkFirewallPoliciesService) TestIamPermissions ¶ added in v0.69.0
func (r *NetworkFirewallPoliciesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *NetworkFirewallPoliciesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
type NetworkFirewallPoliciesSetIamPolicyCall ¶ added in v0.69.0
type NetworkFirewallPoliciesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesSetIamPolicyCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesSetIamPolicyCall) Context(ctx context.Context) *NetworkFirewallPoliciesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesSetIamPolicyCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.networkFirewallPolicies.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesSetIamPolicyCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesSetIamPolicyCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type NetworkFirewallPoliciesTestIamPermissionsCall ¶ added in v0.69.0
type NetworkFirewallPoliciesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*NetworkFirewallPoliciesTestIamPermissionsCall) Context ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesTestIamPermissionsCall) Context(ctx context.Context) *NetworkFirewallPoliciesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*NetworkFirewallPoliciesTestIamPermissionsCall) Do ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.networkFirewallPolicies.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworkFirewallPoliciesTestIamPermissionsCall) Fields ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *NetworkFirewallPoliciesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworkFirewallPoliciesTestIamPermissionsCall) Header ¶ added in v0.69.0
func (c *NetworkFirewallPoliciesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type NetworkInterface ¶
type NetworkInterface struct { // AccessConfigs: An array of configurations for this interface. Currently, // only one access config, ONE_TO_ONE_NAT, is supported. If there are no // accessConfigs specified, then this instance will have no external internet // access. AccessConfigs []*AccessConfig `json:"accessConfigs,omitempty"` // AliasIpRanges: An array of alias IP ranges for this network interface. You // can only specify this field for network interfaces in VPC networks. AliasIpRanges []*AliasIpRange `json:"aliasIpRanges,omitempty"` // Fingerprint: Fingerprint hash of contents stored in this network interface. // This field will be ignored when inserting an Instance or adding a // NetworkInterface. An up-to-date fingerprint must be provided in order to // update the NetworkInterface. The request will fail with error 400 Bad // Request if the fingerprint is not provided, or 412 Precondition Failed if // the fingerprint is out of date. Fingerprint string `json:"fingerprint,omitempty"` // InternalIpv6PrefixLength: The prefix length of the primary internal IPv6 // range. InternalIpv6PrefixLength int64 `json:"internalIpv6PrefixLength,omitempty"` // Ipv6AccessConfigs: An array of IPv6 access configurations for this // interface. Currently, only one IPv6 access config, DIRECT_IPV6, is // supported. If there is no ipv6AccessConfig specified, then this instance // will have no external IPv6 Internet access. Ipv6AccessConfigs []*AccessConfig `json:"ipv6AccessConfigs,omitempty"` // Ipv6AccessType: [Output Only] One of EXTERNAL, INTERNAL to indicate whether // the IP can be accessed from the Internet. This field is always inherited // from its subnetwork. Valid only if stackType is IPV4_IPV6. // // Possible values: // "EXTERNAL" - This network interface can have external IPv6. // "INTERNAL" - This network interface can have internal IPv6. Ipv6AccessType string `json:"ipv6AccessType,omitempty"` // Ipv6Address: An IPv6 internal network address for this network interface. To // use a static internal IP address, it must be unused and in the same region // as the instance's zone. If not specified, Google Cloud will automatically // assign an internal IPv6 address from the instance's subnetwork. Ipv6Address string `json:"ipv6Address,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#networkInterface // for network interfaces. Kind string `json:"kind,omitempty"` // Name: [Output Only] The name of the network interface, which is generated by // the server. For a VM, the network interface uses the nicN naming format. // Where N is a value between 0 and 7. The default interface value is nic0. Name string `json:"name,omitempty"` // Network: URL of the VPC network resource for this instance. When creating an // instance, if neither the network nor the subnetwork is specified, the // default network global/networks/default is used. If the selected project // doesn't have the default network, you must specify a network or subnet. If // the network is not specified but the subnetwork is specified, the network is // inferred. If you specify this property, you can specify the network as a // full or partial URL. For example, the following are all valid URLs: - // https://www.googleapis.com/compute/v1/projects/project/global/networks/ // network - projects/project/global/networks/network - global/networks/default Network string `json:"network,omitempty"` // NetworkAttachment: The URL of the network attachment that this interface // should connect to in the following format: // projects/{project_number}/regions/{region_name}/networkAttachments/{network_a // ttachment_name}. NetworkAttachment string `json:"networkAttachment,omitempty"` // NetworkIP: An IPv4 internal IP address to assign to the instance for this // network interface. If not specified by the user, an unused internal IP is // assigned by the system. NetworkIP string `json:"networkIP,omitempty"` // NicType: The type of vNIC to be used on this interface. This may be gVNIC or // VirtioNet. // // Possible values: // "GVNIC" - GVNIC // "IDPF" - IDPF // "UNSPECIFIED_NIC_TYPE" - No type specified. // "VIRTIO_NET" - VIRTIO NicType string `json:"nicType,omitempty"` // QueueCount: The networking queue count that's specified by users for the // network interface. Both Rx and Tx queues will be set to this number. It'll // be empty if not specified by the users. QueueCount int64 `json:"queueCount,omitempty"` // StackType: The stack type for this network interface. To assign only IPv4 // addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use // IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set // at instance creation and update network interface operations. // // Possible values: // "IPV4_IPV6" - The network interface can have both IPv4 and IPv6 addresses. // "IPV4_ONLY" - The network interface will be assigned IPv4 address. StackType string `json:"stackType,omitempty"` // Subnetwork: The URL of the Subnetwork resource for this instance. If the // network resource is in legacy mode, do not specify this field. If the // network is in auto subnet mode, specifying the subnetwork is optional. If // the network is in custom subnet mode, specifying the subnetwork is required. // If you specify this field, you can specify the subnetwork as a full or // partial URL. For example, the following are all valid URLs: - // https://www.googleapis.com/compute/v1/projects/project/regions/region // /subnetworks/subnetwork - regions/region/subnetworks/subnetwork Subnetwork string `json:"subnetwork,omitempty"` // ForceSendFields is a list of field names (e.g. "AccessConfigs") 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. "AccessConfigs") 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:"-"` }
NetworkInterface: A network interface resource attached to an instance.
func (NetworkInterface) MarshalJSON ¶
func (s NetworkInterface) MarshalJSON() ([]byte, error)
type NetworkList ¶
type NetworkList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Network resources. Items []*Network `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#networkList for lists // of networks. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *NetworkListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
NetworkList: Contains a list of networks.
func (NetworkList) MarshalJSON ¶
func (s NetworkList) MarshalJSON() ([]byte, error)
type NetworkListWarning ¶
type NetworkListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NetworkListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NetworkListWarning: [Output Only] Informational warning message.
func (NetworkListWarning) MarshalJSON ¶
func (s NetworkListWarning) MarshalJSON() ([]byte, error)
type NetworkListWarningData ¶
type NetworkListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NetworkListWarningData) MarshalJSON ¶
func (s NetworkListWarningData) MarshalJSON() ([]byte, error)
type NetworkPeering ¶
type NetworkPeering struct { // AutoCreateRoutes: This field will be deprecated soon. Use the // exchange_subnet_routes field instead. Indicates whether full mesh // connectivity is created and managed automatically between peered networks. // Currently this field should always be true since Google Compute Engine will // automatically create and manage subnetwork routes between two networks when // peering state is ACTIVE. AutoCreateRoutes bool `json:"autoCreateRoutes,omitempty"` // ExchangeSubnetRoutes: Indicates whether full mesh connectivity is created // and managed automatically between peered networks. Currently this field // should always be true since Google Compute Engine will automatically create // and manage subnetwork routes between two networks when peering state is // ACTIVE. ExchangeSubnetRoutes bool `json:"exchangeSubnetRoutes,omitempty"` // ExportCustomRoutes: Whether to export the custom routes to peer network. The // default value is false. ExportCustomRoutes bool `json:"exportCustomRoutes,omitempty"` // ExportSubnetRoutesWithPublicIp: Whether subnet routes with public IP range // are exported. The default value is true, all subnet routes are exported. // IPv4 special-use ranges are always exported to peers and are not controlled // by this field. ExportSubnetRoutesWithPublicIp bool `json:"exportSubnetRoutesWithPublicIp,omitempty"` // ImportCustomRoutes: Whether to import the custom routes from peer network. // The default value is false. ImportCustomRoutes bool `json:"importCustomRoutes,omitempty"` // ImportSubnetRoutesWithPublicIp: Whether subnet routes with public IP range // are imported. The default value is false. IPv4 special-use ranges are always // imported from peers and are not controlled by this field. ImportSubnetRoutesWithPublicIp bool `json:"importSubnetRoutesWithPublicIp,omitempty"` // Name: Name of this peering. Provided by the client when the peering is // created. The name must comply with RFC1035. Specifically, the name must be // 1-63 characters long and match regular expression // `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase // letter, and all the following characters must be a dash, lowercase letter, // or digit, except the last character, which cannot be a dash. Name string `json:"name,omitempty"` // Network: The URL of the peer network. It can be either full URL or partial // URL. The peer network may belong to a different project. If the partial URL // does not contain project, it is assumed that the peer network is in the same // project as the current network. Network string `json:"network,omitempty"` // PeerMtu: Maximum Transmission Unit in bytes. PeerMtu int64 `json:"peerMtu,omitempty"` // StackType: Which IP version(s) of traffic and routes are allowed to be // imported or exported between peer networks. The default value is IPV4_ONLY. // // Possible values: // "IPV4_IPV6" - This Peering will allow IPv4 traffic and routes to be // exchanged. Additionally if the matching peering is IPV4_IPV6, IPv6 traffic // and routes will be exchanged as well. // "IPV4_ONLY" - This Peering will only allow IPv4 traffic and routes to be // exchanged, even if the matching peering is IPV4_IPV6. StackType string `json:"stackType,omitempty"` // State: [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. // The peering is `ACTIVE` when there's a matching configuration in the peer // network. // // Possible values: // "ACTIVE" - Matching configuration exists on the peer. // "INACTIVE" - There is no matching configuration on the peer, including the // case when peer does not exist. State string `json:"state,omitempty"` // StateDetails: [Output Only] Details about the current state of the peering. StateDetails string `json:"stateDetails,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoCreateRoutes") 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. "AutoCreateRoutes") 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:"-"` }
NetworkPeering: A network peering attached to a network resource. The message includes the peering name, peer network, peering state, and a flag indicating whether Google Compute Engine should automatically create routes for the peering.
func (NetworkPeering) MarshalJSON ¶
func (s NetworkPeering) MarshalJSON() ([]byte, error)
type NetworkPerformanceConfig ¶ added in v0.62.0
type NetworkPerformanceConfig struct { // Possible values: // "DEFAULT" // "TIER_1" TotalEgressBandwidthTier string `json:"totalEgressBandwidthTier,omitempty"` // ForceSendFields is a list of field names (e.g. "TotalEgressBandwidthTier") // 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. "TotalEgressBandwidthTier") 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:"-"` }
func (NetworkPerformanceConfig) MarshalJSON ¶ added in v0.62.0
func (s NetworkPerformanceConfig) MarshalJSON() ([]byte, error)
type NetworkRoutingConfig ¶
type NetworkRoutingConfig struct { // RoutingMode: The network-wide routing mode to use. If set to REGIONAL, this // network's Cloud Routers will only advertise routes with subnets of this // network in the same region as the router. If set to GLOBAL, this network's // Cloud Routers will advertise routes with all subnets of this network, across // regions. // // Possible values: // "GLOBAL" // "REGIONAL" RoutingMode string `json:"routingMode,omitempty"` // ForceSendFields is a list of field names (e.g. "RoutingMode") 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. "RoutingMode") 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:"-"` }
NetworkRoutingConfig: A routing configuration attached to a network resource. The message includes the list of routers associated with the network, and a flag indicating the type of routing behavior to enforce network-wide.
func (NetworkRoutingConfig) MarshalJSON ¶
func (s NetworkRoutingConfig) MarshalJSON() ([]byte, error)
type NetworksAddPeeringCall ¶
type NetworksAddPeeringCall struct {
// contains filtered or unexported fields
}
func (*NetworksAddPeeringCall) Context ¶
func (c *NetworksAddPeeringCall) Context(ctx context.Context) *NetworksAddPeeringCall
Context sets the context to be used in this call's Do method.
func (*NetworksAddPeeringCall) Do ¶
func (c *NetworksAddPeeringCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networks.addPeering" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworksAddPeeringCall) Fields ¶
func (c *NetworksAddPeeringCall) Fields(s ...googleapi.Field) *NetworksAddPeeringCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworksAddPeeringCall) Header ¶
func (c *NetworksAddPeeringCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworksAddPeeringCall) RequestId ¶
func (c *NetworksAddPeeringCall) RequestId(requestId string) *NetworksAddPeeringCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworksAddPeeringRequest ¶
type NetworksAddPeeringRequest struct { // AutoCreateRoutes: This field will be deprecated soon. Use // exchange_subnet_routes in network_peering instead. Indicates whether full // mesh connectivity is created and managed automatically between peered // networks. Currently this field should always be true since Google Compute // Engine will automatically create and manage subnetwork routes between two // networks when peering state is ACTIVE. AutoCreateRoutes bool `json:"autoCreateRoutes,omitempty"` // Name: Name of the peering, which should conform to RFC1035. Name string `json:"name,omitempty"` // NetworkPeering: Network peering parameters. In order to specify route // policies for peering using import and export custom routes, you must specify // all peering related parameters (name, peer network, exchange_subnet_routes) // in the network_peering field. The corresponding fields in // NetworksAddPeeringRequest will be deprecated soon. NetworkPeering *NetworkPeering `json:"networkPeering,omitempty"` // PeerNetwork: URL of the peer network. It can be either full URL or partial // URL. The peer network may belong to a different project. If the partial URL // does not contain project, it is assumed that the peer network is in the same // project as the current network. PeerNetwork string `json:"peerNetwork,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoCreateRoutes") 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. "AutoCreateRoutes") 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:"-"` }
func (NetworksAddPeeringRequest) MarshalJSON ¶
func (s NetworksAddPeeringRequest) MarshalJSON() ([]byte, error)
type NetworksDeleteCall ¶
type NetworksDeleteCall struct {
// contains filtered or unexported fields
}
func (*NetworksDeleteCall) Context ¶
func (c *NetworksDeleteCall) Context(ctx context.Context) *NetworksDeleteCall
Context sets the context to be used in this call's Do method.
func (*NetworksDeleteCall) Do ¶
func (c *NetworksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networks.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworksDeleteCall) Fields ¶
func (c *NetworksDeleteCall) Fields(s ...googleapi.Field) *NetworksDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworksDeleteCall) Header ¶
func (c *NetworksDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworksDeleteCall) RequestId ¶
func (c *NetworksDeleteCall) RequestId(requestId string) *NetworksDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworksGetCall ¶
type NetworksGetCall struct {
// contains filtered or unexported fields
}
func (*NetworksGetCall) Context ¶
func (c *NetworksGetCall) Context(ctx context.Context) *NetworksGetCall
Context sets the context to be used in this call's Do method.
func (*NetworksGetCall) Do ¶
func (c *NetworksGetCall) Do(opts ...googleapi.CallOption) (*Network, error)
Do executes the "compute.networks.get" call. Any non-2xx status code is an error. Response headers are in either *Network.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworksGetCall) Fields ¶
func (c *NetworksGetCall) Fields(s ...googleapi.Field) *NetworksGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworksGetCall) Header ¶
func (c *NetworksGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworksGetCall) IfNoneMatch ¶
func (c *NetworksGetCall) IfNoneMatch(entityTag string) *NetworksGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type NetworksGetEffectiveFirewallsCall ¶ added in v0.41.0
type NetworksGetEffectiveFirewallsCall struct {
// contains filtered or unexported fields
}
func (*NetworksGetEffectiveFirewallsCall) Context ¶ added in v0.41.0
func (c *NetworksGetEffectiveFirewallsCall) Context(ctx context.Context) *NetworksGetEffectiveFirewallsCall
Context sets the context to be used in this call's Do method.
func (*NetworksGetEffectiveFirewallsCall) Do ¶ added in v0.41.0
func (c *NetworksGetEffectiveFirewallsCall) Do(opts ...googleapi.CallOption) (*NetworksGetEffectiveFirewallsResponse, error)
Do executes the "compute.networks.getEffectiveFirewalls" call. Any non-2xx status code is an error. Response headers are in either *NetworksGetEffectiveFirewallsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworksGetEffectiveFirewallsCall) Fields ¶ added in v0.41.0
func (c *NetworksGetEffectiveFirewallsCall) Fields(s ...googleapi.Field) *NetworksGetEffectiveFirewallsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworksGetEffectiveFirewallsCall) Header ¶ added in v0.41.0
func (c *NetworksGetEffectiveFirewallsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworksGetEffectiveFirewallsCall) IfNoneMatch ¶ added in v0.41.0
func (c *NetworksGetEffectiveFirewallsCall) IfNoneMatch(entityTag string) *NetworksGetEffectiveFirewallsCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type NetworksGetEffectiveFirewallsResponse ¶ added in v0.41.0
type NetworksGetEffectiveFirewallsResponse struct { // FirewallPolicys: Effective firewalls from firewall policy. FirewallPolicys []*NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy `json:"firewallPolicys,omitempty"` // Firewalls: Effective firewalls on the network. Firewalls []*Firewall `json:"firewalls,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "FirewallPolicys") 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. "FirewallPolicys") 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:"-"` }
func (NetworksGetEffectiveFirewallsResponse) MarshalJSON ¶ added in v0.41.0
func (s NetworksGetEffectiveFirewallsResponse) MarshalJSON() ([]byte, error)
type NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy ¶ added in v0.41.0
type NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy struct { // DisplayName: [Output Only] Deprecated, please use short name instead. The // display name of the firewall policy. DisplayName string `json:"displayName,omitempty"` // Name: [Output Only] The name of the firewall policy. Name string `json:"name,omitempty"` // Priority: [Output only] Priority of firewall policy association. Not // applicable for type=HIERARCHY. Priority int64 `json:"priority,omitempty"` // Rules: The rules that apply to the network. Rules []*FirewallPolicyRule `json:"rules,omitempty"` // ShortName: [Output Only] The short name of the firewall policy. ShortName string `json:"shortName,omitempty"` // Type: [Output Only] The type of the firewall policy. // // Possible values: // "HIERARCHY" // "NETWORK" // "SYSTEM" // "UNSPECIFIED" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
func (NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy) MarshalJSON ¶ added in v0.41.0
func (s NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy) MarshalJSON() ([]byte, error)
type NetworksInsertCall ¶
type NetworksInsertCall struct {
// contains filtered or unexported fields
}
func (*NetworksInsertCall) Context ¶
func (c *NetworksInsertCall) Context(ctx context.Context) *NetworksInsertCall
Context sets the context to be used in this call's Do method.
func (*NetworksInsertCall) Do ¶
func (c *NetworksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networks.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworksInsertCall) Fields ¶
func (c *NetworksInsertCall) Fields(s ...googleapi.Field) *NetworksInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworksInsertCall) Header ¶
func (c *NetworksInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworksInsertCall) RequestId ¶
func (c *NetworksInsertCall) RequestId(requestId string) *NetworksInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworksListCall ¶
type NetworksListCall struct {
// contains filtered or unexported fields
}
func (*NetworksListCall) Context ¶
func (c *NetworksListCall) Context(ctx context.Context) *NetworksListCall
Context sets the context to be used in this call's Do method.
func (*NetworksListCall) Do ¶
func (c *NetworksListCall) Do(opts ...googleapi.CallOption) (*NetworkList, error)
Do executes the "compute.networks.list" call. Any non-2xx status code is an error. Response headers are in either *NetworkList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworksListCall) Fields ¶
func (c *NetworksListCall) Fields(s ...googleapi.Field) *NetworksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworksListCall) Filter ¶
func (c *NetworksListCall) Filter(filter string) *NetworksListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NetworksListCall) Header ¶
func (c *NetworksListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworksListCall) IfNoneMatch ¶
func (c *NetworksListCall) IfNoneMatch(entityTag string) *NetworksListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NetworksListCall) MaxResults ¶
func (c *NetworksListCall) MaxResults(maxResults int64) *NetworksListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NetworksListCall) OrderBy ¶
func (c *NetworksListCall) OrderBy(orderBy string) *NetworksListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NetworksListCall) PageToken ¶
func (c *NetworksListCall) PageToken(pageToken string) *NetworksListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NetworksListCall) Pages ¶
func (c *NetworksListCall) Pages(ctx context.Context, f func(*NetworkList) 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 (*NetworksListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *NetworksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworksListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type NetworksListPeeringRoutesCall ¶ added in v0.16.0
type NetworksListPeeringRoutesCall struct {
// contains filtered or unexported fields
}
func (*NetworksListPeeringRoutesCall) Context ¶ added in v0.16.0
func (c *NetworksListPeeringRoutesCall) Context(ctx context.Context) *NetworksListPeeringRoutesCall
Context sets the context to be used in this call's Do method.
func (*NetworksListPeeringRoutesCall) Direction ¶ added in v0.16.0
func (c *NetworksListPeeringRoutesCall) Direction(direction string) *NetworksListPeeringRoutesCall
Direction sets the optional parameter "direction": The direction of the exchanged routes.
Possible values:
"INCOMING" - For routes exported from peer network. "OUTGOING" - For routes exported from local network.
func (*NetworksListPeeringRoutesCall) Do ¶ added in v0.16.0
func (c *NetworksListPeeringRoutesCall) Do(opts ...googleapi.CallOption) (*ExchangedPeeringRoutesList, error)
Do executes the "compute.networks.listPeeringRoutes" call. Any non-2xx status code is an error. Response headers are in either *ExchangedPeeringRoutesList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworksListPeeringRoutesCall) Fields ¶ added in v0.16.0
func (c *NetworksListPeeringRoutesCall) Fields(s ...googleapi.Field) *NetworksListPeeringRoutesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworksListPeeringRoutesCall) Filter ¶ added in v0.16.0
func (c *NetworksListPeeringRoutesCall) Filter(filter string) *NetworksListPeeringRoutesCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NetworksListPeeringRoutesCall) Header ¶ added in v0.16.0
func (c *NetworksListPeeringRoutesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworksListPeeringRoutesCall) IfNoneMatch ¶ added in v0.16.0
func (c *NetworksListPeeringRoutesCall) IfNoneMatch(entityTag string) *NetworksListPeeringRoutesCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NetworksListPeeringRoutesCall) MaxResults ¶ added in v0.16.0
func (c *NetworksListPeeringRoutesCall) MaxResults(maxResults int64) *NetworksListPeeringRoutesCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NetworksListPeeringRoutesCall) OrderBy ¶ added in v0.16.0
func (c *NetworksListPeeringRoutesCall) OrderBy(orderBy string) *NetworksListPeeringRoutesCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NetworksListPeeringRoutesCall) PageToken ¶ added in v0.16.0
func (c *NetworksListPeeringRoutesCall) PageToken(pageToken string) *NetworksListPeeringRoutesCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NetworksListPeeringRoutesCall) Pages ¶ added in v0.16.0
func (c *NetworksListPeeringRoutesCall) Pages(ctx context.Context, f func(*ExchangedPeeringRoutesList) 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 (*NetworksListPeeringRoutesCall) PeeringName ¶ added in v0.16.0
func (c *NetworksListPeeringRoutesCall) PeeringName(peeringName string) *NetworksListPeeringRoutesCall
PeeringName sets the optional parameter "peeringName": The response will show routes exchanged over the given peering connection.
func (*NetworksListPeeringRoutesCall) Region ¶ added in v0.16.0
func (c *NetworksListPeeringRoutesCall) Region(region string) *NetworksListPeeringRoutesCall
Region sets the optional parameter "region": The region of the request. The response will include all subnet routes, static routes and dynamic routes in the region.
func (*NetworksListPeeringRoutesCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *NetworksListPeeringRoutesCall) ReturnPartialSuccess(returnPartialSuccess bool) *NetworksListPeeringRoutesCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type NetworksPatchCall ¶
type NetworksPatchCall struct {
// contains filtered or unexported fields
}
func (*NetworksPatchCall) Context ¶
func (c *NetworksPatchCall) Context(ctx context.Context) *NetworksPatchCall
Context sets the context to be used in this call's Do method.
func (*NetworksPatchCall) Do ¶
func (c *NetworksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networks.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworksPatchCall) Fields ¶
func (c *NetworksPatchCall) Fields(s ...googleapi.Field) *NetworksPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworksPatchCall) Header ¶
func (c *NetworksPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworksPatchCall) RequestId ¶
func (c *NetworksPatchCall) RequestId(requestId string) *NetworksPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworksRemovePeeringCall ¶
type NetworksRemovePeeringCall struct {
// contains filtered or unexported fields
}
func (*NetworksRemovePeeringCall) Context ¶
func (c *NetworksRemovePeeringCall) Context(ctx context.Context) *NetworksRemovePeeringCall
Context sets the context to be used in this call's Do method.
func (*NetworksRemovePeeringCall) Do ¶
func (c *NetworksRemovePeeringCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networks.removePeering" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworksRemovePeeringCall) Fields ¶
func (c *NetworksRemovePeeringCall) Fields(s ...googleapi.Field) *NetworksRemovePeeringCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworksRemovePeeringCall) Header ¶
func (c *NetworksRemovePeeringCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworksRemovePeeringCall) RequestId ¶
func (c *NetworksRemovePeeringCall) RequestId(requestId string) *NetworksRemovePeeringCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworksRemovePeeringRequest ¶
type NetworksRemovePeeringRequest struct { // Name: Name of the peering, which should conform to RFC1035. Name string `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:"-"` }
func (NetworksRemovePeeringRequest) MarshalJSON ¶
func (s NetworksRemovePeeringRequest) MarshalJSON() ([]byte, error)
type NetworksService ¶
type NetworksService struct {
// contains filtered or unexported fields
}
func NewNetworksService ¶
func NewNetworksService(s *Service) *NetworksService
func (*NetworksService) AddPeering ¶
func (r *NetworksService) AddPeering(project string, network string, networksaddpeeringrequest *NetworksAddPeeringRequest) *NetworksAddPeeringCall
AddPeering: Adds a peering to the specified network.
- network: Name of the network resource to add peering to. - project: Project ID for this request.
func (*NetworksService) Delete ¶
func (r *NetworksService) Delete(project string, network string) *NetworksDeleteCall
Delete: Deletes the specified network.
- network: Name of the network to delete. - project: Project ID for this request.
func (*NetworksService) Get ¶
func (r *NetworksService) Get(project string, network string) *NetworksGetCall
Get: Returns the specified network.
- network: Name of the network to return. - project: Project ID for this request.
func (*NetworksService) GetEffectiveFirewalls ¶ added in v0.41.0
func (r *NetworksService) GetEffectiveFirewalls(project string, network string) *NetworksGetEffectiveFirewallsCall
GetEffectiveFirewalls: Returns the effective firewalls on a given network.
- network: Name of the network for this request. - project: Project ID for this request.
func (*NetworksService) Insert ¶
func (r *NetworksService) Insert(project string, network *Network) *NetworksInsertCall
Insert: Creates a network in the specified project using the data included in the request.
- project: Project ID for this request.
func (*NetworksService) List ¶
func (r *NetworksService) List(project string) *NetworksListCall
List: Retrieves the list of networks available to the specified project.
- project: Project ID for this request.
func (*NetworksService) ListPeeringRoutes ¶ added in v0.16.0
func (r *NetworksService) ListPeeringRoutes(project string, network string) *NetworksListPeeringRoutesCall
ListPeeringRoutes: Lists the peering routes exchanged over peering connection.
- network: Name of the network for this request. - project: Project ID for this request.
func (*NetworksService) Patch ¶
func (r *NetworksService) Patch(project string, network string, network2 *Network) *NetworksPatchCall
Patch: Patches the specified network with the data included in the request. Only routingConfig can be modified.
- network: Name of the network to update. - project: Project ID for this request.
func (*NetworksService) RemovePeering ¶
func (r *NetworksService) RemovePeering(project string, network string, networksremovepeeringrequest *NetworksRemovePeeringRequest) *NetworksRemovePeeringCall
RemovePeering: Removes a peering from the specified network.
- network: Name of the network resource to remove peering from. - project: Project ID for this request.
func (*NetworksService) SwitchToCustomMode ¶
func (r *NetworksService) SwitchToCustomMode(project string, network string) *NetworksSwitchToCustomModeCall
SwitchToCustomMode: Switches the network mode from auto subnet mode to custom subnet mode.
- network: Name of the network to be updated. - project: Project ID for this request.
func (*NetworksService) UpdatePeering ¶ added in v0.11.0
func (r *NetworksService) UpdatePeering(project string, network string, networksupdatepeeringrequest *NetworksUpdatePeeringRequest) *NetworksUpdatePeeringCall
UpdatePeering: Updates the specified network peering with the data included in the request. You can only modify the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field.
- network: Name of the network resource which the updated peering is belonging to.
- project: Project ID for this request.
type NetworksSwitchToCustomModeCall ¶
type NetworksSwitchToCustomModeCall struct {
// contains filtered or unexported fields
}
func (*NetworksSwitchToCustomModeCall) Context ¶
func (c *NetworksSwitchToCustomModeCall) Context(ctx context.Context) *NetworksSwitchToCustomModeCall
Context sets the context to be used in this call's Do method.
func (*NetworksSwitchToCustomModeCall) Do ¶
func (c *NetworksSwitchToCustomModeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networks.switchToCustomMode" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworksSwitchToCustomModeCall) Fields ¶
func (c *NetworksSwitchToCustomModeCall) Fields(s ...googleapi.Field) *NetworksSwitchToCustomModeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworksSwitchToCustomModeCall) Header ¶
func (c *NetworksSwitchToCustomModeCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworksSwitchToCustomModeCall) RequestId ¶
func (c *NetworksSwitchToCustomModeCall) RequestId(requestId string) *NetworksSwitchToCustomModeCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworksUpdatePeeringCall ¶ added in v0.11.0
type NetworksUpdatePeeringCall struct {
// contains filtered or unexported fields
}
func (*NetworksUpdatePeeringCall) Context ¶ added in v0.11.0
func (c *NetworksUpdatePeeringCall) Context(ctx context.Context) *NetworksUpdatePeeringCall
Context sets the context to be used in this call's Do method.
func (*NetworksUpdatePeeringCall) Do ¶ added in v0.11.0
func (c *NetworksUpdatePeeringCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networks.updatePeering" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworksUpdatePeeringCall) Fields ¶ added in v0.11.0
func (c *NetworksUpdatePeeringCall) Fields(s ...googleapi.Field) *NetworksUpdatePeeringCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NetworksUpdatePeeringCall) Header ¶ added in v0.11.0
func (c *NetworksUpdatePeeringCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NetworksUpdatePeeringCall) RequestId ¶ added in v0.11.0
func (c *NetworksUpdatePeeringCall) RequestId(requestId string) *NetworksUpdatePeeringCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NetworksUpdatePeeringRequest ¶ added in v0.11.0
type NetworksUpdatePeeringRequest struct { NetworkPeering *NetworkPeering `json:"networkPeering,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkPeering") 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. "NetworkPeering") 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:"-"` }
func (NetworksUpdatePeeringRequest) MarshalJSON ¶ added in v0.11.0
func (s NetworksUpdatePeeringRequest) MarshalJSON() ([]byte, error)
type NodeGroup ¶
type NodeGroup struct { // AutoscalingPolicy: Specifies how autoscaling should behave. AutoscalingPolicy *NodeGroupAutoscalingPolicy `json:"autoscalingPolicy,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` Fingerprint string `json:"fingerprint,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] The type of the resource. Always compute#nodeGroup for // node group. Kind string `json:"kind,omitempty"` // LocationHint: An opaque location hint used to place the Node close to other // resources. This field is for use by internal tools that use the public API. // The location hint here on the NodeGroup overrides any location_hint present // in the NodeTemplate. LocationHint string `json:"locationHint,omitempty"` // MaintenanceInterval: Specifies the frequency of planned maintenance events. // The accepted values are: `AS_NEEDED` and `RECURRENT`. // // Possible values: // "AS_NEEDED" - VMs are eligible to receive infrastructure and hypervisor // updates as they become available. This may result in more maintenance // operations (live migrations or terminations) for the VM than the PERIODIC // and RECURRENT options. // "RECURRENT" - VMs receive infrastructure and hypervisor updates on a // periodic basis, minimizing the number of maintenance operations (live // migrations or terminations) on an individual VM. This may mean a VM will // take longer to receive an update than if it was configured for AS_NEEDED. // Security updates will still be applied as soon as they are available. // RECURRENT is used for GEN3 and Slice of Hardware VMs. MaintenanceInterval string `json:"maintenanceInterval,omitempty"` // MaintenancePolicy: Specifies how to handle instances when a node in the // group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or // MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more // information, see Maintenance policies. // // Possible values: // "DEFAULT" - Allow the node and corresponding instances to retain default // maintenance behavior. // "MAINTENANCE_POLICY_UNSPECIFIED" // "MIGRATE_WITHIN_NODE_GROUP" - When maintenance must be done on a node, the // instances on that node will be moved to other nodes in the group. Instances // with onHostMaintenance = MIGRATE will live migrate to their destinations // while instances with onHostMaintenance = TERMINATE will terminate and then // restart on their destination nodes if automaticRestart = true. // "RESTART_IN_PLACE" - Instances in this group will restart on the same node // when maintenance has completed. Instances must have onHostMaintenance = // TERMINATE, and they will only restart if automaticRestart = true. MaintenancePolicy string `json:"maintenancePolicy,omitempty"` MaintenanceWindow *NodeGroupMaintenanceWindow `json:"maintenanceWindow,omitempty"` // Name: The name of the resource, provided by the client when initially // creating the resource. The resource name must be 1-63 characters long, and // comply with RFC1035. Specifically, the name must be 1-63 characters long and // match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the // first character must be a lowercase letter, and all following characters // must be a dash, lowercase letter, or digit, except the last character, which // cannot be a dash. Name string `json:"name,omitempty"` // NodeTemplate: URL of the node template to create the node group from. NodeTemplate string `json:"nodeTemplate,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` ShareSettings *ShareSettings `json:"shareSettings,omitempty"` // Size: [Output Only] The total number of nodes in the node group. Size int64 `json:"size,omitempty"` // Possible values: // "CREATING" // "DELETING" // "INVALID" // "READY" Status string `json:"status,omitempty"` // Zone: [Output Only] The name of the zone where the node group resides, such // as us-central1-a. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AutoscalingPolicy") 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. "AutoscalingPolicy") 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:"-"` }
NodeGroup: Represents a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes.
func (NodeGroup) MarshalJSON ¶
type NodeGroupAggregatedList ¶
type NodeGroupAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of NodeGroupsScopedList resources. Items map[string]NodeGroupsScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource.Always compute#nodeGroupAggregatedList // for aggregated lists of node groups. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *NodeGroupAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (NodeGroupAggregatedList) MarshalJSON ¶
func (s NodeGroupAggregatedList) MarshalJSON() ([]byte, error)
type NodeGroupAggregatedListWarning ¶
type NodeGroupAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NodeGroupAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NodeGroupAggregatedListWarning: [Output Only] Informational warning message.
func (NodeGroupAggregatedListWarning) MarshalJSON ¶
func (s NodeGroupAggregatedListWarning) MarshalJSON() ([]byte, error)
type NodeGroupAggregatedListWarningData ¶
type NodeGroupAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NodeGroupAggregatedListWarningData) MarshalJSON ¶
func (s NodeGroupAggregatedListWarningData) MarshalJSON() ([]byte, error)
type NodeGroupAutoscalingPolicy ¶ added in v0.21.0
type NodeGroupAutoscalingPolicy struct { // MaxNodes: The maximum number of nodes that the group should have. Must be // set if autoscaling is enabled. Maximum value allowed is 100. MaxNodes int64 `json:"maxNodes,omitempty"` // MinNodes: The minimum number of nodes that the group should have. MinNodes int64 `json:"minNodes,omitempty"` // Mode: The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For // more information, see Autoscaler modes. // // Possible values: // "MODE_UNSPECIFIED" // "OFF" - Autoscaling is disabled. // "ON" - Autocaling is fully enabled. // "ONLY_SCALE_OUT" - Autoscaling will only scale out and will not remove // nodes. Mode string `json:"mode,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxNodes") 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. "MaxNodes") 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:"-"` }
func (NodeGroupAutoscalingPolicy) MarshalJSON ¶ added in v0.21.0
func (s NodeGroupAutoscalingPolicy) MarshalJSON() ([]byte, error)
type NodeGroupList ¶
type NodeGroupList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of NodeGroup resources. Items []*NodeGroup `json:"items,omitempty"` // Kind: [Output Only] Type of resource.Always compute#nodeGroupList for lists // of node groups. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *NodeGroupListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
NodeGroupList: Contains a list of nodeGroups.
func (NodeGroupList) MarshalJSON ¶
func (s NodeGroupList) MarshalJSON() ([]byte, error)
type NodeGroupListWarning ¶
type NodeGroupListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NodeGroupListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NodeGroupListWarning: [Output Only] Informational warning message.
func (NodeGroupListWarning) MarshalJSON ¶
func (s NodeGroupListWarning) MarshalJSON() ([]byte, error)
type NodeGroupListWarningData ¶
type NodeGroupListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NodeGroupListWarningData) MarshalJSON ¶
func (s NodeGroupListWarningData) MarshalJSON() ([]byte, error)
type NodeGroupMaintenanceWindow ¶ added in v0.37.0
type NodeGroupMaintenanceWindow struct { // MaintenanceDuration: [Output only] A predetermined duration for the window, // automatically chosen to be the smallest possible in the given scenario. MaintenanceDuration *Duration `json:"maintenanceDuration,omitempty"` // StartTime: Start time of the window. This must be in UTC format that // resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, // both 13:00-5 and 08:00 are valid. StartTime string `json:"startTime,omitempty"` // ForceSendFields is a list of field names (e.g. "MaintenanceDuration") 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. "MaintenanceDuration") 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:"-"` }
NodeGroupMaintenanceWindow: Time window specified for daily maintenance operations. GCE's internal maintenance will be performed within this window.
func (NodeGroupMaintenanceWindow) MarshalJSON ¶ added in v0.37.0
func (s NodeGroupMaintenanceWindow) MarshalJSON() ([]byte, error)
type NodeGroupNode ¶
type NodeGroupNode struct { // Accelerators: Accelerators for this node. Accelerators []*AcceleratorConfig `json:"accelerators,omitempty"` // ConsumedResources: Node resources that are reserved by all instances. ConsumedResources *InstanceConsumptionInfo `json:"consumedResources,omitempty"` // CpuOvercommitType: CPU overcommit. // // Possible values: // "CPU_OVERCOMMIT_TYPE_UNSPECIFIED" // "ENABLED" // "NONE" CpuOvercommitType string `json:"cpuOvercommitType,omitempty"` // Disks: Local disk configurations. Disks []*LocalDisk `json:"disks,omitempty"` // InstanceConsumptionData: Instance data that shows consumed resources on the // node. InstanceConsumptionData []*InstanceConsumptionData `json:"instanceConsumptionData,omitempty"` // Instances: Instances scheduled on this node. Instances []string `json:"instances,omitempty"` // Name: The name of the node. Name string `json:"name,omitempty"` // NodeType: The type of this node. NodeType string `json:"nodeType,omitempty"` // SatisfiesPzs: [Output Only] Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // ServerBinding: Binding properties for the physical server. ServerBinding *ServerBinding `json:"serverBinding,omitempty"` // ServerId: Server ID associated with this node. ServerId string `json:"serverId,omitempty"` // Possible values: // "CREATING" // "DELETING" // "INVALID" // "READY" // "REPAIRING" Status string `json:"status,omitempty"` // TotalResources: Total amount of available resources on the node. TotalResources *InstanceConsumptionInfo `json:"totalResources,omitempty"` // UpcomingMaintenance: [Output Only] The information about an upcoming // maintenance event. UpcomingMaintenance *UpcomingMaintenance `json:"upcomingMaintenance,omitempty"` // ForceSendFields is a list of field names (e.g. "Accelerators") 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. "Accelerators") 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:"-"` }
func (NodeGroupNode) MarshalJSON ¶
func (s NodeGroupNode) MarshalJSON() ([]byte, error)
type NodeGroupsAddNodesCall ¶
type NodeGroupsAddNodesCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsAddNodesCall) Context ¶
func (c *NodeGroupsAddNodesCall) Context(ctx context.Context) *NodeGroupsAddNodesCall
Context sets the context to be used in this call's Do method.
func (*NodeGroupsAddNodesCall) Do ¶
func (c *NodeGroupsAddNodesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeGroups.addNodes" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsAddNodesCall) Fields ¶
func (c *NodeGroupsAddNodesCall) Fields(s ...googleapi.Field) *NodeGroupsAddNodesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeGroupsAddNodesCall) Header ¶
func (c *NodeGroupsAddNodesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeGroupsAddNodesCall) RequestId ¶
func (c *NodeGroupsAddNodesCall) RequestId(requestId string) *NodeGroupsAddNodesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NodeGroupsAddNodesRequest ¶
type NodeGroupsAddNodesRequest struct { // AdditionalNodeCount: Count of additional nodes to be added to the node // group. AdditionalNodeCount int64 `json:"additionalNodeCount,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalNodeCount") 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. "AdditionalNodeCount") 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:"-"` }
func (NodeGroupsAddNodesRequest) MarshalJSON ¶
func (s NodeGroupsAddNodesRequest) MarshalJSON() ([]byte, error)
type NodeGroupsAggregatedListCall ¶
type NodeGroupsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsAggregatedListCall) Context ¶
func (c *NodeGroupsAggregatedListCall) Context(ctx context.Context) *NodeGroupsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*NodeGroupsAggregatedListCall) Do ¶
func (c *NodeGroupsAggregatedListCall) Do(opts ...googleapi.CallOption) (*NodeGroupAggregatedList, error)
Do executes the "compute.nodeGroups.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *NodeGroupAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsAggregatedListCall) Fields ¶
func (c *NodeGroupsAggregatedListCall) Fields(s ...googleapi.Field) *NodeGroupsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeGroupsAggregatedListCall) Filter ¶
func (c *NodeGroupsAggregatedListCall) Filter(filter string) *NodeGroupsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NodeGroupsAggregatedListCall) Header ¶
func (c *NodeGroupsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeGroupsAggregatedListCall) IfNoneMatch ¶
func (c *NodeGroupsAggregatedListCall) IfNoneMatch(entityTag string) *NodeGroupsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NodeGroupsAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *NodeGroupsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *NodeGroupsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*NodeGroupsAggregatedListCall) MaxResults ¶
func (c *NodeGroupsAggregatedListCall) MaxResults(maxResults int64) *NodeGroupsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NodeGroupsAggregatedListCall) OrderBy ¶
func (c *NodeGroupsAggregatedListCall) OrderBy(orderBy string) *NodeGroupsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NodeGroupsAggregatedListCall) PageToken ¶
func (c *NodeGroupsAggregatedListCall) PageToken(pageToken string) *NodeGroupsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NodeGroupsAggregatedListCall) Pages ¶
func (c *NodeGroupsAggregatedListCall) Pages(ctx context.Context, f func(*NodeGroupAggregatedList) 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 (*NodeGroupsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *NodeGroupsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NodeGroupsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*NodeGroupsAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *NodeGroupsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *NodeGroupsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type NodeGroupsDeleteCall ¶
type NodeGroupsDeleteCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsDeleteCall) Context ¶
func (c *NodeGroupsDeleteCall) Context(ctx context.Context) *NodeGroupsDeleteCall
Context sets the context to be used in this call's Do method.
func (*NodeGroupsDeleteCall) Do ¶
func (c *NodeGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeGroups.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsDeleteCall) Fields ¶
func (c *NodeGroupsDeleteCall) Fields(s ...googleapi.Field) *NodeGroupsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeGroupsDeleteCall) Header ¶
func (c *NodeGroupsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeGroupsDeleteCall) RequestId ¶
func (c *NodeGroupsDeleteCall) RequestId(requestId string) *NodeGroupsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NodeGroupsDeleteNodesCall ¶
type NodeGroupsDeleteNodesCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsDeleteNodesCall) Context ¶
func (c *NodeGroupsDeleteNodesCall) Context(ctx context.Context) *NodeGroupsDeleteNodesCall
Context sets the context to be used in this call's Do method.
func (*NodeGroupsDeleteNodesCall) Do ¶
func (c *NodeGroupsDeleteNodesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeGroups.deleteNodes" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsDeleteNodesCall) Fields ¶
func (c *NodeGroupsDeleteNodesCall) Fields(s ...googleapi.Field) *NodeGroupsDeleteNodesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeGroupsDeleteNodesCall) Header ¶
func (c *NodeGroupsDeleteNodesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeGroupsDeleteNodesCall) RequestId ¶
func (c *NodeGroupsDeleteNodesCall) RequestId(requestId string) *NodeGroupsDeleteNodesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NodeGroupsDeleteNodesRequest ¶
type NodeGroupsDeleteNodesRequest struct { // Nodes: Names of the nodes to delete. Nodes []string `json:"nodes,omitempty"` // ForceSendFields is a list of field names (e.g. "Nodes") 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. "Nodes") 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:"-"` }
func (NodeGroupsDeleteNodesRequest) MarshalJSON ¶
func (s NodeGroupsDeleteNodesRequest) MarshalJSON() ([]byte, error)
type NodeGroupsGetCall ¶
type NodeGroupsGetCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsGetCall) Context ¶
func (c *NodeGroupsGetCall) Context(ctx context.Context) *NodeGroupsGetCall
Context sets the context to be used in this call's Do method.
func (*NodeGroupsGetCall) Do ¶
func (c *NodeGroupsGetCall) Do(opts ...googleapi.CallOption) (*NodeGroup, error)
Do executes the "compute.nodeGroups.get" call. Any non-2xx status code is an error. Response headers are in either *NodeGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsGetCall) Fields ¶
func (c *NodeGroupsGetCall) Fields(s ...googleapi.Field) *NodeGroupsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeGroupsGetCall) Header ¶
func (c *NodeGroupsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeGroupsGetCall) IfNoneMatch ¶
func (c *NodeGroupsGetCall) IfNoneMatch(entityTag string) *NodeGroupsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type NodeGroupsGetIamPolicyCall ¶
type NodeGroupsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsGetIamPolicyCall) Context ¶
func (c *NodeGroupsGetIamPolicyCall) Context(ctx context.Context) *NodeGroupsGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*NodeGroupsGetIamPolicyCall) Do ¶
func (c *NodeGroupsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.nodeGroups.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsGetIamPolicyCall) Fields ¶
func (c *NodeGroupsGetIamPolicyCall) Fields(s ...googleapi.Field) *NodeGroupsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeGroupsGetIamPolicyCall) Header ¶
func (c *NodeGroupsGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeGroupsGetIamPolicyCall) IfNoneMatch ¶
func (c *NodeGroupsGetIamPolicyCall) IfNoneMatch(entityTag string) *NodeGroupsGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NodeGroupsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.30.0
func (c *NodeGroupsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *NodeGroupsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type NodeGroupsInsertCall ¶
type NodeGroupsInsertCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsInsertCall) Context ¶
func (c *NodeGroupsInsertCall) Context(ctx context.Context) *NodeGroupsInsertCall
Context sets the context to be used in this call's Do method.
func (*NodeGroupsInsertCall) Do ¶
func (c *NodeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeGroups.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsInsertCall) Fields ¶
func (c *NodeGroupsInsertCall) Fields(s ...googleapi.Field) *NodeGroupsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeGroupsInsertCall) Header ¶
func (c *NodeGroupsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeGroupsInsertCall) RequestId ¶
func (c *NodeGroupsInsertCall) RequestId(requestId string) *NodeGroupsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NodeGroupsListCall ¶
type NodeGroupsListCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsListCall) Context ¶
func (c *NodeGroupsListCall) Context(ctx context.Context) *NodeGroupsListCall
Context sets the context to be used in this call's Do method.
func (*NodeGroupsListCall) Do ¶
func (c *NodeGroupsListCall) Do(opts ...googleapi.CallOption) (*NodeGroupList, error)
Do executes the "compute.nodeGroups.list" call. Any non-2xx status code is an error. Response headers are in either *NodeGroupList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsListCall) Fields ¶
func (c *NodeGroupsListCall) Fields(s ...googleapi.Field) *NodeGroupsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeGroupsListCall) Filter ¶
func (c *NodeGroupsListCall) Filter(filter string) *NodeGroupsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NodeGroupsListCall) Header ¶
func (c *NodeGroupsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeGroupsListCall) IfNoneMatch ¶
func (c *NodeGroupsListCall) IfNoneMatch(entityTag string) *NodeGroupsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NodeGroupsListCall) MaxResults ¶
func (c *NodeGroupsListCall) MaxResults(maxResults int64) *NodeGroupsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NodeGroupsListCall) OrderBy ¶
func (c *NodeGroupsListCall) OrderBy(orderBy string) *NodeGroupsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NodeGroupsListCall) PageToken ¶
func (c *NodeGroupsListCall) PageToken(pageToken string) *NodeGroupsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NodeGroupsListCall) Pages ¶
func (c *NodeGroupsListCall) Pages(ctx context.Context, f func(*NodeGroupList) 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 (*NodeGroupsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *NodeGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NodeGroupsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type NodeGroupsListNodes ¶
type NodeGroupsListNodes struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Node resources. Items []*NodeGroupNode `json:"items,omitempty"` // Kind: [Output Only] The resource type, which is always // compute.nodeGroupsListNodes for the list of nodes in the specified node // group. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *NodeGroupsListNodesWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (NodeGroupsListNodes) MarshalJSON ¶
func (s NodeGroupsListNodes) MarshalJSON() ([]byte, error)
type NodeGroupsListNodesCall ¶
type NodeGroupsListNodesCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsListNodesCall) Context ¶
func (c *NodeGroupsListNodesCall) Context(ctx context.Context) *NodeGroupsListNodesCall
Context sets the context to be used in this call's Do method.
func (*NodeGroupsListNodesCall) Do ¶
func (c *NodeGroupsListNodesCall) Do(opts ...googleapi.CallOption) (*NodeGroupsListNodes, error)
Do executes the "compute.nodeGroups.listNodes" call. Any non-2xx status code is an error. Response headers are in either *NodeGroupsListNodes.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsListNodesCall) Fields ¶
func (c *NodeGroupsListNodesCall) Fields(s ...googleapi.Field) *NodeGroupsListNodesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeGroupsListNodesCall) Filter ¶
func (c *NodeGroupsListNodesCall) Filter(filter string) *NodeGroupsListNodesCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NodeGroupsListNodesCall) Header ¶
func (c *NodeGroupsListNodesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeGroupsListNodesCall) MaxResults ¶
func (c *NodeGroupsListNodesCall) MaxResults(maxResults int64) *NodeGroupsListNodesCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NodeGroupsListNodesCall) OrderBy ¶
func (c *NodeGroupsListNodesCall) OrderBy(orderBy string) *NodeGroupsListNodesCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NodeGroupsListNodesCall) PageToken ¶
func (c *NodeGroupsListNodesCall) PageToken(pageToken string) *NodeGroupsListNodesCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NodeGroupsListNodesCall) Pages ¶
func (c *NodeGroupsListNodesCall) Pages(ctx context.Context, f func(*NodeGroupsListNodes) 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 (*NodeGroupsListNodesCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *NodeGroupsListNodesCall) ReturnPartialSuccess(returnPartialSuccess bool) *NodeGroupsListNodesCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type NodeGroupsListNodesWarning ¶
type NodeGroupsListNodesWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NodeGroupsListNodesWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NodeGroupsListNodesWarning: [Output Only] Informational warning message.
func (NodeGroupsListNodesWarning) MarshalJSON ¶
func (s NodeGroupsListNodesWarning) MarshalJSON() ([]byte, error)
type NodeGroupsListNodesWarningData ¶
type NodeGroupsListNodesWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NodeGroupsListNodesWarningData) MarshalJSON ¶
func (s NodeGroupsListNodesWarningData) MarshalJSON() ([]byte, error)
type NodeGroupsPatchCall ¶ added in v0.21.0
type NodeGroupsPatchCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsPatchCall) Context ¶ added in v0.21.0
func (c *NodeGroupsPatchCall) Context(ctx context.Context) *NodeGroupsPatchCall
Context sets the context to be used in this call's Do method.
func (*NodeGroupsPatchCall) Do ¶ added in v0.21.0
func (c *NodeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeGroups.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsPatchCall) Fields ¶ added in v0.21.0
func (c *NodeGroupsPatchCall) Fields(s ...googleapi.Field) *NodeGroupsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeGroupsPatchCall) Header ¶ added in v0.21.0
func (c *NodeGroupsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeGroupsPatchCall) RequestId ¶ added in v0.21.0
func (c *NodeGroupsPatchCall) RequestId(requestId string) *NodeGroupsPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NodeGroupsPerformMaintenanceCall ¶ added in v0.177.0
type NodeGroupsPerformMaintenanceCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsPerformMaintenanceCall) Context ¶ added in v0.177.0
func (c *NodeGroupsPerformMaintenanceCall) Context(ctx context.Context) *NodeGroupsPerformMaintenanceCall
Context sets the context to be used in this call's Do method.
func (*NodeGroupsPerformMaintenanceCall) Do ¶ added in v0.177.0
func (c *NodeGroupsPerformMaintenanceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeGroups.performMaintenance" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsPerformMaintenanceCall) Fields ¶ added in v0.177.0
func (c *NodeGroupsPerformMaintenanceCall) Fields(s ...googleapi.Field) *NodeGroupsPerformMaintenanceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeGroupsPerformMaintenanceCall) Header ¶ added in v0.177.0
func (c *NodeGroupsPerformMaintenanceCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeGroupsPerformMaintenanceCall) RequestId ¶ added in v0.177.0
func (c *NodeGroupsPerformMaintenanceCall) RequestId(requestId string) *NodeGroupsPerformMaintenanceCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NodeGroupsPerformMaintenanceRequest ¶ added in v0.177.0
type NodeGroupsPerformMaintenanceRequest struct { // Nodes: [Required] List of nodes affected by the call. Nodes []string `json:"nodes,omitempty"` // StartTime: The start time of the schedule. The timestamp is an RFC3339 // string. StartTime string `json:"startTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Nodes") 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. "Nodes") 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:"-"` }
func (NodeGroupsPerformMaintenanceRequest) MarshalJSON ¶ added in v0.177.0
func (s NodeGroupsPerformMaintenanceRequest) MarshalJSON() ([]byte, error)
type NodeGroupsScopedList ¶
type NodeGroupsScopedList struct { // NodeGroups: [Output Only] A list of node groups contained in this scope. NodeGroups []*NodeGroup `json:"nodeGroups,omitempty"` // Warning: [Output Only] An informational warning that appears when the // nodeGroup list is empty. Warning *NodeGroupsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "NodeGroups") 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. "NodeGroups") 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:"-"` }
func (NodeGroupsScopedList) MarshalJSON ¶
func (s NodeGroupsScopedList) MarshalJSON() ([]byte, error)
type NodeGroupsScopedListWarning ¶
type NodeGroupsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NodeGroupsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NodeGroupsScopedListWarning: [Output Only] An informational warning that appears when the nodeGroup list is empty.
func (NodeGroupsScopedListWarning) MarshalJSON ¶
func (s NodeGroupsScopedListWarning) MarshalJSON() ([]byte, error)
type NodeGroupsScopedListWarningData ¶
type NodeGroupsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NodeGroupsScopedListWarningData) MarshalJSON ¶
func (s NodeGroupsScopedListWarningData) MarshalJSON() ([]byte, error)
type NodeGroupsService ¶
type NodeGroupsService struct {
// contains filtered or unexported fields
}
func NewNodeGroupsService ¶
func NewNodeGroupsService(s *Service) *NodeGroupsService
func (*NodeGroupsService) AddNodes ¶
func (r *NodeGroupsService) AddNodes(project string, zone string, nodeGroup string, nodegroupsaddnodesrequest *NodeGroupsAddNodesRequest) *NodeGroupsAddNodesCall
AddNodes: Adds specified number of nodes to the node group.
- nodeGroup: Name of the NodeGroup resource. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*NodeGroupsService) AggregatedList ¶
func (r *NodeGroupsService) AggregatedList(project string) *NodeGroupsAggregatedListCall
AggregatedList: Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*NodeGroupsService) Delete ¶
func (r *NodeGroupsService) Delete(project string, zone string, nodeGroup string) *NodeGroupsDeleteCall
Delete: Deletes the specified NodeGroup resource.
- nodeGroup: Name of the NodeGroup resource to delete. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*NodeGroupsService) DeleteNodes ¶
func (r *NodeGroupsService) DeleteNodes(project string, zone string, nodeGroup string, nodegroupsdeletenodesrequest *NodeGroupsDeleteNodesRequest) *NodeGroupsDeleteNodesCall
DeleteNodes: Deletes specified nodes from the node group.
- nodeGroup: Name of the NodeGroup resource whose nodes will be deleted. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*NodeGroupsService) Get ¶
func (r *NodeGroupsService) Get(project string, zone string, nodeGroup string) *NodeGroupsGetCall
Get: Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead.
- nodeGroup: Name of the node group to return. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*NodeGroupsService) GetIamPolicy ¶
func (r *NodeGroupsService) GetIamPolicy(project string, zone string, resource string) *NodeGroupsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*NodeGroupsService) Insert ¶
func (r *NodeGroupsService) Insert(project string, zone string, initialNodeCount int64, nodegroup *NodeGroup) *NodeGroupsInsertCall
Insert: Creates a NodeGroup resource in the specified project using the data included in the request.
- initialNodeCount: Initial count of nodes in the node group. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*NodeGroupsService) List ¶
func (r *NodeGroupsService) List(project string, zone string) *NodeGroupsListCall
List: Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.
- project: Project ID for this request. - zone: The name of the zone for this request.
func (*NodeGroupsService) ListNodes ¶
func (r *NodeGroupsService) ListNodes(project string, zone string, nodeGroup string) *NodeGroupsListNodesCall
ListNodes: Lists nodes in the node group.
- nodeGroup: Name of the NodeGroup resource whose nodes you want to list. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*NodeGroupsService) Patch ¶ added in v0.21.0
func (r *NodeGroupsService) Patch(project string, zone string, nodeGroup string, nodegroup *NodeGroup) *NodeGroupsPatchCall
Patch: Updates the specified node group.
- nodeGroup: Name of the NodeGroup resource to update. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*NodeGroupsService) PerformMaintenance ¶ added in v0.177.0
func (r *NodeGroupsService) PerformMaintenance(project string, zone string, nodeGroup string, nodegroupsperformmaintenancerequest *NodeGroupsPerformMaintenanceRequest) *NodeGroupsPerformMaintenanceCall
PerformMaintenance: Perform maintenance on a subset of nodes in the node group.
- nodeGroup: Name of the node group scoping this request. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*NodeGroupsService) SetIamPolicy ¶
func (r *NodeGroupsService) SetIamPolicy(project string, zone string, resource string, zonesetpolicyrequest *ZoneSetPolicyRequest) *NodeGroupsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*NodeGroupsService) SetNodeTemplate ¶
func (r *NodeGroupsService) SetNodeTemplate(project string, zone string, nodeGroup string, nodegroupssetnodetemplaterequest *NodeGroupsSetNodeTemplateRequest) *NodeGroupsSetNodeTemplateCall
SetNodeTemplate: Updates the node template of the node group.
- nodeGroup: Name of the NodeGroup resource to update. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*NodeGroupsService) SimulateMaintenanceEvent ¶ added in v0.115.0
func (r *NodeGroupsService) SimulateMaintenanceEvent(project string, zone string, nodeGroup string, nodegroupssimulatemaintenanceeventrequest *NodeGroupsSimulateMaintenanceEventRequest) *NodeGroupsSimulateMaintenanceEventCall
SimulateMaintenanceEvent: Simulates maintenance event on specified nodes from the node group.
- nodeGroup: Name of the NodeGroup resource whose nodes will go under maintenance simulation.
- project: Project ID for this request.
- zone: The name of the zone for this request.
func (*NodeGroupsService) TestIamPermissions ¶
func (r *NodeGroupsService) TestIamPermissions(project string, zone string, resource string, testpermissionsrequest *TestPermissionsRequest) *NodeGroupsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
type NodeGroupsSetIamPolicyCall ¶
type NodeGroupsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsSetIamPolicyCall) Context ¶
func (c *NodeGroupsSetIamPolicyCall) Context(ctx context.Context) *NodeGroupsSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*NodeGroupsSetIamPolicyCall) Do ¶
func (c *NodeGroupsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.nodeGroups.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsSetIamPolicyCall) Fields ¶
func (c *NodeGroupsSetIamPolicyCall) Fields(s ...googleapi.Field) *NodeGroupsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeGroupsSetIamPolicyCall) Header ¶
func (c *NodeGroupsSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type NodeGroupsSetNodeTemplateCall ¶
type NodeGroupsSetNodeTemplateCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsSetNodeTemplateCall) Context ¶
func (c *NodeGroupsSetNodeTemplateCall) Context(ctx context.Context) *NodeGroupsSetNodeTemplateCall
Context sets the context to be used in this call's Do method.
func (*NodeGroupsSetNodeTemplateCall) Do ¶
func (c *NodeGroupsSetNodeTemplateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeGroups.setNodeTemplate" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsSetNodeTemplateCall) Fields ¶
func (c *NodeGroupsSetNodeTemplateCall) Fields(s ...googleapi.Field) *NodeGroupsSetNodeTemplateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeGroupsSetNodeTemplateCall) Header ¶
func (c *NodeGroupsSetNodeTemplateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeGroupsSetNodeTemplateCall) RequestId ¶
func (c *NodeGroupsSetNodeTemplateCall) RequestId(requestId string) *NodeGroupsSetNodeTemplateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NodeGroupsSetNodeTemplateRequest ¶
type NodeGroupsSetNodeTemplateRequest struct { // NodeTemplate: Full or partial URL of the node template resource to be // updated for this node group. NodeTemplate string `json:"nodeTemplate,omitempty"` // ForceSendFields is a list of field names (e.g. "NodeTemplate") 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. "NodeTemplate") 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:"-"` }
func (NodeGroupsSetNodeTemplateRequest) MarshalJSON ¶
func (s NodeGroupsSetNodeTemplateRequest) MarshalJSON() ([]byte, error)
type NodeGroupsSimulateMaintenanceEventCall ¶ added in v0.115.0
type NodeGroupsSimulateMaintenanceEventCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsSimulateMaintenanceEventCall) Context ¶ added in v0.115.0
func (c *NodeGroupsSimulateMaintenanceEventCall) Context(ctx context.Context) *NodeGroupsSimulateMaintenanceEventCall
Context sets the context to be used in this call's Do method.
func (*NodeGroupsSimulateMaintenanceEventCall) Do ¶ added in v0.115.0
func (c *NodeGroupsSimulateMaintenanceEventCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeGroups.simulateMaintenanceEvent" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsSimulateMaintenanceEventCall) Fields ¶ added in v0.115.0
func (c *NodeGroupsSimulateMaintenanceEventCall) Fields(s ...googleapi.Field) *NodeGroupsSimulateMaintenanceEventCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeGroupsSimulateMaintenanceEventCall) Header ¶ added in v0.115.0
func (c *NodeGroupsSimulateMaintenanceEventCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeGroupsSimulateMaintenanceEventCall) RequestId ¶ added in v0.115.0
func (c *NodeGroupsSimulateMaintenanceEventCall) RequestId(requestId string) *NodeGroupsSimulateMaintenanceEventCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NodeGroupsSimulateMaintenanceEventRequest ¶ added in v0.115.0
type NodeGroupsSimulateMaintenanceEventRequest struct { // Nodes: Names of the nodes to go under maintenance simulation. Nodes []string `json:"nodes,omitempty"` // ForceSendFields is a list of field names (e.g. "Nodes") 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. "Nodes") 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:"-"` }
func (NodeGroupsSimulateMaintenanceEventRequest) MarshalJSON ¶ added in v0.115.0
func (s NodeGroupsSimulateMaintenanceEventRequest) MarshalJSON() ([]byte, error)
type NodeGroupsTestIamPermissionsCall ¶
type NodeGroupsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsTestIamPermissionsCall) Context ¶
func (c *NodeGroupsTestIamPermissionsCall) Context(ctx context.Context) *NodeGroupsTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*NodeGroupsTestIamPermissionsCall) Do ¶
func (c *NodeGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.nodeGroups.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsTestIamPermissionsCall) Fields ¶
func (c *NodeGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *NodeGroupsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeGroupsTestIamPermissionsCall) Header ¶
func (c *NodeGroupsTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type NodeTemplate ¶
type NodeTemplate struct { Accelerators []*AcceleratorConfig `json:"accelerators,omitempty"` // CpuOvercommitType: CPU overcommit. // // Possible values: // "CPU_OVERCOMMIT_TYPE_UNSPECIFIED" // "ENABLED" // "NONE" CpuOvercommitType string `json:"cpuOvercommitType,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` Disks []*LocalDisk `json:"disks,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] The type of the resource. Always compute#nodeTemplate // for node templates. Kind string `json:"kind,omitempty"` // Name: The name of the resource, provided by the client when initially // creating the resource. The resource name must be 1-63 characters long, and // comply with RFC1035. Specifically, the name must be 1-63 characters long and // match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the // first character must be a lowercase letter, and all following characters // must be a dash, lowercase letter, or digit, except the last character, which // cannot be a dash. Name string `json:"name,omitempty"` // NodeAffinityLabels: Labels to use for node affinity, which will be used in // instance scheduling. NodeAffinityLabels map[string]string `json:"nodeAffinityLabels,omitempty"` // NodeType: The node type to use for nodes group that are created from this // template. NodeType string `json:"nodeType,omitempty"` // NodeTypeFlexibility: Do not use. Instead, use the node_type property. NodeTypeFlexibility *NodeTemplateNodeTypeFlexibility `json:"nodeTypeFlexibility,omitempty"` // Region: [Output Only] The name of the region where the node template // resides, such as us-central1. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ServerBinding: Sets the binding properties for the physical server. Valid // values include: - *[Default]* RESTART_NODE_ON_ANY_SERVER: Restarts VMs on // any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs // on the same physical server whenever possible See Sole-tenant node options // for more information. ServerBinding *ServerBinding `json:"serverBinding,omitempty"` // Status: [Output Only] The status of the node template. One of the following // values: CREATING, READY, and DELETING. // // Possible values: // "CREATING" - Resources are being allocated. // "DELETING" - The node template is currently being deleted. // "INVALID" - Invalid status. // "READY" - The node template is ready. Status string `json:"status,omitempty"` // StatusMessage: [Output Only] An optional, human-readable explanation of the // status. StatusMessage string `json:"statusMessage,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Accelerators") 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. "Accelerators") 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:"-"` }
NodeTemplate: Represent a sole-tenant Node Template resource. You can use a template to define properties for nodes in a node group. For more information, read Creating node groups and instances.
func (NodeTemplate) MarshalJSON ¶
func (s NodeTemplate) MarshalJSON() ([]byte, error)
type NodeTemplateAggregatedList ¶
type NodeTemplateAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of NodeTemplatesScopedList resources. Items map[string]NodeTemplatesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource.Always // compute#nodeTemplateAggregatedList for aggregated lists of node templates. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *NodeTemplateAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (NodeTemplateAggregatedList) MarshalJSON ¶
func (s NodeTemplateAggregatedList) MarshalJSON() ([]byte, error)
type NodeTemplateAggregatedListWarning ¶
type NodeTemplateAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NodeTemplateAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NodeTemplateAggregatedListWarning: [Output Only] Informational warning message.
func (NodeTemplateAggregatedListWarning) MarshalJSON ¶
func (s NodeTemplateAggregatedListWarning) MarshalJSON() ([]byte, error)
type NodeTemplateAggregatedListWarningData ¶
type NodeTemplateAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NodeTemplateAggregatedListWarningData) MarshalJSON ¶
func (s NodeTemplateAggregatedListWarningData) MarshalJSON() ([]byte, error)
type NodeTemplateList ¶
type NodeTemplateList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of NodeTemplate resources. Items []*NodeTemplate `json:"items,omitempty"` // Kind: [Output Only] Type of resource.Always compute#nodeTemplateList for // lists of node templates. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *NodeTemplateListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
NodeTemplateList: Contains a list of node templates.
func (NodeTemplateList) MarshalJSON ¶
func (s NodeTemplateList) MarshalJSON() ([]byte, error)
type NodeTemplateListWarning ¶
type NodeTemplateListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NodeTemplateListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NodeTemplateListWarning: [Output Only] Informational warning message.
func (NodeTemplateListWarning) MarshalJSON ¶
func (s NodeTemplateListWarning) MarshalJSON() ([]byte, error)
type NodeTemplateListWarningData ¶
type NodeTemplateListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NodeTemplateListWarningData) MarshalJSON ¶
func (s NodeTemplateListWarningData) MarshalJSON() ([]byte, error)
type NodeTemplateNodeTypeFlexibility ¶
type NodeTemplateNodeTypeFlexibility struct { Cpus string `json:"cpus,omitempty"` LocalSsd string `json:"localSsd,omitempty"` Memory string `json:"memory,omitempty"` // ForceSendFields is a list of field names (e.g. "Cpus") 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. "Cpus") 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:"-"` }
func (NodeTemplateNodeTypeFlexibility) MarshalJSON ¶
func (s NodeTemplateNodeTypeFlexibility) MarshalJSON() ([]byte, error)
type NodeTemplatesAggregatedListCall ¶
type NodeTemplatesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*NodeTemplatesAggregatedListCall) Context ¶
func (c *NodeTemplatesAggregatedListCall) Context(ctx context.Context) *NodeTemplatesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*NodeTemplatesAggregatedListCall) Do ¶
func (c *NodeTemplatesAggregatedListCall) Do(opts ...googleapi.CallOption) (*NodeTemplateAggregatedList, error)
Do executes the "compute.nodeTemplates.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *NodeTemplateAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeTemplatesAggregatedListCall) Fields ¶
func (c *NodeTemplatesAggregatedListCall) Fields(s ...googleapi.Field) *NodeTemplatesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeTemplatesAggregatedListCall) Filter ¶
func (c *NodeTemplatesAggregatedListCall) Filter(filter string) *NodeTemplatesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NodeTemplatesAggregatedListCall) Header ¶
func (c *NodeTemplatesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeTemplatesAggregatedListCall) IfNoneMatch ¶
func (c *NodeTemplatesAggregatedListCall) IfNoneMatch(entityTag string) *NodeTemplatesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NodeTemplatesAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *NodeTemplatesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *NodeTemplatesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*NodeTemplatesAggregatedListCall) MaxResults ¶
func (c *NodeTemplatesAggregatedListCall) MaxResults(maxResults int64) *NodeTemplatesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NodeTemplatesAggregatedListCall) OrderBy ¶
func (c *NodeTemplatesAggregatedListCall) OrderBy(orderBy string) *NodeTemplatesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NodeTemplatesAggregatedListCall) PageToken ¶
func (c *NodeTemplatesAggregatedListCall) PageToken(pageToken string) *NodeTemplatesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NodeTemplatesAggregatedListCall) Pages ¶
func (c *NodeTemplatesAggregatedListCall) Pages(ctx context.Context, f func(*NodeTemplateAggregatedList) 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 (*NodeTemplatesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *NodeTemplatesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NodeTemplatesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*NodeTemplatesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *NodeTemplatesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *NodeTemplatesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type NodeTemplatesDeleteCall ¶
type NodeTemplatesDeleteCall struct {
// contains filtered or unexported fields
}
func (*NodeTemplatesDeleteCall) Context ¶
func (c *NodeTemplatesDeleteCall) Context(ctx context.Context) *NodeTemplatesDeleteCall
Context sets the context to be used in this call's Do method.
func (*NodeTemplatesDeleteCall) Do ¶
func (c *NodeTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeTemplates.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeTemplatesDeleteCall) Fields ¶
func (c *NodeTemplatesDeleteCall) Fields(s ...googleapi.Field) *NodeTemplatesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeTemplatesDeleteCall) Header ¶
func (c *NodeTemplatesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeTemplatesDeleteCall) RequestId ¶
func (c *NodeTemplatesDeleteCall) RequestId(requestId string) *NodeTemplatesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NodeTemplatesGetCall ¶
type NodeTemplatesGetCall struct {
// contains filtered or unexported fields
}
func (*NodeTemplatesGetCall) Context ¶
func (c *NodeTemplatesGetCall) Context(ctx context.Context) *NodeTemplatesGetCall
Context sets the context to be used in this call's Do method.
func (*NodeTemplatesGetCall) Do ¶
func (c *NodeTemplatesGetCall) Do(opts ...googleapi.CallOption) (*NodeTemplate, error)
Do executes the "compute.nodeTemplates.get" call. Any non-2xx status code is an error. Response headers are in either *NodeTemplate.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeTemplatesGetCall) Fields ¶
func (c *NodeTemplatesGetCall) Fields(s ...googleapi.Field) *NodeTemplatesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeTemplatesGetCall) Header ¶
func (c *NodeTemplatesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeTemplatesGetCall) IfNoneMatch ¶
func (c *NodeTemplatesGetCall) IfNoneMatch(entityTag string) *NodeTemplatesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type NodeTemplatesGetIamPolicyCall ¶
type NodeTemplatesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*NodeTemplatesGetIamPolicyCall) Context ¶
func (c *NodeTemplatesGetIamPolicyCall) Context(ctx context.Context) *NodeTemplatesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*NodeTemplatesGetIamPolicyCall) Do ¶
func (c *NodeTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.nodeTemplates.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeTemplatesGetIamPolicyCall) Fields ¶
func (c *NodeTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *NodeTemplatesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeTemplatesGetIamPolicyCall) Header ¶
func (c *NodeTemplatesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeTemplatesGetIamPolicyCall) IfNoneMatch ¶
func (c *NodeTemplatesGetIamPolicyCall) IfNoneMatch(entityTag string) *NodeTemplatesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NodeTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.30.0
func (c *NodeTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *NodeTemplatesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type NodeTemplatesInsertCall ¶
type NodeTemplatesInsertCall struct {
// contains filtered or unexported fields
}
func (*NodeTemplatesInsertCall) Context ¶
func (c *NodeTemplatesInsertCall) Context(ctx context.Context) *NodeTemplatesInsertCall
Context sets the context to be used in this call's Do method.
func (*NodeTemplatesInsertCall) Do ¶
func (c *NodeTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeTemplates.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeTemplatesInsertCall) Fields ¶
func (c *NodeTemplatesInsertCall) Fields(s ...googleapi.Field) *NodeTemplatesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeTemplatesInsertCall) Header ¶
func (c *NodeTemplatesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeTemplatesInsertCall) RequestId ¶
func (c *NodeTemplatesInsertCall) RequestId(requestId string) *NodeTemplatesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type NodeTemplatesListCall ¶
type NodeTemplatesListCall struct {
// contains filtered or unexported fields
}
func (*NodeTemplatesListCall) Context ¶
func (c *NodeTemplatesListCall) Context(ctx context.Context) *NodeTemplatesListCall
Context sets the context to be used in this call's Do method.
func (*NodeTemplatesListCall) Do ¶
func (c *NodeTemplatesListCall) Do(opts ...googleapi.CallOption) (*NodeTemplateList, error)
Do executes the "compute.nodeTemplates.list" call. Any non-2xx status code is an error. Response headers are in either *NodeTemplateList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeTemplatesListCall) Fields ¶
func (c *NodeTemplatesListCall) Fields(s ...googleapi.Field) *NodeTemplatesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeTemplatesListCall) Filter ¶
func (c *NodeTemplatesListCall) Filter(filter string) *NodeTemplatesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NodeTemplatesListCall) Header ¶
func (c *NodeTemplatesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeTemplatesListCall) IfNoneMatch ¶
func (c *NodeTemplatesListCall) IfNoneMatch(entityTag string) *NodeTemplatesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NodeTemplatesListCall) MaxResults ¶
func (c *NodeTemplatesListCall) MaxResults(maxResults int64) *NodeTemplatesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NodeTemplatesListCall) OrderBy ¶
func (c *NodeTemplatesListCall) OrderBy(orderBy string) *NodeTemplatesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NodeTemplatesListCall) PageToken ¶
func (c *NodeTemplatesListCall) PageToken(pageToken string) *NodeTemplatesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NodeTemplatesListCall) Pages ¶
func (c *NodeTemplatesListCall) Pages(ctx context.Context, f func(*NodeTemplateList) 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 (*NodeTemplatesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *NodeTemplatesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NodeTemplatesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type NodeTemplatesScopedList ¶
type NodeTemplatesScopedList struct { // NodeTemplates: [Output Only] A list of node templates contained in this // scope. NodeTemplates []*NodeTemplate `json:"nodeTemplates,omitempty"` // Warning: [Output Only] An informational warning that appears when the node // templates list is empty. Warning *NodeTemplatesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "NodeTemplates") 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. "NodeTemplates") 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:"-"` }
func (NodeTemplatesScopedList) MarshalJSON ¶
func (s NodeTemplatesScopedList) MarshalJSON() ([]byte, error)
type NodeTemplatesScopedListWarning ¶
type NodeTemplatesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NodeTemplatesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NodeTemplatesScopedListWarning: [Output Only] An informational warning that appears when the node templates list is empty.
func (NodeTemplatesScopedListWarning) MarshalJSON ¶
func (s NodeTemplatesScopedListWarning) MarshalJSON() ([]byte, error)
type NodeTemplatesScopedListWarningData ¶
type NodeTemplatesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NodeTemplatesScopedListWarningData) MarshalJSON ¶
func (s NodeTemplatesScopedListWarningData) MarshalJSON() ([]byte, error)
type NodeTemplatesService ¶
type NodeTemplatesService struct {
// contains filtered or unexported fields
}
func NewNodeTemplatesService ¶
func NewNodeTemplatesService(s *Service) *NodeTemplatesService
func (*NodeTemplatesService) AggregatedList ¶
func (r *NodeTemplatesService) AggregatedList(project string) *NodeTemplatesAggregatedListCall
AggregatedList: Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*NodeTemplatesService) Delete ¶
func (r *NodeTemplatesService) Delete(project string, region string, nodeTemplate string) *NodeTemplatesDeleteCall
Delete: Deletes the specified NodeTemplate resource.
- nodeTemplate: Name of the NodeTemplate resource to delete. - project: Project ID for this request. - region: The name of the region for this request.
func (*NodeTemplatesService) Get ¶
func (r *NodeTemplatesService) Get(project string, region string, nodeTemplate string) *NodeTemplatesGetCall
Get: Returns the specified node template.
- nodeTemplate: Name of the node template to return. - project: Project ID for this request. - region: The name of the region for this request.
func (*NodeTemplatesService) GetIamPolicy ¶
func (r *NodeTemplatesService) GetIamPolicy(project string, region string, resource string) *NodeTemplatesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*NodeTemplatesService) Insert ¶
func (r *NodeTemplatesService) Insert(project string, region string, nodetemplate *NodeTemplate) *NodeTemplatesInsertCall
Insert: Creates a NodeTemplate resource in the specified project using the data included in the request.
- project: Project ID for this request. - region: The name of the region for this request.
func (*NodeTemplatesService) List ¶
func (r *NodeTemplatesService) List(project string, region string) *NodeTemplatesListCall
List: Retrieves a list of node templates available to the specified project.
- project: Project ID for this request. - region: The name of the region for this request.
func (*NodeTemplatesService) SetIamPolicy ¶
func (r *NodeTemplatesService) SetIamPolicy(project string, region string, resource string, regionsetpolicyrequest *RegionSetPolicyRequest) *NodeTemplatesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*NodeTemplatesService) TestIamPermissions ¶
func (r *NodeTemplatesService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *NodeTemplatesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
type NodeTemplatesSetIamPolicyCall ¶
type NodeTemplatesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*NodeTemplatesSetIamPolicyCall) Context ¶
func (c *NodeTemplatesSetIamPolicyCall) Context(ctx context.Context) *NodeTemplatesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*NodeTemplatesSetIamPolicyCall) Do ¶
func (c *NodeTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.nodeTemplates.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeTemplatesSetIamPolicyCall) Fields ¶
func (c *NodeTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *NodeTemplatesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeTemplatesSetIamPolicyCall) Header ¶
func (c *NodeTemplatesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type NodeTemplatesTestIamPermissionsCall ¶
type NodeTemplatesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*NodeTemplatesTestIamPermissionsCall) Context ¶
func (c *NodeTemplatesTestIamPermissionsCall) Context(ctx context.Context) *NodeTemplatesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*NodeTemplatesTestIamPermissionsCall) Do ¶
func (c *NodeTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.nodeTemplates.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeTemplatesTestIamPermissionsCall) Fields ¶
func (c *NodeTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *NodeTemplatesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeTemplatesTestIamPermissionsCall) Header ¶
func (c *NodeTemplatesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type NodeType ¶
type NodeType struct { // CpuPlatform: [Output Only] The CPU platform used by this node type. CpuPlatform string `json:"cpuPlatform,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Deprecated -- [Output Only] The deprecation status associated with this node // type. Deprecated *DeprecationStatus `json:"deprecated,omitempty"` // Description: [Output Only] An optional textual description of the resource. Description string `json:"description,omitempty"` // GuestCpus: [Output Only] The number of virtual CPUs that are available to // the node type. GuestCpus int64 `json:"guestCpus,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] The type of the resource. Always compute#nodeType for // node types. Kind string `json:"kind,omitempty"` // LocalSsdGb: [Output Only] Local SSD available to the node type, defined in // GB. LocalSsdGb int64 `json:"localSsdGb,omitempty"` // MemoryMb: [Output Only] The amount of physical memory available to the node // type, defined in MB. MemoryMb int64 `json:"memoryMb,omitempty"` // Name: [Output Only] Name of the resource. Name string `json:"name,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Zone: [Output Only] The name of the zone where the node type resides, such // as us-central1-a. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CpuPlatform") 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. "CpuPlatform") 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:"-"` }
NodeType: Represent a sole-tenant Node Type resource. Each node within a node group must have a node type. A node type specifies the total amount of cores and memory for that node. Currently, the only available node type is n1-node-96-624 node type that has 96 vCPUs and 624 GB of memory, available in multiple zones. For more information read Node types.
func (NodeType) MarshalJSON ¶
type NodeTypeAggregatedList ¶
type NodeTypeAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of NodeTypesScopedList resources. Items map[string]NodeTypesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource.Always compute#nodeTypeAggregatedList // for aggregated lists of node types. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *NodeTypeAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (NodeTypeAggregatedList) MarshalJSON ¶
func (s NodeTypeAggregatedList) MarshalJSON() ([]byte, error)
type NodeTypeAggregatedListWarning ¶
type NodeTypeAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NodeTypeAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NodeTypeAggregatedListWarning: [Output Only] Informational warning message.
func (NodeTypeAggregatedListWarning) MarshalJSON ¶
func (s NodeTypeAggregatedListWarning) MarshalJSON() ([]byte, error)
type NodeTypeAggregatedListWarningData ¶
type NodeTypeAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NodeTypeAggregatedListWarningData) MarshalJSON ¶
func (s NodeTypeAggregatedListWarningData) MarshalJSON() ([]byte, error)
type NodeTypeList ¶
type NodeTypeList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of NodeType resources. Items []*NodeType `json:"items,omitempty"` // Kind: [Output Only] Type of resource.Always compute#nodeTypeList for lists // of node types. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *NodeTypeListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
NodeTypeList: Contains a list of node types.
func (NodeTypeList) MarshalJSON ¶
func (s NodeTypeList) MarshalJSON() ([]byte, error)
type NodeTypeListWarning ¶
type NodeTypeListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NodeTypeListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NodeTypeListWarning: [Output Only] Informational warning message.
func (NodeTypeListWarning) MarshalJSON ¶
func (s NodeTypeListWarning) MarshalJSON() ([]byte, error)
type NodeTypeListWarningData ¶
type NodeTypeListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NodeTypeListWarningData) MarshalJSON ¶
func (s NodeTypeListWarningData) MarshalJSON() ([]byte, error)
type NodeTypesAggregatedListCall ¶
type NodeTypesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*NodeTypesAggregatedListCall) Context ¶
func (c *NodeTypesAggregatedListCall) Context(ctx context.Context) *NodeTypesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*NodeTypesAggregatedListCall) Do ¶
func (c *NodeTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*NodeTypeAggregatedList, error)
Do executes the "compute.nodeTypes.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *NodeTypeAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeTypesAggregatedListCall) Fields ¶
func (c *NodeTypesAggregatedListCall) Fields(s ...googleapi.Field) *NodeTypesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeTypesAggregatedListCall) Filter ¶
func (c *NodeTypesAggregatedListCall) Filter(filter string) *NodeTypesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NodeTypesAggregatedListCall) Header ¶
func (c *NodeTypesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeTypesAggregatedListCall) IfNoneMatch ¶
func (c *NodeTypesAggregatedListCall) IfNoneMatch(entityTag string) *NodeTypesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NodeTypesAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *NodeTypesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *NodeTypesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*NodeTypesAggregatedListCall) MaxResults ¶
func (c *NodeTypesAggregatedListCall) MaxResults(maxResults int64) *NodeTypesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NodeTypesAggregatedListCall) OrderBy ¶
func (c *NodeTypesAggregatedListCall) OrderBy(orderBy string) *NodeTypesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NodeTypesAggregatedListCall) PageToken ¶
func (c *NodeTypesAggregatedListCall) PageToken(pageToken string) *NodeTypesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NodeTypesAggregatedListCall) Pages ¶
func (c *NodeTypesAggregatedListCall) Pages(ctx context.Context, f func(*NodeTypeAggregatedList) 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 (*NodeTypesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *NodeTypesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NodeTypesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*NodeTypesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *NodeTypesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *NodeTypesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type NodeTypesGetCall ¶
type NodeTypesGetCall struct {
// contains filtered or unexported fields
}
func (*NodeTypesGetCall) Context ¶
func (c *NodeTypesGetCall) Context(ctx context.Context) *NodeTypesGetCall
Context sets the context to be used in this call's Do method.
func (*NodeTypesGetCall) Do ¶
func (c *NodeTypesGetCall) Do(opts ...googleapi.CallOption) (*NodeType, error)
Do executes the "compute.nodeTypes.get" call. Any non-2xx status code is an error. Response headers are in either *NodeType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeTypesGetCall) Fields ¶
func (c *NodeTypesGetCall) Fields(s ...googleapi.Field) *NodeTypesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeTypesGetCall) Header ¶
func (c *NodeTypesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeTypesGetCall) IfNoneMatch ¶
func (c *NodeTypesGetCall) IfNoneMatch(entityTag string) *NodeTypesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type NodeTypesListCall ¶
type NodeTypesListCall struct {
// contains filtered or unexported fields
}
func (*NodeTypesListCall) Context ¶
func (c *NodeTypesListCall) Context(ctx context.Context) *NodeTypesListCall
Context sets the context to be used in this call's Do method.
func (*NodeTypesListCall) Do ¶
func (c *NodeTypesListCall) Do(opts ...googleapi.CallOption) (*NodeTypeList, error)
Do executes the "compute.nodeTypes.list" call. Any non-2xx status code is an error. Response headers are in either *NodeTypeList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeTypesListCall) Fields ¶
func (c *NodeTypesListCall) Fields(s ...googleapi.Field) *NodeTypesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*NodeTypesListCall) Filter ¶
func (c *NodeTypesListCall) Filter(filter string) *NodeTypesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*NodeTypesListCall) Header ¶
func (c *NodeTypesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*NodeTypesListCall) IfNoneMatch ¶
func (c *NodeTypesListCall) IfNoneMatch(entityTag string) *NodeTypesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*NodeTypesListCall) MaxResults ¶
func (c *NodeTypesListCall) MaxResults(maxResults int64) *NodeTypesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*NodeTypesListCall) OrderBy ¶
func (c *NodeTypesListCall) OrderBy(orderBy string) *NodeTypesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*NodeTypesListCall) PageToken ¶
func (c *NodeTypesListCall) PageToken(pageToken string) *NodeTypesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*NodeTypesListCall) Pages ¶
func (c *NodeTypesListCall) Pages(ctx context.Context, f func(*NodeTypeList) 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 (*NodeTypesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *NodeTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NodeTypesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type NodeTypesScopedList ¶
type NodeTypesScopedList struct { // NodeTypes: [Output Only] A list of node types contained in this scope. NodeTypes []*NodeType `json:"nodeTypes,omitempty"` // Warning: [Output Only] An informational warning that appears when the node // types list is empty. Warning *NodeTypesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "NodeTypes") 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. "NodeTypes") 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:"-"` }
func (NodeTypesScopedList) MarshalJSON ¶
func (s NodeTypesScopedList) MarshalJSON() ([]byte, error)
type NodeTypesScopedListWarning ¶
type NodeTypesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NodeTypesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NodeTypesScopedListWarning: [Output Only] An informational warning that appears when the node types list is empty.
func (NodeTypesScopedListWarning) MarshalJSON ¶
func (s NodeTypesScopedListWarning) MarshalJSON() ([]byte, error)
type NodeTypesScopedListWarningData ¶
type NodeTypesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NodeTypesScopedListWarningData) MarshalJSON ¶
func (s NodeTypesScopedListWarningData) MarshalJSON() ([]byte, error)
type NodeTypesService ¶
type NodeTypesService struct {
// contains filtered or unexported fields
}
func NewNodeTypesService ¶
func NewNodeTypesService(s *Service) *NodeTypesService
func (*NodeTypesService) AggregatedList ¶
func (r *NodeTypesService) AggregatedList(project string) *NodeTypesAggregatedListCall
AggregatedList: Retrieves an aggregated list of node types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*NodeTypesService) Get ¶
func (r *NodeTypesService) Get(project string, zone string, nodeType string) *NodeTypesGetCall
Get: Returns the specified node type.
- nodeType: Name of the node type to return. - project: Project ID for this request. - zone: The name of the zone for this request.
func (*NodeTypesService) List ¶
func (r *NodeTypesService) List(project string, zone string) *NodeTypesListCall
List: Retrieves a list of node types available to the specified project.
- project: Project ID for this request. - zone: The name of the zone for this request.
type NotificationEndpoint ¶ added in v0.29.0
type NotificationEndpoint struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // GrpcSettings: Settings of the gRPC notification endpoint including the // endpoint URL and the retry duration. GrpcSettings *NotificationEndpointGrpcSettings `json:"grpcSettings,omitempty"` // Id: [Output Only] A unique identifier for this resource type. The server // generates this identifier. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always // compute#notificationEndpoint for notification endpoints. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Region: [Output Only] URL of the region where the notification endpoint // resides. This field applies only to the regional resource. You must specify // this field as part of the HTTP request URL. It is not settable as a field in // the request body. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
NotificationEndpoint: Represents a notification endpoint. A notification endpoint resource defines an endpoint to receive notifications when there are status changes detected by the associated health check service. For more information, see Health checks overview.
func (NotificationEndpoint) MarshalJSON ¶ added in v0.29.0
func (s NotificationEndpoint) MarshalJSON() ([]byte, error)
type NotificationEndpointGrpcSettings ¶ added in v0.29.0
type NotificationEndpointGrpcSettings struct { // Authority: Optional. If specified, this field is used to set the authority // header by the sender of notifications. See // https://tools.ietf.org/html/rfc7540#section-8.1.2.3 Authority string `json:"authority,omitempty"` // Endpoint: Endpoint to which gRPC notifications are sent. This must be a // valid gRPCLB DNS name. Endpoint string `json:"endpoint,omitempty"` // PayloadName: Optional. If specified, this field is used to populate the // "name" field in gRPC requests. PayloadName string `json:"payloadName,omitempty"` // ResendInterval: Optional. This field is used to configure how often to send // a full update of all non-healthy backends. If unspecified, full updates are // not sent. If specified, must be in the range between 600 seconds to 3600 // seconds. Nanos are disallowed. Can only be set for regional notification // endpoints. ResendInterval *Duration `json:"resendInterval,omitempty"` // RetryDurationSec: How much time (in seconds) is spent attempting // notification retries until a successful response is received. Default is // 30s. Limit is 20m (1200s). Must be a positive number. RetryDurationSec int64 `json:"retryDurationSec,omitempty"` // ForceSendFields is a list of field names (e.g. "Authority") 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. "Authority") 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:"-"` }
NotificationEndpointGrpcSettings: Represents a gRPC setting that describes one gRPC notification endpoint and the retry duration attempting to send notification to this endpoint.
func (NotificationEndpointGrpcSettings) MarshalJSON ¶ added in v0.29.0
func (s NotificationEndpointGrpcSettings) MarshalJSON() ([]byte, error)
type NotificationEndpointList ¶ added in v0.29.0
type NotificationEndpointList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of NotificationEndpoint resources. Items []*NotificationEndpoint `json:"items,omitempty"` // Kind: [Output Only] Type of the resource. Always // compute#notificationEndpoint for notification endpoints. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *NotificationEndpointListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (NotificationEndpointList) MarshalJSON ¶ added in v0.29.0
func (s NotificationEndpointList) MarshalJSON() ([]byte, error)
type NotificationEndpointListWarning ¶ added in v0.29.0
type NotificationEndpointListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*NotificationEndpointListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
NotificationEndpointListWarning: [Output Only] Informational warning message.
func (NotificationEndpointListWarning) MarshalJSON ¶ added in v0.29.0
func (s NotificationEndpointListWarning) MarshalJSON() ([]byte, error)
type NotificationEndpointListWarningData ¶ added in v0.29.0
type NotificationEndpointListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (NotificationEndpointListWarningData) MarshalJSON ¶ added in v0.29.0
func (s NotificationEndpointListWarningData) MarshalJSON() ([]byte, error)
type Operation ¶
type Operation struct { // ClientOperationId: [Output Only] The value of `requestId` if you provided it // in the request. Not present otherwise. ClientOperationId string `json:"clientOperationId,omitempty"` // CreationTimestamp: [Deprecated] This field is deprecated. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: [Output Only] A textual description of the operation, which is // set when the operation is created. Description string `json:"description,omitempty"` // EndTime: [Output Only] The time that this operation was completed. This // value is in RFC3339 text format. EndTime string `json:"endTime,omitempty"` // Error: [Output Only] If errors are generated during processing of the // operation, this field will be populated. Error *OperationError `json:"error,omitempty"` // HttpErrorMessage: [Output Only] If the operation fails, this field contains // the HTTP error message that was returned, such as `NOT FOUND`. HttpErrorMessage string `json:"httpErrorMessage,omitempty"` // HttpErrorStatusCode: [Output Only] If the operation fails, this field // contains the HTTP error status code that was returned. For example, a `404` // means the resource was not found. HttpErrorStatusCode int64 `json:"httpErrorStatusCode,omitempty"` // Id: [Output Only] The unique identifier for the operation. This identifier // is defined by the server. Id uint64 `json:"id,omitempty,string"` // InsertTime: [Output Only] The time that this operation was requested. This // value is in RFC3339 text format. InsertTime string `json:"insertTime,omitempty"` InstancesBulkInsertOperationMetadata *InstancesBulkInsertOperationMetadata `json:"instancesBulkInsertOperationMetadata,omitempty"` // Kind: [Output Only] Type of the resource. Always `compute#operation` for // Operation resources. Kind string `json:"kind,omitempty"` // Name: [Output Only] Name of the operation. Name string `json:"name,omitempty"` // OperationGroupId: [Output Only] An ID that represents a group of operations, // such as when a group of operations results from a `bulkInsert` API request. OperationGroupId string `json:"operationGroupId,omitempty"` // OperationType: [Output Only] The type of operation, such as `insert`, // `update`, or `delete`, and so on. OperationType string `json:"operationType,omitempty"` // Progress: [Output Only] An optional progress indicator that ranges from 0 to // 100. There is no requirement that this be linear or support any granularity // of operations. This should not be used to guess when the operation will be // complete. This number should monotonically increase as the operation // progresses. Progress int64 `json:"progress,omitempty"` // Region: [Output Only] The URL of the region where the operation resides. // Only applicable when performing regional operations. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SetCommonInstanceMetadataOperationMetadata: [Output Only] If the operation // is for projects.setCommonInstanceMetadata, this field will contain // information on all underlying zonal actions and their state. SetCommonInstanceMetadataOperationMetadata *SetCommonInstanceMetadataOperationMetadata `json:"setCommonInstanceMetadataOperationMetadata,omitempty"` // StartTime: [Output Only] The time that this operation was started by the // server. This value is in RFC3339 text format. StartTime string `json:"startTime,omitempty"` // Status: [Output Only] The status of the operation, which can be one of the // following: `PENDING`, `RUNNING`, or `DONE`. // // Possible values: // "DONE" // "PENDING" // "RUNNING" Status string `json:"status,omitempty"` // StatusMessage: [Output Only] An optional textual description of the current // status of the operation. StatusMessage string `json:"statusMessage,omitempty"` // TargetId: [Output Only] The unique target ID, which identifies a specific // incarnation of the target resource. TargetId uint64 `json:"targetId,omitempty,string"` // TargetLink: [Output Only] The URL of the resource that the operation // modifies. For operations related to creating a snapshot, this points to the // persistent disk that the snapshot was created from. TargetLink string `json:"targetLink,omitempty"` // User: [Output Only] User who requested the operation, for example: // `user@example.com` or `alice_smith_identifier // (global/workforcePools/example-com-us-employees)`. User string `json:"user,omitempty"` // Warnings: [Output Only] If warning messages are generated during processing // of the operation, this field will be populated. Warnings []*OperationWarnings `json:"warnings,omitempty"` // Zone: [Output Only] The URL of the zone where the operation resides. Only // applicable when performing per-zone operations. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ClientOperationId") 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. "ClientOperationId") 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: Represents an Operation resource. Google Compute Engine has three Operation resources: * Global (/compute/docs/reference/rest/v1/globalOperations) * Regional (/compute/docs/reference/rest/v1/regionOperations) * Zonal (/compute/docs/reference/rest/v1/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zoneOperations` resource. For more information, read Global, Regional, and Zonal Resources. Note that completed Operation resources have a limited retention period.
func (Operation) MarshalJSON ¶
type OperationAggregatedList ¶
type OperationAggregatedList struct { // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id string `json:"id,omitempty"` // Items: [Output Only] A map of scoped operation lists. Items map[string]OperationsScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // `compute#operationAggregatedList` for aggregated lists of operations. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // `maxResults`, use the `nextPageToken` as a value for the query parameter // `pageToken` in the next list request. Subsequent list requests will have // their own `nextPageToken` to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *OperationAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (OperationAggregatedList) MarshalJSON ¶
func (s OperationAggregatedList) MarshalJSON() ([]byte, error)
type OperationAggregatedListWarning ¶
type OperationAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*OperationAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
OperationAggregatedListWarning: [Output Only] Informational warning message.
func (OperationAggregatedListWarning) MarshalJSON ¶
func (s OperationAggregatedListWarning) MarshalJSON() ([]byte, error)
type OperationAggregatedListWarningData ¶
type OperationAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (OperationAggregatedListWarningData) MarshalJSON ¶
func (s OperationAggregatedListWarningData) MarshalJSON() ([]byte, error)
type OperationError ¶
type OperationError struct { // Errors: [Output Only] The array of errors encountered while processing this // operation. Errors []*OperationErrorErrors `json:"errors,omitempty"` // ForceSendFields is a list of field names (e.g. "Errors") 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. "Errors") 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:"-"` }
OperationError: [Output Only] If errors are generated during processing of the operation, this field will be populated.
func (OperationError) MarshalJSON ¶
func (s OperationError) MarshalJSON() ([]byte, error)
type OperationErrorErrors ¶
type OperationErrorErrors struct { // Code: [Output Only] The error type identifier for this error. Code string `json:"code,omitempty"` // ErrorDetails: [Output Only] An optional list of messages that contain the // error details. There is a set of defined message types to use for providing // details.The syntax depends on the error code. For example, QuotaExceededInfo // will have details when the error code is QUOTA_EXCEEDED. ErrorDetails []*OperationErrorErrorsErrorDetails `json:"errorDetails,omitempty"` // Location: [Output Only] Indicates the field in the request that caused the // error. This property is optional. Location string `json:"location,omitempty"` // Message: [Output Only] An optional, human-readable error message. Message string `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:"-"` }
func (OperationErrorErrors) MarshalJSON ¶
func (s OperationErrorErrors) MarshalJSON() ([]byte, error)
type OperationErrorErrorsErrorDetails ¶ added in v0.87.0
type OperationErrorErrorsErrorDetails struct { ErrorInfo *ErrorInfo `json:"errorInfo,omitempty"` Help *Help `json:"help,omitempty"` LocalizedMessage *LocalizedMessage `json:"localizedMessage,omitempty"` QuotaInfo *QuotaExceededInfo `json:"quotaInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "ErrorInfo") 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. "ErrorInfo") 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:"-"` }
func (OperationErrorErrorsErrorDetails) MarshalJSON ¶ added in v0.87.0
func (s OperationErrorErrorsErrorDetails) MarshalJSON() ([]byte, error)
type OperationList ¶
type OperationList struct { // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id string `json:"id,omitempty"` // Items: [Output Only] A list of Operation resources. Items []*Operation `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always `compute#operations` for // Operations resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // `maxResults`, use the `nextPageToken` as a value for the query parameter // `pageToken` in the next list request. Subsequent list requests will have // their own `nextPageToken` to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *OperationListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
OperationList: Contains a list of Operation resources.
func (OperationList) MarshalJSON ¶
func (s OperationList) MarshalJSON() ([]byte, error)
type OperationListWarning ¶
type OperationListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*OperationListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
OperationListWarning: [Output Only] Informational warning message.
func (OperationListWarning) MarshalJSON ¶
func (s OperationListWarning) MarshalJSON() ([]byte, error)
type OperationListWarningData ¶
type OperationListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (OperationListWarningData) MarshalJSON ¶
func (s OperationListWarningData) MarshalJSON() ([]byte, error)
type OperationWarnings ¶
type OperationWarnings struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*OperationWarningsData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
func (OperationWarnings) MarshalJSON ¶
func (s OperationWarnings) MarshalJSON() ([]byte, error)
type OperationWarningsData ¶
type OperationWarningsData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (OperationWarningsData) MarshalJSON ¶
func (s OperationWarningsData) MarshalJSON() ([]byte, error)
type OperationsScopedList ¶
type OperationsScopedList struct { // Operations: [Output Only] A list of operations contained in this scope. Operations []*Operation `json:"operations,omitempty"` // Warning: [Output Only] Informational warning which replaces the list of // operations when the list is empty. Warning *OperationsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "Operations") 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. "Operations") 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:"-"` }
func (OperationsScopedList) MarshalJSON ¶
func (s OperationsScopedList) MarshalJSON() ([]byte, error)
type OperationsScopedListWarning ¶
type OperationsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*OperationsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
OperationsScopedListWarning: [Output Only] Informational warning which replaces the list of operations when the list is empty.
func (OperationsScopedListWarning) MarshalJSON ¶
func (s OperationsScopedListWarning) MarshalJSON() ([]byte, error)
type OperationsScopedListWarningData ¶
type OperationsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (OperationsScopedListWarningData) MarshalJSON ¶
func (s OperationsScopedListWarningData) MarshalJSON() ([]byte, error)
type OutlierDetection ¶ added in v0.11.0
type OutlierDetection struct { // BaseEjectionTime: The base time that a backend endpoint is ejected for. // Defaults to 30000ms or 30s. After a backend endpoint is returned back to the // load balancing pool, it can be ejected again in another ejection analysis. // Thus, the total ejection time is equal to the base ejection time multiplied // by the number of times the backend endpoint has been ejected. Defaults to // 30000ms or 30s. BaseEjectionTime *Duration `json:"baseEjectionTime,omitempty"` // ConsecutiveErrors: Number of consecutive errors before a backend endpoint is // ejected from the load balancing pool. When the backend endpoint is accessed // over HTTP, a 5xx return code qualifies as an error. Defaults to 5. ConsecutiveErrors int64 `json:"consecutiveErrors,omitempty"` // ConsecutiveGatewayFailure: The number of consecutive gateway failures (502, // 503, 504 status or connection errors that are mapped to one of those status // codes) before a consecutive gateway failure ejection occurs. Defaults to 3. ConsecutiveGatewayFailure int64 `json:"consecutiveGatewayFailure,omitempty"` // EnforcingConsecutiveErrors: The percentage chance that a backend endpoint // will be ejected when an outlier status is detected through consecutive 5xx. // This setting can be used to disable ejection or to ramp it up slowly. // Defaults to 0. EnforcingConsecutiveErrors int64 `json:"enforcingConsecutiveErrors,omitempty"` // EnforcingConsecutiveGatewayFailure: The percentage chance that a backend // endpoint will be ejected when an outlier status is detected through // consecutive gateway failures. This setting can be used to disable ejection // or to ramp it up slowly. Defaults to 100. EnforcingConsecutiveGatewayFailure int64 `json:"enforcingConsecutiveGatewayFailure,omitempty"` // EnforcingSuccessRate: The percentage chance that a backend endpoint will be // ejected when an outlier status is detected through success rate statistics. // This setting can be used to disable ejection or to ramp it up slowly. // Defaults to 100. Not supported when the backend service uses Serverless NEG. EnforcingSuccessRate int64 `json:"enforcingSuccessRate,omitempty"` // Interval: Time interval between ejection analysis sweeps. This can result in // both new ejections and backend endpoints being returned to service. The // interval is equal to the number of seconds as defined in // outlierDetection.interval.seconds plus the number of nanoseconds as defined // in outlierDetection.interval.nanos. Defaults to 1 second. Interval *Duration `json:"interval,omitempty"` // MaxEjectionPercent: Maximum percentage of backend endpoints in the load // balancing pool for the backend service that can be ejected if the ejection // conditions are met. Defaults to 50%. MaxEjectionPercent int64 `json:"maxEjectionPercent,omitempty"` // SuccessRateMinimumHosts: The number of backend endpoints in the load // balancing pool that must have enough request volume to detect success rate // outliers. If the number of backend endpoints is fewer than this setting, // outlier detection via success rate statistics is not performed for any // backend endpoint in the load balancing pool. Defaults to 5. Not supported // when the backend service uses Serverless NEG. SuccessRateMinimumHosts int64 `json:"successRateMinimumHosts,omitempty"` // SuccessRateRequestVolume: The minimum number of total requests that must be // collected in one interval (as defined by the interval duration above) to // include this backend endpoint in success rate based outlier detection. If // the volume is lower than this setting, outlier detection via success rate // statistics is not performed for that backend endpoint. Defaults to 100. Not // supported when the backend service uses Serverless NEG. SuccessRateRequestVolume int64 `json:"successRateRequestVolume,omitempty"` // SuccessRateStdevFactor: This factor is used to determine the ejection // threshold for success rate outlier ejection. The ejection threshold is the // difference between the mean success rate, and the product of this factor and // the standard deviation of the mean success rate: mean - (stdev * // successRateStdevFactor). This factor is divided by a thousand to get a // double. That is, if the desired factor is 1.9, the runtime value should be // 1900. Defaults to 1900. Not supported when the backend service uses // Serverless NEG. SuccessRateStdevFactor int64 `json:"successRateStdevFactor,omitempty"` // ForceSendFields is a list of field names (e.g. "BaseEjectionTime") 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. "BaseEjectionTime") 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:"-"` }
OutlierDetection: Settings controlling the eviction of unhealthy hosts from the load balancing pool for the backend service.
func (OutlierDetection) MarshalJSON ¶ added in v0.11.0
func (s OutlierDetection) MarshalJSON() ([]byte, error)
type PacketIntervals ¶ added in v0.62.0
type PacketIntervals struct { // AvgMs: Average observed inter-packet interval in milliseconds. AvgMs int64 `json:"avgMs,omitempty,string"` // Duration: From how long ago in the past these intervals were observed. // // Possible values: // "DURATION_UNSPECIFIED" // "HOUR" // "MAX" - From BfdSession object creation time. // "MINUTE" Duration string `json:"duration,omitempty"` // MaxMs: Maximum observed inter-packet interval in milliseconds. MaxMs int64 `json:"maxMs,omitempty,string"` // MinMs: Minimum observed inter-packet interval in milliseconds. MinMs int64 `json:"minMs,omitempty,string"` // NumIntervals: Number of inter-packet intervals from which these statistics // were derived. NumIntervals int64 `json:"numIntervals,omitempty,string"` // Type: The type of packets for which inter-packet intervals were computed. // // Possible values: // "LOOPBACK" - Only applies to Echo packets. This shows the intervals // between sending and receiving the same packet. // "RECEIVE" - Intervals between received packets. // "TRANSMIT" - Intervals between transmitted packets. // "TYPE_UNSPECIFIED" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "AvgMs") 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. "AvgMs") 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:"-"` }
PacketIntervals: Next free: 7
func (PacketIntervals) MarshalJSON ¶ added in v0.62.0
func (s PacketIntervals) MarshalJSON() ([]byte, error)
type PacketMirroring ¶ added in v0.16.0
type PacketMirroring struct { // CollectorIlb: The Forwarding Rule resource of type // loadBalancingScheme=INTERNAL that will be used as collector for mirrored // traffic. The specified forwarding rule must have isMirroringCollector set to // true. CollectorIlb *PacketMirroringForwardingRuleInfo `json:"collectorIlb,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Enable: Indicates whether or not this packet mirroring takes effect. If set // to FALSE, this packet mirroring policy will not be enforced on the network. // The default is TRUE. // // Possible values: // "FALSE" // "TRUE" Enable string `json:"enable,omitempty"` // Filter: Filter for mirrored traffic. If unspecified, all IPv4 traffic is // mirrored. Filter *PacketMirroringFilter `json:"filter,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#packetMirroring for // packet mirrorings. Kind string `json:"kind,omitempty"` // MirroredResources: PacketMirroring mirroredResourceInfos. // MirroredResourceInfo specifies a set of mirrored VM instances, subnetworks // and/or tags for which traffic from/to all VM instances will be mirrored. MirroredResources *PacketMirroringMirroredResourceInfo `json:"mirroredResources,omitempty"` // Name: Name of the resource; provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Network: Specifies the mirrored VPC network. Only packets in this network // will be mirrored. All mirrored VMs should have a NIC in the given network. // All mirrored subnetworks should belong to the given network. Network *PacketMirroringNetworkInfo `json:"network,omitempty"` // Priority: The priority of applying this configuration. Priority is used to // break ties in cases where there is more than one matching rule. In the case // of two rules that apply for a given Instance, the one with the // lowest-numbered priority value wins. Default value is 1000. Valid range is 0 // through 65535. Priority int64 `json:"priority,omitempty"` // Region: [Output Only] URI of the region where the packetMirroring resides. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CollectorIlb") 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. "CollectorIlb") 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:"-"` }
PacketMirroring: Represents a Packet Mirroring resource. Packet Mirroring clones the traffic of specified instances in your Virtual Private Cloud (VPC) network and forwards it to a collector destination, such as an instance group of an internal TCP/UDP load balancer, for analysis or examination. For more information about setting up Packet Mirroring, see Using Packet Mirroring.
func (PacketMirroring) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroring) MarshalJSON() ([]byte, error)
type PacketMirroringAggregatedList ¶ added in v0.16.0
type PacketMirroringAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of PacketMirroring resources. Items map[string]PacketMirroringsScopedList `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *PacketMirroringAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
PacketMirroringAggregatedList: Contains a list of packetMirrorings.
func (PacketMirroringAggregatedList) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroringAggregatedList) MarshalJSON() ([]byte, error)
type PacketMirroringAggregatedListWarning ¶ added in v0.16.0
type PacketMirroringAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*PacketMirroringAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
PacketMirroringAggregatedListWarning: [Output Only] Informational warning message.
func (PacketMirroringAggregatedListWarning) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroringAggregatedListWarning) MarshalJSON() ([]byte, error)
type PacketMirroringAggregatedListWarningData ¶ added in v0.16.0
type PacketMirroringAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (PacketMirroringAggregatedListWarningData) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroringAggregatedListWarningData) MarshalJSON() ([]byte, error)
type PacketMirroringFilter ¶ added in v0.16.0
type PacketMirroringFilter struct { // IPProtocols: Protocols that apply as filter on mirrored traffic. If no // protocols are specified, all traffic that matches the specified CIDR ranges // is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 // traffic is mirrored. IPProtocols []string `json:"IPProtocols,omitempty"` // CidrRanges: One or more IPv4 or IPv6 CIDR ranges that apply as filters on // the source (ingress) or destination (egress) IP in the IP header. If no // ranges are specified, all IPv4 traffic that matches the specified // IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, // all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use // "0.0.0.0/0,::/0". CidrRanges []string `json:"cidrRanges,omitempty"` // Direction: Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. // The default is BOTH. // // Possible values: // "BOTH" - Default, both directions are mirrored. // "EGRESS" - Only egress traffic is mirrored. // "INGRESS" - Only ingress traffic is mirrored. Direction string `json:"direction,omitempty"` // ForceSendFields is a list of field names (e.g. "IPProtocols") 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. "IPProtocols") 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:"-"` }
func (PacketMirroringFilter) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroringFilter) MarshalJSON() ([]byte, error)
type PacketMirroringForwardingRuleInfo ¶ added in v0.16.0
type PacketMirroringForwardingRuleInfo struct { // CanonicalUrl: [Output Only] Unique identifier for the forwarding rule; // defined by the server. CanonicalUrl string `json:"canonicalUrl,omitempty"` // Url: Resource URL to the forwarding rule representing the ILB configured as // destination of the mirrored traffic. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "CanonicalUrl") 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. "CanonicalUrl") 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:"-"` }
func (PacketMirroringForwardingRuleInfo) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroringForwardingRuleInfo) MarshalJSON() ([]byte, error)
type PacketMirroringList ¶ added in v0.16.0
type PacketMirroringList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of PacketMirroring resources. Items []*PacketMirroring `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#packetMirroring for // packetMirrorings. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *PacketMirroringListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
PacketMirroringList: Contains a list of PacketMirroring resources.
func (PacketMirroringList) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroringList) MarshalJSON() ([]byte, error)
type PacketMirroringListWarning ¶ added in v0.16.0
type PacketMirroringListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*PacketMirroringListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
PacketMirroringListWarning: [Output Only] Informational warning message.
func (PacketMirroringListWarning) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroringListWarning) MarshalJSON() ([]byte, error)
type PacketMirroringListWarningData ¶ added in v0.16.0
type PacketMirroringListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (PacketMirroringListWarningData) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroringListWarningData) MarshalJSON() ([]byte, error)
type PacketMirroringMirroredResourceInfo ¶ added in v0.16.0
type PacketMirroringMirroredResourceInfo struct { // Instances: A set of virtual machine instances that are being mirrored. They // must live in zones contained in the same region as this packetMirroring. // Note that this config will apply only to those network interfaces of the // Instances that belong to the network specified in this packetMirroring. You // may specify a maximum of 50 Instances. Instances []*PacketMirroringMirroredResourceInfoInstanceInfo `json:"instances,omitempty"` // Subnetworks: A set of subnetworks for which traffic from/to all VM instances // will be mirrored. They must live in the same region as this packetMirroring. // You may specify a maximum of 5 subnetworks. Subnetworks []*PacketMirroringMirroredResourceInfoSubnetInfo `json:"subnetworks,omitempty"` // Tags: A set of mirrored tags. Traffic from/to all VM instances that have one // or more of these tags will be mirrored. Tags []string `json:"tags,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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:"-"` }
func (PacketMirroringMirroredResourceInfo) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroringMirroredResourceInfo) MarshalJSON() ([]byte, error)
type PacketMirroringMirroredResourceInfoInstanceInfo ¶ added in v0.16.0
type PacketMirroringMirroredResourceInfoInstanceInfo struct { // CanonicalUrl: [Output Only] Unique identifier for the instance; defined by // the server. CanonicalUrl string `json:"canonicalUrl,omitempty"` // Url: Resource URL to the virtual machine instance which is being mirrored. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "CanonicalUrl") 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. "CanonicalUrl") 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:"-"` }
func (PacketMirroringMirroredResourceInfoInstanceInfo) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroringMirroredResourceInfoInstanceInfo) MarshalJSON() ([]byte, error)
type PacketMirroringMirroredResourceInfoSubnetInfo ¶ added in v0.16.0
type PacketMirroringMirroredResourceInfoSubnetInfo struct { // CanonicalUrl: [Output Only] Unique identifier for the subnetwork; defined by // the server. CanonicalUrl string `json:"canonicalUrl,omitempty"` // Url: Resource URL to the subnetwork for which traffic from/to all VM // instances will be mirrored. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "CanonicalUrl") 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. "CanonicalUrl") 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:"-"` }
func (PacketMirroringMirroredResourceInfoSubnetInfo) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroringMirroredResourceInfoSubnetInfo) MarshalJSON() ([]byte, error)
type PacketMirroringNetworkInfo ¶ added in v0.16.0
type PacketMirroringNetworkInfo struct { // CanonicalUrl: [Output Only] Unique identifier for the network; defined by // the server. CanonicalUrl string `json:"canonicalUrl,omitempty"` // Url: URL of the network resource. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "CanonicalUrl") 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. "CanonicalUrl") 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:"-"` }
func (PacketMirroringNetworkInfo) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroringNetworkInfo) MarshalJSON() ([]byte, error)
type PacketMirroringsAggregatedListCall ¶ added in v0.16.0
type PacketMirroringsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*PacketMirroringsAggregatedListCall) Context ¶ added in v0.16.0
func (c *PacketMirroringsAggregatedListCall) Context(ctx context.Context) *PacketMirroringsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*PacketMirroringsAggregatedListCall) Do ¶ added in v0.16.0
func (c *PacketMirroringsAggregatedListCall) Do(opts ...googleapi.CallOption) (*PacketMirroringAggregatedList, error)
Do executes the "compute.packetMirrorings.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *PacketMirroringAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PacketMirroringsAggregatedListCall) Fields ¶ added in v0.16.0
func (c *PacketMirroringsAggregatedListCall) Fields(s ...googleapi.Field) *PacketMirroringsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PacketMirroringsAggregatedListCall) Filter ¶ added in v0.16.0
func (c *PacketMirroringsAggregatedListCall) Filter(filter string) *PacketMirroringsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*PacketMirroringsAggregatedListCall) Header ¶ added in v0.16.0
func (c *PacketMirroringsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PacketMirroringsAggregatedListCall) IfNoneMatch ¶ added in v0.16.0
func (c *PacketMirroringsAggregatedListCall) IfNoneMatch(entityTag string) *PacketMirroringsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*PacketMirroringsAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *PacketMirroringsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *PacketMirroringsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*PacketMirroringsAggregatedListCall) MaxResults ¶ added in v0.16.0
func (c *PacketMirroringsAggregatedListCall) MaxResults(maxResults int64) *PacketMirroringsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*PacketMirroringsAggregatedListCall) OrderBy ¶ added in v0.16.0
func (c *PacketMirroringsAggregatedListCall) OrderBy(orderBy string) *PacketMirroringsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*PacketMirroringsAggregatedListCall) PageToken ¶ added in v0.16.0
func (c *PacketMirroringsAggregatedListCall) PageToken(pageToken string) *PacketMirroringsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*PacketMirroringsAggregatedListCall) Pages ¶ added in v0.16.0
func (c *PacketMirroringsAggregatedListCall) Pages(ctx context.Context, f func(*PacketMirroringAggregatedList) 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 (*PacketMirroringsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *PacketMirroringsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PacketMirroringsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*PacketMirroringsAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *PacketMirroringsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *PacketMirroringsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type PacketMirroringsDeleteCall ¶ added in v0.16.0
type PacketMirroringsDeleteCall struct {
// contains filtered or unexported fields
}
func (*PacketMirroringsDeleteCall) Context ¶ added in v0.16.0
func (c *PacketMirroringsDeleteCall) Context(ctx context.Context) *PacketMirroringsDeleteCall
Context sets the context to be used in this call's Do method.
func (*PacketMirroringsDeleteCall) Do ¶ added in v0.16.0
func (c *PacketMirroringsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.packetMirrorings.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PacketMirroringsDeleteCall) Fields ¶ added in v0.16.0
func (c *PacketMirroringsDeleteCall) Fields(s ...googleapi.Field) *PacketMirroringsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PacketMirroringsDeleteCall) Header ¶ added in v0.16.0
func (c *PacketMirroringsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PacketMirroringsDeleteCall) RequestId ¶ added in v0.16.0
func (c *PacketMirroringsDeleteCall) RequestId(requestId string) *PacketMirroringsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type PacketMirroringsGetCall ¶ added in v0.16.0
type PacketMirroringsGetCall struct {
// contains filtered or unexported fields
}
func (*PacketMirroringsGetCall) Context ¶ added in v0.16.0
func (c *PacketMirroringsGetCall) Context(ctx context.Context) *PacketMirroringsGetCall
Context sets the context to be used in this call's Do method.
func (*PacketMirroringsGetCall) Do ¶ added in v0.16.0
func (c *PacketMirroringsGetCall) Do(opts ...googleapi.CallOption) (*PacketMirroring, error)
Do executes the "compute.packetMirrorings.get" call. Any non-2xx status code is an error. Response headers are in either *PacketMirroring.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PacketMirroringsGetCall) Fields ¶ added in v0.16.0
func (c *PacketMirroringsGetCall) Fields(s ...googleapi.Field) *PacketMirroringsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PacketMirroringsGetCall) Header ¶ added in v0.16.0
func (c *PacketMirroringsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PacketMirroringsGetCall) IfNoneMatch ¶ added in v0.16.0
func (c *PacketMirroringsGetCall) IfNoneMatch(entityTag string) *PacketMirroringsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type PacketMirroringsInsertCall ¶ added in v0.16.0
type PacketMirroringsInsertCall struct {
// contains filtered or unexported fields
}
func (*PacketMirroringsInsertCall) Context ¶ added in v0.16.0
func (c *PacketMirroringsInsertCall) Context(ctx context.Context) *PacketMirroringsInsertCall
Context sets the context to be used in this call's Do method.
func (*PacketMirroringsInsertCall) Do ¶ added in v0.16.0
func (c *PacketMirroringsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.packetMirrorings.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PacketMirroringsInsertCall) Fields ¶ added in v0.16.0
func (c *PacketMirroringsInsertCall) Fields(s ...googleapi.Field) *PacketMirroringsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PacketMirroringsInsertCall) Header ¶ added in v0.16.0
func (c *PacketMirroringsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PacketMirroringsInsertCall) RequestId ¶ added in v0.16.0
func (c *PacketMirroringsInsertCall) RequestId(requestId string) *PacketMirroringsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type PacketMirroringsListCall ¶ added in v0.16.0
type PacketMirroringsListCall struct {
// contains filtered or unexported fields
}
func (*PacketMirroringsListCall) Context ¶ added in v0.16.0
func (c *PacketMirroringsListCall) Context(ctx context.Context) *PacketMirroringsListCall
Context sets the context to be used in this call's Do method.
func (*PacketMirroringsListCall) Do ¶ added in v0.16.0
func (c *PacketMirroringsListCall) Do(opts ...googleapi.CallOption) (*PacketMirroringList, error)
Do executes the "compute.packetMirrorings.list" call. Any non-2xx status code is an error. Response headers are in either *PacketMirroringList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PacketMirroringsListCall) Fields ¶ added in v0.16.0
func (c *PacketMirroringsListCall) Fields(s ...googleapi.Field) *PacketMirroringsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PacketMirroringsListCall) Filter ¶ added in v0.16.0
func (c *PacketMirroringsListCall) Filter(filter string) *PacketMirroringsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*PacketMirroringsListCall) Header ¶ added in v0.16.0
func (c *PacketMirroringsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PacketMirroringsListCall) IfNoneMatch ¶ added in v0.16.0
func (c *PacketMirroringsListCall) IfNoneMatch(entityTag string) *PacketMirroringsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*PacketMirroringsListCall) MaxResults ¶ added in v0.16.0
func (c *PacketMirroringsListCall) MaxResults(maxResults int64) *PacketMirroringsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*PacketMirroringsListCall) OrderBy ¶ added in v0.16.0
func (c *PacketMirroringsListCall) OrderBy(orderBy string) *PacketMirroringsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*PacketMirroringsListCall) PageToken ¶ added in v0.16.0
func (c *PacketMirroringsListCall) PageToken(pageToken string) *PacketMirroringsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*PacketMirroringsListCall) Pages ¶ added in v0.16.0
func (c *PacketMirroringsListCall) Pages(ctx context.Context, f func(*PacketMirroringList) 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 (*PacketMirroringsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *PacketMirroringsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PacketMirroringsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type PacketMirroringsPatchCall ¶ added in v0.16.0
type PacketMirroringsPatchCall struct {
// contains filtered or unexported fields
}
func (*PacketMirroringsPatchCall) Context ¶ added in v0.16.0
func (c *PacketMirroringsPatchCall) Context(ctx context.Context) *PacketMirroringsPatchCall
Context sets the context to be used in this call's Do method.
func (*PacketMirroringsPatchCall) Do ¶ added in v0.16.0
func (c *PacketMirroringsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.packetMirrorings.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PacketMirroringsPatchCall) Fields ¶ added in v0.16.0
func (c *PacketMirroringsPatchCall) Fields(s ...googleapi.Field) *PacketMirroringsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PacketMirroringsPatchCall) Header ¶ added in v0.16.0
func (c *PacketMirroringsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PacketMirroringsPatchCall) RequestId ¶ added in v0.16.0
func (c *PacketMirroringsPatchCall) RequestId(requestId string) *PacketMirroringsPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type PacketMirroringsScopedList ¶ added in v0.16.0
type PacketMirroringsScopedList struct { // PacketMirrorings: A list of packetMirrorings contained in this scope. PacketMirrorings []*PacketMirroring `json:"packetMirrorings,omitempty"` // Warning: Informational warning which replaces the list of packetMirrorings // when the list is empty. Warning *PacketMirroringsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "PacketMirrorings") 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. "PacketMirrorings") 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:"-"` }
func (PacketMirroringsScopedList) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroringsScopedList) MarshalJSON() ([]byte, error)
type PacketMirroringsScopedListWarning ¶ added in v0.16.0
type PacketMirroringsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*PacketMirroringsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
PacketMirroringsScopedListWarning: Informational warning which replaces the list of packetMirrorings when the list is empty.
func (PacketMirroringsScopedListWarning) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroringsScopedListWarning) MarshalJSON() ([]byte, error)
type PacketMirroringsScopedListWarningData ¶ added in v0.16.0
type PacketMirroringsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (PacketMirroringsScopedListWarningData) MarshalJSON ¶ added in v0.16.0
func (s PacketMirroringsScopedListWarningData) MarshalJSON() ([]byte, error)
type PacketMirroringsService ¶ added in v0.16.0
type PacketMirroringsService struct {
// contains filtered or unexported fields
}
func NewPacketMirroringsService ¶ added in v0.16.0
func NewPacketMirroringsService(s *Service) *PacketMirroringsService
func (*PacketMirroringsService) AggregatedList ¶ added in v0.16.0
func (r *PacketMirroringsService) AggregatedList(project string) *PacketMirroringsAggregatedListCall
AggregatedList: Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*PacketMirroringsService) Delete ¶ added in v0.16.0
func (r *PacketMirroringsService) Delete(project string, region string, packetMirroring string) *PacketMirroringsDeleteCall
Delete: Deletes the specified PacketMirroring resource.
- packetMirroring: Name of the PacketMirroring resource to delete. - project: Project ID for this request. - region: Name of the region for this request.
func (*PacketMirroringsService) Get ¶ added in v0.16.0
func (r *PacketMirroringsService) Get(project string, region string, packetMirroring string) *PacketMirroringsGetCall
Get: Returns the specified PacketMirroring resource.
- packetMirroring: Name of the PacketMirroring resource to return. - project: Project ID for this request. - region: Name of the region for this request.
func (*PacketMirroringsService) Insert ¶ added in v0.16.0
func (r *PacketMirroringsService) Insert(project string, region string, packetmirroring *PacketMirroring) *PacketMirroringsInsertCall
Insert: Creates a PacketMirroring resource in the specified project and region using the data included in the request.
- project: Project ID for this request. - region: Name of the region for this request.
func (*PacketMirroringsService) List ¶ added in v0.16.0
func (r *PacketMirroringsService) List(project string, region string) *PacketMirroringsListCall
List: Retrieves a list of PacketMirroring resources available to the specified project and region.
- project: Project ID for this request. - region: Name of the region for this request.
func (*PacketMirroringsService) Patch ¶ added in v0.16.0
func (r *PacketMirroringsService) Patch(project string, region string, packetMirroring string, packetmirroring *PacketMirroring) *PacketMirroringsPatchCall
Patch: Patches the specified PacketMirroring resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
- packetMirroring: Name of the PacketMirroring resource to patch. - project: Project ID for this request. - region: Name of the region for this request.
func (*PacketMirroringsService) TestIamPermissions ¶ added in v0.16.0
func (r *PacketMirroringsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *PacketMirroringsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
type PacketMirroringsTestIamPermissionsCall ¶ added in v0.16.0
type PacketMirroringsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*PacketMirroringsTestIamPermissionsCall) Context ¶ added in v0.16.0
func (c *PacketMirroringsTestIamPermissionsCall) Context(ctx context.Context) *PacketMirroringsTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*PacketMirroringsTestIamPermissionsCall) Do ¶ added in v0.16.0
func (c *PacketMirroringsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.packetMirrorings.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PacketMirroringsTestIamPermissionsCall) Fields ¶ added in v0.16.0
func (c *PacketMirroringsTestIamPermissionsCall) Fields(s ...googleapi.Field) *PacketMirroringsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PacketMirroringsTestIamPermissionsCall) Header ¶ added in v0.16.0
func (c *PacketMirroringsTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type PathMatcher ¶
type PathMatcher struct { // DefaultCustomErrorResponsePolicy: defaultCustomErrorResponsePolicy specifies // how the Load Balancer returns error responses when BackendServiceor // BackendBucket responds with an error. This policy takes effect at the // PathMatcher level and applies only when no policy has been defined for the // error code at lower levels like RouteRule and PathRule within this // PathMatcher. If an error code does not have a policy defined in // defaultCustomErrorResponsePolicy, then a policy defined for the error code // in UrlMap.defaultCustomErrorResponsePolicy takes effect. For example, // consider a UrlMap with the following configuration: - // UrlMap.defaultCustomErrorResponsePolicy is configured with policies for 5xx // and 4xx errors - A RouteRule for /coming_soon/ is configured for the error // code 404. If the request is for www.myotherdomain.com and a 404 is // encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes // effect. If a 404 response is encountered for the request // www.example.com/current_events/, the pathMatcher's policy takes effect. If // however, the request for www.example.com/coming_soon/ encounters a 404, the // policy in RouteRule.customErrorResponsePolicy takes effect. If any of the // requests in this example encounter a 500 error code, the policy at // UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in // conjunction with pathMatcher.defaultRouteAction.retryPolicy, retries take // precedence. Only once all retries are exhausted, the // defaultCustomErrorResponsePolicy is applied. While attempting a retry, if // load balancer is successful in reaching the service, the // defaultCustomErrorResponsePolicy is ignored and the response from the // service is returned to the client. defaultCustomErrorResponsePolicy is // supported only for global external Application Load Balancers. DefaultCustomErrorResponsePolicy *CustomErrorResponsePolicy `json:"defaultCustomErrorResponsePolicy,omitempty"` // DefaultRouteAction: defaultRouteAction takes effect when none of the // pathRules or routeRules match. The load balancer performs advanced routing // actions, such as URL rewrites and header transformations, before forwarding // the request to the selected backend. If defaultRouteAction specifies any // weightedBackendServices, defaultService must not be set. Conversely if // defaultService is set, defaultRouteAction cannot contain any // weightedBackendServices. If defaultRouteAction is specified, don't set // defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is // specified, don't set defaultService. URL maps for classic Application Load // Balancers only support the urlRewrite action within a path matcher's // defaultRouteAction. DefaultRouteAction *HttpRouteAction `json:"defaultRouteAction,omitempty"` // DefaultService: The full or partial URL to the BackendService resource. This // URL is used if none of the pathRules or routeRules defined by this // PathMatcher are matched. For example, the following are all valid URLs to a // BackendService resource: - // https://www.googleapis.com/compute/v1/projects/project // /global/backendServices/backendService - // compute/v1/projects/project/global/backendServices/backendService - // global/backendServices/backendService If defaultRouteAction is also // specified, advanced routing actions, such as URL rewrites, take effect // before sending the request to the backend. However, if defaultService is // specified, defaultRouteAction cannot contain any weightedBackendServices. // Conversely, if defaultRouteAction specifies any weightedBackendServices, // defaultService must not be specified. If defaultService is specified, then // set either defaultUrlRedirect or defaultRouteAction.weightedBackendService. // Don't set both. Authorization requires one or more of the following Google // IAM permissions on the specified resource default_service: - // compute.backendBuckets.use - compute.backendServices.use DefaultService string `json:"defaultService,omitempty"` // DefaultUrlRedirect: When none of the specified pathRules or routeRules // match, the request is redirected to a URL specified by defaultUrlRedirect. // If defaultUrlRedirect is specified, then set either defaultService or // defaultRouteAction. Don't set both. Not supported when the URL map is bound // to a target gRPC proxy. DefaultUrlRedirect *HttpRedirectAction `json:"defaultUrlRedirect,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // HeaderAction: Specifies changes to request and response headers that need to // take effect for the selected backend service. HeaderAction specified here // are applied after the matching HttpRouteRule HeaderAction and before the // HeaderAction in the UrlMap HeaderAction is not supported for load balancers // that have their loadBalancingScheme set to EXTERNAL. Not supported when the // URL map is bound to a target gRPC proxy that has validateForProxyless field // set to true. HeaderAction *HttpHeaderAction `json:"headerAction,omitempty"` // Name: The name to which this PathMatcher is referred by the HostRule. Name string `json:"name,omitempty"` // PathRules: The list of path rules. Use this list instead of routeRules when // routing based on simple path matching is all that's required. The order by // which path rules are specified does not matter. Matches are always done on // the longest-path-first basis. For example: a pathRule with a path /a/b/c/* // will match before /a/b/* irrespective of the order in which those paths // appear in this list. Within a given pathMatcher, only one of pathRules or // routeRules must be set. PathRules []*PathRule `json:"pathRules,omitempty"` // RouteRules: The list of HTTP route rules. Use this list instead of pathRules // when advanced route matching and routing actions are desired. routeRules are // evaluated in order of priority, from the lowest to highest number. Within a // given pathMatcher, you can set only one of pathRules or routeRules. RouteRules []*HttpRouteRule `json:"routeRules,omitempty"` // ForceSendFields is a list of field names (e.g. // "DefaultCustomErrorResponsePolicy") 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. // "DefaultCustomErrorResponsePolicy") 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:"-"` }
PathMatcher: A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default service is used.
func (PathMatcher) MarshalJSON ¶
func (s PathMatcher) MarshalJSON() ([]byte, error)
type PathRule ¶
type PathRule struct { // CustomErrorResponsePolicy: customErrorResponsePolicy specifies how the Load // Balancer returns error responses when BackendServiceor BackendBucket // responds with an error. If a policy for an error code is not configured for // the PathRule, a policy for the error code configured in // pathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not // specified in pathMatcher.defaultCustomErrorResponsePolicy, the policy // configured in UrlMap.defaultCustomErrorResponsePolicy takes effect. For // example, consider a UrlMap with the following configuration: - // UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx // and 4xx errors - A PathRule for /coming_soon/ is configured for the error // code 404. If the request is for www.myotherdomain.com and a 404 is // encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes // effect. If a 404 response is encountered for the request // www.example.com/current_events/, the pathMatcher's policy takes effect. If // however, the request for www.example.com/coming_soon/ encounters a 404, the // policy in PathRule.customErrorResponsePolicy takes effect. If any of the // requests in this example encounter a 500 error code, the policy at // UrlMap.defaultCustomErrorResponsePolicy takes effect. // customErrorResponsePolicy is supported only for global external Application // Load Balancers. CustomErrorResponsePolicy *CustomErrorResponsePolicy `json:"customErrorResponsePolicy,omitempty"` // Paths: The list of path patterns to match. Each must start with / and the // only place a * is allowed is at the end following a /. The string fed to the // path matcher does not include any text after the first ? or #, and those // chars are not allowed here. Paths []string `json:"paths,omitempty"` // RouteAction: In response to a matching path, the load balancer performs // advanced routing actions, such as URL rewrites and header transformations, // before forwarding the request to the selected backend. If routeAction // specifies any weightedBackendServices, service must not be set. Conversely // if service is set, routeAction cannot contain any weightedBackendServices. // Only one of routeAction or urlRedirect must be set. URL maps for classic // Application Load Balancers only support the urlRewrite action within a path // rule's routeAction. RouteAction *HttpRouteAction `json:"routeAction,omitempty"` // Service: The full or partial URL of the backend service resource to which // traffic is directed if this rule is matched. If routeAction is also // specified, advanced routing actions, such as URL rewrites, take effect // before sending the request to the backend. However, if service is specified, // routeAction cannot contain any weightedBackendServices. Conversely, if // routeAction specifies any weightedBackendServices, service must not be // specified. Only one of urlRedirect, service or // routeAction.weightedBackendService must be set. Service string `json:"service,omitempty"` // UrlRedirect: When a path pattern is matched, the request is redirected to a // URL specified by urlRedirect. If urlRedirect is specified, service or // routeAction must not be set. Not supported when the URL map is bound to a // target gRPC proxy. UrlRedirect *HttpRedirectAction `json:"urlRedirect,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomErrorResponsePolicy") // 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. "CustomErrorResponsePolicy") 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:"-"` }
PathRule: A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL.
func (PathRule) MarshalJSON ¶
type PerInstanceConfig ¶ added in v0.16.0
type PerInstanceConfig struct { // Fingerprint: Fingerprint of this per-instance config. This field can be used // in optimistic locking. It is ignored when inserting a per-instance config. // An up-to-date fingerprint must be provided in order to update an existing // per-instance configuration or the field needs to be unset. Fingerprint string `json:"fingerprint,omitempty"` // Name: The name of a per-instance configuration and its corresponding // instance. Serves as a merge key during UpdatePerInstanceConfigs operations, // that is, if a per-instance configuration with the same name exists then it // will be updated, otherwise a new one will be created for the VM instance // with the same name. An attempt to create a per-instance configconfiguration // for a VM instance that either doesn't exist or is not part of the group will // result in an error. Name string `json:"name,omitempty"` // PreservedState: The intended preserved state for the given instance. Does // not contain preserved state generated from a stateful policy. PreservedState *PreservedState `json:"preservedState,omitempty"` // Status: The status of applying this per-instance configuration on the // corresponding managed instance. // // Possible values: // "APPLYING" - The per-instance configuration is being applied to the // instance, but is not yet effective, possibly waiting for the instance to, // for example, REFRESH. // "DELETING" - The per-instance configuration deletion is being applied on // the instance, possibly waiting for the instance to, for example, REFRESH. // "EFFECTIVE" - The per-instance configuration is effective on the instance, // meaning that all disks, ips and metadata specified in this configuration are // attached or set on the instance. // "NONE" - *[Default]* The default status, when no per-instance // configuration exists. // "UNAPPLIED" - The per-instance configuration is set on an instance but not // been applied yet. // "UNAPPLIED_DELETION" - The per-instance configuration has been deleted, // but the deletion is not yet applied. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "Fingerprint") 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. "Fingerprint") 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:"-"` }
func (PerInstanceConfig) MarshalJSON ¶ added in v0.16.0
func (s PerInstanceConfig) MarshalJSON() ([]byte, error)
type Policy ¶
type Policy struct { // AuditConfigs: Specifies cloud audit logging configuration for this policy. AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` // Bindings: Associates a list of `members`, or principals, with a `role`. // Optionally, may specify a `condition` that determines how and when the // `bindings` are applied. Each of the `bindings` must contain at least one // principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; // up to 250 of these principals can be Google groups. Each occurrence of a // principal counts towards these limits. For example, if the `bindings` grant // 50 different roles to `user:alice@example.com`, and not to any other // principal, then you can add another 1,450 principals to the `bindings` in // the `Policy`. Bindings []*Binding `json:"bindings,omitempty"` // Etag: `etag` is used for optimistic concurrency control as a way to help // prevent simultaneous updates of a policy from overwriting each other. It is // strongly suggested that systems make use of the `etag` in the // read-modify-write cycle to perform policy updates in order to avoid race // conditions: An `etag` is returned in the response to `getIamPolicy`, and // systems are expected to put that etag in the request to `setIamPolicy` to // ensure that their change will be applied to the same version of the policy. // **Important:** If you use IAM Conditions, you must include the `etag` field // whenever you call `setIamPolicy`. If you omit this field, then IAM allows // you to overwrite a version `3` policy with a version `1` policy, and all of // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` // Rules: This is deprecated and has no effect. Do not use. Rules []*Rule `json:"rules,omitempty"` // Version: Specifies the format of the policy. Valid values are `0`, `1`, and // `3`. Requests that specify an invalid value are rejected. Any operation that // affects conditional role bindings must specify version `3`. This requirement // applies to the following operations: * Getting a policy that includes a // conditional role binding * Adding a conditional role binding to a policy * // Changing a conditional role binding in a policy * Removing any role binding, // with or without a condition, from a policy that includes conditions // **Important:** If you use IAM Conditions, you must include the `etag` field // whenever you call `setIamPolicy`. If you omit this field, then IAM allows // you to overwrite a version `3` policy with a version `1` policy, and all of // the conditions in the version `3` policy are lost. If a policy does not // include any conditions, operations on that policy may specify any valid // version or leave the field unset. To learn which resources support // conditions in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Version int64 `json:"version,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AuditConfigs") 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. "AuditConfigs") 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:"-"` }
Policy: An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
func (Policy) MarshalJSON ¶
type PreconfiguredWafSet ¶ added in v0.22.0
type PreconfiguredWafSet struct { // ExpressionSets: List of entities that are currently supported for WAF rules. ExpressionSets []*WafExpressionSet `json:"expressionSets,omitempty"` // ForceSendFields is a list of field names (e.g. "ExpressionSets") 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. "ExpressionSets") 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:"-"` }
func (PreconfiguredWafSet) MarshalJSON ¶ added in v0.22.0
func (s PreconfiguredWafSet) MarshalJSON() ([]byte, error)
type PreservedState ¶ added in v0.31.0
type PreservedState struct { // Disks: Preserved disks defined for this instance. This map is keyed with the // device names of the disks. Disks map[string]PreservedStatePreservedDisk `json:"disks,omitempty"` // ExternalIPs: Preserved external IPs defined for this instance. This map is // keyed with the name of the network interface. ExternalIPs map[string]PreservedStatePreservedNetworkIp `json:"externalIPs,omitempty"` // InternalIPs: Preserved internal IPs defined for this instance. This map is // keyed with the name of the network interface. InternalIPs map[string]PreservedStatePreservedNetworkIp `json:"internalIPs,omitempty"` // Metadata: Preserved metadata defined for this instance. Metadata map[string]string `json:"metadata,omitempty"` // ForceSendFields is a list of field names (e.g. "Disks") 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. "Disks") 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:"-"` }
PreservedState: Preserved state for a given instance.
func (PreservedState) MarshalJSON ¶ added in v0.31.0
func (s PreservedState) MarshalJSON() ([]byte, error)
type PreservedStatePreservedDisk ¶ added in v0.31.0
type PreservedStatePreservedDisk struct { // AutoDelete: These stateful disks will never be deleted during autohealing, // update, instance recreate operations. This flag is used to configure if the // disk should be deleted after it is no longer used by the group, e.g. when // the given instance or the whole MIG is deleted. Note: disks attached in // READ_ONLY mode cannot be auto-deleted. // // Possible values: // "NEVER" // "ON_PERMANENT_INSTANCE_DELETION" AutoDelete string `json:"autoDelete,omitempty"` // Mode: The mode in which to attach this disk, either READ_WRITE or READ_ONLY. // If not specified, the default is to attach the disk in READ_WRITE mode. // // Possible values: // "READ_ONLY" - Attaches this disk in read-only mode. Multiple VM instances // can use a disk in READ_ONLY mode at a time. // "READ_WRITE" - *[Default]* Attaches this disk in READ_WRITE mode. Only one // VM instance at a time can be attached to a disk in READ_WRITE mode. Mode string `json:"mode,omitempty"` // Source: The URL of the disk resource that is stateful and should be attached // to the VM instance. Source string `json:"source,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoDelete") 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. "AutoDelete") 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:"-"` }
func (PreservedStatePreservedDisk) MarshalJSON ¶ added in v0.31.0
func (s PreservedStatePreservedDisk) MarshalJSON() ([]byte, error)
type PreservedStatePreservedNetworkIp ¶ added in v0.143.0
type PreservedStatePreservedNetworkIp struct { // AutoDelete: These stateful IPs will never be released during autohealing, // update or VM instance recreate operations. This flag is used to configure if // the IP reservation should be deleted after it is no longer used by the // group, e.g. when the given instance or the whole group is deleted. // // Possible values: // "NEVER" // "ON_PERMANENT_INSTANCE_DELETION" AutoDelete string `json:"autoDelete,omitempty"` // IpAddress: Ip address representation IpAddress *PreservedStatePreservedNetworkIpIpAddress `json:"ipAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoDelete") 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. "AutoDelete") 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:"-"` }
func (PreservedStatePreservedNetworkIp) MarshalJSON ¶ added in v0.143.0
func (s PreservedStatePreservedNetworkIp) MarshalJSON() ([]byte, error)
type PreservedStatePreservedNetworkIpIpAddress ¶ added in v0.143.0
type PreservedStatePreservedNetworkIpIpAddress struct { // Address: The URL of the reservation for this IP address. Address string `json:"address,omitempty"` // Literal: An IPv4 internal network address to assign to the instance for this // network interface. Literal string `json:"literal,omitempty"` // ForceSendFields is a list of field names (e.g. "Address") 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. "Address") 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:"-"` }
func (PreservedStatePreservedNetworkIpIpAddress) MarshalJSON ¶ added in v0.143.0
func (s PreservedStatePreservedNetworkIpIpAddress) MarshalJSON() ([]byte, error)
type Project ¶
type Project struct { // CloudArmorTier: [Output Only] The Cloud Armor tier for this project. It can // be one of the following values: CA_STANDARD, CA_ENTERPRISE_PAYGO. If this // field is not specified, it is assumed to be CA_STANDARD. // // Possible values: // "CA_ENTERPRISE_ANNUAL" - Enterprise tier protection billed annually. // "CA_ENTERPRISE_PAYGO" - Enterprise tier protection billed monthly. // "CA_STANDARD" - Standard protection. CloudArmorTier string `json:"cloudArmorTier,omitempty"` // CommonInstanceMetadata: Metadata key/value pairs available to all instances // contained in this project. See Custom metadata for more information. CommonInstanceMetadata *Metadata `json:"commonInstanceMetadata,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // DefaultNetworkTier: This signifies the default network tier used for // configuring resources of the project and can only take the following values: // PREMIUM, STANDARD. Initially the default network tier is PREMIUM. // // Possible values: // "FIXED_STANDARD" - Public internet quality with fixed bandwidth. // "PREMIUM" - High quality, Google-grade network tier, support for all // networking products. // "STANDARD" - Public internet quality, only limited support for other // networking products. // "STANDARD_OVERRIDES_FIXED_STANDARD" - (Output only) Temporary tier for // FIXED_STANDARD when fixed standard tier is expired or not configured. DefaultNetworkTier string `json:"defaultNetworkTier,omitempty"` // DefaultServiceAccount: [Output Only] Default service account used by VMs // running in this project. DefaultServiceAccount string `json:"defaultServiceAccount,omitempty"` // Description: An optional textual description of the resource. Description string `json:"description,omitempty"` // EnabledFeatures: Restricted features enabled for use on this project. EnabledFeatures []string `json:"enabledFeatures,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. This is *not* the project ID, and is just a unique ID // used by Compute Engine to identify resources. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#project for // projects. Kind string `json:"kind,omitempty"` // Name: The project ID. For example: my-example-project. Use the project ID to // make requests to Compute Engine. Name string `json:"name,omitempty"` // Quotas: [Output Only] Quotas assigned to this project. Quotas []*Quota `json:"quotas,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // UsageExportLocation: The naming prefix for daily usage reports and the // Google Cloud Storage bucket where they are stored. UsageExportLocation *UsageExportLocation `json:"usageExportLocation,omitempty"` // VmDnsSetting: [Output Only] Default internal DNS setting used by VMs running // in this project. // // Possible values: // "GLOBAL_DEFAULT" // "UNSPECIFIED_VM_DNS_SETTING" // "ZONAL_DEFAULT" // "ZONAL_ONLY" VmDnsSetting string `json:"vmDnsSetting,omitempty"` // XpnProjectStatus: [Output Only] The role this project has in a shared VPC // configuration. Currently, only projects with the host role, which is // specified by the value HOST, are differentiated. // // Possible values: // "HOST" // "UNSPECIFIED_XPN_PROJECT_STATUS" XpnProjectStatus string `json:"xpnProjectStatus,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CloudArmorTier") 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. "CloudArmorTier") 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:"-"` }
Project: Represents a Project resource. A project is used to organize resources in a Google Cloud Platform environment. For more information, read about the Resource Hierarchy.
func (Project) MarshalJSON ¶
type ProjectsDisableXpnHostCall ¶
type ProjectsDisableXpnHostCall struct {
// contains filtered or unexported fields
}
func (*ProjectsDisableXpnHostCall) Context ¶
func (c *ProjectsDisableXpnHostCall) Context(ctx context.Context) *ProjectsDisableXpnHostCall
Context sets the context to be used in this call's Do method.
func (*ProjectsDisableXpnHostCall) Do ¶
func (c *ProjectsDisableXpnHostCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.disableXpnHost" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsDisableXpnHostCall) Fields ¶
func (c *ProjectsDisableXpnHostCall) Fields(s ...googleapi.Field) *ProjectsDisableXpnHostCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsDisableXpnHostCall) Header ¶
func (c *ProjectsDisableXpnHostCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsDisableXpnHostCall) RequestId ¶
func (c *ProjectsDisableXpnHostCall) RequestId(requestId string) *ProjectsDisableXpnHostCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ProjectsDisableXpnResourceCall ¶
type ProjectsDisableXpnResourceCall struct {
// contains filtered or unexported fields
}
func (*ProjectsDisableXpnResourceCall) Context ¶
func (c *ProjectsDisableXpnResourceCall) Context(ctx context.Context) *ProjectsDisableXpnResourceCall
Context sets the context to be used in this call's Do method.
func (*ProjectsDisableXpnResourceCall) Do ¶
func (c *ProjectsDisableXpnResourceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.disableXpnResource" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsDisableXpnResourceCall) Fields ¶
func (c *ProjectsDisableXpnResourceCall) Fields(s ...googleapi.Field) *ProjectsDisableXpnResourceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsDisableXpnResourceCall) Header ¶
func (c *ProjectsDisableXpnResourceCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsDisableXpnResourceCall) RequestId ¶
func (c *ProjectsDisableXpnResourceCall) RequestId(requestId string) *ProjectsDisableXpnResourceCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ProjectsDisableXpnResourceRequest ¶
type ProjectsDisableXpnResourceRequest struct { // XpnResource: Service resource (a.k.a service project) ID. XpnResource *XpnResourceId `json:"xpnResource,omitempty"` // ForceSendFields is a list of field names (e.g. "XpnResource") 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. "XpnResource") 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:"-"` }
func (ProjectsDisableXpnResourceRequest) MarshalJSON ¶
func (s ProjectsDisableXpnResourceRequest) MarshalJSON() ([]byte, error)
type ProjectsEnableXpnHostCall ¶
type ProjectsEnableXpnHostCall struct {
// contains filtered or unexported fields
}
func (*ProjectsEnableXpnHostCall) Context ¶
func (c *ProjectsEnableXpnHostCall) Context(ctx context.Context) *ProjectsEnableXpnHostCall
Context sets the context to be used in this call's Do method.
func (*ProjectsEnableXpnHostCall) Do ¶
func (c *ProjectsEnableXpnHostCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.enableXpnHost" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsEnableXpnHostCall) Fields ¶
func (c *ProjectsEnableXpnHostCall) Fields(s ...googleapi.Field) *ProjectsEnableXpnHostCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsEnableXpnHostCall) Header ¶
func (c *ProjectsEnableXpnHostCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsEnableXpnHostCall) RequestId ¶
func (c *ProjectsEnableXpnHostCall) RequestId(requestId string) *ProjectsEnableXpnHostCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ProjectsEnableXpnResourceCall ¶
type ProjectsEnableXpnResourceCall struct {
// contains filtered or unexported fields
}
func (*ProjectsEnableXpnResourceCall) Context ¶
func (c *ProjectsEnableXpnResourceCall) Context(ctx context.Context) *ProjectsEnableXpnResourceCall
Context sets the context to be used in this call's Do method.
func (*ProjectsEnableXpnResourceCall) Do ¶
func (c *ProjectsEnableXpnResourceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.enableXpnResource" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsEnableXpnResourceCall) Fields ¶
func (c *ProjectsEnableXpnResourceCall) Fields(s ...googleapi.Field) *ProjectsEnableXpnResourceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsEnableXpnResourceCall) Header ¶
func (c *ProjectsEnableXpnResourceCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsEnableXpnResourceCall) RequestId ¶
func (c *ProjectsEnableXpnResourceCall) RequestId(requestId string) *ProjectsEnableXpnResourceCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ProjectsEnableXpnResourceRequest ¶
type ProjectsEnableXpnResourceRequest struct { // XpnResource: Service resource (a.k.a service project) ID. XpnResource *XpnResourceId `json:"xpnResource,omitempty"` // ForceSendFields is a list of field names (e.g. "XpnResource") 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. "XpnResource") 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:"-"` }
func (ProjectsEnableXpnResourceRequest) MarshalJSON ¶
func (s ProjectsEnableXpnResourceRequest) MarshalJSON() ([]byte, error)
type ProjectsGetCall ¶
type ProjectsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsGetCall) Context ¶
func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsGetCall) Do ¶
func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error)
Do executes the "compute.projects.get" call. Any non-2xx status code is an error. Response headers are in either *Project.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsGetCall) Fields ¶
func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsGetCall) Header ¶
func (c *ProjectsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsGetCall) IfNoneMatch ¶
func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsGetXpnHostCall ¶
type ProjectsGetXpnHostCall struct {
// contains filtered or unexported fields
}
func (*ProjectsGetXpnHostCall) Context ¶
func (c *ProjectsGetXpnHostCall) Context(ctx context.Context) *ProjectsGetXpnHostCall
Context sets the context to be used in this call's Do method.
func (*ProjectsGetXpnHostCall) Do ¶
func (c *ProjectsGetXpnHostCall) Do(opts ...googleapi.CallOption) (*Project, error)
Do executes the "compute.projects.getXpnHost" call. Any non-2xx status code is an error. Response headers are in either *Project.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsGetXpnHostCall) Fields ¶
func (c *ProjectsGetXpnHostCall) Fields(s ...googleapi.Field) *ProjectsGetXpnHostCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsGetXpnHostCall) Header ¶
func (c *ProjectsGetXpnHostCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsGetXpnHostCall) IfNoneMatch ¶
func (c *ProjectsGetXpnHostCall) IfNoneMatch(entityTag string) *ProjectsGetXpnHostCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsGetXpnResources ¶
type ProjectsGetXpnResources struct { // Kind: [Output Only] Type of resource. Always compute#projectsGetXpnResources // for lists of service resources (a.k.a service projects) Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // Resources: Service resources (a.k.a service projects) attached to this // project as their shared VPC host. Resources []*XpnResourceId `json:"resources,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"` }
func (ProjectsGetXpnResources) MarshalJSON ¶
func (s ProjectsGetXpnResources) MarshalJSON() ([]byte, error)
type ProjectsGetXpnResourcesCall ¶
type ProjectsGetXpnResourcesCall struct {
// contains filtered or unexported fields
}
func (*ProjectsGetXpnResourcesCall) Context ¶
func (c *ProjectsGetXpnResourcesCall) Context(ctx context.Context) *ProjectsGetXpnResourcesCall
Context sets the context to be used in this call's Do method.
func (*ProjectsGetXpnResourcesCall) Do ¶
func (c *ProjectsGetXpnResourcesCall) Do(opts ...googleapi.CallOption) (*ProjectsGetXpnResources, error)
Do executes the "compute.projects.getXpnResources" call. Any non-2xx status code is an error. Response headers are in either *ProjectsGetXpnResources.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsGetXpnResourcesCall) Fields ¶
func (c *ProjectsGetXpnResourcesCall) Fields(s ...googleapi.Field) *ProjectsGetXpnResourcesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsGetXpnResourcesCall) Filter ¶
func (c *ProjectsGetXpnResourcesCall) Filter(filter string) *ProjectsGetXpnResourcesCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*ProjectsGetXpnResourcesCall) Header ¶
func (c *ProjectsGetXpnResourcesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsGetXpnResourcesCall) IfNoneMatch ¶
func (c *ProjectsGetXpnResourcesCall) IfNoneMatch(entityTag string) *ProjectsGetXpnResourcesCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsGetXpnResourcesCall) MaxResults ¶
func (c *ProjectsGetXpnResourcesCall) MaxResults(maxResults int64) *ProjectsGetXpnResourcesCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*ProjectsGetXpnResourcesCall) OrderBy ¶
func (c *ProjectsGetXpnResourcesCall) OrderBy(orderBy string) *ProjectsGetXpnResourcesCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*ProjectsGetXpnResourcesCall) PageToken ¶
func (c *ProjectsGetXpnResourcesCall) PageToken(pageToken string) *ProjectsGetXpnResourcesCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*ProjectsGetXpnResourcesCall) Pages ¶
func (c *ProjectsGetXpnResourcesCall) Pages(ctx context.Context, f func(*ProjectsGetXpnResources) 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 (*ProjectsGetXpnResourcesCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *ProjectsGetXpnResourcesCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsGetXpnResourcesCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type ProjectsListXpnHostsCall ¶
type ProjectsListXpnHostsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsListXpnHostsCall) Context ¶
func (c *ProjectsListXpnHostsCall) Context(ctx context.Context) *ProjectsListXpnHostsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsListXpnHostsCall) Do ¶
func (c *ProjectsListXpnHostsCall) Do(opts ...googleapi.CallOption) (*XpnHostList, error)
Do executes the "compute.projects.listXpnHosts" call. Any non-2xx status code is an error. Response headers are in either *XpnHostList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsListXpnHostsCall) Fields ¶
func (c *ProjectsListXpnHostsCall) Fields(s ...googleapi.Field) *ProjectsListXpnHostsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsListXpnHostsCall) Filter ¶
func (c *ProjectsListXpnHostsCall) Filter(filter string) *ProjectsListXpnHostsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*ProjectsListXpnHostsCall) Header ¶
func (c *ProjectsListXpnHostsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsListXpnHostsCall) MaxResults ¶
func (c *ProjectsListXpnHostsCall) MaxResults(maxResults int64) *ProjectsListXpnHostsCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*ProjectsListXpnHostsCall) OrderBy ¶
func (c *ProjectsListXpnHostsCall) OrderBy(orderBy string) *ProjectsListXpnHostsCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*ProjectsListXpnHostsCall) PageToken ¶
func (c *ProjectsListXpnHostsCall) PageToken(pageToken string) *ProjectsListXpnHostsCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*ProjectsListXpnHostsCall) Pages ¶
func (c *ProjectsListXpnHostsCall) Pages(ctx context.Context, f func(*XpnHostList) 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 (*ProjectsListXpnHostsCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *ProjectsListXpnHostsCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsListXpnHostsCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type ProjectsListXpnHostsRequest ¶
type ProjectsListXpnHostsRequest struct { // Organization: Optional organization ID managed by Cloud Resource Manager, // for which to list shared VPC host projects. If not specified, the // organization will be inferred from the project. Organization string `json:"organization,omitempty"` // ForceSendFields is a list of field names (e.g. "Organization") 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. "Organization") 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:"-"` }
func (ProjectsListXpnHostsRequest) MarshalJSON ¶
func (s ProjectsListXpnHostsRequest) MarshalJSON() ([]byte, error)
type ProjectsMoveDiskCall ¶
type ProjectsMoveDiskCall struct {
// contains filtered or unexported fields
}
func (*ProjectsMoveDiskCall) Context ¶
func (c *ProjectsMoveDiskCall) Context(ctx context.Context) *ProjectsMoveDiskCall
Context sets the context to be used in this call's Do method.
func (*ProjectsMoveDiskCall) Do ¶
func (c *ProjectsMoveDiskCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.moveDisk" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsMoveDiskCall) Fields ¶
func (c *ProjectsMoveDiskCall) Fields(s ...googleapi.Field) *ProjectsMoveDiskCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsMoveDiskCall) Header ¶
func (c *ProjectsMoveDiskCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsMoveDiskCall) RequestId ¶
func (c *ProjectsMoveDiskCall) RequestId(requestId string) *ProjectsMoveDiskCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ProjectsMoveInstanceCall ¶
type ProjectsMoveInstanceCall struct {
// contains filtered or unexported fields
}
func (*ProjectsMoveInstanceCall) Context ¶
func (c *ProjectsMoveInstanceCall) Context(ctx context.Context) *ProjectsMoveInstanceCall
Context sets the context to be used in this call's Do method.
func (*ProjectsMoveInstanceCall) Do ¶
func (c *ProjectsMoveInstanceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.moveInstance" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsMoveInstanceCall) Fields ¶
func (c *ProjectsMoveInstanceCall) Fields(s ...googleapi.Field) *ProjectsMoveInstanceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsMoveInstanceCall) Header ¶
func (c *ProjectsMoveInstanceCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsMoveInstanceCall) RequestId ¶
func (c *ProjectsMoveInstanceCall) RequestId(requestId string) *ProjectsMoveInstanceCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ProjectsService ¶
type ProjectsService struct {
// contains filtered or unexported fields
}
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
func (*ProjectsService) DisableXpnHost ¶
func (r *ProjectsService) DisableXpnHost(project string) *ProjectsDisableXpnHostCall
DisableXpnHost: Disable this project as a shared VPC host project.
- project: Project ID for this request.
func (*ProjectsService) DisableXpnResource ¶
func (r *ProjectsService) DisableXpnResource(project string, projectsdisablexpnresourcerequest *ProjectsDisableXpnResourceRequest) *ProjectsDisableXpnResourceCall
DisableXpnResource: Disable a service resource (also known as service project) associated with this host project.
- project: Project ID for this request.
func (*ProjectsService) EnableXpnHost ¶
func (r *ProjectsService) EnableXpnHost(project string) *ProjectsEnableXpnHostCall
EnableXpnHost: Enable this project as a shared VPC host project.
- project: Project ID for this request.
func (*ProjectsService) EnableXpnResource ¶
func (r *ProjectsService) EnableXpnResource(project string, projectsenablexpnresourcerequest *ProjectsEnableXpnResourceRequest) *ProjectsEnableXpnResourceCall
EnableXpnResource: Enable service resource (a.k.a service project) for a host project, so that subnets in the host project can be used by instances in the service project.
- project: Project ID for this request.
func (*ProjectsService) Get ¶
func (r *ProjectsService) Get(project string) *ProjectsGetCall
Get: Returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.
- project: Project ID for this request.
func (*ProjectsService) GetXpnHost ¶
func (r *ProjectsService) GetXpnHost(project string) *ProjectsGetXpnHostCall
GetXpnHost: Gets the shared VPC host project that this project links to. May be empty if no link exists.
- project: Project ID for this request.
func (*ProjectsService) GetXpnResources ¶
func (r *ProjectsService) GetXpnResources(project string) *ProjectsGetXpnResourcesCall
GetXpnResources: Gets service resources (a.k.a service project) associated with this host project.
- project: Project ID for this request.
func (*ProjectsService) ListXpnHosts ¶
func (r *ProjectsService) ListXpnHosts(project string, projectslistxpnhostsrequest *ProjectsListXpnHostsRequest) *ProjectsListXpnHostsCall
ListXpnHosts: Lists all shared VPC host projects visible to the user in an organization.
- project: Project ID for this request.
func (*ProjectsService) MoveDisk ¶
func (r *ProjectsService) MoveDisk(project string, diskmoverequest *DiskMoveRequest) *ProjectsMoveDiskCall
MoveDisk: Moves a persistent disk from one zone to another.
- project: Project ID for this request.
func (*ProjectsService) MoveInstance ¶
func (r *ProjectsService) MoveInstance(project string, instancemoverequest *InstanceMoveRequest) *ProjectsMoveInstanceCall
MoveInstance: Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the known issue (/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_mov einstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See moving instance across zones (/compute/docs/instances/moving-instance-across-zones) instead.
- project: Project ID for this request.
func (*ProjectsService) SetCloudArmorTier ¶ added in v0.167.0
func (r *ProjectsService) SetCloudArmorTier(project string, projectssetcloudarmortierrequest *ProjectsSetCloudArmorTierRequest) *ProjectsSetCloudArmorTierCall
SetCloudArmorTier: Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information.
- project: Project ID for this request.
func (*ProjectsService) SetCommonInstanceMetadata ¶
func (r *ProjectsService) SetCommonInstanceMetadata(project string, metadata *Metadata) *ProjectsSetCommonInstanceMetadataCall
SetCommonInstanceMetadata: Sets metadata common to all instances within the specified project using the data included in the request.
- project: Project ID for this request.
func (*ProjectsService) SetDefaultNetworkTier ¶
func (r *ProjectsService) SetDefaultNetworkTier(project string, projectssetdefaultnetworktierrequest *ProjectsSetDefaultNetworkTierRequest) *ProjectsSetDefaultNetworkTierCall
SetDefaultNetworkTier: Sets the default network tier of the project. The default network tier is used when an address/forwardingRule/instance is created without specifying the network tier field.
- project: Project ID for this request.
func (*ProjectsService) SetUsageExportBucket ¶
func (r *ProjectsService) SetUsageExportBucket(project string, usageexportlocation *UsageExportLocation) *ProjectsSetUsageExportBucketCall
SetUsageExportBucket: Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.
- project: Project ID for this request.
type ProjectsSetCloudArmorTierCall ¶ added in v0.167.0
type ProjectsSetCloudArmorTierCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSetCloudArmorTierCall) Context ¶ added in v0.167.0
func (c *ProjectsSetCloudArmorTierCall) Context(ctx context.Context) *ProjectsSetCloudArmorTierCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSetCloudArmorTierCall) Do ¶ added in v0.167.0
func (c *ProjectsSetCloudArmorTierCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.setCloudArmorTier" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSetCloudArmorTierCall) Fields ¶ added in v0.167.0
func (c *ProjectsSetCloudArmorTierCall) Fields(s ...googleapi.Field) *ProjectsSetCloudArmorTierCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsSetCloudArmorTierCall) Header ¶ added in v0.167.0
func (c *ProjectsSetCloudArmorTierCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsSetCloudArmorTierCall) RequestId ¶ added in v0.167.0
func (c *ProjectsSetCloudArmorTierCall) RequestId(requestId string) *ProjectsSetCloudArmorTierCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ProjectsSetCloudArmorTierRequest ¶ added in v0.167.0
type ProjectsSetCloudArmorTierRequest struct { // CloudArmorTier: Managed protection tier to be set. // // Possible values: // "CA_ENTERPRISE_ANNUAL" - Enterprise tier protection billed annually. // "CA_ENTERPRISE_PAYGO" - Enterprise tier protection billed monthly. // "CA_STANDARD" - Standard protection. CloudArmorTier string `json:"cloudArmorTier,omitempty"` // ForceSendFields is a list of field names (e.g. "CloudArmorTier") 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. "CloudArmorTier") 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:"-"` }
func (ProjectsSetCloudArmorTierRequest) MarshalJSON ¶ added in v0.167.0
func (s ProjectsSetCloudArmorTierRequest) MarshalJSON() ([]byte, error)
type ProjectsSetCommonInstanceMetadataCall ¶
type ProjectsSetCommonInstanceMetadataCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSetCommonInstanceMetadataCall) Context ¶
func (c *ProjectsSetCommonInstanceMetadataCall) Context(ctx context.Context) *ProjectsSetCommonInstanceMetadataCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSetCommonInstanceMetadataCall) Do ¶
func (c *ProjectsSetCommonInstanceMetadataCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.setCommonInstanceMetadata" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSetCommonInstanceMetadataCall) Fields ¶
func (c *ProjectsSetCommonInstanceMetadataCall) Fields(s ...googleapi.Field) *ProjectsSetCommonInstanceMetadataCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsSetCommonInstanceMetadataCall) Header ¶
func (c *ProjectsSetCommonInstanceMetadataCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsSetCommonInstanceMetadataCall) RequestId ¶
func (c *ProjectsSetCommonInstanceMetadataCall) RequestId(requestId string) *ProjectsSetCommonInstanceMetadataCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ProjectsSetDefaultNetworkTierCall ¶
type ProjectsSetDefaultNetworkTierCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSetDefaultNetworkTierCall) Context ¶
func (c *ProjectsSetDefaultNetworkTierCall) Context(ctx context.Context) *ProjectsSetDefaultNetworkTierCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSetDefaultNetworkTierCall) Do ¶
func (c *ProjectsSetDefaultNetworkTierCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.setDefaultNetworkTier" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSetDefaultNetworkTierCall) Fields ¶
func (c *ProjectsSetDefaultNetworkTierCall) Fields(s ...googleapi.Field) *ProjectsSetDefaultNetworkTierCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsSetDefaultNetworkTierCall) Header ¶
func (c *ProjectsSetDefaultNetworkTierCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsSetDefaultNetworkTierCall) RequestId ¶
func (c *ProjectsSetDefaultNetworkTierCall) RequestId(requestId string) *ProjectsSetDefaultNetworkTierCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ProjectsSetDefaultNetworkTierRequest ¶
type ProjectsSetDefaultNetworkTierRequest struct { // NetworkTier: Default network tier to be set. // // Possible values: // "FIXED_STANDARD" - Public internet quality with fixed bandwidth. // "PREMIUM" - High quality, Google-grade network tier, support for all // networking products. // "STANDARD" - Public internet quality, only limited support for other // networking products. // "STANDARD_OVERRIDES_FIXED_STANDARD" - (Output only) Temporary tier for // FIXED_STANDARD when fixed standard tier is expired or not configured. NetworkTier string `json:"networkTier,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkTier") 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. "NetworkTier") 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:"-"` }
func (ProjectsSetDefaultNetworkTierRequest) MarshalJSON ¶
func (s ProjectsSetDefaultNetworkTierRequest) MarshalJSON() ([]byte, error)
type ProjectsSetUsageExportBucketCall ¶
type ProjectsSetUsageExportBucketCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSetUsageExportBucketCall) Context ¶
func (c *ProjectsSetUsageExportBucketCall) Context(ctx context.Context) *ProjectsSetUsageExportBucketCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSetUsageExportBucketCall) Do ¶
func (c *ProjectsSetUsageExportBucketCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.setUsageExportBucket" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSetUsageExportBucketCall) Fields ¶
func (c *ProjectsSetUsageExportBucketCall) Fields(s ...googleapi.Field) *ProjectsSetUsageExportBucketCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsSetUsageExportBucketCall) Header ¶
func (c *ProjectsSetUsageExportBucketCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsSetUsageExportBucketCall) RequestId ¶
func (c *ProjectsSetUsageExportBucketCall) RequestId(requestId string) *ProjectsSetUsageExportBucketCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type PublicAdvertisedPrefix ¶ added in v0.43.0
type PublicAdvertisedPrefix struct { // ByoipApiVersion: [Output Only] The version of BYOIP API. // // Possible values: // "V1" - This public advertised prefix can be used to create both regional // and global public delegated prefixes. It usually takes 4 weeks to create or // delete a public delegated prefix. The BGP status cannot be changed. // "V2" - This public advertised prefix can only be used to create regional // public delegated prefixes. Public delegated prefix creation and deletion // takes minutes and the BGP status can be modified. ByoipApiVersion string `json:"byoipApiVersion,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // DnsVerificationIp: The address to be used for reverse DNS verification. DnsVerificationIp string `json:"dnsVerificationIp,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents stored in // this object. This field is used in optimistic locking. This field will be // ignored when inserting a new PublicAdvertisedPrefix. An up-to-date // fingerprint must be provided in order to update the PublicAdvertisedPrefix, // otherwise the request will fail with error 412 conditionNotMet. To see the // latest fingerprint, make a get() request to retrieve a // PublicAdvertisedPrefix. Fingerprint string `json:"fingerprint,omitempty"` // Id: [Output Only] The unique identifier for the resource type. The server // generates this identifier. Id uint64 `json:"id,omitempty,string"` // IpCidrRange: The address range, in CIDR format, represented by this public // advertised prefix. IpCidrRange string `json:"ipCidrRange,omitempty"` // Kind: [Output Only] Type of the resource. Always // compute#publicAdvertisedPrefix for public advertised prefixes. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // PdpScope: Specifies how child public delegated prefix will be scoped. It // could be one of following values: - `REGIONAL`: The public delegated prefix // is regional only. The provisioning will take a few minutes. - `GLOBAL`: The // public delegated prefix is global only. The provisioning will take ~4 weeks. // - `GLOBAL_AND_REGIONAL` [output only]: The public delegated prefixes is // BYOIP V1 legacy prefix. This is output only value and no longer supported in // BYOIP V2. // // Possible values: // "GLOBAL" - The public delegated prefix is global only. The provisioning // will take ~4 weeks. // "GLOBAL_AND_REGIONAL" - The public delegated prefixes is BYOIP V1 legacy // prefix. This is output only value and no longer supported in BYOIP V2. // "REGIONAL" - The public delegated prefix is regional only. The // provisioning will take a few minutes. PdpScope string `json:"pdpScope,omitempty"` // PublicDelegatedPrefixs: [Output Only] The list of public delegated prefixes // that exist for this public advertised prefix. PublicDelegatedPrefixs []*PublicAdvertisedPrefixPublicDelegatedPrefix `json:"publicDelegatedPrefixs,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // verification. SharedSecret string `json:"sharedSecret,omitempty"` // Status: The status of the public advertised prefix. Possible values include: // - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has // configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - // `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - // `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - // `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - // `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. // // Possible values: // "ANNOUNCED_TO_INTERNET" - The prefix is announced to Internet. // "INITIAL" - RPKI validation is complete. // "PREFIX_CONFIGURATION_COMPLETE" - The prefix is fully configured. // "PREFIX_CONFIGURATION_IN_PROGRESS" - The prefix is being configured. // "PREFIX_REMOVAL_IN_PROGRESS" - The prefix is being removed. // "PTR_CONFIGURED" - User has configured the PTR. // "READY_TO_ANNOUNCE" - The prefix is currently withdrawn but ready to be // announced. // "REVERSE_DNS_LOOKUP_FAILED" - Reverse DNS lookup failed. // "VALIDATED" - Reverse DNS lookup is successful. Status string `json:"status,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ByoipApiVersion") 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. "ByoipApiVersion") 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:"-"` }
PublicAdvertisedPrefix: A public advertised prefix represents an aggregated IP prefix or netblock which customers bring to cloud. The IP prefix is a single unit of route advertisement and is announced globally to the internet.
func (PublicAdvertisedPrefix) MarshalJSON ¶ added in v0.43.0
func (s PublicAdvertisedPrefix) MarshalJSON() ([]byte, error)
type PublicAdvertisedPrefixList ¶ added in v0.43.0
type PublicAdvertisedPrefixList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of PublicAdvertisedPrefix resources. Items []*PublicAdvertisedPrefix `json:"items,omitempty"` // Kind: [Output Only] Type of the resource. Always // compute#publicAdvertisedPrefix for public advertised prefixes. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *PublicAdvertisedPrefixListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (PublicAdvertisedPrefixList) MarshalJSON ¶ added in v0.43.0
func (s PublicAdvertisedPrefixList) MarshalJSON() ([]byte, error)
type PublicAdvertisedPrefixListWarning ¶ added in v0.43.0
type PublicAdvertisedPrefixListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*PublicAdvertisedPrefixListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
PublicAdvertisedPrefixListWarning: [Output Only] Informational warning message.
func (PublicAdvertisedPrefixListWarning) MarshalJSON ¶ added in v0.43.0
func (s PublicAdvertisedPrefixListWarning) MarshalJSON() ([]byte, error)
type PublicAdvertisedPrefixListWarningData ¶ added in v0.43.0
type PublicAdvertisedPrefixListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (PublicAdvertisedPrefixListWarningData) MarshalJSON ¶ added in v0.43.0
func (s PublicAdvertisedPrefixListWarningData) MarshalJSON() ([]byte, error)
type PublicAdvertisedPrefixPublicDelegatedPrefix ¶ added in v0.43.0
type PublicAdvertisedPrefixPublicDelegatedPrefix struct { // IpRange: The IP address range of the public delegated prefix IpRange string `json:"ipRange,omitempty"` // Name: The name of the public delegated prefix Name string `json:"name,omitempty"` // Project: The project number of the public delegated prefix Project string `json:"project,omitempty"` // Region: The region of the public delegated prefix if it is regional. If // absent, the prefix is global. Region string `json:"region,omitempty"` // Status: The status of the public delegated prefix. Possible values are: // INITIALIZING: The public delegated prefix is being initialized and addresses // cannot be created yet. ANNOUNCED: The public delegated prefix is active. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "IpRange") 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. "IpRange") 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:"-"` }
PublicAdvertisedPrefixPublicDelegatedPrefix: Represents a CIDR range which can be used to assign addresses.
func (PublicAdvertisedPrefixPublicDelegatedPrefix) MarshalJSON ¶ added in v0.43.0
func (s PublicAdvertisedPrefixPublicDelegatedPrefix) MarshalJSON() ([]byte, error)
type PublicAdvertisedPrefixesAnnounceCall ¶ added in v0.149.0
type PublicAdvertisedPrefixesAnnounceCall struct {
// contains filtered or unexported fields
}
func (*PublicAdvertisedPrefixesAnnounceCall) Context ¶ added in v0.149.0
func (c *PublicAdvertisedPrefixesAnnounceCall) Context(ctx context.Context) *PublicAdvertisedPrefixesAnnounceCall
Context sets the context to be used in this call's Do method.
func (*PublicAdvertisedPrefixesAnnounceCall) Do ¶ added in v0.149.0
func (c *PublicAdvertisedPrefixesAnnounceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicAdvertisedPrefixes.announce" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PublicAdvertisedPrefixesAnnounceCall) Fields ¶ added in v0.149.0
func (c *PublicAdvertisedPrefixesAnnounceCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesAnnounceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PublicAdvertisedPrefixesAnnounceCall) Header ¶ added in v0.149.0
func (c *PublicAdvertisedPrefixesAnnounceCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PublicAdvertisedPrefixesAnnounceCall) RequestId ¶ added in v0.149.0
func (c *PublicAdvertisedPrefixesAnnounceCall) RequestId(requestId string) *PublicAdvertisedPrefixesAnnounceCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type PublicAdvertisedPrefixesDeleteCall ¶ added in v0.43.0
type PublicAdvertisedPrefixesDeleteCall struct {
// contains filtered or unexported fields
}
func (*PublicAdvertisedPrefixesDeleteCall) Context ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesDeleteCall) Context(ctx context.Context) *PublicAdvertisedPrefixesDeleteCall
Context sets the context to be used in this call's Do method.
func (*PublicAdvertisedPrefixesDeleteCall) Do ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicAdvertisedPrefixes.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PublicAdvertisedPrefixesDeleteCall) Fields ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesDeleteCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PublicAdvertisedPrefixesDeleteCall) Header ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PublicAdvertisedPrefixesDeleteCall) RequestId ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesDeleteCall) RequestId(requestId string) *PublicAdvertisedPrefixesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type PublicAdvertisedPrefixesGetCall ¶ added in v0.43.0
type PublicAdvertisedPrefixesGetCall struct {
// contains filtered or unexported fields
}
func (*PublicAdvertisedPrefixesGetCall) Context ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesGetCall) Context(ctx context.Context) *PublicAdvertisedPrefixesGetCall
Context sets the context to be used in this call's Do method.
func (*PublicAdvertisedPrefixesGetCall) Do ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*PublicAdvertisedPrefix, error)
Do executes the "compute.publicAdvertisedPrefixes.get" call. Any non-2xx status code is an error. Response headers are in either *PublicAdvertisedPrefix.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PublicAdvertisedPrefixesGetCall) Fields ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesGetCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PublicAdvertisedPrefixesGetCall) Header ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PublicAdvertisedPrefixesGetCall) IfNoneMatch ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesGetCall) IfNoneMatch(entityTag string) *PublicAdvertisedPrefixesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type PublicAdvertisedPrefixesInsertCall ¶ added in v0.43.0
type PublicAdvertisedPrefixesInsertCall struct {
// contains filtered or unexported fields
}
func (*PublicAdvertisedPrefixesInsertCall) Context ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesInsertCall) Context(ctx context.Context) *PublicAdvertisedPrefixesInsertCall
Context sets the context to be used in this call's Do method.
func (*PublicAdvertisedPrefixesInsertCall) Do ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicAdvertisedPrefixes.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PublicAdvertisedPrefixesInsertCall) Fields ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesInsertCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PublicAdvertisedPrefixesInsertCall) Header ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PublicAdvertisedPrefixesInsertCall) RequestId ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesInsertCall) RequestId(requestId string) *PublicAdvertisedPrefixesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type PublicAdvertisedPrefixesListCall ¶ added in v0.43.0
type PublicAdvertisedPrefixesListCall struct {
// contains filtered or unexported fields
}
func (*PublicAdvertisedPrefixesListCall) Context ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesListCall) Context(ctx context.Context) *PublicAdvertisedPrefixesListCall
Context sets the context to be used in this call's Do method.
func (*PublicAdvertisedPrefixesListCall) Do ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesListCall) Do(opts ...googleapi.CallOption) (*PublicAdvertisedPrefixList, error)
Do executes the "compute.publicAdvertisedPrefixes.list" call. Any non-2xx status code is an error. Response headers are in either *PublicAdvertisedPrefixList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PublicAdvertisedPrefixesListCall) Fields ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesListCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PublicAdvertisedPrefixesListCall) Filter ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesListCall) Filter(filter string) *PublicAdvertisedPrefixesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*PublicAdvertisedPrefixesListCall) Header ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PublicAdvertisedPrefixesListCall) IfNoneMatch ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesListCall) IfNoneMatch(entityTag string) *PublicAdvertisedPrefixesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*PublicAdvertisedPrefixesListCall) MaxResults ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesListCall) MaxResults(maxResults int64) *PublicAdvertisedPrefixesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*PublicAdvertisedPrefixesListCall) OrderBy ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesListCall) OrderBy(orderBy string) *PublicAdvertisedPrefixesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*PublicAdvertisedPrefixesListCall) PageToken ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesListCall) PageToken(pageToken string) *PublicAdvertisedPrefixesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*PublicAdvertisedPrefixesListCall) Pages ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesListCall) Pages(ctx context.Context, f func(*PublicAdvertisedPrefixList) 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 (*PublicAdvertisedPrefixesListCall) ReturnPartialSuccess ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PublicAdvertisedPrefixesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type PublicAdvertisedPrefixesPatchCall ¶ added in v0.43.0
type PublicAdvertisedPrefixesPatchCall struct {
// contains filtered or unexported fields
}
func (*PublicAdvertisedPrefixesPatchCall) Context ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesPatchCall) Context(ctx context.Context) *PublicAdvertisedPrefixesPatchCall
Context sets the context to be used in this call's Do method.
func (*PublicAdvertisedPrefixesPatchCall) Do ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicAdvertisedPrefixes.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PublicAdvertisedPrefixesPatchCall) Fields ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesPatchCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PublicAdvertisedPrefixesPatchCall) Header ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PublicAdvertisedPrefixesPatchCall) RequestId ¶ added in v0.43.0
func (c *PublicAdvertisedPrefixesPatchCall) RequestId(requestId string) *PublicAdvertisedPrefixesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type PublicAdvertisedPrefixesService ¶ added in v0.43.0
type PublicAdvertisedPrefixesService struct {
// contains filtered or unexported fields
}
func NewPublicAdvertisedPrefixesService ¶ added in v0.43.0
func NewPublicAdvertisedPrefixesService(s *Service) *PublicAdvertisedPrefixesService
func (*PublicAdvertisedPrefixesService) Announce ¶ added in v0.149.0
func (r *PublicAdvertisedPrefixesService) Announce(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesAnnounceCall
Announce: Announces the specified PublicAdvertisedPrefix
- project: Project ID for this request.
- publicAdvertisedPrefix: The name of the public advertised prefix. It should comply with RFC1035.
func (*PublicAdvertisedPrefixesService) Delete ¶ added in v0.43.0
func (r *PublicAdvertisedPrefixesService) Delete(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesDeleteCall
Delete: Deletes the specified PublicAdvertisedPrefix
- project: Project ID for this request.
- publicAdvertisedPrefix: Name of the PublicAdvertisedPrefix resource to delete.
func (*PublicAdvertisedPrefixesService) Get ¶ added in v0.43.0
func (r *PublicAdvertisedPrefixesService) Get(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesGetCall
Get: Returns the specified PublicAdvertisedPrefix resource.
- project: Project ID for this request.
- publicAdvertisedPrefix: Name of the PublicAdvertisedPrefix resource to return.
func (*PublicAdvertisedPrefixesService) Insert ¶ added in v0.43.0
func (r *PublicAdvertisedPrefixesService) Insert(project string, publicadvertisedprefix *PublicAdvertisedPrefix) *PublicAdvertisedPrefixesInsertCall
Insert: Creates a PublicAdvertisedPrefix in the specified project using the parameters that are included in the request.
- project: Project ID for this request.
func (*PublicAdvertisedPrefixesService) List ¶ added in v0.43.0
func (r *PublicAdvertisedPrefixesService) List(project string) *PublicAdvertisedPrefixesListCall
List: Lists the PublicAdvertisedPrefixes for a project.
- project: Project ID for this request.
func (*PublicAdvertisedPrefixesService) Patch ¶ added in v0.43.0
func (r *PublicAdvertisedPrefixesService) Patch(project string, publicAdvertisedPrefix string, publicadvertisedprefix *PublicAdvertisedPrefix) *PublicAdvertisedPrefixesPatchCall
Patch: Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
- project: Project ID for this request.
- publicAdvertisedPrefix: Name of the PublicAdvertisedPrefix resource to patch.
func (*PublicAdvertisedPrefixesService) Withdraw ¶ added in v0.149.0
func (r *PublicAdvertisedPrefixesService) Withdraw(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesWithdrawCall
Withdraw: Withdraws the specified PublicAdvertisedPrefix
- project: Project ID for this request.
- publicAdvertisedPrefix: The name of the public advertised prefix. It should comply with RFC1035.
type PublicAdvertisedPrefixesWithdrawCall ¶ added in v0.149.0
type PublicAdvertisedPrefixesWithdrawCall struct {
// contains filtered or unexported fields
}
func (*PublicAdvertisedPrefixesWithdrawCall) Context ¶ added in v0.149.0
func (c *PublicAdvertisedPrefixesWithdrawCall) Context(ctx context.Context) *PublicAdvertisedPrefixesWithdrawCall
Context sets the context to be used in this call's Do method.
func (*PublicAdvertisedPrefixesWithdrawCall) Do ¶ added in v0.149.0
func (c *PublicAdvertisedPrefixesWithdrawCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicAdvertisedPrefixes.withdraw" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PublicAdvertisedPrefixesWithdrawCall) Fields ¶ added in v0.149.0
func (c *PublicAdvertisedPrefixesWithdrawCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesWithdrawCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PublicAdvertisedPrefixesWithdrawCall) Header ¶ added in v0.149.0
func (c *PublicAdvertisedPrefixesWithdrawCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PublicAdvertisedPrefixesWithdrawCall) RequestId ¶ added in v0.149.0
func (c *PublicAdvertisedPrefixesWithdrawCall) RequestId(requestId string) *PublicAdvertisedPrefixesWithdrawCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type PublicDelegatedPrefix ¶ added in v0.43.0
type PublicDelegatedPrefix struct { // AllocatablePrefixLength: The allocatable prefix length supported by this // public delegated prefix. This field is optional and cannot be set for // prefixes in DELEGATION mode. It cannot be set for IPv4 prefixes either, and // it always defaults to 32. AllocatablePrefixLength int64 `json:"allocatablePrefixLength,omitempty"` // ByoipApiVersion: [Output Only] The version of BYOIP API. // // Possible values: // "V1" - This public delegated prefix usually takes 4 weeks to delete, and // the BGP status cannot be changed. Announce and Withdraw APIs can not be used // on this prefix. // "V2" - This public delegated prefix takes minutes to delete. Announce and // Withdraw APIs can be used on this prefix to change the BGP status. ByoipApiVersion string `json:"byoipApiVersion,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents stored in // this object. This field is used in optimistic locking. This field will be // ignored when inserting a new PublicDelegatedPrefix. An up-to-date // fingerprint must be provided in order to update the PublicDelegatedPrefix, // otherwise the request will fail with error 412 conditionNotMet. To see the // latest fingerprint, make a get() request to retrieve a // PublicDelegatedPrefix. Fingerprint string `json:"fingerprint,omitempty"` // Id: [Output Only] The unique identifier for the resource type. The server // generates this identifier. Id uint64 `json:"id,omitempty,string"` // IpCidrRange: The IP address range, in CIDR format, represented by this // public delegated prefix. IpCidrRange string `json:"ipCidrRange,omitempty"` // IsLiveMigration: If true, the prefix will be live migrated. IsLiveMigration bool `json:"isLiveMigration,omitempty"` // Kind: [Output Only] Type of the resource. Always // compute#publicDelegatedPrefix for public delegated prefixes. Kind string `json:"kind,omitempty"` // Mode: The public delegated prefix mode for IPv6 only. // // Possible values: // "DELEGATION" - The public delegated prefix is used for further // sub-delegation only. Such prefixes cannot set allocatablePrefixLength. // "EXTERNAL_IPV6_FORWARDING_RULE_CREATION" - The public delegated prefix is // used for creating forwarding rules only. Such prefixes cannot set // publicDelegatedSubPrefixes. Mode string `json:"mode,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // ParentPrefix: The URL of parent prefix. Either PublicAdvertisedPrefix or // PublicDelegatedPrefix. ParentPrefix string `json:"parentPrefix,omitempty"` // PublicDelegatedSubPrefixs: The list of sub public delegated prefixes that // exist for this public delegated prefix. PublicDelegatedSubPrefixs []*PublicDelegatedPrefixPublicDelegatedSubPrefix `json:"publicDelegatedSubPrefixs,omitempty"` // Region: [Output Only] URL of the region where the public delegated prefix // resides. This field applies only to the region resource. You must specify // this field as part of the HTTP request URL. It is not settable as a field in // the request body. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Status: [Output Only] The status of the public delegated prefix, which can // be one of following values: - `INITIALIZING` The public delegated prefix is // being initialized and addresses cannot be created yet. - `READY_TO_ANNOUNCE` // The public delegated prefix is a live migration prefix and is active. - // `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public // delegated prefix is being deprovsioned. // // Possible values: // "ANNOUNCED" - The public delegated prefix is active. // "ANNOUNCED_TO_GOOGLE" - The prefix is announced within Google network. // "ANNOUNCED_TO_INTERNET" - The prefix is announced to Internet and within // Google. // "DELETING" - The public delegated prefix is being deprovsioned. // "INITIALIZING" - The public delegated prefix is being initialized and // addresses cannot be created yet. // "READY_TO_ANNOUNCE" - The public delegated prefix is currently withdrawn // but ready to be announced. Status string `json:"status,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AllocatablePrefixLength") 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. "AllocatablePrefixLength") 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:"-"` }
PublicDelegatedPrefix: A PublicDelegatedPrefix resource represents an IP block within a PublicAdvertisedPrefix that is configured within a single cloud scope (global or region). IPs in the block can be allocated to resources within that scope. Public delegated prefixes may be further broken up into smaller IP blocks in the same scope as the parent block.
func (PublicDelegatedPrefix) MarshalJSON ¶ added in v0.43.0
func (s PublicDelegatedPrefix) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixAggregatedList ¶ added in v0.43.0
type PublicDelegatedPrefixAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of PublicDelegatedPrefixesScopedList resources. Items map[string]PublicDelegatedPrefixesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of the resource. Always // compute#publicDelegatedPrefixAggregatedList for aggregated lists of public // delegated prefixes. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *PublicDelegatedPrefixAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (PublicDelegatedPrefixAggregatedList) MarshalJSON ¶ added in v0.43.0
func (s PublicDelegatedPrefixAggregatedList) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixAggregatedListWarning ¶ added in v0.43.0
type PublicDelegatedPrefixAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*PublicDelegatedPrefixAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
PublicDelegatedPrefixAggregatedListWarning: [Output Only] Informational warning message.
func (PublicDelegatedPrefixAggregatedListWarning) MarshalJSON ¶ added in v0.43.0
func (s PublicDelegatedPrefixAggregatedListWarning) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixAggregatedListWarningData ¶ added in v0.43.0
type PublicDelegatedPrefixAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (PublicDelegatedPrefixAggregatedListWarningData) MarshalJSON ¶ added in v0.43.0
func (s PublicDelegatedPrefixAggregatedListWarningData) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixList ¶ added in v0.43.0
type PublicDelegatedPrefixList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of PublicDelegatedPrefix resources. Items []*PublicDelegatedPrefix `json:"items,omitempty"` // Kind: [Output Only] Type of the resource. Always // compute#publicDelegatedPrefixList for public delegated prefixes. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *PublicDelegatedPrefixListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (PublicDelegatedPrefixList) MarshalJSON ¶ added in v0.43.0
func (s PublicDelegatedPrefixList) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixListWarning ¶ added in v0.43.0
type PublicDelegatedPrefixListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*PublicDelegatedPrefixListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
PublicDelegatedPrefixListWarning: [Output Only] Informational warning message.
func (PublicDelegatedPrefixListWarning) MarshalJSON ¶ added in v0.43.0
func (s PublicDelegatedPrefixListWarning) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixListWarningData ¶ added in v0.43.0
type PublicDelegatedPrefixListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (PublicDelegatedPrefixListWarningData) MarshalJSON ¶ added in v0.43.0
func (s PublicDelegatedPrefixListWarningData) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixPublicDelegatedSubPrefix ¶ added in v0.43.0
type PublicDelegatedPrefixPublicDelegatedSubPrefix struct { // AllocatablePrefixLength: The allocatable prefix length supported by this // PublicDelegatedSubPrefix. AllocatablePrefixLength int64 `json:"allocatablePrefixLength,omitempty"` // DelegateeProject: Name of the project scoping this PublicDelegatedSubPrefix. DelegateeProject string `json:"delegateeProject,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // IpCidrRange: The IP address range, in CIDR format, represented by this sub // public delegated prefix. IpCidrRange string `json:"ipCidrRange,omitempty"` // IsAddress: Whether the sub prefix is delegated to create Address resources // in the delegatee project. IsAddress bool `json:"isAddress,omitempty"` // Mode: The PublicDelegatedSubPrefix mode for IPv6 only. // // Possible values: // "DELEGATION" - The public delegated prefix is used for further // sub-delegation only. Such prefixes cannot set allocatablePrefixLength. // "EXTERNAL_IPV6_FORWARDING_RULE_CREATION" - The public delegated prefix is // used for creating forwarding rules only. Such prefixes cannot set // publicDelegatedSubPrefixes. Mode string `json:"mode,omitempty"` // Name: The name of the sub public delegated prefix. Name string `json:"name,omitempty"` // Region: [Output Only] The region of the sub public delegated prefix if it is // regional. If absent, the sub prefix is global. Region string `json:"region,omitempty"` // Status: [Output Only] The status of the sub public delegated prefix. // // Possible values: // "ACTIVE" // "INACTIVE" Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "AllocatablePrefixLength") 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. "AllocatablePrefixLength") 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:"-"` }
PublicDelegatedPrefixPublicDelegatedSubPrefix: Represents a sub PublicDelegatedPrefix.
func (PublicDelegatedPrefixPublicDelegatedSubPrefix) MarshalJSON ¶ added in v0.43.0
func (s PublicDelegatedPrefixPublicDelegatedSubPrefix) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixesAggregatedListCall ¶ added in v0.43.0
type PublicDelegatedPrefixesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*PublicDelegatedPrefixesAggregatedListCall) Context ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesAggregatedListCall) Context(ctx context.Context) *PublicDelegatedPrefixesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*PublicDelegatedPrefixesAggregatedListCall) Do ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesAggregatedListCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefixAggregatedList, error)
Do executes the "compute.publicDelegatedPrefixes.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *PublicDelegatedPrefixAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PublicDelegatedPrefixesAggregatedListCall) Fields ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesAggregatedListCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PublicDelegatedPrefixesAggregatedListCall) Filter ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesAggregatedListCall) Filter(filter string) *PublicDelegatedPrefixesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*PublicDelegatedPrefixesAggregatedListCall) Header ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PublicDelegatedPrefixesAggregatedListCall) IfNoneMatch ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesAggregatedListCall) IfNoneMatch(entityTag string) *PublicDelegatedPrefixesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*PublicDelegatedPrefixesAggregatedListCall) IncludeAllScopes ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *PublicDelegatedPrefixesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*PublicDelegatedPrefixesAggregatedListCall) MaxResults ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesAggregatedListCall) MaxResults(maxResults int64) *PublicDelegatedPrefixesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*PublicDelegatedPrefixesAggregatedListCall) OrderBy ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesAggregatedListCall) OrderBy(orderBy string) *PublicDelegatedPrefixesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*PublicDelegatedPrefixesAggregatedListCall) PageToken ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesAggregatedListCall) PageToken(pageToken string) *PublicDelegatedPrefixesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*PublicDelegatedPrefixesAggregatedListCall) Pages ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesAggregatedListCall) Pages(ctx context.Context, f func(*PublicDelegatedPrefixAggregatedList) 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 (*PublicDelegatedPrefixesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PublicDelegatedPrefixesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*PublicDelegatedPrefixesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *PublicDelegatedPrefixesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *PublicDelegatedPrefixesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type PublicDelegatedPrefixesAnnounceCall ¶ added in v0.149.0
type PublicDelegatedPrefixesAnnounceCall struct {
// contains filtered or unexported fields
}
func (*PublicDelegatedPrefixesAnnounceCall) Context ¶ added in v0.149.0
func (c *PublicDelegatedPrefixesAnnounceCall) Context(ctx context.Context) *PublicDelegatedPrefixesAnnounceCall
Context sets the context to be used in this call's Do method.
func (*PublicDelegatedPrefixesAnnounceCall) Do ¶ added in v0.149.0
func (c *PublicDelegatedPrefixesAnnounceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicDelegatedPrefixes.announce" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PublicDelegatedPrefixesAnnounceCall) Fields ¶ added in v0.149.0
func (c *PublicDelegatedPrefixesAnnounceCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesAnnounceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PublicDelegatedPrefixesAnnounceCall) Header ¶ added in v0.149.0
func (c *PublicDelegatedPrefixesAnnounceCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PublicDelegatedPrefixesAnnounceCall) RequestId ¶ added in v0.149.0
func (c *PublicDelegatedPrefixesAnnounceCall) RequestId(requestId string) *PublicDelegatedPrefixesAnnounceCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type PublicDelegatedPrefixesDeleteCall ¶ added in v0.43.0
type PublicDelegatedPrefixesDeleteCall struct {
// contains filtered or unexported fields
}
func (*PublicDelegatedPrefixesDeleteCall) Context ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesDeleteCall) Context(ctx context.Context) *PublicDelegatedPrefixesDeleteCall
Context sets the context to be used in this call's Do method.
func (*PublicDelegatedPrefixesDeleteCall) Do ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicDelegatedPrefixes.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PublicDelegatedPrefixesDeleteCall) Fields ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesDeleteCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PublicDelegatedPrefixesDeleteCall) Header ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PublicDelegatedPrefixesDeleteCall) RequestId ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesDeleteCall) RequestId(requestId string) *PublicDelegatedPrefixesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type PublicDelegatedPrefixesGetCall ¶ added in v0.43.0
type PublicDelegatedPrefixesGetCall struct {
// contains filtered or unexported fields
}
func (*PublicDelegatedPrefixesGetCall) Context ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesGetCall) Context(ctx context.Context) *PublicDelegatedPrefixesGetCall
Context sets the context to be used in this call's Do method.
func (*PublicDelegatedPrefixesGetCall) Do ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefix, error)
Do executes the "compute.publicDelegatedPrefixes.get" call. Any non-2xx status code is an error. Response headers are in either *PublicDelegatedPrefix.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PublicDelegatedPrefixesGetCall) Fields ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesGetCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PublicDelegatedPrefixesGetCall) Header ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PublicDelegatedPrefixesGetCall) IfNoneMatch ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesGetCall) IfNoneMatch(entityTag string) *PublicDelegatedPrefixesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type PublicDelegatedPrefixesInsertCall ¶ added in v0.43.0
type PublicDelegatedPrefixesInsertCall struct {
// contains filtered or unexported fields
}
func (*PublicDelegatedPrefixesInsertCall) Context ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesInsertCall) Context(ctx context.Context) *PublicDelegatedPrefixesInsertCall
Context sets the context to be used in this call's Do method.
func (*PublicDelegatedPrefixesInsertCall) Do ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicDelegatedPrefixes.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PublicDelegatedPrefixesInsertCall) Fields ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesInsertCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PublicDelegatedPrefixesInsertCall) Header ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PublicDelegatedPrefixesInsertCall) RequestId ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesInsertCall) RequestId(requestId string) *PublicDelegatedPrefixesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type PublicDelegatedPrefixesListCall ¶ added in v0.43.0
type PublicDelegatedPrefixesListCall struct {
// contains filtered or unexported fields
}
func (*PublicDelegatedPrefixesListCall) Context ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesListCall) Context(ctx context.Context) *PublicDelegatedPrefixesListCall
Context sets the context to be used in this call's Do method.
func (*PublicDelegatedPrefixesListCall) Do ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesListCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefixList, error)
Do executes the "compute.publicDelegatedPrefixes.list" call. Any non-2xx status code is an error. Response headers are in either *PublicDelegatedPrefixList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PublicDelegatedPrefixesListCall) Fields ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesListCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PublicDelegatedPrefixesListCall) Filter ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesListCall) Filter(filter string) *PublicDelegatedPrefixesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*PublicDelegatedPrefixesListCall) Header ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PublicDelegatedPrefixesListCall) IfNoneMatch ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesListCall) IfNoneMatch(entityTag string) *PublicDelegatedPrefixesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*PublicDelegatedPrefixesListCall) MaxResults ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesListCall) MaxResults(maxResults int64) *PublicDelegatedPrefixesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*PublicDelegatedPrefixesListCall) OrderBy ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesListCall) OrderBy(orderBy string) *PublicDelegatedPrefixesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*PublicDelegatedPrefixesListCall) PageToken ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesListCall) PageToken(pageToken string) *PublicDelegatedPrefixesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*PublicDelegatedPrefixesListCall) Pages ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesListCall) Pages(ctx context.Context, f func(*PublicDelegatedPrefixList) 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 (*PublicDelegatedPrefixesListCall) ReturnPartialSuccess ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PublicDelegatedPrefixesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type PublicDelegatedPrefixesPatchCall ¶ added in v0.43.0
type PublicDelegatedPrefixesPatchCall struct {
// contains filtered or unexported fields
}
func (*PublicDelegatedPrefixesPatchCall) Context ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesPatchCall) Context(ctx context.Context) *PublicDelegatedPrefixesPatchCall
Context sets the context to be used in this call's Do method.
func (*PublicDelegatedPrefixesPatchCall) Do ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicDelegatedPrefixes.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PublicDelegatedPrefixesPatchCall) Fields ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesPatchCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PublicDelegatedPrefixesPatchCall) Header ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PublicDelegatedPrefixesPatchCall) RequestId ¶ added in v0.43.0
func (c *PublicDelegatedPrefixesPatchCall) RequestId(requestId string) *PublicDelegatedPrefixesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type PublicDelegatedPrefixesScopedList ¶ added in v0.43.0
type PublicDelegatedPrefixesScopedList struct { // PublicDelegatedPrefixes: [Output Only] A list of PublicDelegatedPrefixes // contained in this scope. PublicDelegatedPrefixes []*PublicDelegatedPrefix `json:"publicDelegatedPrefixes,omitempty"` // Warning: [Output Only] Informational warning which replaces the list of // public delegated prefixes when the list is empty. Warning *PublicDelegatedPrefixesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "PublicDelegatedPrefixes") 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. "PublicDelegatedPrefixes") 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:"-"` }
func (PublicDelegatedPrefixesScopedList) MarshalJSON ¶ added in v0.43.0
func (s PublicDelegatedPrefixesScopedList) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixesScopedListWarning ¶ added in v0.43.0
type PublicDelegatedPrefixesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*PublicDelegatedPrefixesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
PublicDelegatedPrefixesScopedListWarning: [Output Only] Informational warning which replaces the list of public delegated prefixes when the list is empty.
func (PublicDelegatedPrefixesScopedListWarning) MarshalJSON ¶ added in v0.43.0
func (s PublicDelegatedPrefixesScopedListWarning) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixesScopedListWarningData ¶ added in v0.43.0
type PublicDelegatedPrefixesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (PublicDelegatedPrefixesScopedListWarningData) MarshalJSON ¶ added in v0.43.0
func (s PublicDelegatedPrefixesScopedListWarningData) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixesService ¶ added in v0.43.0
type PublicDelegatedPrefixesService struct {
// contains filtered or unexported fields
}
func NewPublicDelegatedPrefixesService ¶ added in v0.43.0
func NewPublicDelegatedPrefixesService(s *Service) *PublicDelegatedPrefixesService
func (*PublicDelegatedPrefixesService) AggregatedList ¶ added in v0.43.0
func (r *PublicDelegatedPrefixesService) AggregatedList(project string) *PublicDelegatedPrefixesAggregatedListCall
AggregatedList: Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Name of the project scoping this request.
func (*PublicDelegatedPrefixesService) Announce ¶ added in v0.149.0
func (r *PublicDelegatedPrefixesService) Announce(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesAnnounceCall
Announce: Announces the specified PublicDelegatedPrefix in the given region.
- project: Project ID for this request.
- publicDelegatedPrefix: The name of the public delegated prefix. It should comply with RFC1035.
- region: The name of the region where the public delegated prefix is located. It should comply with RFC1035.
func (*PublicDelegatedPrefixesService) Delete ¶ added in v0.43.0
func (r *PublicDelegatedPrefixesService) Delete(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesDeleteCall
Delete: Deletes the specified PublicDelegatedPrefix in the given region.
- project: Project ID for this request.
- publicDelegatedPrefix: Name of the PublicDelegatedPrefix resource to delete.
- region: Name of the region of this request.
func (*PublicDelegatedPrefixesService) Get ¶ added in v0.43.0
func (r *PublicDelegatedPrefixesService) Get(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesGetCall
Get: Returns the specified PublicDelegatedPrefix resource in the given region.
- project: Project ID for this request.
- publicDelegatedPrefix: Name of the PublicDelegatedPrefix resource to return.
- region: Name of the region of this request.
func (*PublicDelegatedPrefixesService) Insert ¶ added in v0.43.0
func (r *PublicDelegatedPrefixesService) Insert(project string, region string, publicdelegatedprefix *PublicDelegatedPrefix) *PublicDelegatedPrefixesInsertCall
Insert: Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request.
- project: Project ID for this request. - region: Name of the region of this request.
func (*PublicDelegatedPrefixesService) List ¶ added in v0.43.0
func (r *PublicDelegatedPrefixesService) List(project string, region string) *PublicDelegatedPrefixesListCall
List: Lists the PublicDelegatedPrefixes for a project in the given region.
- project: Project ID for this request. - region: Name of the region of this request.
func (*PublicDelegatedPrefixesService) Patch ¶ added in v0.43.0
func (r *PublicDelegatedPrefixesService) Patch(project string, region string, publicDelegatedPrefix string, publicdelegatedprefix *PublicDelegatedPrefix) *PublicDelegatedPrefixesPatchCall
Patch: Patches the specified PublicDelegatedPrefix resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
- project: Project ID for this request.
- publicDelegatedPrefix: Name of the PublicDelegatedPrefix resource to patch.
- region: Name of the region for this request.
func (*PublicDelegatedPrefixesService) Withdraw ¶ added in v0.149.0
func (r *PublicDelegatedPrefixesService) Withdraw(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesWithdrawCall
Withdraw: Withdraws the specified PublicDelegatedPrefix in the given region.
- project: Project ID for this request.
- publicDelegatedPrefix: The name of the public delegated prefix. It should comply with RFC1035.
- region: The name of the region where the public delegated prefix is located. It should comply with RFC1035.
type PublicDelegatedPrefixesWithdrawCall ¶ added in v0.149.0
type PublicDelegatedPrefixesWithdrawCall struct {
// contains filtered or unexported fields
}
func (*PublicDelegatedPrefixesWithdrawCall) Context ¶ added in v0.149.0
func (c *PublicDelegatedPrefixesWithdrawCall) Context(ctx context.Context) *PublicDelegatedPrefixesWithdrawCall
Context sets the context to be used in this call's Do method.
func (*PublicDelegatedPrefixesWithdrawCall) Do ¶ added in v0.149.0
func (c *PublicDelegatedPrefixesWithdrawCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicDelegatedPrefixes.withdraw" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PublicDelegatedPrefixesWithdrawCall) Fields ¶ added in v0.149.0
func (c *PublicDelegatedPrefixesWithdrawCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesWithdrawCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PublicDelegatedPrefixesWithdrawCall) Header ¶ added in v0.149.0
func (c *PublicDelegatedPrefixesWithdrawCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PublicDelegatedPrefixesWithdrawCall) RequestId ¶ added in v0.149.0
func (c *PublicDelegatedPrefixesWithdrawCall) RequestId(requestId string) *PublicDelegatedPrefixesWithdrawCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type Quota ¶
type Quota struct { // Limit: [Output Only] Quota limit for this metric. Limit float64 `json:"limit,omitempty"` // Metric: [Output Only] Name of the quota metric. // // Possible values: // "A2_CPUS" // "AFFINITY_GROUPS" // "AUTOSCALERS" // "BACKEND_BUCKETS" // "BACKEND_SERVICES" // "C2D_CPUS" // "C2_CPUS" // "C3_CPUS" // "COMMITMENTS" // "COMMITTED_A2_CPUS" // "COMMITTED_C2D_CPUS" // "COMMITTED_C2_CPUS" // "COMMITTED_C3_CPUS" // "COMMITTED_CPUS" // "COMMITTED_E2_CPUS" // "COMMITTED_LICENSES" // "COMMITTED_LOCAL_SSD_TOTAL_GB" // "COMMITTED_M3_CPUS" // "COMMITTED_MEMORY_OPTIMIZED_CPUS" // "COMMITTED_N2A_CPUS" // "COMMITTED_N2D_CPUS" // "COMMITTED_N2_CPUS" // "COMMITTED_NVIDIA_A100_80GB_GPUS" // "COMMITTED_NVIDIA_A100_GPUS" // "COMMITTED_NVIDIA_H100_GPUS" // "COMMITTED_NVIDIA_K80_GPUS" // "COMMITTED_NVIDIA_L4_GPUS" // "COMMITTED_NVIDIA_P100_GPUS" // "COMMITTED_NVIDIA_P4_GPUS" // "COMMITTED_NVIDIA_T4_GPUS" // "COMMITTED_NVIDIA_V100_GPUS" // "COMMITTED_T2A_CPUS" // "COMMITTED_T2D_CPUS" // "COMMITTED_Z3_CPUS" // "CPUS" - Guest CPUs // "CPUS_ALL_REGIONS" // "DISKS_TOTAL_GB" // "E2_CPUS" // "EXTERNAL_MANAGED_FORWARDING_RULES" // "EXTERNAL_NETWORK_LB_FORWARDING_RULES" // "EXTERNAL_PROTOCOL_FORWARDING_RULES" // "EXTERNAL_VPN_GATEWAYS" // "FIREWALLS" // "FORWARDING_RULES" // "GLOBAL_EXTERNAL_MANAGED_BACKEND_SERVICES" // "GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES" // "GLOBAL_EXTERNAL_PROXY_LB_BACKEND_SERVICES" // "GLOBAL_INTERNAL_ADDRESSES" // "GLOBAL_INTERNAL_MANAGED_BACKEND_SERVICES" // "GLOBAL_INTERNAL_TRAFFIC_DIRECTOR_BACKEND_SERVICES" // "GPUS_ALL_REGIONS" // "HDB_TOTAL_GB" // "HDB_TOTAL_IOPS" // "HDB_TOTAL_THROUGHPUT" // "HEALTH_CHECKS" // "IMAGES" // "INSTANCES" // "INSTANCE_GROUPS" // "INSTANCE_GROUP_MANAGERS" // "INSTANCE_TEMPLATES" // "INTERCONNECTS" // "INTERCONNECT_ATTACHMENTS_PER_REGION" // "INTERCONNECT_ATTACHMENTS_TOTAL_MBPS" // "INTERCONNECT_TOTAL_GBPS" // "INTERNAL_ADDRESSES" // "INTERNAL_TRAFFIC_DIRECTOR_FORWARDING_RULES" // "IN_PLACE_SNAPSHOTS" // "IN_USE_ADDRESSES" // "IN_USE_BACKUP_SCHEDULES" // "IN_USE_SNAPSHOT_SCHEDULES" // "LOCAL_SSD_TOTAL_GB" // "M1_CPUS" // "M2_CPUS" // "M3_CPUS" // "MACHINE_IMAGES" // "N2A_CPUS" // "N2D_CPUS" // "N2_CPUS" // "NETWORKS" // "NETWORK_ATTACHMENTS" // "NETWORK_ENDPOINT_GROUPS" // "NETWORK_FIREWALL_POLICIES" // "NET_LB_SECURITY_POLICIES_PER_REGION" // "NET_LB_SECURITY_POLICY_RULES_PER_REGION" // "NET_LB_SECURITY_POLICY_RULE_ATTRIBUTES_PER_REGION" // "NODE_GROUPS" // "NODE_TEMPLATES" // "NVIDIA_A100_80GB_GPUS" // "NVIDIA_A100_GPUS" // "NVIDIA_K80_GPUS" // "NVIDIA_L4_GPUS" // "NVIDIA_P100_GPUS" // "NVIDIA_P100_VWS_GPUS" // "NVIDIA_P4_GPUS" // "NVIDIA_P4_VWS_GPUS" // "NVIDIA_T4_GPUS" // "NVIDIA_T4_VWS_GPUS" // "NVIDIA_V100_GPUS" // "PACKET_MIRRORINGS" // "PD_EXTREME_TOTAL_PROVISIONED_IOPS" // "PREEMPTIBLE_CPUS" // "PREEMPTIBLE_LOCAL_SSD_GB" // "PREEMPTIBLE_NVIDIA_A100_80GB_GPUS" // "PREEMPTIBLE_NVIDIA_A100_GPUS" // "PREEMPTIBLE_NVIDIA_H100_GPUS" // "PREEMPTIBLE_NVIDIA_K80_GPUS" // "PREEMPTIBLE_NVIDIA_L4_GPUS" // "PREEMPTIBLE_NVIDIA_P100_GPUS" // "PREEMPTIBLE_NVIDIA_P100_VWS_GPUS" // "PREEMPTIBLE_NVIDIA_P4_GPUS" // "PREEMPTIBLE_NVIDIA_P4_VWS_GPUS" // "PREEMPTIBLE_NVIDIA_T4_GPUS" // "PREEMPTIBLE_NVIDIA_T4_VWS_GPUS" // "PREEMPTIBLE_NVIDIA_V100_GPUS" // "PREEMPTIBLE_TPU_LITE_DEVICE_V5" // "PREEMPTIBLE_TPU_LITE_PODSLICE_V5" // "PREEMPTIBLE_TPU_PODSLICE_V4" // "PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK" // "PSC_INTERNAL_LB_FORWARDING_RULES" // "PUBLIC_ADVERTISED_PREFIXES" // "PUBLIC_DELEGATED_PREFIXES" // "REGIONAL_AUTOSCALERS" // "REGIONAL_EXTERNAL_MANAGED_BACKEND_SERVICES" // "REGIONAL_EXTERNAL_NETWORK_LB_BACKEND_SERVICES" // "REGIONAL_INSTANCE_GROUP_MANAGERS" // "REGIONAL_INTERNAL_LB_BACKEND_SERVICES" // "REGIONAL_INTERNAL_MANAGED_BACKEND_SERVICES" // "REGIONAL_INTERNAL_TRAFFIC_DIRECTOR_BACKEND_SERVICES" // "RESERVATIONS" // "RESOURCE_POLICIES" // "ROUTERS" // "ROUTES" // "SECURITY_POLICIES" // "SECURITY_POLICIES_PER_REGION" // "SECURITY_POLICY_ADVANCED_RULES_PER_REGION" // "SECURITY_POLICY_CEVAL_RULES" // "SECURITY_POLICY_RULES" // "SECURITY_POLICY_RULES_PER_REGION" // "SERVICE_ATTACHMENTS" // "SNAPSHOTS" - The total number of snapshots allowed for a single project. // "SSD_TOTAL_GB" // "SSL_CERTIFICATES" // "SSL_POLICIES" // "STATIC_ADDRESSES" // "STATIC_BYOIP_ADDRESSES" // "STATIC_EXTERNAL_IPV6_ADDRESS_RANGES" // "SUBNETWORKS" // "T2A_CPUS" // "T2D_CPUS" // "TARGET_HTTPS_PROXIES" // "TARGET_HTTP_PROXIES" // "TARGET_INSTANCES" // "TARGET_POOLS" // "TARGET_SSL_PROXIES" // "TARGET_TCP_PROXIES" // "TARGET_VPN_GATEWAYS" // "TPU_LITE_DEVICE_V5" // "TPU_LITE_PODSLICE_V5" // "TPU_PODSLICE_V4" // "URL_MAPS" // "VARIABLE_IPV6_PUBLIC_DELEGATED_PREFIXES" // "VPN_GATEWAYS" // "VPN_TUNNELS" // "XPN_SERVICE_PROJECTS" Metric string `json:"metric,omitempty"` // Owner: [Output Only] Owning resource. This is the resource on which this // quota is applied. Owner string `json:"owner,omitempty"` // Usage: [Output Only] Current usage of this metric. Usage float64 `json:"usage,omitempty"` // ForceSendFields is a list of field names (e.g. "Limit") 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. "Limit") 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:"-"` }
Quota: A quotas entry.
func (Quota) MarshalJSON ¶
func (*Quota) UnmarshalJSON ¶
type QuotaExceededInfo ¶ added in v0.101.0
type QuotaExceededInfo struct { // Dimensions: The map holding related quota dimensions. Dimensions map[string]string `json:"dimensions,omitempty"` // FutureLimit: Future quota limit being rolled out. The limit's unit depends // on the quota type or metric. FutureLimit float64 `json:"futureLimit,omitempty"` // Limit: Current effective quota limit. The limit's unit depends on the quota // type or metric. Limit float64 `json:"limit,omitempty"` // LimitName: The name of the quota limit. LimitName string `json:"limitName,omitempty"` // MetricName: The Compute Engine quota metric name. MetricName string `json:"metricName,omitempty"` // RolloutStatus: Rollout status of the future quota limit. // // Possible values: // "IN_PROGRESS" - IN_PROGRESS - A rollout is in process which will change // the limit value to future limit. // "ROLLOUT_STATUS_UNSPECIFIED" - ROLLOUT_STATUS_UNSPECIFIED - Rollout status // is not specified. The default value. RolloutStatus string `json:"rolloutStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "Dimensions") 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. "Dimensions") 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:"-"` }
QuotaExceededInfo: Additional details for quota exceeded error for resource quota.
func (QuotaExceededInfo) MarshalJSON ¶ added in v0.101.0
func (s QuotaExceededInfo) MarshalJSON() ([]byte, error)
func (*QuotaExceededInfo) UnmarshalJSON ¶ added in v0.101.0
func (s *QuotaExceededInfo) UnmarshalJSON(data []byte) error
type Reference ¶
type Reference struct { // Kind: [Output Only] Type of the resource. Always compute#reference for // references. Kind string `json:"kind,omitempty"` // ReferenceType: A description of the reference type with no implied // semantics. Possible values include: 1. MEMBER_OF ReferenceType string `json:"referenceType,omitempty"` // Referrer: URL of the resource which refers to the target. Referrer string `json:"referrer,omitempty"` // Target: URL of the resource to which this reference points. Target string `json:"target,omitempty"` // ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"` }
Reference: Represents a reference to a resource.
func (Reference) MarshalJSON ¶
type Region ¶
type Region struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Deprecated -- [Output Only] The deprecation status associated with this // region. Deprecated *DeprecationStatus `json:"deprecated,omitempty"` // Description: [Output Only] Textual description of the resource. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#region for regions. Kind string `json:"kind,omitempty"` // Name: [Output Only] Name of the resource. Name string `json:"name,omitempty"` // QuotaStatusWarning: [Output Only] Warning of fetching the `quotas` field for // this region. This field is populated only if fetching of the `quotas` field // fails. QuotaStatusWarning *RegionQuotaStatusWarning `json:"quotaStatusWarning,omitempty"` // Quotas: [Output Only] Quotas assigned to this region. Quotas []*Quota `json:"quotas,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Status: [Output Only] Status of the region, either UP or DOWN. // // Possible values: // "DOWN" // "UP" Status string `json:"status,omitempty"` // SupportsPzs: [Output Only] Reserved for future use. SupportsPzs bool `json:"supportsPzs,omitempty"` // Zones: [Output Only] A list of zones available in this region, in the form // of resource URLs. Zones []string `json:"zones,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
Region: Represents a Region resource. A region is a geographical area where a resource is located. For more information, read Regions and Zones.
func (Region) MarshalJSON ¶
type RegionAddressesMoveRequest ¶ added in v0.121.0
type RegionAddressesMoveRequest struct { // Description: An optional destination address description if intended to be // different from the source. Description string `json:"description,omitempty"` // DestinationAddress: The URL of the destination address to move to. This can // be a full or partial URL. For example, the following are all valid URLs to a // address: - // https://www.googleapis.com/compute/v1/projects/project/regions/region // /addresses/address - projects/project/regions/region/addresses/address Note // that destination project must be different from the source project. So // /regions/region/addresses/address is not valid partial url. DestinationAddress string `json:"destinationAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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:"-"` }
func (RegionAddressesMoveRequest) MarshalJSON ¶ added in v0.121.0
func (s RegionAddressesMoveRequest) MarshalJSON() ([]byte, error)
type RegionAutoscalerList ¶
type RegionAutoscalerList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Autoscaler resources. Items []*Autoscaler `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *RegionAutoscalerListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
RegionAutoscalerList: Contains a list of autoscalers.
func (RegionAutoscalerList) MarshalJSON ¶
func (s RegionAutoscalerList) MarshalJSON() ([]byte, error)
type RegionAutoscalerListWarning ¶
type RegionAutoscalerListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*RegionAutoscalerListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
RegionAutoscalerListWarning: [Output Only] Informational warning message.
func (RegionAutoscalerListWarning) MarshalJSON ¶
func (s RegionAutoscalerListWarning) MarshalJSON() ([]byte, error)
type RegionAutoscalerListWarningData ¶
type RegionAutoscalerListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (RegionAutoscalerListWarningData) MarshalJSON ¶
func (s RegionAutoscalerListWarningData) MarshalJSON() ([]byte, error)
type RegionAutoscalersDeleteCall ¶
type RegionAutoscalersDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionAutoscalersDeleteCall) Context ¶
func (c *RegionAutoscalersDeleteCall) Context(ctx context.Context) *RegionAutoscalersDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionAutoscalersDeleteCall) Do ¶
func (c *RegionAutoscalersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionAutoscalers.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionAutoscalersDeleteCall) Fields ¶
func (c *RegionAutoscalersDeleteCall) Fields(s ...googleapi.Field) *RegionAutoscalersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionAutoscalersDeleteCall) Header ¶
func (c *RegionAutoscalersDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionAutoscalersDeleteCall) RequestId ¶
func (c *RegionAutoscalersDeleteCall) RequestId(requestId string) *RegionAutoscalersDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionAutoscalersGetCall ¶
type RegionAutoscalersGetCall struct {
// contains filtered or unexported fields
}
func (*RegionAutoscalersGetCall) Context ¶
func (c *RegionAutoscalersGetCall) Context(ctx context.Context) *RegionAutoscalersGetCall
Context sets the context to be used in this call's Do method.
func (*RegionAutoscalersGetCall) Do ¶
func (c *RegionAutoscalersGetCall) Do(opts ...googleapi.CallOption) (*Autoscaler, error)
Do executes the "compute.regionAutoscalers.get" call. Any non-2xx status code is an error. Response headers are in either *Autoscaler.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionAutoscalersGetCall) Fields ¶
func (c *RegionAutoscalersGetCall) Fields(s ...googleapi.Field) *RegionAutoscalersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionAutoscalersGetCall) Header ¶
func (c *RegionAutoscalersGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionAutoscalersGetCall) IfNoneMatch ¶
func (c *RegionAutoscalersGetCall) IfNoneMatch(entityTag string) *RegionAutoscalersGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionAutoscalersInsertCall ¶
type RegionAutoscalersInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionAutoscalersInsertCall) Context ¶
func (c *RegionAutoscalersInsertCall) Context(ctx context.Context) *RegionAutoscalersInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionAutoscalersInsertCall) Do ¶
func (c *RegionAutoscalersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionAutoscalers.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionAutoscalersInsertCall) Fields ¶
func (c *RegionAutoscalersInsertCall) Fields(s ...googleapi.Field) *RegionAutoscalersInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionAutoscalersInsertCall) Header ¶
func (c *RegionAutoscalersInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionAutoscalersInsertCall) RequestId ¶
func (c *RegionAutoscalersInsertCall) RequestId(requestId string) *RegionAutoscalersInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionAutoscalersListCall ¶
type RegionAutoscalersListCall struct {
// contains filtered or unexported fields
}
func (*RegionAutoscalersListCall) Context ¶
func (c *RegionAutoscalersListCall) Context(ctx context.Context) *RegionAutoscalersListCall
Context sets the context to be used in this call's Do method.
func (*RegionAutoscalersListCall) Do ¶
func (c *RegionAutoscalersListCall) Do(opts ...googleapi.CallOption) (*RegionAutoscalerList, error)
Do executes the "compute.regionAutoscalers.list" call. Any non-2xx status code is an error. Response headers are in either *RegionAutoscalerList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionAutoscalersListCall) Fields ¶
func (c *RegionAutoscalersListCall) Fields(s ...googleapi.Field) *RegionAutoscalersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionAutoscalersListCall) Filter ¶
func (c *RegionAutoscalersListCall) Filter(filter string) *RegionAutoscalersListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionAutoscalersListCall) Header ¶
func (c *RegionAutoscalersListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionAutoscalersListCall) IfNoneMatch ¶
func (c *RegionAutoscalersListCall) IfNoneMatch(entityTag string) *RegionAutoscalersListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionAutoscalersListCall) MaxResults ¶
func (c *RegionAutoscalersListCall) MaxResults(maxResults int64) *RegionAutoscalersListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionAutoscalersListCall) OrderBy ¶
func (c *RegionAutoscalersListCall) OrderBy(orderBy string) *RegionAutoscalersListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionAutoscalersListCall) PageToken ¶
func (c *RegionAutoscalersListCall) PageToken(pageToken string) *RegionAutoscalersListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionAutoscalersListCall) Pages ¶
func (c *RegionAutoscalersListCall) Pages(ctx context.Context, f func(*RegionAutoscalerList) 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 (*RegionAutoscalersListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionAutoscalersListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionAutoscalersListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionAutoscalersPatchCall ¶
type RegionAutoscalersPatchCall struct {
// contains filtered or unexported fields
}
func (*RegionAutoscalersPatchCall) Autoscaler ¶
func (c *RegionAutoscalersPatchCall) Autoscaler(autoscaler string) *RegionAutoscalersPatchCall
Autoscaler sets the optional parameter "autoscaler": Name of the autoscaler to patch.
func (*RegionAutoscalersPatchCall) Context ¶
func (c *RegionAutoscalersPatchCall) Context(ctx context.Context) *RegionAutoscalersPatchCall
Context sets the context to be used in this call's Do method.
func (*RegionAutoscalersPatchCall) Do ¶
func (c *RegionAutoscalersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionAutoscalers.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionAutoscalersPatchCall) Fields ¶
func (c *RegionAutoscalersPatchCall) Fields(s ...googleapi.Field) *RegionAutoscalersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionAutoscalersPatchCall) Header ¶
func (c *RegionAutoscalersPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionAutoscalersPatchCall) RequestId ¶
func (c *RegionAutoscalersPatchCall) RequestId(requestId string) *RegionAutoscalersPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionAutoscalersService ¶
type RegionAutoscalersService struct {
// contains filtered or unexported fields
}
func NewRegionAutoscalersService ¶
func NewRegionAutoscalersService(s *Service) *RegionAutoscalersService
func (*RegionAutoscalersService) Delete ¶
func (r *RegionAutoscalersService) Delete(project string, region string, autoscaler string) *RegionAutoscalersDeleteCall
Delete: Deletes the specified autoscaler.
- autoscaler: Name of the autoscaler to delete. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionAutoscalersService) Get ¶
func (r *RegionAutoscalersService) Get(project string, region string, autoscaler string) *RegionAutoscalersGetCall
Get: Returns the specified autoscaler.
- autoscaler: Name of the autoscaler to return. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionAutoscalersService) Insert ¶
func (r *RegionAutoscalersService) Insert(project string, region string, autoscaler *Autoscaler) *RegionAutoscalersInsertCall
Insert: Creates an autoscaler in the specified project using the data included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionAutoscalersService) List ¶
func (r *RegionAutoscalersService) List(project string, region string) *RegionAutoscalersListCall
List: Retrieves a list of autoscalers contained within the specified region.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionAutoscalersService) Patch ¶
func (r *RegionAutoscalersService) Patch(project string, region string, autoscaler *Autoscaler) *RegionAutoscalersPatchCall
Patch: Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionAutoscalersService) Update ¶
func (r *RegionAutoscalersService) Update(project string, region string, autoscaler *Autoscaler) *RegionAutoscalersUpdateCall
Update: Updates an autoscaler in the specified project using the data included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request.
type RegionAutoscalersUpdateCall ¶
type RegionAutoscalersUpdateCall struct {
// contains filtered or unexported fields
}
func (*RegionAutoscalersUpdateCall) Autoscaler ¶
func (c *RegionAutoscalersUpdateCall) Autoscaler(autoscaler string) *RegionAutoscalersUpdateCall
Autoscaler sets the optional parameter "autoscaler": Name of the autoscaler to update.
func (*RegionAutoscalersUpdateCall) Context ¶
func (c *RegionAutoscalersUpdateCall) Context(ctx context.Context) *RegionAutoscalersUpdateCall
Context sets the context to be used in this call's Do method.
func (*RegionAutoscalersUpdateCall) Do ¶
func (c *RegionAutoscalersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionAutoscalers.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionAutoscalersUpdateCall) Fields ¶
func (c *RegionAutoscalersUpdateCall) Fields(s ...googleapi.Field) *RegionAutoscalersUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionAutoscalersUpdateCall) Header ¶
func (c *RegionAutoscalersUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionAutoscalersUpdateCall) RequestId ¶
func (c *RegionAutoscalersUpdateCall) RequestId(requestId string) *RegionAutoscalersUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionBackendServicesDeleteCall ¶
type RegionBackendServicesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionBackendServicesDeleteCall) Context ¶
func (c *RegionBackendServicesDeleteCall) Context(ctx context.Context) *RegionBackendServicesDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionBackendServicesDeleteCall) Do ¶
func (c *RegionBackendServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionBackendServices.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionBackendServicesDeleteCall) Fields ¶
func (c *RegionBackendServicesDeleteCall) Fields(s ...googleapi.Field) *RegionBackendServicesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionBackendServicesDeleteCall) Header ¶
func (c *RegionBackendServicesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionBackendServicesDeleteCall) RequestId ¶
func (c *RegionBackendServicesDeleteCall) RequestId(requestId string) *RegionBackendServicesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionBackendServicesGetCall ¶
type RegionBackendServicesGetCall struct {
// contains filtered or unexported fields
}
func (*RegionBackendServicesGetCall) Context ¶
func (c *RegionBackendServicesGetCall) Context(ctx context.Context) *RegionBackendServicesGetCall
Context sets the context to be used in this call's Do method.
func (*RegionBackendServicesGetCall) Do ¶
func (c *RegionBackendServicesGetCall) Do(opts ...googleapi.CallOption) (*BackendService, error)
Do executes the "compute.regionBackendServices.get" call. Any non-2xx status code is an error. Response headers are in either *BackendService.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionBackendServicesGetCall) Fields ¶
func (c *RegionBackendServicesGetCall) Fields(s ...googleapi.Field) *RegionBackendServicesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionBackendServicesGetCall) Header ¶
func (c *RegionBackendServicesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionBackendServicesGetCall) IfNoneMatch ¶
func (c *RegionBackendServicesGetCall) IfNoneMatch(entityTag string) *RegionBackendServicesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionBackendServicesGetHealthCall ¶
type RegionBackendServicesGetHealthCall struct {
// contains filtered or unexported fields
}
func (*RegionBackendServicesGetHealthCall) Context ¶
func (c *RegionBackendServicesGetHealthCall) Context(ctx context.Context) *RegionBackendServicesGetHealthCall
Context sets the context to be used in this call's Do method.
func (*RegionBackendServicesGetHealthCall) Do ¶
func (c *RegionBackendServicesGetHealthCall) Do(opts ...googleapi.CallOption) (*BackendServiceGroupHealth, error)
Do executes the "compute.regionBackendServices.getHealth" call. Any non-2xx status code is an error. Response headers are in either *BackendServiceGroupHealth.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionBackendServicesGetHealthCall) Fields ¶
func (c *RegionBackendServicesGetHealthCall) Fields(s ...googleapi.Field) *RegionBackendServicesGetHealthCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionBackendServicesGetHealthCall) Header ¶
func (c *RegionBackendServicesGetHealthCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type RegionBackendServicesGetIamPolicyCall ¶ added in v0.96.0
type RegionBackendServicesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*RegionBackendServicesGetIamPolicyCall) Context ¶ added in v0.96.0
func (c *RegionBackendServicesGetIamPolicyCall) Context(ctx context.Context) *RegionBackendServicesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*RegionBackendServicesGetIamPolicyCall) Do ¶ added in v0.96.0
func (c *RegionBackendServicesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.regionBackendServices.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionBackendServicesGetIamPolicyCall) Fields ¶ added in v0.96.0
func (c *RegionBackendServicesGetIamPolicyCall) Fields(s ...googleapi.Field) *RegionBackendServicesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionBackendServicesGetIamPolicyCall) Header ¶ added in v0.96.0
func (c *RegionBackendServicesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionBackendServicesGetIamPolicyCall) IfNoneMatch ¶ added in v0.96.0
func (c *RegionBackendServicesGetIamPolicyCall) IfNoneMatch(entityTag string) *RegionBackendServicesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionBackendServicesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.96.0
func (c *RegionBackendServicesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *RegionBackendServicesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type RegionBackendServicesInsertCall ¶
type RegionBackendServicesInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionBackendServicesInsertCall) Context ¶
func (c *RegionBackendServicesInsertCall) Context(ctx context.Context) *RegionBackendServicesInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionBackendServicesInsertCall) Do ¶
func (c *RegionBackendServicesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionBackendServices.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionBackendServicesInsertCall) Fields ¶
func (c *RegionBackendServicesInsertCall) Fields(s ...googleapi.Field) *RegionBackendServicesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionBackendServicesInsertCall) Header ¶
func (c *RegionBackendServicesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionBackendServicesInsertCall) RequestId ¶
func (c *RegionBackendServicesInsertCall) RequestId(requestId string) *RegionBackendServicesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionBackendServicesListCall ¶
type RegionBackendServicesListCall struct {
// contains filtered or unexported fields
}
func (*RegionBackendServicesListCall) Context ¶
func (c *RegionBackendServicesListCall) Context(ctx context.Context) *RegionBackendServicesListCall
Context sets the context to be used in this call's Do method.
func (*RegionBackendServicesListCall) Do ¶
func (c *RegionBackendServicesListCall) Do(opts ...googleapi.CallOption) (*BackendServiceList, error)
Do executes the "compute.regionBackendServices.list" call. Any non-2xx status code is an error. Response headers are in either *BackendServiceList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionBackendServicesListCall) Fields ¶
func (c *RegionBackendServicesListCall) Fields(s ...googleapi.Field) *RegionBackendServicesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionBackendServicesListCall) Filter ¶
func (c *RegionBackendServicesListCall) Filter(filter string) *RegionBackendServicesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionBackendServicesListCall) Header ¶
func (c *RegionBackendServicesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionBackendServicesListCall) IfNoneMatch ¶
func (c *RegionBackendServicesListCall) IfNoneMatch(entityTag string) *RegionBackendServicesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionBackendServicesListCall) MaxResults ¶
func (c *RegionBackendServicesListCall) MaxResults(maxResults int64) *RegionBackendServicesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionBackendServicesListCall) OrderBy ¶
func (c *RegionBackendServicesListCall) OrderBy(orderBy string) *RegionBackendServicesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionBackendServicesListCall) PageToken ¶
func (c *RegionBackendServicesListCall) PageToken(pageToken string) *RegionBackendServicesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionBackendServicesListCall) Pages ¶
func (c *RegionBackendServicesListCall) Pages(ctx context.Context, f func(*BackendServiceList) 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 (*RegionBackendServicesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionBackendServicesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionBackendServicesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionBackendServicesListUsableCall ¶ added in v0.146.0
type RegionBackendServicesListUsableCall struct {
// contains filtered or unexported fields
}
func (*RegionBackendServicesListUsableCall) Context ¶ added in v0.146.0
func (c *RegionBackendServicesListUsableCall) Context(ctx context.Context) *RegionBackendServicesListUsableCall
Context sets the context to be used in this call's Do method.
func (*RegionBackendServicesListUsableCall) Do ¶ added in v0.146.0
func (c *RegionBackendServicesListUsableCall) Do(opts ...googleapi.CallOption) (*BackendServiceListUsable, error)
Do executes the "compute.regionBackendServices.listUsable" call. Any non-2xx status code is an error. Response headers are in either *BackendServiceListUsable.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionBackendServicesListUsableCall) Fields ¶ added in v0.146.0
func (c *RegionBackendServicesListUsableCall) Fields(s ...googleapi.Field) *RegionBackendServicesListUsableCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionBackendServicesListUsableCall) Filter ¶ added in v0.146.0
func (c *RegionBackendServicesListUsableCall) Filter(filter string) *RegionBackendServicesListUsableCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionBackendServicesListUsableCall) Header ¶ added in v0.146.0
func (c *RegionBackendServicesListUsableCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionBackendServicesListUsableCall) IfNoneMatch ¶ added in v0.146.0
func (c *RegionBackendServicesListUsableCall) IfNoneMatch(entityTag string) *RegionBackendServicesListUsableCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionBackendServicesListUsableCall) MaxResults ¶ added in v0.146.0
func (c *RegionBackendServicesListUsableCall) MaxResults(maxResults int64) *RegionBackendServicesListUsableCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionBackendServicesListUsableCall) OrderBy ¶ added in v0.146.0
func (c *RegionBackendServicesListUsableCall) OrderBy(orderBy string) *RegionBackendServicesListUsableCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionBackendServicesListUsableCall) PageToken ¶ added in v0.146.0
func (c *RegionBackendServicesListUsableCall) PageToken(pageToken string) *RegionBackendServicesListUsableCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionBackendServicesListUsableCall) Pages ¶ added in v0.146.0
func (c *RegionBackendServicesListUsableCall) Pages(ctx context.Context, f func(*BackendServiceListUsable) 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 (*RegionBackendServicesListUsableCall) ReturnPartialSuccess ¶ added in v0.146.0
func (c *RegionBackendServicesListUsableCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionBackendServicesListUsableCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionBackendServicesPatchCall ¶
type RegionBackendServicesPatchCall struct {
// contains filtered or unexported fields
}
func (*RegionBackendServicesPatchCall) Context ¶
func (c *RegionBackendServicesPatchCall) Context(ctx context.Context) *RegionBackendServicesPatchCall
Context sets the context to be used in this call's Do method.
func (*RegionBackendServicesPatchCall) Do ¶
func (c *RegionBackendServicesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionBackendServices.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionBackendServicesPatchCall) Fields ¶
func (c *RegionBackendServicesPatchCall) Fields(s ...googleapi.Field) *RegionBackendServicesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionBackendServicesPatchCall) Header ¶
func (c *RegionBackendServicesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionBackendServicesPatchCall) RequestId ¶
func (c *RegionBackendServicesPatchCall) RequestId(requestId string) *RegionBackendServicesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionBackendServicesService ¶
type RegionBackendServicesService struct {
// contains filtered or unexported fields
}
func NewRegionBackendServicesService ¶
func NewRegionBackendServicesService(s *Service) *RegionBackendServicesService
func (*RegionBackendServicesService) Delete ¶
func (r *RegionBackendServicesService) Delete(project string, region string, backendService string) *RegionBackendServicesDeleteCall
Delete: Deletes the specified regional BackendService resource.
- backendService: Name of the BackendService resource to delete. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionBackendServicesService) Get ¶
func (r *RegionBackendServicesService) Get(project string, region string, backendService string) *RegionBackendServicesGetCall
Get: Returns the specified regional BackendService resource.
- backendService: Name of the BackendService resource to return. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionBackendServicesService) GetHealth ¶
func (r *RegionBackendServicesService) GetHealth(project string, region string, backendService string, resourcegroupreference *ResourceGroupReference) *RegionBackendServicesGetHealthCall
GetHealth: Gets the most recent health check results for this regional BackendService.
- backendService: Name of the BackendService resource for which to get health.
- project: .
- region: Name of the region scoping this request.
func (*RegionBackendServicesService) GetIamPolicy ¶ added in v0.96.0
func (r *RegionBackendServicesService) GetIamPolicy(project string, region string, resource string) *RegionBackendServicesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*RegionBackendServicesService) Insert ¶
func (r *RegionBackendServicesService) Insert(project string, region string, backendservice *BackendService) *RegionBackendServicesInsertCall
Insert: Creates a regional BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionBackendServicesService) List ¶
func (r *RegionBackendServicesService) List(project string, region string) *RegionBackendServicesListCall
List: Retrieves the list of regional BackendService resources available to the specified project in the given region.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionBackendServicesService) ListUsable ¶ added in v0.146.0
func (r *RegionBackendServicesService) ListUsable(project string, region string) *RegionBackendServicesListUsableCall
ListUsable: Retrieves a list of all usable backend services in the specified project in the given region.
- project: Project ID for this request.
- region: Name of the region scoping this request. It must be a string that meets the requirements in RFC1035.
func (*RegionBackendServicesService) Patch ¶
func (r *RegionBackendServicesService) Patch(project string, region string, backendService string, backendservice *BackendService) *RegionBackendServicesPatchCall
Patch: Updates the specified regional BackendService resource with the data included in the request. For more information, see Understanding backend services This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- backendService: Name of the BackendService resource to patch. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionBackendServicesService) SetIamPolicy ¶ added in v0.96.0
func (r *RegionBackendServicesService) SetIamPolicy(project string, region string, resource string, regionsetpolicyrequest *RegionSetPolicyRequest) *RegionBackendServicesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*RegionBackendServicesService) SetSecurityPolicy ¶ added in v0.139.0
func (r *RegionBackendServicesService) SetSecurityPolicy(project string, region string, backendService string, securitypolicyreference *SecurityPolicyReference) *RegionBackendServicesSetSecurityPolicyCall
SetSecurityPolicy: Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview
- backendService: Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035.
- project: Project ID for this request.
- region: Name of the region scoping this request.
func (*RegionBackendServicesService) TestIamPermissions ¶ added in v0.148.0
func (r *RegionBackendServicesService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionBackendServicesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*RegionBackendServicesService) Update ¶
func (r *RegionBackendServicesService) Update(project string, region string, backendService string, backendservice *BackendService) *RegionBackendServicesUpdateCall
Update: Updates the specified regional BackendService resource with the data included in the request. For more information, see Backend services overview .
- backendService: Name of the BackendService resource to update. - project: Project ID for this request. - region: Name of the region scoping this request.
type RegionBackendServicesSetIamPolicyCall ¶ added in v0.96.0
type RegionBackendServicesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*RegionBackendServicesSetIamPolicyCall) Context ¶ added in v0.96.0
func (c *RegionBackendServicesSetIamPolicyCall) Context(ctx context.Context) *RegionBackendServicesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*RegionBackendServicesSetIamPolicyCall) Do ¶ added in v0.96.0
func (c *RegionBackendServicesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.regionBackendServices.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionBackendServicesSetIamPolicyCall) Fields ¶ added in v0.96.0
func (c *RegionBackendServicesSetIamPolicyCall) Fields(s ...googleapi.Field) *RegionBackendServicesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionBackendServicesSetIamPolicyCall) Header ¶ added in v0.96.0
func (c *RegionBackendServicesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type RegionBackendServicesSetSecurityPolicyCall ¶ added in v0.139.0
type RegionBackendServicesSetSecurityPolicyCall struct {
// contains filtered or unexported fields
}
func (*RegionBackendServicesSetSecurityPolicyCall) Context ¶ added in v0.139.0
func (c *RegionBackendServicesSetSecurityPolicyCall) Context(ctx context.Context) *RegionBackendServicesSetSecurityPolicyCall
Context sets the context to be used in this call's Do method.
func (*RegionBackendServicesSetSecurityPolicyCall) Do ¶ added in v0.139.0
func (c *RegionBackendServicesSetSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionBackendServices.setSecurityPolicy" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionBackendServicesSetSecurityPolicyCall) Fields ¶ added in v0.139.0
func (c *RegionBackendServicesSetSecurityPolicyCall) Fields(s ...googleapi.Field) *RegionBackendServicesSetSecurityPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionBackendServicesSetSecurityPolicyCall) Header ¶ added in v0.139.0
func (c *RegionBackendServicesSetSecurityPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionBackendServicesSetSecurityPolicyCall) RequestId ¶ added in v0.139.0
func (c *RegionBackendServicesSetSecurityPolicyCall) RequestId(requestId string) *RegionBackendServicesSetSecurityPolicyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionBackendServicesTestIamPermissionsCall ¶ added in v0.148.0
type RegionBackendServicesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionBackendServicesTestIamPermissionsCall) Context ¶ added in v0.148.0
func (c *RegionBackendServicesTestIamPermissionsCall) Context(ctx context.Context) *RegionBackendServicesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*RegionBackendServicesTestIamPermissionsCall) Do ¶ added in v0.148.0
func (c *RegionBackendServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionBackendServices.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionBackendServicesTestIamPermissionsCall) Fields ¶ added in v0.148.0
func (c *RegionBackendServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionBackendServicesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionBackendServicesTestIamPermissionsCall) Header ¶ added in v0.148.0
func (c *RegionBackendServicesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type RegionBackendServicesUpdateCall ¶
type RegionBackendServicesUpdateCall struct {
// contains filtered or unexported fields
}
func (*RegionBackendServicesUpdateCall) Context ¶
func (c *RegionBackendServicesUpdateCall) Context(ctx context.Context) *RegionBackendServicesUpdateCall
Context sets the context to be used in this call's Do method.
func (*RegionBackendServicesUpdateCall) Do ¶
func (c *RegionBackendServicesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionBackendServices.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionBackendServicesUpdateCall) Fields ¶
func (c *RegionBackendServicesUpdateCall) Fields(s ...googleapi.Field) *RegionBackendServicesUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionBackendServicesUpdateCall) Header ¶
func (c *RegionBackendServicesUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionBackendServicesUpdateCall) RequestId ¶
func (c *RegionBackendServicesUpdateCall) RequestId(requestId string) *RegionBackendServicesUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionCommitmentsAggregatedListCall ¶
type RegionCommitmentsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*RegionCommitmentsAggregatedListCall) Context ¶
func (c *RegionCommitmentsAggregatedListCall) Context(ctx context.Context) *RegionCommitmentsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*RegionCommitmentsAggregatedListCall) Do ¶
func (c *RegionCommitmentsAggregatedListCall) Do(opts ...googleapi.CallOption) (*CommitmentAggregatedList, error)
Do executes the "compute.regionCommitments.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *CommitmentAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionCommitmentsAggregatedListCall) Fields ¶
func (c *RegionCommitmentsAggregatedListCall) Fields(s ...googleapi.Field) *RegionCommitmentsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionCommitmentsAggregatedListCall) Filter ¶
func (c *RegionCommitmentsAggregatedListCall) Filter(filter string) *RegionCommitmentsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionCommitmentsAggregatedListCall) Header ¶
func (c *RegionCommitmentsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionCommitmentsAggregatedListCall) IfNoneMatch ¶
func (c *RegionCommitmentsAggregatedListCall) IfNoneMatch(entityTag string) *RegionCommitmentsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionCommitmentsAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *RegionCommitmentsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *RegionCommitmentsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*RegionCommitmentsAggregatedListCall) MaxResults ¶
func (c *RegionCommitmentsAggregatedListCall) MaxResults(maxResults int64) *RegionCommitmentsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionCommitmentsAggregatedListCall) OrderBy ¶
func (c *RegionCommitmentsAggregatedListCall) OrderBy(orderBy string) *RegionCommitmentsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionCommitmentsAggregatedListCall) PageToken ¶
func (c *RegionCommitmentsAggregatedListCall) PageToken(pageToken string) *RegionCommitmentsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionCommitmentsAggregatedListCall) Pages ¶
func (c *RegionCommitmentsAggregatedListCall) Pages(ctx context.Context, f func(*CommitmentAggregatedList) 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 (*RegionCommitmentsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionCommitmentsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionCommitmentsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*RegionCommitmentsAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *RegionCommitmentsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *RegionCommitmentsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type RegionCommitmentsGetCall ¶
type RegionCommitmentsGetCall struct {
// contains filtered or unexported fields
}
func (*RegionCommitmentsGetCall) Context ¶
func (c *RegionCommitmentsGetCall) Context(ctx context.Context) *RegionCommitmentsGetCall
Context sets the context to be used in this call's Do method.
func (*RegionCommitmentsGetCall) Do ¶
func (c *RegionCommitmentsGetCall) Do(opts ...googleapi.CallOption) (*Commitment, error)
Do executes the "compute.regionCommitments.get" call. Any non-2xx status code is an error. Response headers are in either *Commitment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionCommitmentsGetCall) Fields ¶
func (c *RegionCommitmentsGetCall) Fields(s ...googleapi.Field) *RegionCommitmentsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionCommitmentsGetCall) Header ¶
func (c *RegionCommitmentsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionCommitmentsGetCall) IfNoneMatch ¶
func (c *RegionCommitmentsGetCall) IfNoneMatch(entityTag string) *RegionCommitmentsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionCommitmentsInsertCall ¶
type RegionCommitmentsInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionCommitmentsInsertCall) Context ¶
func (c *RegionCommitmentsInsertCall) Context(ctx context.Context) *RegionCommitmentsInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionCommitmentsInsertCall) Do ¶
func (c *RegionCommitmentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionCommitments.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionCommitmentsInsertCall) Fields ¶
func (c *RegionCommitmentsInsertCall) Fields(s ...googleapi.Field) *RegionCommitmentsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionCommitmentsInsertCall) Header ¶
func (c *RegionCommitmentsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionCommitmentsInsertCall) RequestId ¶
func (c *RegionCommitmentsInsertCall) RequestId(requestId string) *RegionCommitmentsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionCommitmentsListCall ¶
type RegionCommitmentsListCall struct {
// contains filtered or unexported fields
}
func (*RegionCommitmentsListCall) Context ¶
func (c *RegionCommitmentsListCall) Context(ctx context.Context) *RegionCommitmentsListCall
Context sets the context to be used in this call's Do method.
func (*RegionCommitmentsListCall) Do ¶
func (c *RegionCommitmentsListCall) Do(opts ...googleapi.CallOption) (*CommitmentList, error)
Do executes the "compute.regionCommitments.list" call. Any non-2xx status code is an error. Response headers are in either *CommitmentList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionCommitmentsListCall) Fields ¶
func (c *RegionCommitmentsListCall) Fields(s ...googleapi.Field) *RegionCommitmentsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionCommitmentsListCall) Filter ¶
func (c *RegionCommitmentsListCall) Filter(filter string) *RegionCommitmentsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionCommitmentsListCall) Header ¶
func (c *RegionCommitmentsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionCommitmentsListCall) IfNoneMatch ¶
func (c *RegionCommitmentsListCall) IfNoneMatch(entityTag string) *RegionCommitmentsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionCommitmentsListCall) MaxResults ¶
func (c *RegionCommitmentsListCall) MaxResults(maxResults int64) *RegionCommitmentsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionCommitmentsListCall) OrderBy ¶
func (c *RegionCommitmentsListCall) OrderBy(orderBy string) *RegionCommitmentsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionCommitmentsListCall) PageToken ¶
func (c *RegionCommitmentsListCall) PageToken(pageToken string) *RegionCommitmentsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionCommitmentsListCall) Pages ¶
func (c *RegionCommitmentsListCall) Pages(ctx context.Context, f func(*CommitmentList) 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 (*RegionCommitmentsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionCommitmentsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionCommitmentsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionCommitmentsService ¶
type RegionCommitmentsService struct {
// contains filtered or unexported fields
}
func NewRegionCommitmentsService ¶
func NewRegionCommitmentsService(s *Service) *RegionCommitmentsService
func (*RegionCommitmentsService) AggregatedList ¶
func (r *RegionCommitmentsService) AggregatedList(project string) *RegionCommitmentsAggregatedListCall
AggregatedList: Retrieves an aggregated list of commitments by region. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*RegionCommitmentsService) Get ¶
func (r *RegionCommitmentsService) Get(project string, region string, commitment string) *RegionCommitmentsGetCall
Get: Returns the specified commitment resource.
- commitment: Name of the commitment to return. - project: Project ID for this request. - region: Name of the region for this request.
func (*RegionCommitmentsService) Insert ¶
func (r *RegionCommitmentsService) Insert(project string, region string, commitment *Commitment) *RegionCommitmentsInsertCall
Insert: Creates a commitment in the specified project using the data included in the request.
- project: Project ID for this request. - region: Name of the region for this request.
func (*RegionCommitmentsService) List ¶
func (r *RegionCommitmentsService) List(project string, region string) *RegionCommitmentsListCall
List: Retrieves a list of commitments contained within the specified region.
- project: Project ID for this request. - region: Name of the region for this request.
func (*RegionCommitmentsService) Update ¶ added in v0.62.0
func (r *RegionCommitmentsService) Update(project string, region string, commitment string, commitment2 *Commitment) *RegionCommitmentsUpdateCall
Update: Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: auto_renew.
- commitment: Name of the commitment for which auto renew is being updated. - project: Project ID for this request. - region: Name of the region for this request.
type RegionCommitmentsUpdateCall ¶ added in v0.62.0
type RegionCommitmentsUpdateCall struct {
// contains filtered or unexported fields
}
func (*RegionCommitmentsUpdateCall) Context ¶ added in v0.62.0
func (c *RegionCommitmentsUpdateCall) Context(ctx context.Context) *RegionCommitmentsUpdateCall
Context sets the context to be used in this call's Do method.
func (*RegionCommitmentsUpdateCall) Do ¶ added in v0.62.0
func (c *RegionCommitmentsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionCommitments.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionCommitmentsUpdateCall) Fields ¶ added in v0.62.0
func (c *RegionCommitmentsUpdateCall) Fields(s ...googleapi.Field) *RegionCommitmentsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionCommitmentsUpdateCall) Header ¶ added in v0.62.0
func (c *RegionCommitmentsUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionCommitmentsUpdateCall) Paths ¶ added in v0.62.0
func (c *RegionCommitmentsUpdateCall) Paths(paths ...string) *RegionCommitmentsUpdateCall
Paths sets the optional parameter "paths":
func (*RegionCommitmentsUpdateCall) RequestId ¶ added in v0.62.0
func (c *RegionCommitmentsUpdateCall) RequestId(requestId string) *RegionCommitmentsUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*RegionCommitmentsUpdateCall) UpdateMask ¶ added in v0.62.0
func (c *RegionCommitmentsUpdateCall) UpdateMask(updateMask string) *RegionCommitmentsUpdateCall
UpdateMask sets the optional parameter "updateMask": update_mask indicates fields to be updated as part of this request.
type RegionDiskTypeList ¶
type RegionDiskTypeList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of DiskType resources. Items []*DiskType `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#regionDiskTypeList for // region disk types. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *RegionDiskTypeListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (RegionDiskTypeList) MarshalJSON ¶
func (s RegionDiskTypeList) MarshalJSON() ([]byte, error)
type RegionDiskTypeListWarning ¶
type RegionDiskTypeListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*RegionDiskTypeListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
RegionDiskTypeListWarning: [Output Only] Informational warning message.
func (RegionDiskTypeListWarning) MarshalJSON ¶
func (s RegionDiskTypeListWarning) MarshalJSON() ([]byte, error)
type RegionDiskTypeListWarningData ¶
type RegionDiskTypeListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (RegionDiskTypeListWarningData) MarshalJSON ¶
func (s RegionDiskTypeListWarningData) MarshalJSON() ([]byte, error)
type RegionDiskTypesGetCall ¶
type RegionDiskTypesGetCall struct {
// contains filtered or unexported fields
}
func (*RegionDiskTypesGetCall) Context ¶
func (c *RegionDiskTypesGetCall) Context(ctx context.Context) *RegionDiskTypesGetCall
Context sets the context to be used in this call's Do method.
func (*RegionDiskTypesGetCall) Do ¶
func (c *RegionDiskTypesGetCall) Do(opts ...googleapi.CallOption) (*DiskType, error)
Do executes the "compute.regionDiskTypes.get" call. Any non-2xx status code is an error. Response headers are in either *DiskType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDiskTypesGetCall) Fields ¶
func (c *RegionDiskTypesGetCall) Fields(s ...googleapi.Field) *RegionDiskTypesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDiskTypesGetCall) Header ¶
func (c *RegionDiskTypesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDiskTypesGetCall) IfNoneMatch ¶
func (c *RegionDiskTypesGetCall) IfNoneMatch(entityTag string) *RegionDiskTypesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionDiskTypesListCall ¶
type RegionDiskTypesListCall struct {
// contains filtered or unexported fields
}
func (*RegionDiskTypesListCall) Context ¶
func (c *RegionDiskTypesListCall) Context(ctx context.Context) *RegionDiskTypesListCall
Context sets the context to be used in this call's Do method.
func (*RegionDiskTypesListCall) Do ¶
func (c *RegionDiskTypesListCall) Do(opts ...googleapi.CallOption) (*RegionDiskTypeList, error)
Do executes the "compute.regionDiskTypes.list" call. Any non-2xx status code is an error. Response headers are in either *RegionDiskTypeList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDiskTypesListCall) Fields ¶
func (c *RegionDiskTypesListCall) Fields(s ...googleapi.Field) *RegionDiskTypesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDiskTypesListCall) Filter ¶
func (c *RegionDiskTypesListCall) Filter(filter string) *RegionDiskTypesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionDiskTypesListCall) Header ¶
func (c *RegionDiskTypesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDiskTypesListCall) IfNoneMatch ¶
func (c *RegionDiskTypesListCall) IfNoneMatch(entityTag string) *RegionDiskTypesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionDiskTypesListCall) MaxResults ¶
func (c *RegionDiskTypesListCall) MaxResults(maxResults int64) *RegionDiskTypesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionDiskTypesListCall) OrderBy ¶
func (c *RegionDiskTypesListCall) OrderBy(orderBy string) *RegionDiskTypesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionDiskTypesListCall) PageToken ¶
func (c *RegionDiskTypesListCall) PageToken(pageToken string) *RegionDiskTypesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionDiskTypesListCall) Pages ¶
func (c *RegionDiskTypesListCall) Pages(ctx context.Context, f func(*RegionDiskTypeList) 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 (*RegionDiskTypesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionDiskTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionDiskTypesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionDiskTypesService ¶
type RegionDiskTypesService struct {
// contains filtered or unexported fields
}
func NewRegionDiskTypesService ¶
func NewRegionDiskTypesService(s *Service) *RegionDiskTypesService
func (*RegionDiskTypesService) Get ¶
func (r *RegionDiskTypesService) Get(project string, region string, diskType string) *RegionDiskTypesGetCall
Get: Returns the specified regional disk type.
- diskType: Name of the disk type to return. - project: Project ID for this request. - region: The name of the region for this request.
func (*RegionDiskTypesService) List ¶
func (r *RegionDiskTypesService) List(project string, region string) *RegionDiskTypesListCall
List: Retrieves a list of regional disk types available to the specified project.
- project: Project ID for this request. - region: The name of the region for this request.
type RegionDisksAddResourcePoliciesCall ¶ added in v0.7.0
type RegionDisksAddResourcePoliciesCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksAddResourcePoliciesCall) Context ¶ added in v0.7.0
func (c *RegionDisksAddResourcePoliciesCall) Context(ctx context.Context) *RegionDisksAddResourcePoliciesCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksAddResourcePoliciesCall) Do ¶ added in v0.7.0
func (c *RegionDisksAddResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.addResourcePolicies" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksAddResourcePoliciesCall) Fields ¶ added in v0.7.0
func (c *RegionDisksAddResourcePoliciesCall) Fields(s ...googleapi.Field) *RegionDisksAddResourcePoliciesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksAddResourcePoliciesCall) Header ¶ added in v0.7.0
func (c *RegionDisksAddResourcePoliciesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDisksAddResourcePoliciesCall) RequestId ¶ added in v0.7.0
func (c *RegionDisksAddResourcePoliciesCall) RequestId(requestId string) *RegionDisksAddResourcePoliciesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionDisksAddResourcePoliciesRequest ¶ added in v0.7.0
type RegionDisksAddResourcePoliciesRequest struct { // ResourcePolicies: Resource policies to be added to this disk. ResourcePolicies []string `json:"resourcePolicies,omitempty"` // ForceSendFields is a list of field names (e.g. "ResourcePolicies") 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. "ResourcePolicies") 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:"-"` }
func (RegionDisksAddResourcePoliciesRequest) MarshalJSON ¶ added in v0.7.0
func (s RegionDisksAddResourcePoliciesRequest) MarshalJSON() ([]byte, error)
type RegionDisksBulkInsertCall ¶ added in v0.127.0
type RegionDisksBulkInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksBulkInsertCall) Context ¶ added in v0.127.0
func (c *RegionDisksBulkInsertCall) Context(ctx context.Context) *RegionDisksBulkInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksBulkInsertCall) Do ¶ added in v0.127.0
func (c *RegionDisksBulkInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.bulkInsert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksBulkInsertCall) Fields ¶ added in v0.127.0
func (c *RegionDisksBulkInsertCall) Fields(s ...googleapi.Field) *RegionDisksBulkInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksBulkInsertCall) Header ¶ added in v0.127.0
func (c *RegionDisksBulkInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDisksBulkInsertCall) RequestId ¶ added in v0.127.0
func (c *RegionDisksBulkInsertCall) RequestId(requestId string) *RegionDisksBulkInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionDisksCreateSnapshotCall ¶
type RegionDisksCreateSnapshotCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksCreateSnapshotCall) Context ¶
func (c *RegionDisksCreateSnapshotCall) Context(ctx context.Context) *RegionDisksCreateSnapshotCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksCreateSnapshotCall) Do ¶
func (c *RegionDisksCreateSnapshotCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.createSnapshot" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksCreateSnapshotCall) Fields ¶
func (c *RegionDisksCreateSnapshotCall) Fields(s ...googleapi.Field) *RegionDisksCreateSnapshotCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksCreateSnapshotCall) Header ¶
func (c *RegionDisksCreateSnapshotCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDisksCreateSnapshotCall) RequestId ¶
func (c *RegionDisksCreateSnapshotCall) RequestId(requestId string) *RegionDisksCreateSnapshotCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionDisksDeleteCall ¶
type RegionDisksDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksDeleteCall) Context ¶
func (c *RegionDisksDeleteCall) Context(ctx context.Context) *RegionDisksDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksDeleteCall) Do ¶
func (c *RegionDisksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksDeleteCall) Fields ¶
func (c *RegionDisksDeleteCall) Fields(s ...googleapi.Field) *RegionDisksDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksDeleteCall) Header ¶
func (c *RegionDisksDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDisksDeleteCall) RequestId ¶
func (c *RegionDisksDeleteCall) RequestId(requestId string) *RegionDisksDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionDisksGetCall ¶
type RegionDisksGetCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksGetCall) Context ¶
func (c *RegionDisksGetCall) Context(ctx context.Context) *RegionDisksGetCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksGetCall) Do ¶
func (c *RegionDisksGetCall) Do(opts ...googleapi.CallOption) (*Disk, error)
Do executes the "compute.regionDisks.get" call. Any non-2xx status code is an error. Response headers are in either *Disk.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksGetCall) Fields ¶
func (c *RegionDisksGetCall) Fields(s ...googleapi.Field) *RegionDisksGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksGetCall) Header ¶
func (c *RegionDisksGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDisksGetCall) IfNoneMatch ¶
func (c *RegionDisksGetCall) IfNoneMatch(entityTag string) *RegionDisksGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionDisksGetIamPolicyCall ¶ added in v0.25.0
type RegionDisksGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksGetIamPolicyCall) Context ¶ added in v0.25.0
func (c *RegionDisksGetIamPolicyCall) Context(ctx context.Context) *RegionDisksGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksGetIamPolicyCall) Do ¶ added in v0.25.0
func (c *RegionDisksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.regionDisks.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksGetIamPolicyCall) Fields ¶ added in v0.25.0
func (c *RegionDisksGetIamPolicyCall) Fields(s ...googleapi.Field) *RegionDisksGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksGetIamPolicyCall) Header ¶ added in v0.25.0
func (c *RegionDisksGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDisksGetIamPolicyCall) IfNoneMatch ¶ added in v0.25.0
func (c *RegionDisksGetIamPolicyCall) IfNoneMatch(entityTag string) *RegionDisksGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionDisksGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.30.0
func (c *RegionDisksGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *RegionDisksGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type RegionDisksInsertCall ¶
type RegionDisksInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksInsertCall) Context ¶
func (c *RegionDisksInsertCall) Context(ctx context.Context) *RegionDisksInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksInsertCall) Do ¶
func (c *RegionDisksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksInsertCall) Fields ¶
func (c *RegionDisksInsertCall) Fields(s ...googleapi.Field) *RegionDisksInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksInsertCall) Header ¶
func (c *RegionDisksInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDisksInsertCall) RequestId ¶
func (c *RegionDisksInsertCall) RequestId(requestId string) *RegionDisksInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*RegionDisksInsertCall) SourceImage ¶
func (c *RegionDisksInsertCall) SourceImage(sourceImage string) *RegionDisksInsertCall
SourceImage sets the optional parameter "sourceImage": Source image to restore onto a disk. This field is optional.
type RegionDisksListCall ¶
type RegionDisksListCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksListCall) Context ¶
func (c *RegionDisksListCall) Context(ctx context.Context) *RegionDisksListCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksListCall) Do ¶
func (c *RegionDisksListCall) Do(opts ...googleapi.CallOption) (*DiskList, error)
Do executes the "compute.regionDisks.list" call. Any non-2xx status code is an error. Response headers are in either *DiskList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksListCall) Fields ¶
func (c *RegionDisksListCall) Fields(s ...googleapi.Field) *RegionDisksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksListCall) Filter ¶
func (c *RegionDisksListCall) Filter(filter string) *RegionDisksListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionDisksListCall) Header ¶
func (c *RegionDisksListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDisksListCall) IfNoneMatch ¶
func (c *RegionDisksListCall) IfNoneMatch(entityTag string) *RegionDisksListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionDisksListCall) MaxResults ¶
func (c *RegionDisksListCall) MaxResults(maxResults int64) *RegionDisksListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionDisksListCall) OrderBy ¶
func (c *RegionDisksListCall) OrderBy(orderBy string) *RegionDisksListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionDisksListCall) PageToken ¶
func (c *RegionDisksListCall) PageToken(pageToken string) *RegionDisksListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionDisksListCall) Pages ¶
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 (*RegionDisksListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionDisksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionDisksListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionDisksRemoveResourcePoliciesCall ¶ added in v0.7.0
type RegionDisksRemoveResourcePoliciesCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksRemoveResourcePoliciesCall) Context ¶ added in v0.7.0
func (c *RegionDisksRemoveResourcePoliciesCall) Context(ctx context.Context) *RegionDisksRemoveResourcePoliciesCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksRemoveResourcePoliciesCall) Do ¶ added in v0.7.0
func (c *RegionDisksRemoveResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.removeResourcePolicies" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksRemoveResourcePoliciesCall) Fields ¶ added in v0.7.0
func (c *RegionDisksRemoveResourcePoliciesCall) Fields(s ...googleapi.Field) *RegionDisksRemoveResourcePoliciesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksRemoveResourcePoliciesCall) Header ¶ added in v0.7.0
func (c *RegionDisksRemoveResourcePoliciesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDisksRemoveResourcePoliciesCall) RequestId ¶ added in v0.7.0
func (c *RegionDisksRemoveResourcePoliciesCall) RequestId(requestId string) *RegionDisksRemoveResourcePoliciesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionDisksRemoveResourcePoliciesRequest ¶ added in v0.7.0
type RegionDisksRemoveResourcePoliciesRequest struct { // ResourcePolicies: Resource policies to be removed from this disk. ResourcePolicies []string `json:"resourcePolicies,omitempty"` // ForceSendFields is a list of field names (e.g. "ResourcePolicies") 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. "ResourcePolicies") 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:"-"` }
func (RegionDisksRemoveResourcePoliciesRequest) MarshalJSON ¶ added in v0.7.0
func (s RegionDisksRemoveResourcePoliciesRequest) MarshalJSON() ([]byte, error)
type RegionDisksResizeCall ¶
type RegionDisksResizeCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksResizeCall) Context ¶
func (c *RegionDisksResizeCall) Context(ctx context.Context) *RegionDisksResizeCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksResizeCall) Do ¶
func (c *RegionDisksResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.resize" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksResizeCall) Fields ¶
func (c *RegionDisksResizeCall) Fields(s ...googleapi.Field) *RegionDisksResizeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksResizeCall) Header ¶
func (c *RegionDisksResizeCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDisksResizeCall) RequestId ¶
func (c *RegionDisksResizeCall) RequestId(requestId string) *RegionDisksResizeCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionDisksResizeRequest ¶
type RegionDisksResizeRequest struct { // SizeGb: The new size of the regional persistent disk, which is specified in // GB. SizeGb int64 `json:"sizeGb,omitempty,string"` // ForceSendFields is a list of field names (e.g. "SizeGb") 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. "SizeGb") 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:"-"` }
func (RegionDisksResizeRequest) MarshalJSON ¶
func (s RegionDisksResizeRequest) MarshalJSON() ([]byte, error)
type RegionDisksService ¶
type RegionDisksService struct {
// contains filtered or unexported fields
}
func NewRegionDisksService ¶
func NewRegionDisksService(s *Service) *RegionDisksService
func (*RegionDisksService) AddResourcePolicies ¶ added in v0.7.0
func (r *RegionDisksService) AddResourcePolicies(project string, region string, disk string, regiondisksaddresourcepoliciesrequest *RegionDisksAddResourcePoliciesRequest) *RegionDisksAddResourcePoliciesCall
AddResourcePolicies: Adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.
- disk: The disk name for this request. - project: Project ID for this request. - region: The name of the region for this request.
func (*RegionDisksService) BulkInsert ¶ added in v0.127.0
func (r *RegionDisksService) BulkInsert(project string, region string, bulkinsertdiskresource *BulkInsertDiskResource) *RegionDisksBulkInsertCall
BulkInsert: Bulk create a set of disks.
- project: Project ID for this request. - region: The name of the region for this request.
func (*RegionDisksService) CreateSnapshot ¶
func (r *RegionDisksService) CreateSnapshot(project string, region string, disk string, snapshot *Snapshot) *RegionDisksCreateSnapshotCall
CreateSnapshot: Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.
- disk: Name of the regional persistent disk to snapshot. - project: Project ID for this request. - region: Name of the region for this request.
func (*RegionDisksService) Delete ¶
func (r *RegionDisksService) Delete(project string, region string, disk string) *RegionDisksDeleteCall
Delete: Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots.
- disk: Name of the regional persistent disk to delete. - project: Project ID for this request. - region: Name of the region for this request.
func (*RegionDisksService) Get ¶
func (r *RegionDisksService) Get(project string, region string, disk string) *RegionDisksGetCall
Get: Returns a specified regional persistent disk.
- disk: Name of the regional persistent disk to return. - project: Project ID for this request. - region: Name of the region for this request.
func (*RegionDisksService) GetIamPolicy ¶ added in v0.25.0
func (r *RegionDisksService) GetIamPolicy(project string, region string, resource string) *RegionDisksGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*RegionDisksService) Insert ¶
func (r *RegionDisksService) Insert(project string, region string, disk *Disk) *RegionDisksInsertCall
Insert: Creates a persistent regional disk in the specified project using the data included in the request.
- project: Project ID for this request. - region: Name of the region for this request.
func (*RegionDisksService) List ¶
func (r *RegionDisksService) List(project string, region string) *RegionDisksListCall
List: Retrieves the list of persistent disks contained within the specified region.
- project: Project ID for this request. - region: Name of the region for this request.
func (*RegionDisksService) RemoveResourcePolicies ¶ added in v0.7.0
func (r *RegionDisksService) RemoveResourcePolicies(project string, region string, disk string, regiondisksremoveresourcepoliciesrequest *RegionDisksRemoveResourcePoliciesRequest) *RegionDisksRemoveResourcePoliciesCall
RemoveResourcePolicies: Removes resource policies from a regional disk.
- disk: The disk name for this request. - project: Project ID for this request. - region: The name of the region for this request.
func (*RegionDisksService) Resize ¶
func (r *RegionDisksService) Resize(project string, region string, disk string, regiondisksresizerequest *RegionDisksResizeRequest) *RegionDisksResizeCall
Resize: Resizes the specified regional persistent disk.
- disk: Name of the regional persistent disk. - project: The project ID for this request. - region: Name of the region for this request.
func (*RegionDisksService) SetIamPolicy ¶ added in v0.25.0
func (r *RegionDisksService) SetIamPolicy(project string, region string, resource string, regionsetpolicyrequest *RegionSetPolicyRequest) *RegionDisksSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*RegionDisksService) SetLabels ¶
func (r *RegionDisksService) SetLabels(project string, region string, resource string, regionsetlabelsrequest *RegionSetLabelsRequest) *RegionDisksSetLabelsCall
SetLabels: Sets the labels on the target regional disk.
- project: Project ID for this request. - region: The region for this request. - resource: Name or id of the resource for this request.
func (*RegionDisksService) StartAsyncReplication ¶ added in v0.127.0
func (r *RegionDisksService) StartAsyncReplication(project string, region string, disk string, regiondisksstartasyncreplicationrequest *RegionDisksStartAsyncReplicationRequest) *RegionDisksStartAsyncReplicationCall
StartAsyncReplication: Starts asynchronous replication. Must be invoked on the primary disk.
- disk: The name of the persistent disk. - project: Project ID for this request. - region: The name of the region for this request.
func (*RegionDisksService) StopAsyncReplication ¶ added in v0.127.0
func (r *RegionDisksService) StopAsyncReplication(project string, region string, disk string) *RegionDisksStopAsyncReplicationCall
StopAsyncReplication: Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk.
- disk: The name of the persistent disk. - project: Project ID for this request. - region: The name of the region for this request.
func (*RegionDisksService) StopGroupAsyncReplication ¶ added in v0.127.0
func (r *RegionDisksService) StopGroupAsyncReplication(project string, region string, disksstopgroupasyncreplicationresource *DisksStopGroupAsyncReplicationResource) *RegionDisksStopGroupAsyncReplicationCall
StopGroupAsyncReplication: Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.
- project: Project ID for this request.
- region: The name of the region for this request. This must be the region of the primary or secondary disks in the consistency group.
func (*RegionDisksService) TestIamPermissions ¶
func (r *RegionDisksService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionDisksTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*RegionDisksService) Update ¶ added in v0.110.0
func (r *RegionDisksService) Update(project string, region string, disk string, disk2 *Disk) *RegionDisksUpdateCall
Update: Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.
- disk: The disk name for this request. - project: Project ID for this request. - region: The name of the region for this request.
type RegionDisksSetIamPolicyCall ¶ added in v0.25.0
type RegionDisksSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksSetIamPolicyCall) Context ¶ added in v0.25.0
func (c *RegionDisksSetIamPolicyCall) Context(ctx context.Context) *RegionDisksSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksSetIamPolicyCall) Do ¶ added in v0.25.0
func (c *RegionDisksSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.regionDisks.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksSetIamPolicyCall) Fields ¶ added in v0.25.0
func (c *RegionDisksSetIamPolicyCall) Fields(s ...googleapi.Field) *RegionDisksSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksSetIamPolicyCall) Header ¶ added in v0.25.0
func (c *RegionDisksSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type RegionDisksSetLabelsCall ¶
type RegionDisksSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksSetLabelsCall) Context ¶
func (c *RegionDisksSetLabelsCall) Context(ctx context.Context) *RegionDisksSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksSetLabelsCall) Do ¶
func (c *RegionDisksSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksSetLabelsCall) Fields ¶
func (c *RegionDisksSetLabelsCall) Fields(s ...googleapi.Field) *RegionDisksSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksSetLabelsCall) Header ¶
func (c *RegionDisksSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDisksSetLabelsCall) RequestId ¶
func (c *RegionDisksSetLabelsCall) RequestId(requestId string) *RegionDisksSetLabelsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionDisksStartAsyncReplicationCall ¶ added in v0.127.0
type RegionDisksStartAsyncReplicationCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksStartAsyncReplicationCall) Context ¶ added in v0.127.0
func (c *RegionDisksStartAsyncReplicationCall) Context(ctx context.Context) *RegionDisksStartAsyncReplicationCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksStartAsyncReplicationCall) Do ¶ added in v0.127.0
func (c *RegionDisksStartAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.startAsyncReplication" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksStartAsyncReplicationCall) Fields ¶ added in v0.127.0
func (c *RegionDisksStartAsyncReplicationCall) Fields(s ...googleapi.Field) *RegionDisksStartAsyncReplicationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksStartAsyncReplicationCall) Header ¶ added in v0.127.0
func (c *RegionDisksStartAsyncReplicationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDisksStartAsyncReplicationCall) RequestId ¶ added in v0.127.0
func (c *RegionDisksStartAsyncReplicationCall) RequestId(requestId string) *RegionDisksStartAsyncReplicationCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionDisksStartAsyncReplicationRequest ¶ added in v0.127.0
type RegionDisksStartAsyncReplicationRequest struct { // AsyncSecondaryDisk: The secondary disk to start asynchronous replication to. // You can provide this as a partial or full URL to the resource. For example, // the following are valid values: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /disks/disk - // https://www.googleapis.com/compute/v1/projects/project/regions/region // /disks/disk - projects/project/zones/zone/disks/disk - // projects/project/regions/region/disks/disk - zones/zone/disks/disk - // regions/region/disks/disk AsyncSecondaryDisk string `json:"asyncSecondaryDisk,omitempty"` // ForceSendFields is a list of field names (e.g. "AsyncSecondaryDisk") 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. "AsyncSecondaryDisk") 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:"-"` }
func (RegionDisksStartAsyncReplicationRequest) MarshalJSON ¶ added in v0.127.0
func (s RegionDisksStartAsyncReplicationRequest) MarshalJSON() ([]byte, error)
type RegionDisksStopAsyncReplicationCall ¶ added in v0.127.0
type RegionDisksStopAsyncReplicationCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksStopAsyncReplicationCall) Context ¶ added in v0.127.0
func (c *RegionDisksStopAsyncReplicationCall) Context(ctx context.Context) *RegionDisksStopAsyncReplicationCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksStopAsyncReplicationCall) Do ¶ added in v0.127.0
func (c *RegionDisksStopAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.stopAsyncReplication" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksStopAsyncReplicationCall) Fields ¶ added in v0.127.0
func (c *RegionDisksStopAsyncReplicationCall) Fields(s ...googleapi.Field) *RegionDisksStopAsyncReplicationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksStopAsyncReplicationCall) Header ¶ added in v0.127.0
func (c *RegionDisksStopAsyncReplicationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDisksStopAsyncReplicationCall) RequestId ¶ added in v0.127.0
func (c *RegionDisksStopAsyncReplicationCall) RequestId(requestId string) *RegionDisksStopAsyncReplicationCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionDisksStopGroupAsyncReplicationCall ¶ added in v0.127.0
type RegionDisksStopGroupAsyncReplicationCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksStopGroupAsyncReplicationCall) Context ¶ added in v0.127.0
func (c *RegionDisksStopGroupAsyncReplicationCall) Context(ctx context.Context) *RegionDisksStopGroupAsyncReplicationCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksStopGroupAsyncReplicationCall) Do ¶ added in v0.127.0
func (c *RegionDisksStopGroupAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.stopGroupAsyncReplication" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksStopGroupAsyncReplicationCall) Fields ¶ added in v0.127.0
func (c *RegionDisksStopGroupAsyncReplicationCall) Fields(s ...googleapi.Field) *RegionDisksStopGroupAsyncReplicationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksStopGroupAsyncReplicationCall) Header ¶ added in v0.127.0
func (c *RegionDisksStopGroupAsyncReplicationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDisksStopGroupAsyncReplicationCall) RequestId ¶ added in v0.127.0
func (c *RegionDisksStopGroupAsyncReplicationCall) RequestId(requestId string) *RegionDisksStopGroupAsyncReplicationCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionDisksTestIamPermissionsCall ¶
type RegionDisksTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksTestIamPermissionsCall) Context ¶
func (c *RegionDisksTestIamPermissionsCall) Context(ctx context.Context) *RegionDisksTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksTestIamPermissionsCall) Do ¶
func (c *RegionDisksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionDisks.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksTestIamPermissionsCall) Fields ¶
func (c *RegionDisksTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionDisksTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksTestIamPermissionsCall) Header ¶
func (c *RegionDisksTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type RegionDisksUpdateCall ¶ added in v0.110.0
type RegionDisksUpdateCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksUpdateCall) Context ¶ added in v0.110.0
func (c *RegionDisksUpdateCall) Context(ctx context.Context) *RegionDisksUpdateCall
Context sets the context to be used in this call's Do method.
func (*RegionDisksUpdateCall) Do ¶ added in v0.110.0
func (c *RegionDisksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionDisksUpdateCall) Fields ¶ added in v0.110.0
func (c *RegionDisksUpdateCall) Fields(s ...googleapi.Field) *RegionDisksUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionDisksUpdateCall) Header ¶ added in v0.110.0
func (c *RegionDisksUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionDisksUpdateCall) Paths ¶ added in v0.110.0
func (c *RegionDisksUpdateCall) Paths(paths ...string) *RegionDisksUpdateCall
Paths sets the optional parameter "paths":
func (*RegionDisksUpdateCall) RequestId ¶ added in v0.110.0
func (c *RegionDisksUpdateCall) RequestId(requestId string) *RegionDisksUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*RegionDisksUpdateCall) UpdateMask ¶ added in v0.110.0
func (c *RegionDisksUpdateCall) UpdateMask(updateMask string) *RegionDisksUpdateCall
UpdateMask sets the optional parameter "updateMask": update_mask indicates fields to be updated as part of this request.
type RegionHealthCheckServicesDeleteCall ¶ added in v0.29.0
type RegionHealthCheckServicesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthCheckServicesDeleteCall) Context ¶ added in v0.29.0
func (c *RegionHealthCheckServicesDeleteCall) Context(ctx context.Context) *RegionHealthCheckServicesDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionHealthCheckServicesDeleteCall) Do ¶ added in v0.29.0
func (c *RegionHealthCheckServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionHealthCheckServices.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionHealthCheckServicesDeleteCall) Fields ¶ added in v0.29.0
func (c *RegionHealthCheckServicesDeleteCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionHealthCheckServicesDeleteCall) Header ¶ added in v0.29.0
func (c *RegionHealthCheckServicesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionHealthCheckServicesDeleteCall) RequestId ¶ added in v0.29.0
func (c *RegionHealthCheckServicesDeleteCall) RequestId(requestId string) *RegionHealthCheckServicesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionHealthCheckServicesGetCall ¶ added in v0.29.0
type RegionHealthCheckServicesGetCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthCheckServicesGetCall) Context ¶ added in v0.29.0
func (c *RegionHealthCheckServicesGetCall) Context(ctx context.Context) *RegionHealthCheckServicesGetCall
Context sets the context to be used in this call's Do method.
func (*RegionHealthCheckServicesGetCall) Do ¶ added in v0.29.0
func (c *RegionHealthCheckServicesGetCall) Do(opts ...googleapi.CallOption) (*HealthCheckService, error)
Do executes the "compute.regionHealthCheckServices.get" call. Any non-2xx status code is an error. Response headers are in either *HealthCheckService.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionHealthCheckServicesGetCall) Fields ¶ added in v0.29.0
func (c *RegionHealthCheckServicesGetCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionHealthCheckServicesGetCall) Header ¶ added in v0.29.0
func (c *RegionHealthCheckServicesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionHealthCheckServicesGetCall) IfNoneMatch ¶ added in v0.29.0
func (c *RegionHealthCheckServicesGetCall) IfNoneMatch(entityTag string) *RegionHealthCheckServicesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionHealthCheckServicesInsertCall ¶ added in v0.29.0
type RegionHealthCheckServicesInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthCheckServicesInsertCall) Context ¶ added in v0.29.0
func (c *RegionHealthCheckServicesInsertCall) Context(ctx context.Context) *RegionHealthCheckServicesInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionHealthCheckServicesInsertCall) Do ¶ added in v0.29.0
func (c *RegionHealthCheckServicesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionHealthCheckServices.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionHealthCheckServicesInsertCall) Fields ¶ added in v0.29.0
func (c *RegionHealthCheckServicesInsertCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionHealthCheckServicesInsertCall) Header ¶ added in v0.29.0
func (c *RegionHealthCheckServicesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionHealthCheckServicesInsertCall) RequestId ¶ added in v0.29.0
func (c *RegionHealthCheckServicesInsertCall) RequestId(requestId string) *RegionHealthCheckServicesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionHealthCheckServicesListCall ¶ added in v0.29.0
type RegionHealthCheckServicesListCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthCheckServicesListCall) Context ¶ added in v0.29.0
func (c *RegionHealthCheckServicesListCall) Context(ctx context.Context) *RegionHealthCheckServicesListCall
Context sets the context to be used in this call's Do method.
func (*RegionHealthCheckServicesListCall) Do ¶ added in v0.29.0
func (c *RegionHealthCheckServicesListCall) Do(opts ...googleapi.CallOption) (*HealthCheckServicesList, error)
Do executes the "compute.regionHealthCheckServices.list" call. Any non-2xx status code is an error. Response headers are in either *HealthCheckServicesList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionHealthCheckServicesListCall) Fields ¶ added in v0.29.0
func (c *RegionHealthCheckServicesListCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionHealthCheckServicesListCall) Filter ¶ added in v0.29.0
func (c *RegionHealthCheckServicesListCall) Filter(filter string) *RegionHealthCheckServicesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionHealthCheckServicesListCall) Header ¶ added in v0.29.0
func (c *RegionHealthCheckServicesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionHealthCheckServicesListCall) IfNoneMatch ¶ added in v0.29.0
func (c *RegionHealthCheckServicesListCall) IfNoneMatch(entityTag string) *RegionHealthCheckServicesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionHealthCheckServicesListCall) MaxResults ¶ added in v0.29.0
func (c *RegionHealthCheckServicesListCall) MaxResults(maxResults int64) *RegionHealthCheckServicesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionHealthCheckServicesListCall) OrderBy ¶ added in v0.29.0
func (c *RegionHealthCheckServicesListCall) OrderBy(orderBy string) *RegionHealthCheckServicesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionHealthCheckServicesListCall) PageToken ¶ added in v0.29.0
func (c *RegionHealthCheckServicesListCall) PageToken(pageToken string) *RegionHealthCheckServicesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionHealthCheckServicesListCall) Pages ¶ added in v0.29.0
func (c *RegionHealthCheckServicesListCall) Pages(ctx context.Context, f func(*HealthCheckServicesList) 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 (*RegionHealthCheckServicesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionHealthCheckServicesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionHealthCheckServicesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionHealthCheckServicesPatchCall ¶ added in v0.29.0
type RegionHealthCheckServicesPatchCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthCheckServicesPatchCall) Context ¶ added in v0.29.0
func (c *RegionHealthCheckServicesPatchCall) Context(ctx context.Context) *RegionHealthCheckServicesPatchCall
Context sets the context to be used in this call's Do method.
func (*RegionHealthCheckServicesPatchCall) Do ¶ added in v0.29.0
func (c *RegionHealthCheckServicesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionHealthCheckServices.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionHealthCheckServicesPatchCall) Fields ¶ added in v0.29.0
func (c *RegionHealthCheckServicesPatchCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionHealthCheckServicesPatchCall) Header ¶ added in v0.29.0
func (c *RegionHealthCheckServicesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionHealthCheckServicesPatchCall) RequestId ¶ added in v0.29.0
func (c *RegionHealthCheckServicesPatchCall) RequestId(requestId string) *RegionHealthCheckServicesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionHealthCheckServicesService ¶ added in v0.29.0
type RegionHealthCheckServicesService struct {
// contains filtered or unexported fields
}
func NewRegionHealthCheckServicesService ¶ added in v0.29.0
func NewRegionHealthCheckServicesService(s *Service) *RegionHealthCheckServicesService
func (*RegionHealthCheckServicesService) Delete ¶ added in v0.29.0
func (r *RegionHealthCheckServicesService) Delete(project string, region string, healthCheckService string) *RegionHealthCheckServicesDeleteCall
Delete: Deletes the specified regional HealthCheckService.
- healthCheckService: Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with RFC1035.
- project: Project ID for this request.
- region: Name of the region scoping this request.
func (*RegionHealthCheckServicesService) Get ¶ added in v0.29.0
func (r *RegionHealthCheckServicesService) Get(project string, region string, healthCheckService string) *RegionHealthCheckServicesGetCall
Get: Returns the specified regional HealthCheckService resource.
- healthCheckService: Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with RFC1035.
- project: Project ID for this request.
- region: Name of the region scoping this request.
func (*RegionHealthCheckServicesService) Insert ¶ added in v0.29.0
func (r *RegionHealthCheckServicesService) Insert(project string, region string, healthcheckservice *HealthCheckService) *RegionHealthCheckServicesInsertCall
Insert: Creates a regional HealthCheckService resource in the specified project and region using the data included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionHealthCheckServicesService) List ¶ added in v0.29.0
func (r *RegionHealthCheckServicesService) List(project string, region string) *RegionHealthCheckServicesListCall
List: Lists all the HealthCheckService resources that have been configured for the specified project in the given region.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionHealthCheckServicesService) Patch ¶ added in v0.29.0
func (r *RegionHealthCheckServicesService) Patch(project string, region string, healthCheckService string, healthcheckservice *HealthCheckService) *RegionHealthCheckServicesPatchCall
Patch: Updates the specified regional HealthCheckService resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- healthCheckService: Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with RFC1035.
- project: Project ID for this request.
- region: Name of the region scoping this request.
type RegionHealthChecksDeleteCall ¶ added in v0.11.0
type RegionHealthChecksDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthChecksDeleteCall) Context ¶ added in v0.11.0
func (c *RegionHealthChecksDeleteCall) Context(ctx context.Context) *RegionHealthChecksDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionHealthChecksDeleteCall) Do ¶ added in v0.11.0
func (c *RegionHealthChecksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionHealthChecks.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionHealthChecksDeleteCall) Fields ¶ added in v0.11.0
func (c *RegionHealthChecksDeleteCall) Fields(s ...googleapi.Field) *RegionHealthChecksDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionHealthChecksDeleteCall) Header ¶ added in v0.11.0
func (c *RegionHealthChecksDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionHealthChecksDeleteCall) RequestId ¶ added in v0.11.0
func (c *RegionHealthChecksDeleteCall) RequestId(requestId string) *RegionHealthChecksDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionHealthChecksGetCall ¶ added in v0.11.0
type RegionHealthChecksGetCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthChecksGetCall) Context ¶ added in v0.11.0
func (c *RegionHealthChecksGetCall) Context(ctx context.Context) *RegionHealthChecksGetCall
Context sets the context to be used in this call's Do method.
func (*RegionHealthChecksGetCall) Do ¶ added in v0.11.0
func (c *RegionHealthChecksGetCall) Do(opts ...googleapi.CallOption) (*HealthCheck, error)
Do executes the "compute.regionHealthChecks.get" call. Any non-2xx status code is an error. Response headers are in either *HealthCheck.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionHealthChecksGetCall) Fields ¶ added in v0.11.0
func (c *RegionHealthChecksGetCall) Fields(s ...googleapi.Field) *RegionHealthChecksGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionHealthChecksGetCall) Header ¶ added in v0.11.0
func (c *RegionHealthChecksGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionHealthChecksGetCall) IfNoneMatch ¶ added in v0.11.0
func (c *RegionHealthChecksGetCall) IfNoneMatch(entityTag string) *RegionHealthChecksGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionHealthChecksInsertCall ¶ added in v0.11.0
type RegionHealthChecksInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthChecksInsertCall) Context ¶ added in v0.11.0
func (c *RegionHealthChecksInsertCall) Context(ctx context.Context) *RegionHealthChecksInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionHealthChecksInsertCall) Do ¶ added in v0.11.0
func (c *RegionHealthChecksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionHealthChecks.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionHealthChecksInsertCall) Fields ¶ added in v0.11.0
func (c *RegionHealthChecksInsertCall) Fields(s ...googleapi.Field) *RegionHealthChecksInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionHealthChecksInsertCall) Header ¶ added in v0.11.0
func (c *RegionHealthChecksInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionHealthChecksInsertCall) RequestId ¶ added in v0.11.0
func (c *RegionHealthChecksInsertCall) RequestId(requestId string) *RegionHealthChecksInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionHealthChecksListCall ¶ added in v0.11.0
type RegionHealthChecksListCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthChecksListCall) Context ¶ added in v0.11.0
func (c *RegionHealthChecksListCall) Context(ctx context.Context) *RegionHealthChecksListCall
Context sets the context to be used in this call's Do method.
func (*RegionHealthChecksListCall) Do ¶ added in v0.11.0
func (c *RegionHealthChecksListCall) Do(opts ...googleapi.CallOption) (*HealthCheckList, error)
Do executes the "compute.regionHealthChecks.list" call. Any non-2xx status code is an error. Response headers are in either *HealthCheckList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionHealthChecksListCall) Fields ¶ added in v0.11.0
func (c *RegionHealthChecksListCall) Fields(s ...googleapi.Field) *RegionHealthChecksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionHealthChecksListCall) Filter ¶ added in v0.11.0
func (c *RegionHealthChecksListCall) Filter(filter string) *RegionHealthChecksListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionHealthChecksListCall) Header ¶ added in v0.11.0
func (c *RegionHealthChecksListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionHealthChecksListCall) IfNoneMatch ¶ added in v0.11.0
func (c *RegionHealthChecksListCall) IfNoneMatch(entityTag string) *RegionHealthChecksListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionHealthChecksListCall) MaxResults ¶ added in v0.11.0
func (c *RegionHealthChecksListCall) MaxResults(maxResults int64) *RegionHealthChecksListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionHealthChecksListCall) OrderBy ¶ added in v0.11.0
func (c *RegionHealthChecksListCall) OrderBy(orderBy string) *RegionHealthChecksListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionHealthChecksListCall) PageToken ¶ added in v0.11.0
func (c *RegionHealthChecksListCall) PageToken(pageToken string) *RegionHealthChecksListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionHealthChecksListCall) Pages ¶ added in v0.11.0
func (c *RegionHealthChecksListCall) Pages(ctx context.Context, f func(*HealthCheckList) 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 (*RegionHealthChecksListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionHealthChecksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionHealthChecksListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionHealthChecksPatchCall ¶ added in v0.11.0
type RegionHealthChecksPatchCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthChecksPatchCall) Context ¶ added in v0.11.0
func (c *RegionHealthChecksPatchCall) Context(ctx context.Context) *RegionHealthChecksPatchCall
Context sets the context to be used in this call's Do method.
func (*RegionHealthChecksPatchCall) Do ¶ added in v0.11.0
func (c *RegionHealthChecksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionHealthChecks.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionHealthChecksPatchCall) Fields ¶ added in v0.11.0
func (c *RegionHealthChecksPatchCall) Fields(s ...googleapi.Field) *RegionHealthChecksPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionHealthChecksPatchCall) Header ¶ added in v0.11.0
func (c *RegionHealthChecksPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionHealthChecksPatchCall) RequestId ¶ added in v0.11.0
func (c *RegionHealthChecksPatchCall) RequestId(requestId string) *RegionHealthChecksPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionHealthChecksService ¶ added in v0.11.0
type RegionHealthChecksService struct {
// contains filtered or unexported fields
}
func NewRegionHealthChecksService ¶ added in v0.11.0
func NewRegionHealthChecksService(s *Service) *RegionHealthChecksService
func (*RegionHealthChecksService) Delete ¶ added in v0.11.0
func (r *RegionHealthChecksService) Delete(project string, region string, healthCheck string) *RegionHealthChecksDeleteCall
Delete: Deletes the specified HealthCheck resource.
- healthCheck: Name of the HealthCheck resource to delete. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionHealthChecksService) Get ¶ added in v0.11.0
func (r *RegionHealthChecksService) Get(project string, region string, healthCheck string) *RegionHealthChecksGetCall
Get: Returns the specified HealthCheck resource.
- healthCheck: Name of the HealthCheck resource to return. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionHealthChecksService) Insert ¶ added in v0.11.0
func (r *RegionHealthChecksService) Insert(project string, region string, healthcheck *HealthCheck) *RegionHealthChecksInsertCall
Insert: Creates a HealthCheck resource in the specified project using the data included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionHealthChecksService) List ¶ added in v0.11.0
func (r *RegionHealthChecksService) List(project string, region string) *RegionHealthChecksListCall
List: Retrieves the list of HealthCheck resources available to the specified project.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionHealthChecksService) Patch ¶ added in v0.11.0
func (r *RegionHealthChecksService) Patch(project string, region string, healthCheck string, healthcheck *HealthCheck) *RegionHealthChecksPatchCall
Patch: Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- healthCheck: Name of the HealthCheck resource to patch. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionHealthChecksService) Update ¶ added in v0.11.0
func (r *RegionHealthChecksService) Update(project string, region string, healthCheck string, healthcheck *HealthCheck) *RegionHealthChecksUpdateCall
Update: Updates a HealthCheck resource in the specified project using the data included in the request.
- healthCheck: Name of the HealthCheck resource to update. - project: Project ID for this request. - region: Name of the region scoping this request.
type RegionHealthChecksUpdateCall ¶ added in v0.11.0
type RegionHealthChecksUpdateCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthChecksUpdateCall) Context ¶ added in v0.11.0
func (c *RegionHealthChecksUpdateCall) Context(ctx context.Context) *RegionHealthChecksUpdateCall
Context sets the context to be used in this call's Do method.
func (*RegionHealthChecksUpdateCall) Do ¶ added in v0.11.0
func (c *RegionHealthChecksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionHealthChecks.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionHealthChecksUpdateCall) Fields ¶ added in v0.11.0
func (c *RegionHealthChecksUpdateCall) Fields(s ...googleapi.Field) *RegionHealthChecksUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionHealthChecksUpdateCall) Header ¶ added in v0.11.0
func (c *RegionHealthChecksUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionHealthChecksUpdateCall) RequestId ¶ added in v0.11.0
func (c *RegionHealthChecksUpdateCall) RequestId(requestId string) *RegionHealthChecksUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupList ¶
type RegionInstanceGroupList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InstanceGroup resources. Items []*InstanceGroup `json:"items,omitempty"` // Kind: The resource type. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *RegionInstanceGroupListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
RegionInstanceGroupList: Contains a list of InstanceGroup resources.
func (RegionInstanceGroupList) MarshalJSON ¶
func (s RegionInstanceGroupList) MarshalJSON() ([]byte, error)
type RegionInstanceGroupListWarning ¶
type RegionInstanceGroupListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*RegionInstanceGroupListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
RegionInstanceGroupListWarning: [Output Only] Informational warning message.
func (RegionInstanceGroupListWarning) MarshalJSON ¶
func (s RegionInstanceGroupListWarning) MarshalJSON() ([]byte, error)
type RegionInstanceGroupListWarningData ¶
type RegionInstanceGroupListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (RegionInstanceGroupListWarningData) MarshalJSON ¶
func (s RegionInstanceGroupListWarningData) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagerDeleteInstanceConfigReq ¶ added in v0.31.0
type RegionInstanceGroupManagerDeleteInstanceConfigReq struct { // Names: The list of instance names for which we want to delete per-instance // configs on this managed instance group. Names []string `json:"names,omitempty"` // ForceSendFields is a list of field names (e.g. "Names") 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. "Names") 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:"-"` }
RegionInstanceGroupManagerDeleteInstanceConfigReq: RegionInstanceGroupManagers.deletePerInstanceConfigs
func (RegionInstanceGroupManagerDeleteInstanceConfigReq) MarshalJSON ¶ added in v0.31.0
func (s RegionInstanceGroupManagerDeleteInstanceConfigReq) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagerList ¶
type RegionInstanceGroupManagerList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InstanceGroupManager resources. Items []*InstanceGroupManager `json:"items,omitempty"` // Kind: [Output Only] The resource type, which is always // compute#instanceGroupManagerList for a list of managed instance groups that // exist in th regional scope. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *RegionInstanceGroupManagerListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
RegionInstanceGroupManagerList: Contains a list of managed instance groups.
func (RegionInstanceGroupManagerList) MarshalJSON ¶
func (s RegionInstanceGroupManagerList) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagerListWarning ¶
type RegionInstanceGroupManagerListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*RegionInstanceGroupManagerListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
RegionInstanceGroupManagerListWarning: [Output Only] Informational warning message.
func (RegionInstanceGroupManagerListWarning) MarshalJSON ¶
func (s RegionInstanceGroupManagerListWarning) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagerListWarningData ¶
type RegionInstanceGroupManagerListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (RegionInstanceGroupManagerListWarningData) MarshalJSON ¶
func (s RegionInstanceGroupManagerListWarningData) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagerPatchInstanceConfigReq ¶ added in v0.31.0
type RegionInstanceGroupManagerPatchInstanceConfigReq struct { // PerInstanceConfigs: The list of per-instance configurations to insert or // patch on this managed instance group. PerInstanceConfigs []*PerInstanceConfig `json:"perInstanceConfigs,omitempty"` // ForceSendFields is a list of field names (e.g. "PerInstanceConfigs") 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. "PerInstanceConfigs") 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:"-"` }
RegionInstanceGroupManagerPatchInstanceConfigReq: RegionInstanceGroupManagers.patchPerInstanceConfigs
func (RegionInstanceGroupManagerPatchInstanceConfigReq) MarshalJSON ¶ added in v0.31.0
func (s RegionInstanceGroupManagerPatchInstanceConfigReq) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagerUpdateInstanceConfigReq ¶ added in v0.31.0
type RegionInstanceGroupManagerUpdateInstanceConfigReq struct { // PerInstanceConfigs: The list of per-instance configurations to insert or // patch on this managed instance group. PerInstanceConfigs []*PerInstanceConfig `json:"perInstanceConfigs,omitempty"` // ForceSendFields is a list of field names (e.g. "PerInstanceConfigs") 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. "PerInstanceConfigs") 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:"-"` }
RegionInstanceGroupManagerUpdateInstanceConfigReq: RegionInstanceGroupManagers.updatePerInstanceConfigs
func (RegionInstanceGroupManagerUpdateInstanceConfigReq) MarshalJSON ¶ added in v0.31.0
func (s RegionInstanceGroupManagerUpdateInstanceConfigReq) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersAbandonInstancesCall ¶
type RegionInstanceGroupManagersAbandonInstancesCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersAbandonInstancesCall) Context ¶
func (c *RegionInstanceGroupManagersAbandonInstancesCall) Context(ctx context.Context) *RegionInstanceGroupManagersAbandonInstancesCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersAbandonInstancesCall) Do ¶
func (c *RegionInstanceGroupManagersAbandonInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.abandonInstances" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersAbandonInstancesCall) Fields ¶
func (c *RegionInstanceGroupManagersAbandonInstancesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersAbandonInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersAbandonInstancesCall) Header ¶
func (c *RegionInstanceGroupManagersAbandonInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersAbandonInstancesCall) RequestId ¶
func (c *RegionInstanceGroupManagersAbandonInstancesCall) RequestId(requestId string) *RegionInstanceGroupManagersAbandonInstancesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupManagersAbandonInstancesRequest ¶
type RegionInstanceGroupManagersAbandonInstancesRequest struct { // Instances: The URLs of one or more instances to abandon. This can be a full // URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Instances []string `json:"instances,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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:"-"` }
func (RegionInstanceGroupManagersAbandonInstancesRequest) MarshalJSON ¶
func (s RegionInstanceGroupManagersAbandonInstancesRequest) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersApplyUpdatesRequest ¶ added in v0.18.0
type RegionInstanceGroupManagersApplyUpdatesRequest struct { // AllInstances: Flag to update all instances instead of specified list of // “instances”. If the flag is set to true then the instances may not be // specified in the request. AllInstances bool `json:"allInstances,omitempty"` // Instances: The list of URLs of one or more instances for which you want to // apply updates. Each URL can be a full URL or a partial URL, such as // zones/[ZONE]/instances/[INSTANCE_NAME]. Instances []string `json:"instances,omitempty"` // MinimalAction: The minimal action that you want to perform on each instance // during the update: - REPLACE: At minimum, delete the instance and create it // again. - RESTART: Stop the instance and start it again. - REFRESH: Do not // stop the instance and limit disruption as much as possible. - NONE: Do not // disrupt the instance at all. By default, the minimum action is NONE. If your // update requires a more disruptive action than you set with this flag, the // necessary action is performed to execute the update. // // Possible values: // "NONE" - Do not perform any action. // "REFRESH" - Do not stop the instance. // "REPLACE" - (Default.) Replace the instance according to the replacement // method option. // "RESTART" - Stop the instance and start it again. MinimalAction string `json:"minimalAction,omitempty"` // MostDisruptiveAllowedAction: The most disruptive action that you want to // perform on each instance during the update: - REPLACE: Delete the instance // and create it again. - RESTART: Stop the instance and start it again. - // REFRESH: Do not stop the instance and limit disruption as much as possible. // - NONE: Do not disrupt the instance at all. By default, the most disruptive // allowed action is REPLACE. If your update requires a more disruptive action // than you set with this flag, the update request will fail. // // Possible values: // "NONE" - Do not perform any action. // "REFRESH" - Do not stop the instance. // "REPLACE" - (Default.) Replace the instance according to the replacement // method option. // "RESTART" - Stop the instance and start it again. MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` // ForceSendFields is a list of field names (e.g. "AllInstances") 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. "AllInstances") 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:"-"` }
RegionInstanceGroupManagersApplyUpdatesRequest: RegionInstanceGroupManagers.applyUpdatesToInstances
func (RegionInstanceGroupManagersApplyUpdatesRequest) MarshalJSON ¶ added in v0.18.0
func (s RegionInstanceGroupManagersApplyUpdatesRequest) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersApplyUpdatesToInstancesCall ¶ added in v0.18.0
type RegionInstanceGroupManagersApplyUpdatesToInstancesCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Context ¶ added in v0.18.0
func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Context(ctx context.Context) *RegionInstanceGroupManagersApplyUpdatesToInstancesCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Do ¶ added in v0.18.0
func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.applyUpdatesToInstances" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Fields ¶ added in v0.18.0
func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersApplyUpdatesToInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Header ¶ added in v0.18.0
func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type RegionInstanceGroupManagersCreateInstancesCall ¶ added in v0.16.0
type RegionInstanceGroupManagersCreateInstancesCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersCreateInstancesCall) Context ¶ added in v0.16.0
func (c *RegionInstanceGroupManagersCreateInstancesCall) Context(ctx context.Context) *RegionInstanceGroupManagersCreateInstancesCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersCreateInstancesCall) Do ¶ added in v0.16.0
func (c *RegionInstanceGroupManagersCreateInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.createInstances" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersCreateInstancesCall) Fields ¶ added in v0.16.0
func (c *RegionInstanceGroupManagersCreateInstancesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersCreateInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersCreateInstancesCall) Header ¶ added in v0.16.0
func (c *RegionInstanceGroupManagersCreateInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersCreateInstancesCall) RequestId ¶ added in v0.16.0
func (c *RegionInstanceGroupManagersCreateInstancesCall) RequestId(requestId string) *RegionInstanceGroupManagersCreateInstancesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupManagersCreateInstancesRequest ¶ added in v0.16.0
type RegionInstanceGroupManagersCreateInstancesRequest struct { // Instances: [Required] List of specifications of per-instance configs. Instances []*PerInstanceConfig `json:"instances,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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:"-"` }
RegionInstanceGroupManagersCreateInstancesRequest: RegionInstanceGroupManagers.createInstances
func (RegionInstanceGroupManagersCreateInstancesRequest) MarshalJSON ¶ added in v0.16.0
func (s RegionInstanceGroupManagersCreateInstancesRequest) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersDeleteCall ¶
type RegionInstanceGroupManagersDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersDeleteCall) Context ¶
func (c *RegionInstanceGroupManagersDeleteCall) Context(ctx context.Context) *RegionInstanceGroupManagersDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersDeleteCall) Do ¶
func (c *RegionInstanceGroupManagersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersDeleteCall) Fields ¶
func (c *RegionInstanceGroupManagersDeleteCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersDeleteCall) Header ¶
func (c *RegionInstanceGroupManagersDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersDeleteCall) RequestId ¶
func (c *RegionInstanceGroupManagersDeleteCall) RequestId(requestId string) *RegionInstanceGroupManagersDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupManagersDeleteInstancesCall ¶
type RegionInstanceGroupManagersDeleteInstancesCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersDeleteInstancesCall) Context ¶
func (c *RegionInstanceGroupManagersDeleteInstancesCall) Context(ctx context.Context) *RegionInstanceGroupManagersDeleteInstancesCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersDeleteInstancesCall) Do ¶
func (c *RegionInstanceGroupManagersDeleteInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.deleteInstances" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersDeleteInstancesCall) Fields ¶
func (c *RegionInstanceGroupManagersDeleteInstancesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersDeleteInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersDeleteInstancesCall) Header ¶
func (c *RegionInstanceGroupManagersDeleteInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersDeleteInstancesCall) RequestId ¶
func (c *RegionInstanceGroupManagersDeleteInstancesCall) RequestId(requestId string) *RegionInstanceGroupManagersDeleteInstancesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupManagersDeleteInstancesRequest ¶
type RegionInstanceGroupManagersDeleteInstancesRequest struct { // Instances: The URLs of one or more instances to delete. This can be a full // URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Instances []string `json:"instances,omitempty"` // SkipInstancesOnValidationError: Specifies whether the request should proceed // despite the inclusion of instances that are not members of the group or that // are already in the process of being deleted or abandoned. If this field is // set to `false` and such an instance is specified in the request, the // operation fails. The operation always fails if the request contains a // malformed instance URL or a reference to an instance that exists in a zone // or region other than the group's zone or region. SkipInstancesOnValidationError bool `json:"skipInstancesOnValidationError,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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:"-"` }
func (RegionInstanceGroupManagersDeleteInstancesRequest) MarshalJSON ¶
func (s RegionInstanceGroupManagersDeleteInstancesRequest) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersDeletePerInstanceConfigsCall ¶ added in v0.31.0
type RegionInstanceGroupManagersDeletePerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Context ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Context(ctx context.Context) *RegionInstanceGroupManagersDeletePerInstanceConfigsCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Do ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.deletePerInstanceConfigs" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Fields ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersDeletePerInstanceConfigsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Header ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type RegionInstanceGroupManagersGetCall ¶
type RegionInstanceGroupManagersGetCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersGetCall) Context ¶
func (c *RegionInstanceGroupManagersGetCall) Context(ctx context.Context) *RegionInstanceGroupManagersGetCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersGetCall) Do ¶
func (c *RegionInstanceGroupManagersGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManager, error)
Do executes the "compute.regionInstanceGroupManagers.get" call. Any non-2xx status code is an error. Response headers are in either *InstanceGroupManager.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersGetCall) Fields ¶
func (c *RegionInstanceGroupManagersGetCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersGetCall) Header ¶
func (c *RegionInstanceGroupManagersGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersGetCall) IfNoneMatch ¶
func (c *RegionInstanceGroupManagersGetCall) IfNoneMatch(entityTag string) *RegionInstanceGroupManagersGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionInstanceGroupManagersInsertCall ¶
type RegionInstanceGroupManagersInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersInsertCall) Context ¶
func (c *RegionInstanceGroupManagersInsertCall) Context(ctx context.Context) *RegionInstanceGroupManagersInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersInsertCall) Do ¶
func (c *RegionInstanceGroupManagersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersInsertCall) Fields ¶
func (c *RegionInstanceGroupManagersInsertCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersInsertCall) Header ¶
func (c *RegionInstanceGroupManagersInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersInsertCall) RequestId ¶
func (c *RegionInstanceGroupManagersInsertCall) RequestId(requestId string) *RegionInstanceGroupManagersInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupManagersListCall ¶
type RegionInstanceGroupManagersListCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersListCall) Context ¶
func (c *RegionInstanceGroupManagersListCall) Context(ctx context.Context) *RegionInstanceGroupManagersListCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersListCall) Do ¶
func (c *RegionInstanceGroupManagersListCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupManagerList, error)
Do executes the "compute.regionInstanceGroupManagers.list" call. Any non-2xx status code is an error. Response headers are in either *RegionInstanceGroupManagerList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersListCall) Fields ¶
func (c *RegionInstanceGroupManagersListCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersListCall) Filter ¶
func (c *RegionInstanceGroupManagersListCall) Filter(filter string) *RegionInstanceGroupManagersListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionInstanceGroupManagersListCall) Header ¶
func (c *RegionInstanceGroupManagersListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersListCall) IfNoneMatch ¶
func (c *RegionInstanceGroupManagersListCall) IfNoneMatch(entityTag string) *RegionInstanceGroupManagersListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionInstanceGroupManagersListCall) MaxResults ¶
func (c *RegionInstanceGroupManagersListCall) MaxResults(maxResults int64) *RegionInstanceGroupManagersListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionInstanceGroupManagersListCall) OrderBy ¶
func (c *RegionInstanceGroupManagersListCall) OrderBy(orderBy string) *RegionInstanceGroupManagersListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionInstanceGroupManagersListCall) PageToken ¶
func (c *RegionInstanceGroupManagersListCall) PageToken(pageToken string) *RegionInstanceGroupManagersListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionInstanceGroupManagersListCall) Pages ¶
func (c *RegionInstanceGroupManagersListCall) Pages(ctx context.Context, f func(*RegionInstanceGroupManagerList) 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 (*RegionInstanceGroupManagersListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionInstanceGroupManagersListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceGroupManagersListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionInstanceGroupManagersListErrorsCall ¶ added in v0.21.0
type RegionInstanceGroupManagersListErrorsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersListErrorsCall) Context ¶ added in v0.21.0
func (c *RegionInstanceGroupManagersListErrorsCall) Context(ctx context.Context) *RegionInstanceGroupManagersListErrorsCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersListErrorsCall) Do ¶ added in v0.21.0
func (c *RegionInstanceGroupManagersListErrorsCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupManagersListErrorsResponse, error)
Do executes the "compute.regionInstanceGroupManagers.listErrors" call. Any non-2xx status code is an error. Response headers are in either *RegionInstanceGroupManagersListErrorsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersListErrorsCall) Fields ¶ added in v0.21.0
func (c *RegionInstanceGroupManagersListErrorsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersListErrorsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersListErrorsCall) Filter ¶ added in v0.21.0
func (c *RegionInstanceGroupManagersListErrorsCall) Filter(filter string) *RegionInstanceGroupManagersListErrorsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionInstanceGroupManagersListErrorsCall) Header ¶ added in v0.21.0
func (c *RegionInstanceGroupManagersListErrorsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersListErrorsCall) IfNoneMatch ¶ added in v0.21.0
func (c *RegionInstanceGroupManagersListErrorsCall) IfNoneMatch(entityTag string) *RegionInstanceGroupManagersListErrorsCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionInstanceGroupManagersListErrorsCall) MaxResults ¶ added in v0.21.0
func (c *RegionInstanceGroupManagersListErrorsCall) MaxResults(maxResults int64) *RegionInstanceGroupManagersListErrorsCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionInstanceGroupManagersListErrorsCall) OrderBy ¶ added in v0.21.0
func (c *RegionInstanceGroupManagersListErrorsCall) OrderBy(orderBy string) *RegionInstanceGroupManagersListErrorsCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionInstanceGroupManagersListErrorsCall) PageToken ¶ added in v0.21.0
func (c *RegionInstanceGroupManagersListErrorsCall) PageToken(pageToken string) *RegionInstanceGroupManagersListErrorsCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionInstanceGroupManagersListErrorsCall) Pages ¶ added in v0.21.0
func (c *RegionInstanceGroupManagersListErrorsCall) Pages(ctx context.Context, f func(*RegionInstanceGroupManagersListErrorsResponse) 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 (*RegionInstanceGroupManagersListErrorsCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionInstanceGroupManagersListErrorsCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceGroupManagersListErrorsCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionInstanceGroupManagersListErrorsResponse ¶ added in v0.21.0
type RegionInstanceGroupManagersListErrorsResponse struct { // Items: [Output Only] The list of errors of the managed instance group. Items []*InstanceManagedByIgmError `json:"items,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"` }
func (RegionInstanceGroupManagersListErrorsResponse) MarshalJSON ¶ added in v0.21.0
func (s RegionInstanceGroupManagersListErrorsResponse) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersListInstanceConfigsResp ¶ added in v0.31.0
type RegionInstanceGroupManagersListInstanceConfigsResp struct { // Items: [Output Only] The list of PerInstanceConfig. Items []*PerInstanceConfig `json:"items,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // Warning: [Output Only] Informational warning message. Warning *RegionInstanceGroupManagersListInstanceConfigsRespWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"` }
func (RegionInstanceGroupManagersListInstanceConfigsResp) MarshalJSON ¶ added in v0.31.0
func (s RegionInstanceGroupManagersListInstanceConfigsResp) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersListInstanceConfigsRespWarning ¶ added in v0.31.0
type RegionInstanceGroupManagersListInstanceConfigsRespWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*RegionInstanceGroupManagersListInstanceConfigsRespWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
RegionInstanceGroupManagersListInstanceConfigsRespWarning: [Output Only] Informational warning message.
func (RegionInstanceGroupManagersListInstanceConfigsRespWarning) MarshalJSON ¶ added in v0.31.0
func (s RegionInstanceGroupManagersListInstanceConfigsRespWarning) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersListInstanceConfigsRespWarningData ¶ added in v0.31.0
type RegionInstanceGroupManagersListInstanceConfigsRespWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (RegionInstanceGroupManagersListInstanceConfigsRespWarningData) MarshalJSON ¶ added in v0.31.0
func (s RegionInstanceGroupManagersListInstanceConfigsRespWarningData) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersListInstancesResponse ¶
type RegionInstanceGroupManagersListInstancesResponse struct { // ManagedInstances: A list of managed instances. ManagedInstances []*ManagedInstance `json:"managedInstances,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ManagedInstances") 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. "ManagedInstances") 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:"-"` }
func (RegionInstanceGroupManagersListInstancesResponse) MarshalJSON ¶
func (s RegionInstanceGroupManagersListInstancesResponse) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersListManagedInstancesCall ¶
type RegionInstanceGroupManagersListManagedInstancesCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersListManagedInstancesCall) Context ¶
func (c *RegionInstanceGroupManagersListManagedInstancesCall) Context(ctx context.Context) *RegionInstanceGroupManagersListManagedInstancesCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersListManagedInstancesCall) Do ¶
func (c *RegionInstanceGroupManagersListManagedInstancesCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupManagersListInstancesResponse, error)
Do executes the "compute.regionInstanceGroupManagers.listManagedInstances" call. Any non-2xx status code is an error. Response headers are in either *RegionInstanceGroupManagersListInstancesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersListManagedInstancesCall) Fields ¶
func (c *RegionInstanceGroupManagersListManagedInstancesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersListManagedInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersListManagedInstancesCall) Filter ¶
func (c *RegionInstanceGroupManagersListManagedInstancesCall) Filter(filter string) *RegionInstanceGroupManagersListManagedInstancesCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionInstanceGroupManagersListManagedInstancesCall) Header ¶
func (c *RegionInstanceGroupManagersListManagedInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersListManagedInstancesCall) MaxResults ¶
func (c *RegionInstanceGroupManagersListManagedInstancesCall) MaxResults(maxResults int64) *RegionInstanceGroupManagersListManagedInstancesCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionInstanceGroupManagersListManagedInstancesCall) OrderBy ¶
func (c *RegionInstanceGroupManagersListManagedInstancesCall) OrderBy(orderBy string) *RegionInstanceGroupManagersListManagedInstancesCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionInstanceGroupManagersListManagedInstancesCall) PageToken ¶
func (c *RegionInstanceGroupManagersListManagedInstancesCall) PageToken(pageToken string) *RegionInstanceGroupManagersListManagedInstancesCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionInstanceGroupManagersListManagedInstancesCall) Pages ¶ added in v0.22.0
func (c *RegionInstanceGroupManagersListManagedInstancesCall) Pages(ctx context.Context, f func(*RegionInstanceGroupManagersListInstancesResponse) 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 (*RegionInstanceGroupManagersListManagedInstancesCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionInstanceGroupManagersListManagedInstancesCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceGroupManagersListManagedInstancesCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionInstanceGroupManagersListPerInstanceConfigsCall ¶ added in v0.31.0
type RegionInstanceGroupManagersListPerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersListPerInstanceConfigsCall) Context ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Context(ctx context.Context) *RegionInstanceGroupManagersListPerInstanceConfigsCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersListPerInstanceConfigsCall) Do ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupManagersListInstanceConfigsResp, error)
Do executes the "compute.regionInstanceGroupManagers.listPerInstanceConfigs" call. Any non-2xx status code is an error. Response headers are in either *RegionInstanceGroupManagersListInstanceConfigsResp.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersListPerInstanceConfigsCall) Fields ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersListPerInstanceConfigsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersListPerInstanceConfigsCall) Filter ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Filter(filter string) *RegionInstanceGroupManagersListPerInstanceConfigsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionInstanceGroupManagersListPerInstanceConfigsCall) Header ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersListPerInstanceConfigsCall) MaxResults ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) MaxResults(maxResults int64) *RegionInstanceGroupManagersListPerInstanceConfigsCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionInstanceGroupManagersListPerInstanceConfigsCall) OrderBy ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) OrderBy(orderBy string) *RegionInstanceGroupManagersListPerInstanceConfigsCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionInstanceGroupManagersListPerInstanceConfigsCall) PageToken ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) PageToken(pageToken string) *RegionInstanceGroupManagersListPerInstanceConfigsCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionInstanceGroupManagersListPerInstanceConfigsCall) Pages ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Pages(ctx context.Context, f func(*RegionInstanceGroupManagersListInstanceConfigsResp) 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 (*RegionInstanceGroupManagersListPerInstanceConfigsCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceGroupManagersListPerInstanceConfigsCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionInstanceGroupManagersPatchCall ¶
type RegionInstanceGroupManagersPatchCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersPatchCall) Context ¶
func (c *RegionInstanceGroupManagersPatchCall) Context(ctx context.Context) *RegionInstanceGroupManagersPatchCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersPatchCall) Do ¶
func (c *RegionInstanceGroupManagersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersPatchCall) Fields ¶
func (c *RegionInstanceGroupManagersPatchCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersPatchCall) Header ¶
func (c *RegionInstanceGroupManagersPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersPatchCall) RequestId ¶
func (c *RegionInstanceGroupManagersPatchCall) RequestId(requestId string) *RegionInstanceGroupManagersPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupManagersPatchPerInstanceConfigsCall ¶ added in v0.31.0
type RegionInstanceGroupManagersPatchPerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Context ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Context(ctx context.Context) *RegionInstanceGroupManagersPatchPerInstanceConfigsCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Do ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.patchPerInstanceConfigs" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Fields ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersPatchPerInstanceConfigsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Header ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersPatchPerInstanceConfigsCall) RequestId ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) RequestId(requestId string) *RegionInstanceGroupManagersPatchPerInstanceConfigsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupManagersRecreateInstancesCall ¶
type RegionInstanceGroupManagersRecreateInstancesCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersRecreateInstancesCall) Context ¶
func (c *RegionInstanceGroupManagersRecreateInstancesCall) Context(ctx context.Context) *RegionInstanceGroupManagersRecreateInstancesCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersRecreateInstancesCall) Do ¶
func (c *RegionInstanceGroupManagersRecreateInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.recreateInstances" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersRecreateInstancesCall) Fields ¶
func (c *RegionInstanceGroupManagersRecreateInstancesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersRecreateInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersRecreateInstancesCall) Header ¶
func (c *RegionInstanceGroupManagersRecreateInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersRecreateInstancesCall) RequestId ¶
func (c *RegionInstanceGroupManagersRecreateInstancesCall) RequestId(requestId string) *RegionInstanceGroupManagersRecreateInstancesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupManagersRecreateRequest ¶
type RegionInstanceGroupManagersRecreateRequest struct { // Instances: The URLs of one or more instances to recreate. This can be a full // URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Instances []string `json:"instances,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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:"-"` }
func (RegionInstanceGroupManagersRecreateRequest) MarshalJSON ¶
func (s RegionInstanceGroupManagersRecreateRequest) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersResizeCall ¶
type RegionInstanceGroupManagersResizeCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersResizeCall) Context ¶
func (c *RegionInstanceGroupManagersResizeCall) Context(ctx context.Context) *RegionInstanceGroupManagersResizeCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersResizeCall) Do ¶
func (c *RegionInstanceGroupManagersResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.resize" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersResizeCall) Fields ¶
func (c *RegionInstanceGroupManagersResizeCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersResizeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersResizeCall) Header ¶
func (c *RegionInstanceGroupManagersResizeCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersResizeCall) RequestId ¶
func (c *RegionInstanceGroupManagersResizeCall) RequestId(requestId string) *RegionInstanceGroupManagersResizeCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupManagersService ¶
type RegionInstanceGroupManagersService struct {
// contains filtered or unexported fields
}
func NewRegionInstanceGroupManagersService ¶
func NewRegionInstanceGroupManagersService(s *Service) *RegionInstanceGroupManagersService
func (*RegionInstanceGroupManagersService) AbandonInstances ¶
func (r *RegionInstanceGroupManagersService) AbandonInstances(project string, region string, instanceGroupManager string, regioninstancegroupmanagersabandoninstancesrequest *RegionInstanceGroupManagersAbandonInstancesRequest) *RegionInstanceGroupManagersAbandonInstancesCall
AbandonInstances: Flags the specified instances to be immediately removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
- instanceGroupManager: Name of the managed instance group. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionInstanceGroupManagersService) ApplyUpdatesToInstances ¶ added in v0.18.0
func (r *RegionInstanceGroupManagersService) ApplyUpdatesToInstances(project string, region string, instanceGroupManager string, regioninstancegroupmanagersapplyupdatesrequest *RegionInstanceGroupManagersApplyUpdatesRequest) *RegionInstanceGroupManagersApplyUpdatesToInstancesCall
ApplyUpdatesToInstances: Apply updates to selected instances the managed instance group.
- instanceGroupManager: The name of the managed instance group, should conform to RFC1035.
- project: Project ID for this request.
- region: Name of the region scoping this request, should conform to RFC1035.
func (*RegionInstanceGroupManagersService) CreateInstances ¶ added in v0.16.0
func (r *RegionInstanceGroupManagersService) CreateInstances(project string, region string, instanceGroupManager string, regioninstancegroupmanagerscreateinstancesrequest *RegionInstanceGroupManagersCreateInstancesRequest) *RegionInstanceGroupManagersCreateInstancesCall
CreateInstances: Creates instances with per-instance configurations in this regional managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method.
- instanceGroupManager: The name of the managed instance group. It should conform to RFC1035.
- project: Project ID for this request.
- region: The name of the region where the managed instance group is located. It should conform to RFC1035.
func (*RegionInstanceGroupManagersService) Delete ¶
func (r *RegionInstanceGroupManagersService) Delete(project string, region string, instanceGroupManager string) *RegionInstanceGroupManagersDeleteCall
Delete: Deletes the specified managed instance group and all of the instances in that group.
- instanceGroupManager: Name of the managed instance group to delete. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionInstanceGroupManagersService) DeleteInstances ¶
func (r *RegionInstanceGroupManagersService) DeleteInstances(project string, region string, instanceGroupManager string, regioninstancegroupmanagersdeleteinstancesrequest *RegionInstanceGroupManagersDeleteInstancesRequest) *RegionInstanceGroupManagersDeleteInstancesCall
DeleteInstances: Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. The deleteInstances operation is marked DONE if the deleteInstances request is successful. The underlying actions take additional time. You must separately verify the status of the deleting action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
- instanceGroupManager: Name of the managed instance group. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionInstanceGroupManagersService) DeletePerInstanceConfigs ¶ added in v0.31.0
func (r *RegionInstanceGroupManagersService) DeletePerInstanceConfigs(project string, region string, instanceGroupManager string, regioninstancegroupmanagerdeleteinstanceconfigreq *RegionInstanceGroupManagerDeleteInstanceConfigReq) *RegionInstanceGroupManagersDeletePerInstanceConfigsCall
DeletePerInstanceConfigs: Deletes selected per-instance configurations for the managed instance group.
- instanceGroupManager: The name of the managed instance group. It should conform to RFC1035.
- project: Project ID for this request.
- region: Name of the region scoping this request, should conform to RFC1035.
func (*RegionInstanceGroupManagersService) Get ¶
func (r *RegionInstanceGroupManagersService) Get(project string, region string, instanceGroupManager string) *RegionInstanceGroupManagersGetCall
Get: Returns all of the details about the specified managed instance group.
- instanceGroupManager: Name of the managed instance group to return. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionInstanceGroupManagersService) Insert ¶
func (r *RegionInstanceGroupManagersService) Insert(project string, region string, instancegroupmanager *InstanceGroupManager) *RegionInstanceGroupManagersInsertCall
Insert: Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A regional managed instance group can contain up to 2000 instances.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionInstanceGroupManagersService) List ¶
func (r *RegionInstanceGroupManagersService) List(project string, region string) *RegionInstanceGroupManagersListCall
List: Retrieves the list of managed instance groups that are contained within the specified region.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionInstanceGroupManagersService) ListErrors ¶ added in v0.21.0
func (r *RegionInstanceGroupManagersService) ListErrors(project string, region string, instanceGroupManager string) *RegionInstanceGroupManagersListErrorsCall
ListErrors: Lists all errors thrown by actions on instances for a given regional managed instance group. The filter and orderBy query parameters are not supported.
- instanceGroupManager: The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:a-z (?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}.
- project: Project ID for this request.
- region: Name of the region scoping this request. This should conform to RFC1035.
func (*RegionInstanceGroupManagersService) ListManagedInstances ¶
func (r *RegionInstanceGroupManagersService) ListManagedInstances(project string, region string, instanceGroupManager string) *RegionInstanceGroupManagersListManagedInstancesCall
ListManagedInstances: Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.
- instanceGroupManager: The name of the managed instance group. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionInstanceGroupManagersService) ListPerInstanceConfigs ¶ added in v0.31.0
func (r *RegionInstanceGroupManagersService) ListPerInstanceConfigs(project string, region string, instanceGroupManager string) *RegionInstanceGroupManagersListPerInstanceConfigsCall
ListPerInstanceConfigs: Lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported.
- instanceGroupManager: The name of the managed instance group. It should conform to RFC1035.
- project: Project ID for this request.
- region: Name of the region scoping this request, should conform to RFC1035.
func (*RegionInstanceGroupManagersService) Patch ¶
func (r *RegionInstanceGroupManagersService) Patch(project string, region string, instanceGroupManager string, instancegroupmanager *InstanceGroupManager) *RegionInstanceGroupManagersPatchCall
Patch: Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG.
- instanceGroupManager: The name of the instance group manager. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionInstanceGroupManagersService) PatchPerInstanceConfigs ¶ added in v0.31.0
func (r *RegionInstanceGroupManagersService) PatchPerInstanceConfigs(project string, region string, instanceGroupManager string, regioninstancegroupmanagerpatchinstanceconfigreq *RegionInstanceGroupManagerPatchInstanceConfigReq) *RegionInstanceGroupManagersPatchPerInstanceConfigsCall
PatchPerInstanceConfigs: Inserts or patches per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.
- instanceGroupManager: The name of the managed instance group. It should conform to RFC1035.
- project: Project ID for this request.
- region: Name of the region scoping this request, should conform to RFC1035.
func (*RegionInstanceGroupManagersService) RecreateInstances ¶
func (r *RegionInstanceGroupManagersService) RecreateInstances(project string, region string, instanceGroupManager string, regioninstancegroupmanagersrecreaterequest *RegionInstanceGroupManagersRecreateRequest) *RegionInstanceGroupManagersRecreateInstancesCall
RecreateInstances: Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
- instanceGroupManager: Name of the managed instance group. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionInstanceGroupManagersService) Resize ¶
func (r *RegionInstanceGroupManagersService) Resize(project string, region string, instanceGroupManager string, size int64) *RegionInstanceGroupManagersResizeCall
Resize: Changes the intended size of the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.
- instanceGroupManager: Name of the managed instance group.
- project: Project ID for this request.
- region: Name of the region scoping this request.
- size: Number of instances that should exist in this instance group manager.
func (*RegionInstanceGroupManagersService) SetInstanceTemplate ¶
func (r *RegionInstanceGroupManagersService) SetInstanceTemplate(project string, region string, instanceGroupManager string, regioninstancegroupmanagerssettemplaterequest *RegionInstanceGroupManagersSetTemplateRequest) *RegionInstanceGroupManagersSetInstanceTemplateCall
SetInstanceTemplate: Sets the instance template to use when creating new instances or recreating instances in this group. Existing instances are not affected.
- instanceGroupManager: The name of the managed instance group. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionInstanceGroupManagersService) SetTargetPools ¶
func (r *RegionInstanceGroupManagersService) SetTargetPools(project string, region string, instanceGroupManager string, regioninstancegroupmanagerssettargetpoolsrequest *RegionInstanceGroupManagersSetTargetPoolsRequest) *RegionInstanceGroupManagersSetTargetPoolsCall
SetTargetPools: Modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected.
- instanceGroupManager: Name of the managed instance group. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionInstanceGroupManagersService) UpdatePerInstanceConfigs ¶ added in v0.31.0
func (r *RegionInstanceGroupManagersService) UpdatePerInstanceConfigs(project string, region string, instanceGroupManager string, regioninstancegroupmanagerupdateinstanceconfigreq *RegionInstanceGroupManagerUpdateInstanceConfigReq) *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall
UpdatePerInstanceConfigs: Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.
- instanceGroupManager: The name of the managed instance group. It should conform to RFC1035.
- project: Project ID for this request.
- region: Name of the region scoping this request, should conform to RFC1035.
type RegionInstanceGroupManagersSetInstanceTemplateCall ¶
type RegionInstanceGroupManagersSetInstanceTemplateCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersSetInstanceTemplateCall) Context ¶
func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) Context(ctx context.Context) *RegionInstanceGroupManagersSetInstanceTemplateCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersSetInstanceTemplateCall) Do ¶
func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.setInstanceTemplate" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersSetInstanceTemplateCall) Fields ¶
func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersSetInstanceTemplateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersSetInstanceTemplateCall) Header ¶
func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersSetInstanceTemplateCall) RequestId ¶
func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) RequestId(requestId string) *RegionInstanceGroupManagersSetInstanceTemplateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupManagersSetTargetPoolsCall ¶
type RegionInstanceGroupManagersSetTargetPoolsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersSetTargetPoolsCall) Context ¶
func (c *RegionInstanceGroupManagersSetTargetPoolsCall) Context(ctx context.Context) *RegionInstanceGroupManagersSetTargetPoolsCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersSetTargetPoolsCall) Do ¶
func (c *RegionInstanceGroupManagersSetTargetPoolsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.setTargetPools" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersSetTargetPoolsCall) Fields ¶
func (c *RegionInstanceGroupManagersSetTargetPoolsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersSetTargetPoolsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersSetTargetPoolsCall) Header ¶
func (c *RegionInstanceGroupManagersSetTargetPoolsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersSetTargetPoolsCall) RequestId ¶
func (c *RegionInstanceGroupManagersSetTargetPoolsCall) RequestId(requestId string) *RegionInstanceGroupManagersSetTargetPoolsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupManagersSetTargetPoolsRequest ¶
type RegionInstanceGroupManagersSetTargetPoolsRequest struct { // Fingerprint: Fingerprint of the target pools information, which is a hash of // the contents. This field is used for optimistic locking when you update the // target pool entries. This field is optional. Fingerprint string `json:"fingerprint,omitempty"` // TargetPools: The URL of all TargetPool resources to which instances in the // instanceGroup field are added. The target pools automatically apply to all // of the instances in the managed instance group. TargetPools []string `json:"targetPools,omitempty"` // ForceSendFields is a list of field names (e.g. "Fingerprint") 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. "Fingerprint") 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:"-"` }
func (RegionInstanceGroupManagersSetTargetPoolsRequest) MarshalJSON ¶
func (s RegionInstanceGroupManagersSetTargetPoolsRequest) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersSetTemplateRequest ¶
type RegionInstanceGroupManagersSetTemplateRequest struct { // InstanceTemplate: URL of the InstanceTemplate resource from which all new // instances will be created. InstanceTemplate string `json:"instanceTemplate,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceTemplate") 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. "InstanceTemplate") 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:"-"` }
func (RegionInstanceGroupManagersSetTemplateRequest) MarshalJSON ¶
func (s RegionInstanceGroupManagersSetTemplateRequest) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersUpdatePerInstanceConfigsCall ¶ added in v0.31.0
type RegionInstanceGroupManagersUpdatePerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Context ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Context(ctx context.Context) *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Do ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.updatePerInstanceConfigs" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Fields ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Header ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) RequestId ¶ added in v0.31.0
func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) RequestId(requestId string) *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupsGetCall ¶
type RegionInstanceGroupsGetCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupsGetCall) Context ¶
func (c *RegionInstanceGroupsGetCall) Context(ctx context.Context) *RegionInstanceGroupsGetCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupsGetCall) Do ¶
func (c *RegionInstanceGroupsGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroup, error)
Do executes the "compute.regionInstanceGroups.get" call. Any non-2xx status code is an error. Response headers are in either *InstanceGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupsGetCall) Fields ¶
func (c *RegionInstanceGroupsGetCall) Fields(s ...googleapi.Field) *RegionInstanceGroupsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupsGetCall) Header ¶
func (c *RegionInstanceGroupsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupsGetCall) IfNoneMatch ¶
func (c *RegionInstanceGroupsGetCall) IfNoneMatch(entityTag string) *RegionInstanceGroupsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionInstanceGroupsListCall ¶
type RegionInstanceGroupsListCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupsListCall) Context ¶
func (c *RegionInstanceGroupsListCall) Context(ctx context.Context) *RegionInstanceGroupsListCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupsListCall) Do ¶
func (c *RegionInstanceGroupsListCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupList, error)
Do executes the "compute.regionInstanceGroups.list" call. Any non-2xx status code is an error. Response headers are in either *RegionInstanceGroupList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupsListCall) Fields ¶
func (c *RegionInstanceGroupsListCall) Fields(s ...googleapi.Field) *RegionInstanceGroupsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupsListCall) Filter ¶
func (c *RegionInstanceGroupsListCall) Filter(filter string) *RegionInstanceGroupsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionInstanceGroupsListCall) Header ¶
func (c *RegionInstanceGroupsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupsListCall) IfNoneMatch ¶
func (c *RegionInstanceGroupsListCall) IfNoneMatch(entityTag string) *RegionInstanceGroupsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionInstanceGroupsListCall) MaxResults ¶
func (c *RegionInstanceGroupsListCall) MaxResults(maxResults int64) *RegionInstanceGroupsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionInstanceGroupsListCall) OrderBy ¶
func (c *RegionInstanceGroupsListCall) OrderBy(orderBy string) *RegionInstanceGroupsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionInstanceGroupsListCall) PageToken ¶
func (c *RegionInstanceGroupsListCall) PageToken(pageToken string) *RegionInstanceGroupsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionInstanceGroupsListCall) Pages ¶
func (c *RegionInstanceGroupsListCall) Pages(ctx context.Context, f func(*RegionInstanceGroupList) 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 (*RegionInstanceGroupsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionInstanceGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceGroupsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionInstanceGroupsListInstances ¶
type RegionInstanceGroupsListInstances struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of InstanceWithNamedPorts resources. Items []*InstanceWithNamedPorts `json:"items,omitempty"` // Kind: The resource type. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *RegionInstanceGroupsListInstancesWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (RegionInstanceGroupsListInstances) MarshalJSON ¶
func (s RegionInstanceGroupsListInstances) MarshalJSON() ([]byte, error)
type RegionInstanceGroupsListInstancesCall ¶
type RegionInstanceGroupsListInstancesCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupsListInstancesCall) Context ¶
func (c *RegionInstanceGroupsListInstancesCall) Context(ctx context.Context) *RegionInstanceGroupsListInstancesCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupsListInstancesCall) Do ¶
func (c *RegionInstanceGroupsListInstancesCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupsListInstances, error)
Do executes the "compute.regionInstanceGroups.listInstances" call. Any non-2xx status code is an error. Response headers are in either *RegionInstanceGroupsListInstances.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupsListInstancesCall) Fields ¶
func (c *RegionInstanceGroupsListInstancesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupsListInstancesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupsListInstancesCall) Filter ¶
func (c *RegionInstanceGroupsListInstancesCall) Filter(filter string) *RegionInstanceGroupsListInstancesCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionInstanceGroupsListInstancesCall) Header ¶
func (c *RegionInstanceGroupsListInstancesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupsListInstancesCall) MaxResults ¶
func (c *RegionInstanceGroupsListInstancesCall) MaxResults(maxResults int64) *RegionInstanceGroupsListInstancesCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionInstanceGroupsListInstancesCall) OrderBy ¶
func (c *RegionInstanceGroupsListInstancesCall) OrderBy(orderBy string) *RegionInstanceGroupsListInstancesCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionInstanceGroupsListInstancesCall) PageToken ¶
func (c *RegionInstanceGroupsListInstancesCall) PageToken(pageToken string) *RegionInstanceGroupsListInstancesCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionInstanceGroupsListInstancesCall) Pages ¶
func (c *RegionInstanceGroupsListInstancesCall) Pages(ctx context.Context, f func(*RegionInstanceGroupsListInstances) 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 (*RegionInstanceGroupsListInstancesCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionInstanceGroupsListInstancesCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceGroupsListInstancesCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionInstanceGroupsListInstancesRequest ¶
type RegionInstanceGroupsListInstancesRequest struct { // InstanceState: Instances in which state should be returned. Valid options // are: 'ALL', 'RUNNING'. By default, it lists all instances. // // Possible values: // "ALL" - Matches any status of the instances, running, non-running and // others. // "RUNNING" - Instance is in RUNNING state if it is running. InstanceState string `json:"instanceState,omitempty"` // PortName: Name of port user is interested in. It is optional. If it is set, // only information about this ports will be returned. If it is not set, all // the named ports will be returned. Always lists all instances. PortName string `json:"portName,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceState") 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. "InstanceState") 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:"-"` }
func (RegionInstanceGroupsListInstancesRequest) MarshalJSON ¶
func (s RegionInstanceGroupsListInstancesRequest) MarshalJSON() ([]byte, error)
type RegionInstanceGroupsListInstancesWarning ¶
type RegionInstanceGroupsListInstancesWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*RegionInstanceGroupsListInstancesWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
RegionInstanceGroupsListInstancesWarning: [Output Only] Informational warning message.
func (RegionInstanceGroupsListInstancesWarning) MarshalJSON ¶
func (s RegionInstanceGroupsListInstancesWarning) MarshalJSON() ([]byte, error)
type RegionInstanceGroupsListInstancesWarningData ¶
type RegionInstanceGroupsListInstancesWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (RegionInstanceGroupsListInstancesWarningData) MarshalJSON ¶
func (s RegionInstanceGroupsListInstancesWarningData) MarshalJSON() ([]byte, error)
type RegionInstanceGroupsService ¶
type RegionInstanceGroupsService struct {
// contains filtered or unexported fields
}
func NewRegionInstanceGroupsService ¶
func NewRegionInstanceGroupsService(s *Service) *RegionInstanceGroupsService
func (*RegionInstanceGroupsService) Get ¶
func (r *RegionInstanceGroupsService) Get(project string, region string, instanceGroup string) *RegionInstanceGroupsGetCall
Get: Returns the specified instance group resource.
- instanceGroup: Name of the instance group resource to return. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionInstanceGroupsService) List ¶
func (r *RegionInstanceGroupsService) List(project string, region string) *RegionInstanceGroupsListCall
List: Retrieves the list of instance group resources contained within the specified region.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionInstanceGroupsService) ListInstances ¶
func (r *RegionInstanceGroupsService) ListInstances(project string, region string, instanceGroup string, regioninstancegroupslistinstancesrequest *RegionInstanceGroupsListInstancesRequest) *RegionInstanceGroupsListInstancesCall
ListInstances: Lists the instances in the specified instance group and displays information about the named ports. Depending on the specified options, this method can list all instances or only the instances that are running. The orderBy query parameter is not supported.
- instanceGroup: Name of the regional instance group for which we want to list the instances.
- project: Project ID for this request.
- region: Name of the region scoping this request.
func (*RegionInstanceGroupsService) SetNamedPorts ¶
func (r *RegionInstanceGroupsService) SetNamedPorts(project string, region string, instanceGroup string, regioninstancegroupssetnamedportsrequest *RegionInstanceGroupsSetNamedPortsRequest) *RegionInstanceGroupsSetNamedPortsCall
SetNamedPorts: Sets the named ports for the specified regional instance group.
- instanceGroup: The name of the regional instance group where the named ports are updated.
- project: Project ID for this request.
- region: Name of the region scoping this request.
type RegionInstanceGroupsSetNamedPortsCall ¶
type RegionInstanceGroupsSetNamedPortsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupsSetNamedPortsCall) Context ¶
func (c *RegionInstanceGroupsSetNamedPortsCall) Context(ctx context.Context) *RegionInstanceGroupsSetNamedPortsCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceGroupsSetNamedPortsCall) Do ¶
func (c *RegionInstanceGroupsSetNamedPortsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroups.setNamedPorts" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupsSetNamedPortsCall) Fields ¶
func (c *RegionInstanceGroupsSetNamedPortsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupsSetNamedPortsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceGroupsSetNamedPortsCall) Header ¶
func (c *RegionInstanceGroupsSetNamedPortsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceGroupsSetNamedPortsCall) RequestId ¶
func (c *RegionInstanceGroupsSetNamedPortsCall) RequestId(requestId string) *RegionInstanceGroupsSetNamedPortsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupsSetNamedPortsRequest ¶
type RegionInstanceGroupsSetNamedPortsRequest struct { // Fingerprint: The fingerprint of the named ports information for this // instance group. Use this optional property to prevent conflicts when // multiple users change the named ports settings concurrently. Obtain the // fingerprint with the instanceGroups.get method. Then, include the // fingerprint in your request to ensure that you do not overwrite changes that // were applied from another concurrent request. Fingerprint string `json:"fingerprint,omitempty"` // NamedPorts: The list of named ports to set for this instance group. NamedPorts []*NamedPort `json:"namedPorts,omitempty"` // ForceSendFields is a list of field names (e.g. "Fingerprint") 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. "Fingerprint") 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:"-"` }
func (RegionInstanceGroupsSetNamedPortsRequest) MarshalJSON ¶
func (s RegionInstanceGroupsSetNamedPortsRequest) MarshalJSON() ([]byte, error)
type RegionInstanceTemplatesDeleteCall ¶ added in v0.111.0
type RegionInstanceTemplatesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceTemplatesDeleteCall) Context ¶ added in v0.111.0
func (c *RegionInstanceTemplatesDeleteCall) Context(ctx context.Context) *RegionInstanceTemplatesDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceTemplatesDeleteCall) Do ¶ added in v0.111.0
func (c *RegionInstanceTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceTemplates.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceTemplatesDeleteCall) Fields ¶ added in v0.111.0
func (c *RegionInstanceTemplatesDeleteCall) Fields(s ...googleapi.Field) *RegionInstanceTemplatesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceTemplatesDeleteCall) Header ¶ added in v0.111.0
func (c *RegionInstanceTemplatesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceTemplatesDeleteCall) RequestId ¶ added in v0.111.0
func (c *RegionInstanceTemplatesDeleteCall) RequestId(requestId string) *RegionInstanceTemplatesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceTemplatesGetCall ¶ added in v0.111.0
type RegionInstanceTemplatesGetCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceTemplatesGetCall) Context ¶ added in v0.111.0
func (c *RegionInstanceTemplatesGetCall) Context(ctx context.Context) *RegionInstanceTemplatesGetCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceTemplatesGetCall) Do ¶ added in v0.111.0
func (c *RegionInstanceTemplatesGetCall) Do(opts ...googleapi.CallOption) (*InstanceTemplate, error)
Do executes the "compute.regionInstanceTemplates.get" call. Any non-2xx status code is an error. Response headers are in either *InstanceTemplate.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceTemplatesGetCall) Fields ¶ added in v0.111.0
func (c *RegionInstanceTemplatesGetCall) Fields(s ...googleapi.Field) *RegionInstanceTemplatesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceTemplatesGetCall) Header ¶ added in v0.111.0
func (c *RegionInstanceTemplatesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceTemplatesGetCall) IfNoneMatch ¶ added in v0.111.0
func (c *RegionInstanceTemplatesGetCall) IfNoneMatch(entityTag string) *RegionInstanceTemplatesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionInstanceTemplatesInsertCall ¶ added in v0.111.0
type RegionInstanceTemplatesInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceTemplatesInsertCall) Context ¶ added in v0.111.0
func (c *RegionInstanceTemplatesInsertCall) Context(ctx context.Context) *RegionInstanceTemplatesInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceTemplatesInsertCall) Do ¶ added in v0.111.0
func (c *RegionInstanceTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceTemplates.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceTemplatesInsertCall) Fields ¶ added in v0.111.0
func (c *RegionInstanceTemplatesInsertCall) Fields(s ...googleapi.Field) *RegionInstanceTemplatesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceTemplatesInsertCall) Header ¶ added in v0.111.0
func (c *RegionInstanceTemplatesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceTemplatesInsertCall) RequestId ¶ added in v0.111.0
func (c *RegionInstanceTemplatesInsertCall) RequestId(requestId string) *RegionInstanceTemplatesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstanceTemplatesListCall ¶ added in v0.111.0
type RegionInstanceTemplatesListCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceTemplatesListCall) Context ¶ added in v0.111.0
func (c *RegionInstanceTemplatesListCall) Context(ctx context.Context) *RegionInstanceTemplatesListCall
Context sets the context to be used in this call's Do method.
func (*RegionInstanceTemplatesListCall) Do ¶ added in v0.111.0
func (c *RegionInstanceTemplatesListCall) Do(opts ...googleapi.CallOption) (*InstanceTemplateList, error)
Do executes the "compute.regionInstanceTemplates.list" call. Any non-2xx status code is an error. Response headers are in either *InstanceTemplateList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceTemplatesListCall) Fields ¶ added in v0.111.0
func (c *RegionInstanceTemplatesListCall) Fields(s ...googleapi.Field) *RegionInstanceTemplatesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstanceTemplatesListCall) Filter ¶ added in v0.111.0
func (c *RegionInstanceTemplatesListCall) Filter(filter string) *RegionInstanceTemplatesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionInstanceTemplatesListCall) Header ¶ added in v0.111.0
func (c *RegionInstanceTemplatesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstanceTemplatesListCall) IfNoneMatch ¶ added in v0.111.0
func (c *RegionInstanceTemplatesListCall) IfNoneMatch(entityTag string) *RegionInstanceTemplatesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionInstanceTemplatesListCall) MaxResults ¶ added in v0.111.0
func (c *RegionInstanceTemplatesListCall) MaxResults(maxResults int64) *RegionInstanceTemplatesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionInstanceTemplatesListCall) OrderBy ¶ added in v0.111.0
func (c *RegionInstanceTemplatesListCall) OrderBy(orderBy string) *RegionInstanceTemplatesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionInstanceTemplatesListCall) PageToken ¶ added in v0.111.0
func (c *RegionInstanceTemplatesListCall) PageToken(pageToken string) *RegionInstanceTemplatesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionInstanceTemplatesListCall) Pages ¶ added in v0.111.0
func (c *RegionInstanceTemplatesListCall) Pages(ctx context.Context, f func(*InstanceTemplateList) 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 (*RegionInstanceTemplatesListCall) ReturnPartialSuccess ¶ added in v0.111.0
func (c *RegionInstanceTemplatesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceTemplatesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionInstanceTemplatesService ¶ added in v0.111.0
type RegionInstanceTemplatesService struct {
// contains filtered or unexported fields
}
func NewRegionInstanceTemplatesService ¶ added in v0.111.0
func NewRegionInstanceTemplatesService(s *Service) *RegionInstanceTemplatesService
func (*RegionInstanceTemplatesService) Delete ¶ added in v0.111.0
func (r *RegionInstanceTemplatesService) Delete(project string, region string, instanceTemplate string) *RegionInstanceTemplatesDeleteCall
Delete: Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone.
- instanceTemplate: The name of the instance template to delete. - project: Project ID for this request. - region: The name of the region for this request.
func (*RegionInstanceTemplatesService) Get ¶ added in v0.111.0
func (r *RegionInstanceTemplatesService) Get(project string, region string, instanceTemplate string) *RegionInstanceTemplatesGetCall
Get: Returns the specified instance template.
- instanceTemplate: The name of the instance template. - project: Project ID for this request. - region: The name of the region for this request.
func (*RegionInstanceTemplatesService) Insert ¶ added in v0.111.0
func (r *RegionInstanceTemplatesService) Insert(project string, region string, instancetemplate *InstanceTemplate) *RegionInstanceTemplatesInsertCall
Insert: Creates an instance template in the specified project and region using the global instance template whose URL is included in the request.
- project: Project ID for this request. - region: The name of the region for this request.
func (*RegionInstanceTemplatesService) List ¶ added in v0.111.0
func (r *RegionInstanceTemplatesService) List(project string, region string) *RegionInstanceTemplatesListCall
List: Retrieves a list of instance templates that are contained within the specified project and region.
- project: Project ID for this request. - region: The name of the regions for this request.
type RegionInstancesBulkInsertCall ¶ added in v0.41.0
type RegionInstancesBulkInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionInstancesBulkInsertCall) Context ¶ added in v0.41.0
func (c *RegionInstancesBulkInsertCall) Context(ctx context.Context) *RegionInstancesBulkInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionInstancesBulkInsertCall) Do ¶ added in v0.41.0
func (c *RegionInstancesBulkInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstances.bulkInsert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstancesBulkInsertCall) Fields ¶ added in v0.41.0
func (c *RegionInstancesBulkInsertCall) Fields(s ...googleapi.Field) *RegionInstancesBulkInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstancesBulkInsertCall) Header ¶ added in v0.41.0
func (c *RegionInstancesBulkInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstancesBulkInsertCall) RequestId ¶ added in v0.41.0
func (c *RegionInstancesBulkInsertCall) RequestId(requestId string) *RegionInstancesBulkInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstancesService ¶ added in v0.41.0
type RegionInstancesService struct {
// contains filtered or unexported fields
}
func NewRegionInstancesService ¶ added in v0.41.0
func NewRegionInstancesService(s *Service) *RegionInstancesService
func (*RegionInstancesService) BulkInsert ¶ added in v0.41.0
func (r *RegionInstancesService) BulkInsert(project string, region string, bulkinsertinstanceresource *BulkInsertInstanceResource) *RegionInstancesBulkInsertCall
BulkInsert: Creates multiple instances in a given region. Count specifies the number of instances to create.
- project: Project ID for this request. - region: The name of the region for this request.
type RegionInstantSnapshotsDeleteCall ¶ added in v0.167.0
type RegionInstantSnapshotsDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionInstantSnapshotsDeleteCall) Context ¶ added in v0.167.0
func (c *RegionInstantSnapshotsDeleteCall) Context(ctx context.Context) *RegionInstantSnapshotsDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionInstantSnapshotsDeleteCall) Do ¶ added in v0.167.0
func (c *RegionInstantSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstantSnapshots.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstantSnapshotsDeleteCall) Fields ¶ added in v0.167.0
func (c *RegionInstantSnapshotsDeleteCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstantSnapshotsDeleteCall) Header ¶ added in v0.167.0
func (c *RegionInstantSnapshotsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstantSnapshotsDeleteCall) RequestId ¶ added in v0.167.0
func (c *RegionInstantSnapshotsDeleteCall) RequestId(requestId string) *RegionInstantSnapshotsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstantSnapshotsGetCall ¶ added in v0.167.0
type RegionInstantSnapshotsGetCall struct {
// contains filtered or unexported fields
}
func (*RegionInstantSnapshotsGetCall) Context ¶ added in v0.167.0
func (c *RegionInstantSnapshotsGetCall) Context(ctx context.Context) *RegionInstantSnapshotsGetCall
Context sets the context to be used in this call's Do method.
func (*RegionInstantSnapshotsGetCall) Do ¶ added in v0.167.0
func (c *RegionInstantSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*InstantSnapshot, error)
Do executes the "compute.regionInstantSnapshots.get" call. Any non-2xx status code is an error. Response headers are in either *InstantSnapshot.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstantSnapshotsGetCall) Fields ¶ added in v0.167.0
func (c *RegionInstantSnapshotsGetCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstantSnapshotsGetCall) Header ¶ added in v0.167.0
func (c *RegionInstantSnapshotsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstantSnapshotsGetCall) IfNoneMatch ¶ added in v0.167.0
func (c *RegionInstantSnapshotsGetCall) IfNoneMatch(entityTag string) *RegionInstantSnapshotsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionInstantSnapshotsGetIamPolicyCall ¶ added in v0.167.0
type RegionInstantSnapshotsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*RegionInstantSnapshotsGetIamPolicyCall) Context ¶ added in v0.167.0
func (c *RegionInstantSnapshotsGetIamPolicyCall) Context(ctx context.Context) *RegionInstantSnapshotsGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*RegionInstantSnapshotsGetIamPolicyCall) Do ¶ added in v0.167.0
func (c *RegionInstantSnapshotsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.regionInstantSnapshots.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstantSnapshotsGetIamPolicyCall) Fields ¶ added in v0.167.0
func (c *RegionInstantSnapshotsGetIamPolicyCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstantSnapshotsGetIamPolicyCall) Header ¶ added in v0.167.0
func (c *RegionInstantSnapshotsGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstantSnapshotsGetIamPolicyCall) IfNoneMatch ¶ added in v0.167.0
func (c *RegionInstantSnapshotsGetIamPolicyCall) IfNoneMatch(entityTag string) *RegionInstantSnapshotsGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionInstantSnapshotsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.167.0
func (c *RegionInstantSnapshotsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *RegionInstantSnapshotsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type RegionInstantSnapshotsInsertCall ¶ added in v0.167.0
type RegionInstantSnapshotsInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionInstantSnapshotsInsertCall) Context ¶ added in v0.167.0
func (c *RegionInstantSnapshotsInsertCall) Context(ctx context.Context) *RegionInstantSnapshotsInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionInstantSnapshotsInsertCall) Do ¶ added in v0.167.0
func (c *RegionInstantSnapshotsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstantSnapshots.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstantSnapshotsInsertCall) Fields ¶ added in v0.167.0
func (c *RegionInstantSnapshotsInsertCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstantSnapshotsInsertCall) Header ¶ added in v0.167.0
func (c *RegionInstantSnapshotsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstantSnapshotsInsertCall) RequestId ¶ added in v0.167.0
func (c *RegionInstantSnapshotsInsertCall) RequestId(requestId string) *RegionInstantSnapshotsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstantSnapshotsListCall ¶ added in v0.167.0
type RegionInstantSnapshotsListCall struct {
// contains filtered or unexported fields
}
func (*RegionInstantSnapshotsListCall) Context ¶ added in v0.167.0
func (c *RegionInstantSnapshotsListCall) Context(ctx context.Context) *RegionInstantSnapshotsListCall
Context sets the context to be used in this call's Do method.
func (*RegionInstantSnapshotsListCall) Do ¶ added in v0.167.0
func (c *RegionInstantSnapshotsListCall) Do(opts ...googleapi.CallOption) (*InstantSnapshotList, error)
Do executes the "compute.regionInstantSnapshots.list" call. Any non-2xx status code is an error. Response headers are in either *InstantSnapshotList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstantSnapshotsListCall) Fields ¶ added in v0.167.0
func (c *RegionInstantSnapshotsListCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstantSnapshotsListCall) Filter ¶ added in v0.167.0
func (c *RegionInstantSnapshotsListCall) Filter(filter string) *RegionInstantSnapshotsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionInstantSnapshotsListCall) Header ¶ added in v0.167.0
func (c *RegionInstantSnapshotsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstantSnapshotsListCall) IfNoneMatch ¶ added in v0.167.0
func (c *RegionInstantSnapshotsListCall) IfNoneMatch(entityTag string) *RegionInstantSnapshotsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionInstantSnapshotsListCall) MaxResults ¶ added in v0.167.0
func (c *RegionInstantSnapshotsListCall) MaxResults(maxResults int64) *RegionInstantSnapshotsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionInstantSnapshotsListCall) OrderBy ¶ added in v0.167.0
func (c *RegionInstantSnapshotsListCall) OrderBy(orderBy string) *RegionInstantSnapshotsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionInstantSnapshotsListCall) PageToken ¶ added in v0.167.0
func (c *RegionInstantSnapshotsListCall) PageToken(pageToken string) *RegionInstantSnapshotsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionInstantSnapshotsListCall) Pages ¶ added in v0.167.0
func (c *RegionInstantSnapshotsListCall) Pages(ctx context.Context, f func(*InstantSnapshotList) 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 (*RegionInstantSnapshotsListCall) ReturnPartialSuccess ¶ added in v0.167.0
func (c *RegionInstantSnapshotsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstantSnapshotsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionInstantSnapshotsService ¶ added in v0.167.0
type RegionInstantSnapshotsService struct {
// contains filtered or unexported fields
}
func NewRegionInstantSnapshotsService ¶ added in v0.167.0
func NewRegionInstantSnapshotsService(s *Service) *RegionInstantSnapshotsService
func (*RegionInstantSnapshotsService) Delete ¶ added in v0.167.0
func (r *RegionInstantSnapshotsService) Delete(project string, region string, instantSnapshot string) *RegionInstantSnapshotsDeleteCall
Delete: Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots.
- instantSnapshot: Name of the InstantSnapshot resource to delete. - project: Project ID for this request. - region: The name of the region for this request.
func (*RegionInstantSnapshotsService) Get ¶ added in v0.167.0
func (r *RegionInstantSnapshotsService) Get(project string, region string, instantSnapshot string) *RegionInstantSnapshotsGetCall
Get: Returns the specified InstantSnapshot resource in the specified region.
- instantSnapshot: Name of the InstantSnapshot resource to return. - project: Project ID for this request. - region: The name of the region for this request.
func (*RegionInstantSnapshotsService) GetIamPolicy ¶ added in v0.167.0
func (r *RegionInstantSnapshotsService) GetIamPolicy(project string, region string, resource string) *RegionInstantSnapshotsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*RegionInstantSnapshotsService) Insert ¶ added in v0.167.0
func (r *RegionInstantSnapshotsService) Insert(project string, region string, instantsnapshot *InstantSnapshot) *RegionInstantSnapshotsInsertCall
Insert: Creates an instant snapshot in the specified region.
- project: Project ID for this request. - region: Name of the region for this request.
func (*RegionInstantSnapshotsService) List ¶ added in v0.167.0
func (r *RegionInstantSnapshotsService) List(project string, region string) *RegionInstantSnapshotsListCall
List: Retrieves the list of InstantSnapshot resources contained within the specified region.
- project: Project ID for this request. - region: The name of the region for this request.
func (*RegionInstantSnapshotsService) SetIamPolicy ¶ added in v0.167.0
func (r *RegionInstantSnapshotsService) SetIamPolicy(project string, region string, resource string, regionsetpolicyrequest *RegionSetPolicyRequest) *RegionInstantSnapshotsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*RegionInstantSnapshotsService) SetLabels ¶ added in v0.167.0
func (r *RegionInstantSnapshotsService) SetLabels(project string, region string, resource string, regionsetlabelsrequest *RegionSetLabelsRequest) *RegionInstantSnapshotsSetLabelsCall
SetLabels: Sets the labels on a instantSnapshot in the given region. To learn more about labels, read the Labeling Resources documentation.
- project: Project ID for this request. - region: The region for this request. - resource: Name or id of the resource for this request.
func (*RegionInstantSnapshotsService) TestIamPermissions ¶ added in v0.167.0
func (r *RegionInstantSnapshotsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionInstantSnapshotsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
type RegionInstantSnapshotsSetIamPolicyCall ¶ added in v0.167.0
type RegionInstantSnapshotsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*RegionInstantSnapshotsSetIamPolicyCall) Context ¶ added in v0.167.0
func (c *RegionInstantSnapshotsSetIamPolicyCall) Context(ctx context.Context) *RegionInstantSnapshotsSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*RegionInstantSnapshotsSetIamPolicyCall) Do ¶ added in v0.167.0
func (c *RegionInstantSnapshotsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.regionInstantSnapshots.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstantSnapshotsSetIamPolicyCall) Fields ¶ added in v0.167.0
func (c *RegionInstantSnapshotsSetIamPolicyCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstantSnapshotsSetIamPolicyCall) Header ¶ added in v0.167.0
func (c *RegionInstantSnapshotsSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type RegionInstantSnapshotsSetLabelsCall ¶ added in v0.167.0
type RegionInstantSnapshotsSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstantSnapshotsSetLabelsCall) Context ¶ added in v0.167.0
func (c *RegionInstantSnapshotsSetLabelsCall) Context(ctx context.Context) *RegionInstantSnapshotsSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*RegionInstantSnapshotsSetLabelsCall) Do ¶ added in v0.167.0
func (c *RegionInstantSnapshotsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstantSnapshots.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstantSnapshotsSetLabelsCall) Fields ¶ added in v0.167.0
func (c *RegionInstantSnapshotsSetLabelsCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstantSnapshotsSetLabelsCall) Header ¶ added in v0.167.0
func (c *RegionInstantSnapshotsSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionInstantSnapshotsSetLabelsCall) RequestId ¶ added in v0.167.0
func (c *RegionInstantSnapshotsSetLabelsCall) RequestId(requestId string) *RegionInstantSnapshotsSetLabelsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionInstantSnapshotsTestIamPermissionsCall ¶ added in v0.167.0
type RegionInstantSnapshotsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstantSnapshotsTestIamPermissionsCall) Context ¶ added in v0.167.0
func (c *RegionInstantSnapshotsTestIamPermissionsCall) Context(ctx context.Context) *RegionInstantSnapshotsTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*RegionInstantSnapshotsTestIamPermissionsCall) Do ¶ added in v0.167.0
func (c *RegionInstantSnapshotsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionInstantSnapshots.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstantSnapshotsTestIamPermissionsCall) Fields ¶ added in v0.167.0
func (c *RegionInstantSnapshotsTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionInstantSnapshotsTestIamPermissionsCall) Header ¶ added in v0.167.0
func (c *RegionInstantSnapshotsTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type RegionList ¶
type RegionList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Region resources. Items []*Region `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#regionList for lists of // regions. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *RegionListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
RegionList: Contains a list of region resources.
func (RegionList) MarshalJSON ¶
func (s RegionList) MarshalJSON() ([]byte, error)
type RegionListWarning ¶
type RegionListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*RegionListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
RegionListWarning: [Output Only] Informational warning message.
func (RegionListWarning) MarshalJSON ¶
func (s RegionListWarning) MarshalJSON() ([]byte, error)
type RegionListWarningData ¶
type RegionListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (RegionListWarningData) MarshalJSON ¶
func (s RegionListWarningData) MarshalJSON() ([]byte, error)
type RegionNetworkEndpointGroupsAttachEndpointsRequest ¶ added in v0.144.0
type RegionNetworkEndpointGroupsAttachEndpointsRequest struct { // NetworkEndpoints: The list of network endpoints to be attached. NetworkEndpoints []*NetworkEndpoint `json:"networkEndpoints,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkEndpoints") 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. "NetworkEndpoints") 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:"-"` }
func (RegionNetworkEndpointGroupsAttachEndpointsRequest) MarshalJSON ¶ added in v0.144.0
func (s RegionNetworkEndpointGroupsAttachEndpointsRequest) MarshalJSON() ([]byte, error)
type RegionNetworkEndpointGroupsAttachNetworkEndpointsCall ¶ added in v0.144.0
type RegionNetworkEndpointGroupsAttachNetworkEndpointsCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) Context ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) Context(ctx context.Context) *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) Do ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNetworkEndpointGroups.attachNetworkEndpoints" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) Fields ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) Fields(s ...googleapi.Field) *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) Header ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) RequestId ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) RequestId(requestId string) *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionNetworkEndpointGroupsDeleteCall ¶ added in v0.31.0
type RegionNetworkEndpointGroupsDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkEndpointGroupsDeleteCall) Context ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsDeleteCall) Context(ctx context.Context) *RegionNetworkEndpointGroupsDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkEndpointGroupsDeleteCall) Do ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNetworkEndpointGroups.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkEndpointGroupsDeleteCall) Fields ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsDeleteCall) Fields(s ...googleapi.Field) *RegionNetworkEndpointGroupsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkEndpointGroupsDeleteCall) Header ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkEndpointGroupsDeleteCall) RequestId ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsDeleteCall) RequestId(requestId string) *RegionNetworkEndpointGroupsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionNetworkEndpointGroupsDetachEndpointsRequest ¶ added in v0.144.0
type RegionNetworkEndpointGroupsDetachEndpointsRequest struct { // NetworkEndpoints: The list of network endpoints to be detached. NetworkEndpoints []*NetworkEndpoint `json:"networkEndpoints,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkEndpoints") 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. "NetworkEndpoints") 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:"-"` }
func (RegionNetworkEndpointGroupsDetachEndpointsRequest) MarshalJSON ¶ added in v0.144.0
func (s RegionNetworkEndpointGroupsDetachEndpointsRequest) MarshalJSON() ([]byte, error)
type RegionNetworkEndpointGroupsDetachNetworkEndpointsCall ¶ added in v0.144.0
type RegionNetworkEndpointGroupsDetachNetworkEndpointsCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) Context ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) Context(ctx context.Context) *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) Do ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNetworkEndpointGroups.detachNetworkEndpoints" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) Fields ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) Fields(s ...googleapi.Field) *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) Header ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) RequestId ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) RequestId(requestId string) *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
type RegionNetworkEndpointGroupsGetCall ¶ added in v0.31.0
type RegionNetworkEndpointGroupsGetCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkEndpointGroupsGetCall) Context ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsGetCall) Context(ctx context.Context) *RegionNetworkEndpointGroupsGetCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkEndpointGroupsGetCall) Do ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsGetCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroup, error)
Do executes the "compute.regionNetworkEndpointGroups.get" call. Any non-2xx status code is an error. Response headers are in either *NetworkEndpointGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkEndpointGroupsGetCall) Fields ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsGetCall) Fields(s ...googleapi.Field) *RegionNetworkEndpointGroupsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkEndpointGroupsGetCall) Header ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkEndpointGroupsGetCall) IfNoneMatch ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsGetCall) IfNoneMatch(entityTag string) *RegionNetworkEndpointGroupsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionNetworkEndpointGroupsInsertCall ¶ added in v0.31.0
type RegionNetworkEndpointGroupsInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkEndpointGroupsInsertCall) Context ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsInsertCall) Context(ctx context.Context) *RegionNetworkEndpointGroupsInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkEndpointGroupsInsertCall) Do ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNetworkEndpointGroups.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkEndpointGroupsInsertCall) Fields ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsInsertCall) Fields(s ...googleapi.Field) *RegionNetworkEndpointGroupsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkEndpointGroupsInsertCall) Header ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkEndpointGroupsInsertCall) RequestId ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsInsertCall) RequestId(requestId string) *RegionNetworkEndpointGroupsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionNetworkEndpointGroupsListCall ¶ added in v0.31.0
type RegionNetworkEndpointGroupsListCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkEndpointGroupsListCall) Context ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsListCall) Context(ctx context.Context) *RegionNetworkEndpointGroupsListCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkEndpointGroupsListCall) Do ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsListCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupList, error)
Do executes the "compute.regionNetworkEndpointGroups.list" call. Any non-2xx status code is an error. Response headers are in either *NetworkEndpointGroupList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkEndpointGroupsListCall) Fields ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsListCall) Fields(s ...googleapi.Field) *RegionNetworkEndpointGroupsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkEndpointGroupsListCall) Filter ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsListCall) Filter(filter string) *RegionNetworkEndpointGroupsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionNetworkEndpointGroupsListCall) Header ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkEndpointGroupsListCall) IfNoneMatch ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsListCall) IfNoneMatch(entityTag string) *RegionNetworkEndpointGroupsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionNetworkEndpointGroupsListCall) MaxResults ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsListCall) MaxResults(maxResults int64) *RegionNetworkEndpointGroupsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionNetworkEndpointGroupsListCall) OrderBy ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsListCall) OrderBy(orderBy string) *RegionNetworkEndpointGroupsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionNetworkEndpointGroupsListCall) PageToken ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsListCall) PageToken(pageToken string) *RegionNetworkEndpointGroupsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionNetworkEndpointGroupsListCall) Pages ¶ added in v0.31.0
func (c *RegionNetworkEndpointGroupsListCall) Pages(ctx context.Context, f func(*NetworkEndpointGroupList) 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 (*RegionNetworkEndpointGroupsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionNetworkEndpointGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionNetworkEndpointGroupsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionNetworkEndpointGroupsListNetworkEndpointsCall ¶ added in v0.144.0
type RegionNetworkEndpointGroupsListNetworkEndpointsCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkEndpointGroupsListNetworkEndpointsCall) Context ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) Context(ctx context.Context) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkEndpointGroupsListNetworkEndpointsCall) Do ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupsListNetworkEndpoints, error)
Do executes the "compute.regionNetworkEndpointGroups.listNetworkEndpoints" call. Any non-2xx status code is an error. Response headers are in either *NetworkEndpointGroupsListNetworkEndpoints.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkEndpointGroupsListNetworkEndpointsCall) Fields ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) Fields(s ...googleapi.Field) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkEndpointGroupsListNetworkEndpointsCall) Filter ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) Filter(filter string) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionNetworkEndpointGroupsListNetworkEndpointsCall) Header ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkEndpointGroupsListNetworkEndpointsCall) MaxResults ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) MaxResults(maxResults int64) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionNetworkEndpointGroupsListNetworkEndpointsCall) OrderBy ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) OrderBy(orderBy string) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionNetworkEndpointGroupsListNetworkEndpointsCall) PageToken ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) PageToken(pageToken string) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionNetworkEndpointGroupsListNetworkEndpointsCall) Pages ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) Pages(ctx context.Context, f func(*NetworkEndpointGroupsListNetworkEndpoints) 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 (*RegionNetworkEndpointGroupsListNetworkEndpointsCall) ReturnPartialSuccess ¶ added in v0.144.0
func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionNetworkEndpointGroupsService ¶ added in v0.31.0
type RegionNetworkEndpointGroupsService struct {
// contains filtered or unexported fields
}
func NewRegionNetworkEndpointGroupsService ¶ added in v0.31.0
func NewRegionNetworkEndpointGroupsService(s *Service) *RegionNetworkEndpointGroupsService
func (*RegionNetworkEndpointGroupsService) AttachNetworkEndpoints ¶ added in v0.144.0
func (r *RegionNetworkEndpointGroupsService) AttachNetworkEndpoints(project string, region string, networkEndpointGroup string, regionnetworkendpointgroupsattachendpointsrequest *RegionNetworkEndpointGroupsAttachEndpointsRequest) *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall
AttachNetworkEndpoints: Attach a list of network endpoints to the specified network endpoint group.
- networkEndpointGroup: The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035.
- project: Project ID for this request.
- region: The name of the region where you want to create the network endpoint group. It should comply with RFC1035.
func (*RegionNetworkEndpointGroupsService) Delete ¶ added in v0.31.0
func (r *RegionNetworkEndpointGroupsService) Delete(project string, region string, networkEndpointGroup string) *RegionNetworkEndpointGroupsDeleteCall
Delete: Deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is configured as a backend of a backend service.
- networkEndpointGroup: The name of the network endpoint group to delete. It should comply with RFC1035.
- project: Project ID for this request.
- region: The name of the region where the network endpoint group is located. It should comply with RFC1035.
func (*RegionNetworkEndpointGroupsService) DetachNetworkEndpoints ¶ added in v0.144.0
func (r *RegionNetworkEndpointGroupsService) DetachNetworkEndpoints(project string, region string, networkEndpointGroup string, regionnetworkendpointgroupsdetachendpointsrequest *RegionNetworkEndpointGroupsDetachEndpointsRequest) *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall
DetachNetworkEndpoints: Detach the network endpoint from the specified network endpoint group.
- networkEndpointGroup: The name of the network endpoint group you are detaching network endpoints from. It should comply with RFC1035.
- project: Project ID for this request.
- region: The name of the region where the network endpoint group is located. It should comply with RFC1035.
func (*RegionNetworkEndpointGroupsService) Get ¶ added in v0.31.0
func (r *RegionNetworkEndpointGroupsService) Get(project string, region string, networkEndpointGroup string) *RegionNetworkEndpointGroupsGetCall
Get: Returns the specified network endpoint group.
- networkEndpointGroup: The name of the network endpoint group. It should comply with RFC1035.
- project: Project ID for this request.
- region: The name of the region where the network endpoint group is located. It should comply with RFC1035.
func (*RegionNetworkEndpointGroupsService) Insert ¶ added in v0.31.0
func (r *RegionNetworkEndpointGroupsService) Insert(project string, region string, networkendpointgroup *NetworkEndpointGroup) *RegionNetworkEndpointGroupsInsertCall
Insert: Creates a network endpoint group in the specified project using the parameters that are included in the request.
- project: Project ID for this request.
- region: The name of the region where you want to create the network endpoint group. It should comply with RFC1035.
func (*RegionNetworkEndpointGroupsService) List ¶ added in v0.31.0
func (r *RegionNetworkEndpointGroupsService) List(project string, region string) *RegionNetworkEndpointGroupsListCall
List: Retrieves the list of regional network endpoint groups available to the specified project in the given region.
- project: Project ID for this request.
- region: The name of the region where the network endpoint group is located. It should comply with RFC1035.
func (*RegionNetworkEndpointGroupsService) ListNetworkEndpoints ¶ added in v0.144.0
func (r *RegionNetworkEndpointGroupsService) ListNetworkEndpoints(project string, region string, networkEndpointGroup string) *RegionNetworkEndpointGroupsListNetworkEndpointsCall
ListNetworkEndpoints: Lists the network endpoints in the specified network endpoint group.
- networkEndpointGroup: The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035.
- project: Project ID for this request.
- region: The name of the region where the network endpoint group is located. It should comply with RFC1035.
type RegionNetworkFirewallPoliciesAddAssociationCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesAddAssociationCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesAddAssociationCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesAddAssociationCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesAddAssociationCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesAddAssociationCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesAddAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNetworkFirewallPolicies.addAssociation" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesAddAssociationCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesAddAssociationCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesAddAssociationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesAddAssociationCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesAddAssociationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkFirewallPoliciesAddAssociationCall) ReplaceExistingAssociation ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesAddAssociationCall) ReplaceExistingAssociation(replaceExistingAssociation bool) *RegionNetworkFirewallPoliciesAddAssociationCall
ReplaceExistingAssociation sets the optional parameter "replaceExistingAssociation": Indicates whether or not to replace it if an association already exists. This is false by default, in which case an error will be returned if an association already exists.
func (*RegionNetworkFirewallPoliciesAddAssociationCall) RequestId ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesAddAssociationCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesAddAssociationCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionNetworkFirewallPoliciesAddRuleCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesAddRuleCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesAddRuleCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesAddRuleCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesAddRuleCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesAddRuleCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNetworkFirewallPolicies.addRule" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesAddRuleCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesAddRuleCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesAddRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesAddRuleCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesAddRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkFirewallPoliciesAddRuleCall) MaxPriority ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesAddRuleCall) MaxPriority(maxPriority int64) *RegionNetworkFirewallPoliciesAddRuleCall
MaxPriority sets the optional parameter "maxPriority": When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority.
func (*RegionNetworkFirewallPoliciesAddRuleCall) MinPriority ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesAddRuleCall) MinPriority(minPriority int64) *RegionNetworkFirewallPoliciesAddRuleCall
MinPriority sets the optional parameter "minPriority": When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority.
func (*RegionNetworkFirewallPoliciesAddRuleCall) RequestId ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesAddRuleCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesAddRuleCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionNetworkFirewallPoliciesCloneRulesCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesCloneRulesCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesCloneRulesCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesCloneRulesCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesCloneRulesCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesCloneRulesCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesCloneRulesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNetworkFirewallPolicies.cloneRules" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesCloneRulesCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesCloneRulesCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesCloneRulesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesCloneRulesCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesCloneRulesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkFirewallPoliciesCloneRulesCall) RequestId ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesCloneRulesCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesCloneRulesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*RegionNetworkFirewallPoliciesCloneRulesCall) SourceFirewallPolicy ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesCloneRulesCall) SourceFirewallPolicy(sourceFirewallPolicy string) *RegionNetworkFirewallPoliciesCloneRulesCall
SourceFirewallPolicy sets the optional parameter "sourceFirewallPolicy": The firewall policy from which to copy rules.
type RegionNetworkFirewallPoliciesDeleteCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesDeleteCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesDeleteCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesDeleteCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNetworkFirewallPolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesDeleteCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesDeleteCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesDeleteCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkFirewallPoliciesDeleteCall) RequestId ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesDeleteCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionNetworkFirewallPoliciesGetAssociationCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesGetAssociationCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesGetAssociationCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetAssociationCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesGetAssociationCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesGetAssociationCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetAssociationCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyAssociation, error)
Do executes the "compute.regionNetworkFirewallPolicies.getAssociation" call. Any non-2xx status code is an error. Response headers are in either *FirewallPolicyAssociation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesGetAssociationCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetAssociationCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesGetAssociationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesGetAssociationCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetAssociationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkFirewallPoliciesGetAssociationCall) IfNoneMatch ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetAssociationCall) IfNoneMatch(entityTag string) *RegionNetworkFirewallPoliciesGetAssociationCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionNetworkFirewallPoliciesGetAssociationCall) Name ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetAssociationCall) Name(name string) *RegionNetworkFirewallPoliciesGetAssociationCall
Name sets the optional parameter "name": The name of the association to get from the firewall policy.
type RegionNetworkFirewallPoliciesGetCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesGetCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesGetCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesGetCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetCall) Do(opts ...googleapi.CallOption) (*FirewallPolicy, error)
Do executes the "compute.regionNetworkFirewallPolicies.get" call. Any non-2xx status code is an error. Response headers are in either *FirewallPolicy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesGetCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesGetCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkFirewallPoliciesGetCall) IfNoneMatch ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetCall) IfNoneMatch(entityTag string) *RegionNetworkFirewallPoliciesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) Do(opts ...googleapi.CallOption) (*RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse, error)
Do executes the "compute.regionNetworkFirewallPolicies.getEffectiveFirewalls" call. Any non-2xx status code is an error. Response headers are in either *RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.ServerResponse.He ader or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) IfNoneMatch ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) IfNoneMatch(entityTag string) *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse struct { // FirewallPolicys: Effective firewalls from firewall policy. FirewallPolicys []*RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy `json:"firewallPolicys,omitempty"` // Firewalls: Effective firewalls on the network. Firewalls []*Firewall `json:"firewalls,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "FirewallPolicys") 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. "FirewallPolicys") 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:"-"` }
func (RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse) MarshalJSON ¶ added in v0.69.0
func (s RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse) MarshalJSON() ([]byte, error)
type RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy struct { // DisplayName: [Output Only] The display name of the firewall policy. DisplayName string `json:"displayName,omitempty"` // Name: [Output Only] The name of the firewall policy. Name string `json:"name,omitempty"` // Rules: The rules that apply to the network. Rules []*FirewallPolicyRule `json:"rules,omitempty"` // Type: [Output Only] The type of the firewall policy. Can be one of // HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. // // Possible values: // "HIERARCHY" // "NETWORK" // "NETWORK_REGIONAL" // "UNSPECIFIED" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
func (RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy) MarshalJSON ¶ added in v0.69.0
func (s RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy) MarshalJSON() ([]byte, error)
type RegionNetworkFirewallPoliciesGetIamPolicyCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesGetIamPolicyCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetIamPolicyCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesGetIamPolicyCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.regionNetworkFirewallPolicies.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesGetIamPolicyCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesGetIamPolicyCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkFirewallPoliciesGetIamPolicyCall) IfNoneMatch ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *RegionNetworkFirewallPoliciesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionNetworkFirewallPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *RegionNetworkFirewallPoliciesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type RegionNetworkFirewallPoliciesGetRuleCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesGetRuleCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesGetRuleCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetRuleCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesGetRuleCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesGetRuleCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyRule, error)
Do executes the "compute.regionNetworkFirewallPolicies.getRule" call. Any non-2xx status code is an error. Response headers are in either *FirewallPolicyRule.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesGetRuleCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetRuleCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesGetRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesGetRuleCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkFirewallPoliciesGetRuleCall) IfNoneMatch ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetRuleCall) IfNoneMatch(entityTag string) *RegionNetworkFirewallPoliciesGetRuleCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionNetworkFirewallPoliciesGetRuleCall) Priority ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesGetRuleCall) Priority(priority int64) *RegionNetworkFirewallPoliciesGetRuleCall
Priority sets the optional parameter "priority": The priority of the rule to get from the firewall policy.
type RegionNetworkFirewallPoliciesInsertCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesInsertCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesInsertCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesInsertCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNetworkFirewallPolicies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesInsertCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesInsertCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesInsertCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkFirewallPoliciesInsertCall) RequestId ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesInsertCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionNetworkFirewallPoliciesListCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesListCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesListCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesListCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesListCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesListCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesListCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyList, error)
Do executes the "compute.regionNetworkFirewallPolicies.list" call. Any non-2xx status code is an error. Response headers are in either *FirewallPolicyList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesListCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesListCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesListCall) Filter ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesListCall) Filter(filter string) *RegionNetworkFirewallPoliciesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionNetworkFirewallPoliciesListCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkFirewallPoliciesListCall) IfNoneMatch ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesListCall) IfNoneMatch(entityTag string) *RegionNetworkFirewallPoliciesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionNetworkFirewallPoliciesListCall) MaxResults ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesListCall) MaxResults(maxResults int64) *RegionNetworkFirewallPoliciesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionNetworkFirewallPoliciesListCall) OrderBy ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesListCall) OrderBy(orderBy string) *RegionNetworkFirewallPoliciesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionNetworkFirewallPoliciesListCall) PageToken ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesListCall) PageToken(pageToken string) *RegionNetworkFirewallPoliciesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionNetworkFirewallPoliciesListCall) Pages ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesListCall) Pages(ctx context.Context, f func(*FirewallPolicyList) 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 (*RegionNetworkFirewallPoliciesListCall) ReturnPartialSuccess ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionNetworkFirewallPoliciesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionNetworkFirewallPoliciesPatchCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesPatchCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesPatchCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesPatchCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesPatchCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesPatchCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNetworkFirewallPolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesPatchCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesPatchCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesPatchCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkFirewallPoliciesPatchCall) RequestId ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesPatchCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionNetworkFirewallPoliciesPatchRuleCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesPatchRuleCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesPatchRuleCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesPatchRuleCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesPatchRuleCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNetworkFirewallPolicies.patchRule" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesPatchRuleCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesPatchRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesPatchRuleCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkFirewallPoliciesPatchRuleCall) Priority ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Priority(priority int64) *RegionNetworkFirewallPoliciesPatchRuleCall
Priority sets the optional parameter "priority": The priority of the rule to patch.
func (*RegionNetworkFirewallPoliciesPatchRuleCall) RequestId ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesPatchRuleCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesPatchRuleCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionNetworkFirewallPoliciesRemoveAssociationCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesRemoveAssociationCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesRemoveAssociationCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesRemoveAssociationCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesRemoveAssociationCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNetworkFirewallPolicies.removeAssociation" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesRemoveAssociationCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesRemoveAssociationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesRemoveAssociationCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkFirewallPoliciesRemoveAssociationCall) Name ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Name(name string) *RegionNetworkFirewallPoliciesRemoveAssociationCall
Name sets the optional parameter "name": Name for the association that will be removed.
func (*RegionNetworkFirewallPoliciesRemoveAssociationCall) RequestId ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesRemoveAssociationCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionNetworkFirewallPoliciesRemoveRuleCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesRemoveRuleCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesRemoveRuleCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesRemoveRuleCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesRemoveRuleCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesRemoveRuleCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesRemoveRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNetworkFirewallPolicies.removeRule" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesRemoveRuleCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesRemoveRuleCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesRemoveRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesRemoveRuleCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesRemoveRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNetworkFirewallPoliciesRemoveRuleCall) Priority ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesRemoveRuleCall) Priority(priority int64) *RegionNetworkFirewallPoliciesRemoveRuleCall
Priority sets the optional parameter "priority": The priority of the rule to remove from the firewall policy.
func (*RegionNetworkFirewallPoliciesRemoveRuleCall) RequestId ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesRemoveRuleCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesRemoveRuleCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionNetworkFirewallPoliciesService ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesService struct {
// contains filtered or unexported fields
}
func NewRegionNetworkFirewallPoliciesService ¶ added in v0.69.0
func NewRegionNetworkFirewallPoliciesService(s *Service) *RegionNetworkFirewallPoliciesService
func (*RegionNetworkFirewallPoliciesService) AddAssociation ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) AddAssociation(project string, region string, firewallPolicy string, firewallpolicyassociation *FirewallPolicyAssociation) *RegionNetworkFirewallPoliciesAddAssociationCall
AddAssociation: Inserts an association for the specified network firewall policy.
- firewallPolicy: Name of the firewall policy to update. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionNetworkFirewallPoliciesService) AddRule ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) AddRule(project string, region string, firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *RegionNetworkFirewallPoliciesAddRuleCall
AddRule: Inserts a rule into a network firewall policy.
- firewallPolicy: Name of the firewall policy to update. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionNetworkFirewallPoliciesService) CloneRules ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) CloneRules(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesCloneRulesCall
CloneRules: Copies rules to the specified network firewall policy.
- firewallPolicy: Name of the firewall policy to update. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionNetworkFirewallPoliciesService) Delete ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) Delete(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesDeleteCall
Delete: Deletes the specified network firewall policy.
- firewallPolicy: Name of the firewall policy to delete. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionNetworkFirewallPoliciesService) Get ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) Get(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesGetCall
Get: Returns the specified network firewall policy.
- firewallPolicy: Name of the firewall policy to get. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionNetworkFirewallPoliciesService) GetAssociation ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) GetAssociation(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesGetAssociationCall
GetAssociation: Gets an association with the specified name.
- firewallPolicy: Name of the firewall policy to which the queried association belongs.
- project: Project ID for this request.
- region: Name of the region scoping this request.
func (*RegionNetworkFirewallPoliciesService) GetEffectiveFirewalls ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) GetEffectiveFirewalls(project string, region string, network string) *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall
GetEffectiveFirewalls: Returns the effective firewalls on a given network.
- network: Network reference. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionNetworkFirewallPoliciesService) GetIamPolicy ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) GetIamPolicy(project string, region string, resource string) *RegionNetworkFirewallPoliciesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*RegionNetworkFirewallPoliciesService) GetRule ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) GetRule(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesGetRuleCall
GetRule: Gets a rule of the specified priority.
- firewallPolicy: Name of the firewall policy to which the queried rule belongs.
- project: Project ID for this request.
- region: Name of the region scoping this request.
func (*RegionNetworkFirewallPoliciesService) Insert ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) Insert(project string, region string, firewallpolicy *FirewallPolicy) *RegionNetworkFirewallPoliciesInsertCall
Insert: Creates a new network firewall policy in the specified project and region.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionNetworkFirewallPoliciesService) List ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) List(project string, region string) *RegionNetworkFirewallPoliciesListCall
List: Lists all the network firewall policies that have been configured for the specified project in the given region.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionNetworkFirewallPoliciesService) Patch ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) Patch(project string, region string, firewallPolicy string, firewallpolicy *FirewallPolicy) *RegionNetworkFirewallPoliciesPatchCall
Patch: Patches the specified network firewall policy.
- firewallPolicy: Name of the firewall policy to update. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionNetworkFirewallPoliciesService) PatchRule ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) PatchRule(project string, region string, firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *RegionNetworkFirewallPoliciesPatchRuleCall
PatchRule: Patches a rule of the specified priority.
- firewallPolicy: Name of the firewall policy to update. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionNetworkFirewallPoliciesService) RemoveAssociation ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) RemoveAssociation(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesRemoveAssociationCall
RemoveAssociation: Removes an association for the specified network firewall policy.
- firewallPolicy: Name of the firewall policy to update. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionNetworkFirewallPoliciesService) RemoveRule ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) RemoveRule(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesRemoveRuleCall
RemoveRule: Deletes a rule of the specified priority.
- firewallPolicy: Name of the firewall policy to update. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionNetworkFirewallPoliciesService) SetIamPolicy ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) SetIamPolicy(project string, region string, resource string, regionsetpolicyrequest *RegionSetPolicyRequest) *RegionNetworkFirewallPoliciesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*RegionNetworkFirewallPoliciesService) TestIamPermissions ¶ added in v0.69.0
func (r *RegionNetworkFirewallPoliciesService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionNetworkFirewallPoliciesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
type RegionNetworkFirewallPoliciesSetIamPolicyCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesSetIamPolicyCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesSetIamPolicyCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesSetIamPolicyCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.regionNetworkFirewallPolicies.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesSetIamPolicyCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesSetIamPolicyCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type RegionNetworkFirewallPoliciesTestIamPermissionsCall ¶ added in v0.69.0
type RegionNetworkFirewallPoliciesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionNetworkFirewallPoliciesTestIamPermissionsCall) Context ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesTestIamPermissionsCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*RegionNetworkFirewallPoliciesTestIamPermissionsCall) Do ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionNetworkFirewallPolicies.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNetworkFirewallPoliciesTestIamPermissionsCall) Fields ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNetworkFirewallPoliciesTestIamPermissionsCall) Header ¶ added in v0.69.0
func (c *RegionNetworkFirewallPoliciesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type RegionNotificationEndpointsDeleteCall ¶ added in v0.29.0
type RegionNotificationEndpointsDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionNotificationEndpointsDeleteCall) Context ¶ added in v0.29.0
func (c *RegionNotificationEndpointsDeleteCall) Context(ctx context.Context) *RegionNotificationEndpointsDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionNotificationEndpointsDeleteCall) Do ¶ added in v0.29.0
func (c *RegionNotificationEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNotificationEndpoints.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNotificationEndpointsDeleteCall) Fields ¶ added in v0.29.0
func (c *RegionNotificationEndpointsDeleteCall) Fields(s ...googleapi.Field) *RegionNotificationEndpointsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNotificationEndpointsDeleteCall) Header ¶ added in v0.29.0
func (c *RegionNotificationEndpointsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNotificationEndpointsDeleteCall) RequestId ¶ added in v0.29.0
func (c *RegionNotificationEndpointsDeleteCall) RequestId(requestId string) *RegionNotificationEndpointsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionNotificationEndpointsGetCall ¶ added in v0.29.0
type RegionNotificationEndpointsGetCall struct {
// contains filtered or unexported fields
}
func (*RegionNotificationEndpointsGetCall) Context ¶ added in v0.29.0
func (c *RegionNotificationEndpointsGetCall) Context(ctx context.Context) *RegionNotificationEndpointsGetCall
Context sets the context to be used in this call's Do method.
func (*RegionNotificationEndpointsGetCall) Do ¶ added in v0.29.0
func (c *RegionNotificationEndpointsGetCall) Do(opts ...googleapi.CallOption) (*NotificationEndpoint, error)
Do executes the "compute.regionNotificationEndpoints.get" call. Any non-2xx status code is an error. Response headers are in either *NotificationEndpoint.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNotificationEndpointsGetCall) Fields ¶ added in v0.29.0
func (c *RegionNotificationEndpointsGetCall) Fields(s ...googleapi.Field) *RegionNotificationEndpointsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNotificationEndpointsGetCall) Header ¶ added in v0.29.0
func (c *RegionNotificationEndpointsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNotificationEndpointsGetCall) IfNoneMatch ¶ added in v0.29.0
func (c *RegionNotificationEndpointsGetCall) IfNoneMatch(entityTag string) *RegionNotificationEndpointsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionNotificationEndpointsInsertCall ¶ added in v0.29.0
type RegionNotificationEndpointsInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionNotificationEndpointsInsertCall) Context ¶ added in v0.29.0
func (c *RegionNotificationEndpointsInsertCall) Context(ctx context.Context) *RegionNotificationEndpointsInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionNotificationEndpointsInsertCall) Do ¶ added in v0.29.0
func (c *RegionNotificationEndpointsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNotificationEndpoints.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNotificationEndpointsInsertCall) Fields ¶ added in v0.29.0
func (c *RegionNotificationEndpointsInsertCall) Fields(s ...googleapi.Field) *RegionNotificationEndpointsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNotificationEndpointsInsertCall) Header ¶ added in v0.29.0
func (c *RegionNotificationEndpointsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNotificationEndpointsInsertCall) RequestId ¶ added in v0.29.0
func (c *RegionNotificationEndpointsInsertCall) RequestId(requestId string) *RegionNotificationEndpointsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionNotificationEndpointsListCall ¶ added in v0.29.0
type RegionNotificationEndpointsListCall struct {
// contains filtered or unexported fields
}
func (*RegionNotificationEndpointsListCall) Context ¶ added in v0.29.0
func (c *RegionNotificationEndpointsListCall) Context(ctx context.Context) *RegionNotificationEndpointsListCall
Context sets the context to be used in this call's Do method.
func (*RegionNotificationEndpointsListCall) Do ¶ added in v0.29.0
func (c *RegionNotificationEndpointsListCall) Do(opts ...googleapi.CallOption) (*NotificationEndpointList, error)
Do executes the "compute.regionNotificationEndpoints.list" call. Any non-2xx status code is an error. Response headers are in either *NotificationEndpointList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionNotificationEndpointsListCall) Fields ¶ added in v0.29.0
func (c *RegionNotificationEndpointsListCall) Fields(s ...googleapi.Field) *RegionNotificationEndpointsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionNotificationEndpointsListCall) Filter ¶ added in v0.29.0
func (c *RegionNotificationEndpointsListCall) Filter(filter string) *RegionNotificationEndpointsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionNotificationEndpointsListCall) Header ¶ added in v0.29.0
func (c *RegionNotificationEndpointsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionNotificationEndpointsListCall) IfNoneMatch ¶ added in v0.29.0
func (c *RegionNotificationEndpointsListCall) IfNoneMatch(entityTag string) *RegionNotificationEndpointsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionNotificationEndpointsListCall) MaxResults ¶ added in v0.29.0
func (c *RegionNotificationEndpointsListCall) MaxResults(maxResults int64) *RegionNotificationEndpointsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionNotificationEndpointsListCall) OrderBy ¶ added in v0.29.0
func (c *RegionNotificationEndpointsListCall) OrderBy(orderBy string) *RegionNotificationEndpointsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionNotificationEndpointsListCall) PageToken ¶ added in v0.29.0
func (c *RegionNotificationEndpointsListCall) PageToken(pageToken string) *RegionNotificationEndpointsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionNotificationEndpointsListCall) Pages ¶ added in v0.29.0
func (c *RegionNotificationEndpointsListCall) Pages(ctx context.Context, f func(*NotificationEndpointList) 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 (*RegionNotificationEndpointsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionNotificationEndpointsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionNotificationEndpointsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionNotificationEndpointsService ¶ added in v0.29.0
type RegionNotificationEndpointsService struct {
// contains filtered or unexported fields
}
func NewRegionNotificationEndpointsService ¶ added in v0.29.0
func NewRegionNotificationEndpointsService(s *Service) *RegionNotificationEndpointsService
func (*RegionNotificationEndpointsService) Delete ¶ added in v0.29.0
func (r *RegionNotificationEndpointsService) Delete(project string, region string, notificationEndpoint string) *RegionNotificationEndpointsDeleteCall
Delete: Deletes the specified NotificationEndpoint in the given region
- notificationEndpoint: Name of the NotificationEndpoint resource to delete. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionNotificationEndpointsService) Get ¶ added in v0.29.0
func (r *RegionNotificationEndpointsService) Get(project string, region string, notificationEndpoint string) *RegionNotificationEndpointsGetCall
Get: Returns the specified NotificationEndpoint resource in the given region.
- notificationEndpoint: Name of the NotificationEndpoint resource to return. - project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionNotificationEndpointsService) Insert ¶ added in v0.29.0
func (r *RegionNotificationEndpointsService) Insert(project string, region string, notificationendpoint *NotificationEndpoint) *RegionNotificationEndpointsInsertCall
Insert: Create a NotificationEndpoint in the specified project in the given region using the parameters that are included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionNotificationEndpointsService) List ¶ added in v0.29.0
func (r *RegionNotificationEndpointsService) List(project string, region string) *RegionNotificationEndpointsListCall
List: Lists the NotificationEndpoints for a project in the given region.
- project: Project ID for this request. - region: Name of the region scoping this request.
type RegionOperationsDeleteCall ¶
type RegionOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionOperationsDeleteCall) Context ¶
func (c *RegionOperationsDeleteCall) Context(ctx context.Context) *RegionOperationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionOperationsDeleteCall) Do ¶
func (c *RegionOperationsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "compute.regionOperations.delete" call.
func (*RegionOperationsDeleteCall) Fields ¶
func (c *RegionOperationsDeleteCall) Fields(s ...googleapi.Field) *RegionOperationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionOperationsDeleteCall) Header ¶
func (c *RegionOperationsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type RegionOperationsGetCall ¶
type RegionOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*RegionOperationsGetCall) Context ¶
func (c *RegionOperationsGetCall) Context(ctx context.Context) *RegionOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*RegionOperationsGetCall) Do ¶
func (c *RegionOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionOperations.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionOperationsGetCall) Fields ¶
func (c *RegionOperationsGetCall) Fields(s ...googleapi.Field) *RegionOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionOperationsGetCall) Header ¶
func (c *RegionOperationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionOperationsGetCall) IfNoneMatch ¶
func (c *RegionOperationsGetCall) IfNoneMatch(entityTag string) *RegionOperationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionOperationsListCall ¶
type RegionOperationsListCall struct {
// contains filtered or unexported fields
}
func (*RegionOperationsListCall) Context ¶
func (c *RegionOperationsListCall) Context(ctx context.Context) *RegionOperationsListCall
Context sets the context to be used in this call's Do method.
func (*RegionOperationsListCall) Do ¶
func (c *RegionOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList, error)
Do executes the "compute.regionOperations.list" call. Any non-2xx status code is an error. Response headers are in either *OperationList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionOperationsListCall) Fields ¶
func (c *RegionOperationsListCall) Fields(s ...googleapi.Field) *RegionOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionOperationsListCall) Filter ¶
func (c *RegionOperationsListCall) Filter(filter string) *RegionOperationsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionOperationsListCall) Header ¶
func (c *RegionOperationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionOperationsListCall) IfNoneMatch ¶
func (c *RegionOperationsListCall) IfNoneMatch(entityTag string) *RegionOperationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionOperationsListCall) MaxResults ¶
func (c *RegionOperationsListCall) MaxResults(maxResults int64) *RegionOperationsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionOperationsListCall) OrderBy ¶
func (c *RegionOperationsListCall) OrderBy(orderBy string) *RegionOperationsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionOperationsListCall) PageToken ¶
func (c *RegionOperationsListCall) PageToken(pageToken string) *RegionOperationsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionOperationsListCall) Pages ¶
func (c *RegionOperationsListCall) Pages(ctx context.Context, f func(*OperationList) 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 (*RegionOperationsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionOperationsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionOperationsService ¶
type RegionOperationsService struct {
// contains filtered or unexported fields
}
func NewRegionOperationsService ¶
func NewRegionOperationsService(s *Service) *RegionOperationsService
func (*RegionOperationsService) Delete ¶
func (r *RegionOperationsService) Delete(project string, region string, operationid string) *RegionOperationsDeleteCall
Delete: Deletes the specified region-specific Operations resource.
- operation: Name of the Operations resource to delete, or its unique numeric identifier.
- project: Project ID for this request.
- region: Name of the region for this request.
func (*RegionOperationsService) Get ¶
func (r *RegionOperationsService) Get(project string, region string, operationid string) *RegionOperationsGetCall
Get: Retrieves the specified region-specific Operations resource.
- operation: Name of the Operations resource to return, or its unique numeric identifier.
- project: Project ID for this request.
- region: Name of the region for this request.
func (*RegionOperationsService) List ¶
func (r *RegionOperationsService) List(project string, region string) *RegionOperationsListCall
List: Retrieves a list of Operation resources contained within the specified region.
- project: Project ID for this request. - region: Name of the region for this request.
func (*RegionOperationsService) Wait ¶ added in v0.16.0
func (r *RegionOperationsService) Wait(project string, region string, operationid string) *RegionOperationsWaitCall
Wait: Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.
- operation: Name of the Operations resource to return, or its unique numeric identifier.
- project: Project ID for this request.
- region: Name of the region for this request.
type RegionOperationsWaitCall ¶ added in v0.16.0
type RegionOperationsWaitCall struct {
// contains filtered or unexported fields
}
func (*RegionOperationsWaitCall) Context ¶ added in v0.16.0
func (c *RegionOperationsWaitCall) Context(ctx context.Context) *RegionOperationsWaitCall
Context sets the context to be used in this call's Do method.
func (*RegionOperationsWaitCall) Do ¶ added in v0.16.0
func (c *RegionOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionOperations.wait" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionOperationsWaitCall) Fields ¶ added in v0.16.0
func (c *RegionOperationsWaitCall) Fields(s ...googleapi.Field) *RegionOperationsWaitCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionOperationsWaitCall) Header ¶ added in v0.16.0
func (c *RegionOperationsWaitCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type RegionQuotaStatusWarning ¶ added in v0.173.0
type RegionQuotaStatusWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*RegionQuotaStatusWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
RegionQuotaStatusWarning: [Output Only] Warning of fetching the `quotas` field for this region. This field is populated only if fetching of the `quotas` field fails.
func (RegionQuotaStatusWarning) MarshalJSON ¶ added in v0.173.0
func (s RegionQuotaStatusWarning) MarshalJSON() ([]byte, error)
type RegionQuotaStatusWarningData ¶ added in v0.173.0
type RegionQuotaStatusWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (RegionQuotaStatusWarningData) MarshalJSON ¶ added in v0.173.0
func (s RegionQuotaStatusWarningData) MarshalJSON() ([]byte, error)
type RegionSecurityPoliciesAddRuleCall ¶ added in v0.144.0
type RegionSecurityPoliciesAddRuleCall struct {
// contains filtered or unexported fields
}
func (*RegionSecurityPoliciesAddRuleCall) Context ¶ added in v0.144.0
func (c *RegionSecurityPoliciesAddRuleCall) Context(ctx context.Context) *RegionSecurityPoliciesAddRuleCall
Context sets the context to be used in this call's Do method.
func (*RegionSecurityPoliciesAddRuleCall) Do ¶ added in v0.144.0
func (c *RegionSecurityPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionSecurityPolicies.addRule" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSecurityPoliciesAddRuleCall) Fields ¶ added in v0.144.0
func (c *RegionSecurityPoliciesAddRuleCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesAddRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSecurityPoliciesAddRuleCall) Header ¶ added in v0.144.0
func (c *RegionSecurityPoliciesAddRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSecurityPoliciesAddRuleCall) ValidateOnly ¶ added in v0.144.0
func (c *RegionSecurityPoliciesAddRuleCall) ValidateOnly(validateOnly bool) *RegionSecurityPoliciesAddRuleCall
ValidateOnly sets the optional parameter "validateOnly": If true, the request will not be committed.
type RegionSecurityPoliciesDeleteCall ¶ added in v0.74.0
type RegionSecurityPoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionSecurityPoliciesDeleteCall) Context ¶ added in v0.74.0
func (c *RegionSecurityPoliciesDeleteCall) Context(ctx context.Context) *RegionSecurityPoliciesDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionSecurityPoliciesDeleteCall) Do ¶ added in v0.74.0
func (c *RegionSecurityPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionSecurityPolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSecurityPoliciesDeleteCall) Fields ¶ added in v0.74.0
func (c *RegionSecurityPoliciesDeleteCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSecurityPoliciesDeleteCall) Header ¶ added in v0.74.0
func (c *RegionSecurityPoliciesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSecurityPoliciesDeleteCall) RequestId ¶ added in v0.74.0
func (c *RegionSecurityPoliciesDeleteCall) RequestId(requestId string) *RegionSecurityPoliciesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionSecurityPoliciesGetCall ¶ added in v0.74.0
type RegionSecurityPoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*RegionSecurityPoliciesGetCall) Context ¶ added in v0.74.0
func (c *RegionSecurityPoliciesGetCall) Context(ctx context.Context) *RegionSecurityPoliciesGetCall
Context sets the context to be used in this call's Do method.
func (*RegionSecurityPoliciesGetCall) Do ¶ added in v0.74.0
func (c *RegionSecurityPoliciesGetCall) Do(opts ...googleapi.CallOption) (*SecurityPolicy, error)
Do executes the "compute.regionSecurityPolicies.get" call. Any non-2xx status code is an error. Response headers are in either *SecurityPolicy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSecurityPoliciesGetCall) Fields ¶ added in v0.74.0
func (c *RegionSecurityPoliciesGetCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSecurityPoliciesGetCall) Header ¶ added in v0.74.0
func (c *RegionSecurityPoliciesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSecurityPoliciesGetCall) IfNoneMatch ¶ added in v0.74.0
func (c *RegionSecurityPoliciesGetCall) IfNoneMatch(entityTag string) *RegionSecurityPoliciesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionSecurityPoliciesGetRuleCall ¶ added in v0.144.0
type RegionSecurityPoliciesGetRuleCall struct {
// contains filtered or unexported fields
}
func (*RegionSecurityPoliciesGetRuleCall) Context ¶ added in v0.144.0
func (c *RegionSecurityPoliciesGetRuleCall) Context(ctx context.Context) *RegionSecurityPoliciesGetRuleCall
Context sets the context to be used in this call's Do method.
func (*RegionSecurityPoliciesGetRuleCall) Do ¶ added in v0.144.0
func (c *RegionSecurityPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyRule, error)
Do executes the "compute.regionSecurityPolicies.getRule" call. Any non-2xx status code is an error. Response headers are in either *SecurityPolicyRule.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSecurityPoliciesGetRuleCall) Fields ¶ added in v0.144.0
func (c *RegionSecurityPoliciesGetRuleCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesGetRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSecurityPoliciesGetRuleCall) Header ¶ added in v0.144.0
func (c *RegionSecurityPoliciesGetRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSecurityPoliciesGetRuleCall) IfNoneMatch ¶ added in v0.144.0
func (c *RegionSecurityPoliciesGetRuleCall) IfNoneMatch(entityTag string) *RegionSecurityPoliciesGetRuleCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionSecurityPoliciesGetRuleCall) Priority ¶ added in v0.144.0
func (c *RegionSecurityPoliciesGetRuleCall) Priority(priority int64) *RegionSecurityPoliciesGetRuleCall
Priority sets the optional parameter "priority": The priority of the rule to get from the security policy.
type RegionSecurityPoliciesInsertCall ¶ added in v0.74.0
type RegionSecurityPoliciesInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionSecurityPoliciesInsertCall) Context ¶ added in v0.74.0
func (c *RegionSecurityPoliciesInsertCall) Context(ctx context.Context) *RegionSecurityPoliciesInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionSecurityPoliciesInsertCall) Do ¶ added in v0.74.0
func (c *RegionSecurityPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionSecurityPolicies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSecurityPoliciesInsertCall) Fields ¶ added in v0.74.0
func (c *RegionSecurityPoliciesInsertCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSecurityPoliciesInsertCall) Header ¶ added in v0.74.0
func (c *RegionSecurityPoliciesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSecurityPoliciesInsertCall) RequestId ¶ added in v0.74.0
func (c *RegionSecurityPoliciesInsertCall) RequestId(requestId string) *RegionSecurityPoliciesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*RegionSecurityPoliciesInsertCall) ValidateOnly ¶ added in v0.74.0
func (c *RegionSecurityPoliciesInsertCall) ValidateOnly(validateOnly bool) *RegionSecurityPoliciesInsertCall
ValidateOnly sets the optional parameter "validateOnly": If true, the request will not be committed.
type RegionSecurityPoliciesListCall ¶ added in v0.74.0
type RegionSecurityPoliciesListCall struct {
// contains filtered or unexported fields
}
func (*RegionSecurityPoliciesListCall) Context ¶ added in v0.74.0
func (c *RegionSecurityPoliciesListCall) Context(ctx context.Context) *RegionSecurityPoliciesListCall
Context sets the context to be used in this call's Do method.
func (*RegionSecurityPoliciesListCall) Do ¶ added in v0.74.0
func (c *RegionSecurityPoliciesListCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyList, error)
Do executes the "compute.regionSecurityPolicies.list" call. Any non-2xx status code is an error. Response headers are in either *SecurityPolicyList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSecurityPoliciesListCall) Fields ¶ added in v0.74.0
func (c *RegionSecurityPoliciesListCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSecurityPoliciesListCall) Filter ¶ added in v0.74.0
func (c *RegionSecurityPoliciesListCall) Filter(filter string) *RegionSecurityPoliciesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionSecurityPoliciesListCall) Header ¶ added in v0.74.0
func (c *RegionSecurityPoliciesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSecurityPoliciesListCall) IfNoneMatch ¶ added in v0.74.0
func (c *RegionSecurityPoliciesListCall) IfNoneMatch(entityTag string) *RegionSecurityPoliciesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionSecurityPoliciesListCall) MaxResults ¶ added in v0.74.0
func (c *RegionSecurityPoliciesListCall) MaxResults(maxResults int64) *RegionSecurityPoliciesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionSecurityPoliciesListCall) OrderBy ¶ added in v0.74.0
func (c *RegionSecurityPoliciesListCall) OrderBy(orderBy string) *RegionSecurityPoliciesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionSecurityPoliciesListCall) PageToken ¶ added in v0.74.0
func (c *RegionSecurityPoliciesListCall) PageToken(pageToken string) *RegionSecurityPoliciesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionSecurityPoliciesListCall) Pages ¶ added in v0.74.0
func (c *RegionSecurityPoliciesListCall) Pages(ctx context.Context, f func(*SecurityPolicyList) 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 (*RegionSecurityPoliciesListCall) ReturnPartialSuccess ¶ added in v0.74.0
func (c *RegionSecurityPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionSecurityPoliciesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionSecurityPoliciesPatchCall ¶ added in v0.74.0
type RegionSecurityPoliciesPatchCall struct {
// contains filtered or unexported fields
}
func (*RegionSecurityPoliciesPatchCall) Context ¶ added in v0.74.0
func (c *RegionSecurityPoliciesPatchCall) Context(ctx context.Context) *RegionSecurityPoliciesPatchCall
Context sets the context to be used in this call's Do method.
func (*RegionSecurityPoliciesPatchCall) Do ¶ added in v0.74.0
func (c *RegionSecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionSecurityPolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSecurityPoliciesPatchCall) Fields ¶ added in v0.74.0
func (c *RegionSecurityPoliciesPatchCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSecurityPoliciesPatchCall) Header ¶ added in v0.74.0
func (c *RegionSecurityPoliciesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSecurityPoliciesPatchCall) RequestId ¶ added in v0.74.0
func (c *RegionSecurityPoliciesPatchCall) RequestId(requestId string) *RegionSecurityPoliciesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*RegionSecurityPoliciesPatchCall) UpdateMask ¶ added in v0.146.0
func (c *RegionSecurityPoliciesPatchCall) UpdateMask(updateMask string) *RegionSecurityPoliciesPatchCall
UpdateMask sets the optional parameter "updateMask": Indicates fields to be cleared as part of this request.
type RegionSecurityPoliciesPatchRuleCall ¶ added in v0.144.0
type RegionSecurityPoliciesPatchRuleCall struct {
// contains filtered or unexported fields
}
func (*RegionSecurityPoliciesPatchRuleCall) Context ¶ added in v0.144.0
func (c *RegionSecurityPoliciesPatchRuleCall) Context(ctx context.Context) *RegionSecurityPoliciesPatchRuleCall
Context sets the context to be used in this call's Do method.
func (*RegionSecurityPoliciesPatchRuleCall) Do ¶ added in v0.144.0
func (c *RegionSecurityPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionSecurityPolicies.patchRule" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSecurityPoliciesPatchRuleCall) Fields ¶ added in v0.144.0
func (c *RegionSecurityPoliciesPatchRuleCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesPatchRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSecurityPoliciesPatchRuleCall) Header ¶ added in v0.144.0
func (c *RegionSecurityPoliciesPatchRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSecurityPoliciesPatchRuleCall) Priority ¶ added in v0.144.0
func (c *RegionSecurityPoliciesPatchRuleCall) Priority(priority int64) *RegionSecurityPoliciesPatchRuleCall
Priority sets the optional parameter "priority": The priority of the rule to patch.
func (*RegionSecurityPoliciesPatchRuleCall) UpdateMask ¶ added in v0.146.0
func (c *RegionSecurityPoliciesPatchRuleCall) UpdateMask(updateMask string) *RegionSecurityPoliciesPatchRuleCall
UpdateMask sets the optional parameter "updateMask": Indicates fields to be cleared as part of this request.
func (*RegionSecurityPoliciesPatchRuleCall) ValidateOnly ¶ added in v0.144.0
func (c *RegionSecurityPoliciesPatchRuleCall) ValidateOnly(validateOnly bool) *RegionSecurityPoliciesPatchRuleCall
ValidateOnly sets the optional parameter "validateOnly": If true, the request will not be committed.
type RegionSecurityPoliciesRemoveRuleCall ¶ added in v0.144.0
type RegionSecurityPoliciesRemoveRuleCall struct {
// contains filtered or unexported fields
}
func (*RegionSecurityPoliciesRemoveRuleCall) Context ¶ added in v0.144.0
func (c *RegionSecurityPoliciesRemoveRuleCall) Context(ctx context.Context) *RegionSecurityPoliciesRemoveRuleCall
Context sets the context to be used in this call's Do method.
func (*RegionSecurityPoliciesRemoveRuleCall) Do ¶ added in v0.144.0
func (c *RegionSecurityPoliciesRemoveRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionSecurityPolicies.removeRule" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSecurityPoliciesRemoveRuleCall) Fields ¶ added in v0.144.0
func (c *RegionSecurityPoliciesRemoveRuleCall) Fields(s ...googleapi.Field) *RegionSecurityPoliciesRemoveRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSecurityPoliciesRemoveRuleCall) Header ¶ added in v0.144.0
func (c *RegionSecurityPoliciesRemoveRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSecurityPoliciesRemoveRuleCall) Priority ¶ added in v0.144.0
func (c *RegionSecurityPoliciesRemoveRuleCall) Priority(priority int64) *RegionSecurityPoliciesRemoveRuleCall
Priority sets the optional parameter "priority": The priority of the rule to remove from the security policy.
type RegionSecurityPoliciesService ¶ added in v0.74.0
type RegionSecurityPoliciesService struct {
// contains filtered or unexported fields
}
func NewRegionSecurityPoliciesService ¶ added in v0.74.0
func NewRegionSecurityPoliciesService(s *Service) *RegionSecurityPoliciesService
func (*RegionSecurityPoliciesService) AddRule ¶ added in v0.144.0
func (r *RegionSecurityPoliciesService) AddRule(project string, region string, securityPolicy string, securitypolicyrule *SecurityPolicyRule) *RegionSecurityPoliciesAddRuleCall
AddRule: Inserts a rule into a security policy.
- project: Project ID for this request. - region: Name of the region scoping this request. - securityPolicy: Name of the security policy to update.
func (*RegionSecurityPoliciesService) Delete ¶ added in v0.74.0
func (r *RegionSecurityPoliciesService) Delete(project string, region string, securityPolicy string) *RegionSecurityPoliciesDeleteCall
Delete: Deletes the specified policy.
- project: Project ID for this request. - region: Name of the region scoping this request. - securityPolicy: Name of the security policy to delete.
func (*RegionSecurityPoliciesService) Get ¶ added in v0.74.0
func (r *RegionSecurityPoliciesService) Get(project string, region string, securityPolicy string) *RegionSecurityPoliciesGetCall
Get: List all of the ordered rules present in a single specified policy.
- project: Project ID for this request. - region: Name of the region scoping this request. - securityPolicy: Name of the security policy to get.
func (*RegionSecurityPoliciesService) GetRule ¶ added in v0.144.0
func (r *RegionSecurityPoliciesService) GetRule(project string, region string, securityPolicy string) *RegionSecurityPoliciesGetRuleCall
GetRule: Gets a rule at the specified priority.
- project: Project ID for this request.
- region: Name of the region scoping this request.
- securityPolicy: Name of the security policy to which the queried rule belongs.
func (*RegionSecurityPoliciesService) Insert ¶ added in v0.74.0
func (r *RegionSecurityPoliciesService) Insert(project string, region string, securitypolicy *SecurityPolicy) *RegionSecurityPoliciesInsertCall
Insert: Creates a new policy in the specified project using the data included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionSecurityPoliciesService) List ¶ added in v0.74.0
func (r *RegionSecurityPoliciesService) List(project string, region string) *RegionSecurityPoliciesListCall
List: List all the policies that have been configured for the specified project and region.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionSecurityPoliciesService) Patch ¶ added in v0.74.0
func (r *RegionSecurityPoliciesService) Patch(project string, region string, securityPolicy string, securitypolicy *SecurityPolicy) *RegionSecurityPoliciesPatchCall
Patch: Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
- project: Project ID for this request. - region: Name of the region scoping this request. - securityPolicy: Name of the security policy to update.
func (*RegionSecurityPoliciesService) PatchRule ¶ added in v0.144.0
func (r *RegionSecurityPoliciesService) PatchRule(project string, region string, securityPolicy string, securitypolicyrule *SecurityPolicyRule) *RegionSecurityPoliciesPatchRuleCall
PatchRule: Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.
- project: Project ID for this request. - region: Name of the region scoping this request. - securityPolicy: Name of the security policy to update.
func (*RegionSecurityPoliciesService) RemoveRule ¶ added in v0.144.0
func (r *RegionSecurityPoliciesService) RemoveRule(project string, region string, securityPolicy string) *RegionSecurityPoliciesRemoveRuleCall
RemoveRule: Deletes a rule at the specified priority.
- project: Project ID for this request. - region: Name of the region scoping this request. - securityPolicy: Name of the security policy to update.
type RegionSetLabelsRequest ¶
type RegionSetLabelsRequest struct { // LabelFingerprint: The fingerprint of the previous set of labels for this // resource, used to detect conflicts. The fingerprint is initially generated // by Compute Engine and changes after every request to modify or update // labels. You must always provide an up-to-date fingerprint hash in order to // update or change labels. Make a get() request to the resource to get the // latest fingerprint. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: The labels to set for this resource. Labels map[string]string `json:"labels,omitempty"` // ForceSendFields is a list of field names (e.g. "LabelFingerprint") 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. "LabelFingerprint") 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:"-"` }
func (RegionSetLabelsRequest) MarshalJSON ¶
func (s RegionSetLabelsRequest) MarshalJSON() ([]byte, error)
type RegionSetPolicyRequest ¶
type RegionSetPolicyRequest struct { // Bindings: Flatten Policy to create a backwacd compatible wire-format. // Deprecated. Use 'policy' to specify bindings. Bindings []*Binding `json:"bindings,omitempty"` // Etag: Flatten Policy to create a backward compatible wire-format. // Deprecated. Use 'policy' to specify the etag. Etag string `json:"etag,omitempty"` // Policy: REQUIRED: The complete policy to be applied to the 'resource'. The // size of the policy is limited to a few 10s of KB. An empty policy is in // general a valid policy but certain services (like Projects) might reject // them. Policy *Policy `json:"policy,omitempty"` // ForceSendFields is a list of field names (e.g. "Bindings") 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. "Bindings") 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:"-"` }
func (RegionSetPolicyRequest) MarshalJSON ¶
func (s RegionSetPolicyRequest) MarshalJSON() ([]byte, error)
type RegionSslCertificatesDeleteCall ¶ added in v0.11.0
type RegionSslCertificatesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionSslCertificatesDeleteCall) Context ¶ added in v0.11.0
func (c *RegionSslCertificatesDeleteCall) Context(ctx context.Context) *RegionSslCertificatesDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionSslCertificatesDeleteCall) Do ¶ added in v0.11.0
func (c *RegionSslCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionSslCertificates.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSslCertificatesDeleteCall) Fields ¶ added in v0.11.0
func (c *RegionSslCertificatesDeleteCall) Fields(s ...googleapi.Field) *RegionSslCertificatesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSslCertificatesDeleteCall) Header ¶ added in v0.11.0
func (c *RegionSslCertificatesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSslCertificatesDeleteCall) RequestId ¶ added in v0.11.0
func (c *RegionSslCertificatesDeleteCall) RequestId(requestId string) *RegionSslCertificatesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionSslCertificatesGetCall ¶ added in v0.11.0
type RegionSslCertificatesGetCall struct {
// contains filtered or unexported fields
}
func (*RegionSslCertificatesGetCall) Context ¶ added in v0.11.0
func (c *RegionSslCertificatesGetCall) Context(ctx context.Context) *RegionSslCertificatesGetCall
Context sets the context to be used in this call's Do method.
func (*RegionSslCertificatesGetCall) Do ¶ added in v0.11.0
func (c *RegionSslCertificatesGetCall) Do(opts ...googleapi.CallOption) (*SslCertificate, error)
Do executes the "compute.regionSslCertificates.get" call. Any non-2xx status code is an error. Response headers are in either *SslCertificate.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSslCertificatesGetCall) Fields ¶ added in v0.11.0
func (c *RegionSslCertificatesGetCall) Fields(s ...googleapi.Field) *RegionSslCertificatesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSslCertificatesGetCall) Header ¶ added in v0.11.0
func (c *RegionSslCertificatesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSslCertificatesGetCall) IfNoneMatch ¶ added in v0.11.0
func (c *RegionSslCertificatesGetCall) IfNoneMatch(entityTag string) *RegionSslCertificatesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionSslCertificatesInsertCall ¶ added in v0.11.0
type RegionSslCertificatesInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionSslCertificatesInsertCall) Context ¶ added in v0.11.0
func (c *RegionSslCertificatesInsertCall) Context(ctx context.Context) *RegionSslCertificatesInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionSslCertificatesInsertCall) Do ¶ added in v0.11.0
func (c *RegionSslCertificatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionSslCertificates.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSslCertificatesInsertCall) Fields ¶ added in v0.11.0
func (c *RegionSslCertificatesInsertCall) Fields(s ...googleapi.Field) *RegionSslCertificatesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSslCertificatesInsertCall) Header ¶ added in v0.11.0
func (c *RegionSslCertificatesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSslCertificatesInsertCall) RequestId ¶ added in v0.11.0
func (c *RegionSslCertificatesInsertCall) RequestId(requestId string) *RegionSslCertificatesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionSslCertificatesListCall ¶ added in v0.11.0
type RegionSslCertificatesListCall struct {
// contains filtered or unexported fields
}
func (*RegionSslCertificatesListCall) Context ¶ added in v0.11.0
func (c *RegionSslCertificatesListCall) Context(ctx context.Context) *RegionSslCertificatesListCall
Context sets the context to be used in this call's Do method.
func (*RegionSslCertificatesListCall) Do ¶ added in v0.11.0
func (c *RegionSslCertificatesListCall) Do(opts ...googleapi.CallOption) (*SslCertificateList, error)
Do executes the "compute.regionSslCertificates.list" call. Any non-2xx status code is an error. Response headers are in either *SslCertificateList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSslCertificatesListCall) Fields ¶ added in v0.11.0
func (c *RegionSslCertificatesListCall) Fields(s ...googleapi.Field) *RegionSslCertificatesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSslCertificatesListCall) Filter ¶ added in v0.11.0
func (c *RegionSslCertificatesListCall) Filter(filter string) *RegionSslCertificatesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionSslCertificatesListCall) Header ¶ added in v0.11.0
func (c *RegionSslCertificatesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSslCertificatesListCall) IfNoneMatch ¶ added in v0.11.0
func (c *RegionSslCertificatesListCall) IfNoneMatch(entityTag string) *RegionSslCertificatesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionSslCertificatesListCall) MaxResults ¶ added in v0.11.0
func (c *RegionSslCertificatesListCall) MaxResults(maxResults int64) *RegionSslCertificatesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionSslCertificatesListCall) OrderBy ¶ added in v0.11.0
func (c *RegionSslCertificatesListCall) OrderBy(orderBy string) *RegionSslCertificatesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionSslCertificatesListCall) PageToken ¶ added in v0.11.0
func (c *RegionSslCertificatesListCall) PageToken(pageToken string) *RegionSslCertificatesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionSslCertificatesListCall) Pages ¶ added in v0.11.0
func (c *RegionSslCertificatesListCall) Pages(ctx context.Context, f func(*SslCertificateList) 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 (*RegionSslCertificatesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionSslCertificatesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionSslCertificatesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionSslCertificatesService ¶ added in v0.11.0
type RegionSslCertificatesService struct {
// contains filtered or unexported fields
}
func NewRegionSslCertificatesService ¶ added in v0.11.0
func NewRegionSslCertificatesService(s *Service) *RegionSslCertificatesService
func (*RegionSslCertificatesService) Delete ¶ added in v0.11.0
func (r *RegionSslCertificatesService) Delete(project string, region string, sslCertificate string) *RegionSslCertificatesDeleteCall
Delete: Deletes the specified SslCertificate resource in the region.
- project: Project ID for this request. - region: Name of the region scoping this request. - sslCertificate: Name of the SslCertificate resource to delete.
func (*RegionSslCertificatesService) Get ¶ added in v0.11.0
func (r *RegionSslCertificatesService) Get(project string, region string, sslCertificate string) *RegionSslCertificatesGetCall
Get: Returns the specified SslCertificate resource in the specified region. Get a list of available SSL certificates by making a list() request.
- project: Project ID for this request. - region: Name of the region scoping this request. - sslCertificate: Name of the SslCertificate resource to return.
func (*RegionSslCertificatesService) Insert ¶ added in v0.11.0
func (r *RegionSslCertificatesService) Insert(project string, region string, sslcertificate *SslCertificate) *RegionSslCertificatesInsertCall
Insert: Creates a SslCertificate resource in the specified project and region using the data included in the request
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionSslCertificatesService) List ¶ added in v0.11.0
func (r *RegionSslCertificatesService) List(project string, region string) *RegionSslCertificatesListCall
List: Retrieves the list of SslCertificate resources available to the specified project in the specified region.
- project: Project ID for this request. - region: Name of the region scoping this request.
type RegionSslPoliciesDeleteCall ¶ added in v0.93.0
type RegionSslPoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionSslPoliciesDeleteCall) Context ¶ added in v0.93.0
func (c *RegionSslPoliciesDeleteCall) Context(ctx context.Context) *RegionSslPoliciesDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionSslPoliciesDeleteCall) Do ¶ added in v0.93.0
func (c *RegionSslPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionSslPolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSslPoliciesDeleteCall) Fields ¶ added in v0.93.0
func (c *RegionSslPoliciesDeleteCall) Fields(s ...googleapi.Field) *RegionSslPoliciesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSslPoliciesDeleteCall) Header ¶ added in v0.93.0
func (c *RegionSslPoliciesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSslPoliciesDeleteCall) RequestId ¶ added in v0.93.0
func (c *RegionSslPoliciesDeleteCall) RequestId(requestId string) *RegionSslPoliciesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionSslPoliciesGetCall ¶ added in v0.93.0
type RegionSslPoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*RegionSslPoliciesGetCall) Context ¶ added in v0.93.0
func (c *RegionSslPoliciesGetCall) Context(ctx context.Context) *RegionSslPoliciesGetCall
Context sets the context to be used in this call's Do method.
func (*RegionSslPoliciesGetCall) Do ¶ added in v0.93.0
func (c *RegionSslPoliciesGetCall) Do(opts ...googleapi.CallOption) (*SslPolicy, error)
Do executes the "compute.regionSslPolicies.get" call. Any non-2xx status code is an error. Response headers are in either *SslPolicy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSslPoliciesGetCall) Fields ¶ added in v0.93.0
func (c *RegionSslPoliciesGetCall) Fields(s ...googleapi.Field) *RegionSslPoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSslPoliciesGetCall) Header ¶ added in v0.93.0
func (c *RegionSslPoliciesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSslPoliciesGetCall) IfNoneMatch ¶ added in v0.93.0
func (c *RegionSslPoliciesGetCall) IfNoneMatch(entityTag string) *RegionSslPoliciesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionSslPoliciesInsertCall ¶ added in v0.93.0
type RegionSslPoliciesInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionSslPoliciesInsertCall) Context ¶ added in v0.93.0
func (c *RegionSslPoliciesInsertCall) Context(ctx context.Context) *RegionSslPoliciesInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionSslPoliciesInsertCall) Do ¶ added in v0.93.0
func (c *RegionSslPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionSslPolicies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSslPoliciesInsertCall) Fields ¶ added in v0.93.0
func (c *RegionSslPoliciesInsertCall) Fields(s ...googleapi.Field) *RegionSslPoliciesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSslPoliciesInsertCall) Header ¶ added in v0.93.0
func (c *RegionSslPoliciesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSslPoliciesInsertCall) RequestId ¶ added in v0.93.0
func (c *RegionSslPoliciesInsertCall) RequestId(requestId string) *RegionSslPoliciesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionSslPoliciesListAvailableFeaturesCall ¶ added in v0.93.0
type RegionSslPoliciesListAvailableFeaturesCall struct {
// contains filtered or unexported fields
}
func (*RegionSslPoliciesListAvailableFeaturesCall) Context ¶ added in v0.93.0
func (c *RegionSslPoliciesListAvailableFeaturesCall) Context(ctx context.Context) *RegionSslPoliciesListAvailableFeaturesCall
Context sets the context to be used in this call's Do method.
func (*RegionSslPoliciesListAvailableFeaturesCall) Do ¶ added in v0.93.0
func (c *RegionSslPoliciesListAvailableFeaturesCall) Do(opts ...googleapi.CallOption) (*SslPoliciesListAvailableFeaturesResponse, error)
Do executes the "compute.regionSslPolicies.listAvailableFeatures" call. Any non-2xx status code is an error. Response headers are in either *SslPoliciesListAvailableFeaturesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSslPoliciesListAvailableFeaturesCall) Fields ¶ added in v0.93.0
func (c *RegionSslPoliciesListAvailableFeaturesCall) Fields(s ...googleapi.Field) *RegionSslPoliciesListAvailableFeaturesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSslPoliciesListAvailableFeaturesCall) Filter ¶ added in v0.93.0
func (c *RegionSslPoliciesListAvailableFeaturesCall) Filter(filter string) *RegionSslPoliciesListAvailableFeaturesCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionSslPoliciesListAvailableFeaturesCall) Header ¶ added in v0.93.0
func (c *RegionSslPoliciesListAvailableFeaturesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSslPoliciesListAvailableFeaturesCall) IfNoneMatch ¶ added in v0.93.0
func (c *RegionSslPoliciesListAvailableFeaturesCall) IfNoneMatch(entityTag string) *RegionSslPoliciesListAvailableFeaturesCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionSslPoliciesListAvailableFeaturesCall) MaxResults ¶ added in v0.93.0
func (c *RegionSslPoliciesListAvailableFeaturesCall) MaxResults(maxResults int64) *RegionSslPoliciesListAvailableFeaturesCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionSslPoliciesListAvailableFeaturesCall) OrderBy ¶ added in v0.93.0
func (c *RegionSslPoliciesListAvailableFeaturesCall) OrderBy(orderBy string) *RegionSslPoliciesListAvailableFeaturesCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionSslPoliciesListAvailableFeaturesCall) PageToken ¶ added in v0.93.0
func (c *RegionSslPoliciesListAvailableFeaturesCall) PageToken(pageToken string) *RegionSslPoliciesListAvailableFeaturesCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionSslPoliciesListAvailableFeaturesCall) ReturnPartialSuccess ¶ added in v0.93.0
func (c *RegionSslPoliciesListAvailableFeaturesCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionSslPoliciesListAvailableFeaturesCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionSslPoliciesListCall ¶ added in v0.93.0
type RegionSslPoliciesListCall struct {
// contains filtered or unexported fields
}
func (*RegionSslPoliciesListCall) Context ¶ added in v0.93.0
func (c *RegionSslPoliciesListCall) Context(ctx context.Context) *RegionSslPoliciesListCall
Context sets the context to be used in this call's Do method.
func (*RegionSslPoliciesListCall) Do ¶ added in v0.93.0
func (c *RegionSslPoliciesListCall) Do(opts ...googleapi.CallOption) (*SslPoliciesList, error)
Do executes the "compute.regionSslPolicies.list" call. Any non-2xx status code is an error. Response headers are in either *SslPoliciesList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSslPoliciesListCall) Fields ¶ added in v0.93.0
func (c *RegionSslPoliciesListCall) Fields(s ...googleapi.Field) *RegionSslPoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSslPoliciesListCall) Filter ¶ added in v0.93.0
func (c *RegionSslPoliciesListCall) Filter(filter string) *RegionSslPoliciesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionSslPoliciesListCall) Header ¶ added in v0.93.0
func (c *RegionSslPoliciesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSslPoliciesListCall) IfNoneMatch ¶ added in v0.93.0
func (c *RegionSslPoliciesListCall) IfNoneMatch(entityTag string) *RegionSslPoliciesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionSslPoliciesListCall) MaxResults ¶ added in v0.93.0
func (c *RegionSslPoliciesListCall) MaxResults(maxResults int64) *RegionSslPoliciesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionSslPoliciesListCall) OrderBy ¶ added in v0.93.0
func (c *RegionSslPoliciesListCall) OrderBy(orderBy string) *RegionSslPoliciesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionSslPoliciesListCall) PageToken ¶ added in v0.93.0
func (c *RegionSslPoliciesListCall) PageToken(pageToken string) *RegionSslPoliciesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionSslPoliciesListCall) Pages ¶ added in v0.93.0
func (c *RegionSslPoliciesListCall) Pages(ctx context.Context, f func(*SslPoliciesList) 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 (*RegionSslPoliciesListCall) ReturnPartialSuccess ¶ added in v0.93.0
func (c *RegionSslPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionSslPoliciesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionSslPoliciesPatchCall ¶ added in v0.93.0
type RegionSslPoliciesPatchCall struct {
// contains filtered or unexported fields
}
func (*RegionSslPoliciesPatchCall) Context ¶ added in v0.93.0
func (c *RegionSslPoliciesPatchCall) Context(ctx context.Context) *RegionSslPoliciesPatchCall
Context sets the context to be used in this call's Do method.
func (*RegionSslPoliciesPatchCall) Do ¶ added in v0.93.0
func (c *RegionSslPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionSslPolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionSslPoliciesPatchCall) Fields ¶ added in v0.93.0
func (c *RegionSslPoliciesPatchCall) Fields(s ...googleapi.Field) *RegionSslPoliciesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionSslPoliciesPatchCall) Header ¶ added in v0.93.0
func (c *RegionSslPoliciesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionSslPoliciesPatchCall) RequestId ¶ added in v0.93.0
func (c *RegionSslPoliciesPatchCall) RequestId(requestId string) *RegionSslPoliciesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionSslPoliciesService ¶ added in v0.93.0
type RegionSslPoliciesService struct {
// contains filtered or unexported fields
}
func NewRegionSslPoliciesService ¶ added in v0.93.0
func NewRegionSslPoliciesService(s *Service) *RegionSslPoliciesService
func (*RegionSslPoliciesService) Delete ¶ added in v0.93.0
func (r *RegionSslPoliciesService) Delete(project string, region string, sslPolicy string) *RegionSslPoliciesDeleteCall
Delete: Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
- project: Project ID for this request.
- region: Name of the region scoping this request.
- sslPolicy: Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035.
func (*RegionSslPoliciesService) Get ¶ added in v0.93.0
func (r *RegionSslPoliciesService) Get(project string, region string, sslPolicy string) *RegionSslPoliciesGetCall
Get: Lists all of the ordered rules present in a single specified policy.
- project: Project ID for this request.
- region: Name of the region scoping this request.
- sslPolicy: Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
func (*RegionSslPoliciesService) Insert ¶ added in v0.93.0
func (r *RegionSslPoliciesService) Insert(project string, region string, sslpolicy *SslPolicy) *RegionSslPoliciesInsertCall
Insert: Creates a new policy in the specified project and region using the data included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionSslPoliciesService) List ¶ added in v0.93.0
func (r *RegionSslPoliciesService) List(project string, region string) *RegionSslPoliciesListCall
List: Lists all the SSL policies that have been configured for the specified project and region.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionSslPoliciesService) ListAvailableFeatures ¶ added in v0.93.0
func (r *RegionSslPoliciesService) ListAvailableFeatures(project string, region string) *RegionSslPoliciesListAvailableFeaturesCall
ListAvailableFeatures: Lists all features that can be specified in the SSL policy when using custom profile.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionSslPoliciesService) Patch ¶ added in v0.93.0
func (r *RegionSslPoliciesService) Patch(project string, region string, sslPolicy string, sslpolicy *SslPolicy) *RegionSslPoliciesPatchCall
Patch: Patches the specified SSL policy with the data included in the request.
- project: Project ID for this request.
- region: Name of the region scoping this request.
- sslPolicy: Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
type RegionTargetHttpProxiesDeleteCall ¶ added in v0.11.0
type RegionTargetHttpProxiesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpProxiesDeleteCall) Context ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesDeleteCall) Context(ctx context.Context) *RegionTargetHttpProxiesDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetHttpProxiesDeleteCall) Do ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetHttpProxies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetHttpProxiesDeleteCall) Fields ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesDeleteCall) Fields(s ...googleapi.Field) *RegionTargetHttpProxiesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetHttpProxiesDeleteCall) Header ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetHttpProxiesDeleteCall) RequestId ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesDeleteCall) RequestId(requestId string) *RegionTargetHttpProxiesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionTargetHttpProxiesGetCall ¶ added in v0.11.0
type RegionTargetHttpProxiesGetCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpProxiesGetCall) Context ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesGetCall) Context(ctx context.Context) *RegionTargetHttpProxiesGetCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetHttpProxiesGetCall) Do ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetHttpProxy, error)
Do executes the "compute.regionTargetHttpProxies.get" call. Any non-2xx status code is an error. Response headers are in either *TargetHttpProxy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetHttpProxiesGetCall) Fields ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesGetCall) Fields(s ...googleapi.Field) *RegionTargetHttpProxiesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetHttpProxiesGetCall) Header ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetHttpProxiesGetCall) IfNoneMatch ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesGetCall) IfNoneMatch(entityTag string) *RegionTargetHttpProxiesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionTargetHttpProxiesInsertCall ¶ added in v0.11.0
type RegionTargetHttpProxiesInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpProxiesInsertCall) Context ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesInsertCall) Context(ctx context.Context) *RegionTargetHttpProxiesInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetHttpProxiesInsertCall) Do ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetHttpProxies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetHttpProxiesInsertCall) Fields ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesInsertCall) Fields(s ...googleapi.Field) *RegionTargetHttpProxiesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetHttpProxiesInsertCall) Header ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetHttpProxiesInsertCall) RequestId ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesInsertCall) RequestId(requestId string) *RegionTargetHttpProxiesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionTargetHttpProxiesListCall ¶ added in v0.11.0
type RegionTargetHttpProxiesListCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpProxiesListCall) Context ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesListCall) Context(ctx context.Context) *RegionTargetHttpProxiesListCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetHttpProxiesListCall) Do ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetHttpProxyList, error)
Do executes the "compute.regionTargetHttpProxies.list" call. Any non-2xx status code is an error. Response headers are in either *TargetHttpProxyList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetHttpProxiesListCall) Fields ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesListCall) Fields(s ...googleapi.Field) *RegionTargetHttpProxiesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetHttpProxiesListCall) Filter ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesListCall) Filter(filter string) *RegionTargetHttpProxiesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionTargetHttpProxiesListCall) Header ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetHttpProxiesListCall) IfNoneMatch ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesListCall) IfNoneMatch(entityTag string) *RegionTargetHttpProxiesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionTargetHttpProxiesListCall) MaxResults ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesListCall) MaxResults(maxResults int64) *RegionTargetHttpProxiesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionTargetHttpProxiesListCall) OrderBy ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesListCall) OrderBy(orderBy string) *RegionTargetHttpProxiesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionTargetHttpProxiesListCall) PageToken ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesListCall) PageToken(pageToken string) *RegionTargetHttpProxiesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionTargetHttpProxiesListCall) Pages ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesListCall) Pages(ctx context.Context, f func(*TargetHttpProxyList) 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 (*RegionTargetHttpProxiesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionTargetHttpProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionTargetHttpProxiesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionTargetHttpProxiesService ¶ added in v0.11.0
type RegionTargetHttpProxiesService struct {
// contains filtered or unexported fields
}
func NewRegionTargetHttpProxiesService ¶ added in v0.11.0
func NewRegionTargetHttpProxiesService(s *Service) *RegionTargetHttpProxiesService
func (*RegionTargetHttpProxiesService) Delete ¶ added in v0.11.0
func (r *RegionTargetHttpProxiesService) Delete(project string, region string, targetHttpProxy string) *RegionTargetHttpProxiesDeleteCall
Delete: Deletes the specified TargetHttpProxy resource.
- project: Project ID for this request. - region: Name of the region scoping this request. - targetHttpProxy: Name of the TargetHttpProxy resource to delete.
func (*RegionTargetHttpProxiesService) Get ¶ added in v0.11.0
func (r *RegionTargetHttpProxiesService) Get(project string, region string, targetHttpProxy string) *RegionTargetHttpProxiesGetCall
Get: Returns the specified TargetHttpProxy resource in the specified region.
- project: Project ID for this request. - region: Name of the region scoping this request. - targetHttpProxy: Name of the TargetHttpProxy resource to return.
func (*RegionTargetHttpProxiesService) Insert ¶ added in v0.11.0
func (r *RegionTargetHttpProxiesService) Insert(project string, region string, targethttpproxy *TargetHttpProxy) *RegionTargetHttpProxiesInsertCall
Insert: Creates a TargetHttpProxy resource in the specified project and region using the data included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionTargetHttpProxiesService) List ¶ added in v0.11.0
func (r *RegionTargetHttpProxiesService) List(project string, region string) *RegionTargetHttpProxiesListCall
List: Retrieves the list of TargetHttpProxy resources available to the specified project in the specified region.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionTargetHttpProxiesService) SetUrlMap ¶ added in v0.11.0
func (r *RegionTargetHttpProxiesService) SetUrlMap(project string, region string, targetHttpProxy string, urlmapreference *UrlMapReference) *RegionTargetHttpProxiesSetUrlMapCall
SetUrlMap: Changes the URL map for TargetHttpProxy.
- project: Project ID for this request. - region: Name of the region scoping this request. - targetHttpProxy: Name of the TargetHttpProxy to set a URL map for.
type RegionTargetHttpProxiesSetUrlMapCall ¶ added in v0.11.0
type RegionTargetHttpProxiesSetUrlMapCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpProxiesSetUrlMapCall) Context ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesSetUrlMapCall) Context(ctx context.Context) *RegionTargetHttpProxiesSetUrlMapCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetHttpProxiesSetUrlMapCall) Do ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesSetUrlMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetHttpProxies.setUrlMap" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetHttpProxiesSetUrlMapCall) Fields ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesSetUrlMapCall) Fields(s ...googleapi.Field) *RegionTargetHttpProxiesSetUrlMapCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetHttpProxiesSetUrlMapCall) Header ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesSetUrlMapCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetHttpProxiesSetUrlMapCall) RequestId ¶ added in v0.11.0
func (c *RegionTargetHttpProxiesSetUrlMapCall) RequestId(requestId string) *RegionTargetHttpProxiesSetUrlMapCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionTargetHttpsProxiesDeleteCall ¶ added in v0.11.0
type RegionTargetHttpsProxiesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpsProxiesDeleteCall) Context ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesDeleteCall) Context(ctx context.Context) *RegionTargetHttpsProxiesDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetHttpsProxiesDeleteCall) Do ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetHttpsProxies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetHttpsProxiesDeleteCall) Fields ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesDeleteCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetHttpsProxiesDeleteCall) Header ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetHttpsProxiesDeleteCall) RequestId ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesDeleteCall) RequestId(requestId string) *RegionTargetHttpsProxiesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionTargetHttpsProxiesGetCall ¶ added in v0.11.0
type RegionTargetHttpsProxiesGetCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpsProxiesGetCall) Context ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesGetCall) Context(ctx context.Context) *RegionTargetHttpsProxiesGetCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetHttpsProxiesGetCall) Do ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetHttpsProxy, error)
Do executes the "compute.regionTargetHttpsProxies.get" call. Any non-2xx status code is an error. Response headers are in either *TargetHttpsProxy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetHttpsProxiesGetCall) Fields ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesGetCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetHttpsProxiesGetCall) Header ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetHttpsProxiesGetCall) IfNoneMatch ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesGetCall) IfNoneMatch(entityTag string) *RegionTargetHttpsProxiesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionTargetHttpsProxiesInsertCall ¶ added in v0.11.0
type RegionTargetHttpsProxiesInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpsProxiesInsertCall) Context ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesInsertCall) Context(ctx context.Context) *RegionTargetHttpsProxiesInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetHttpsProxiesInsertCall) Do ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetHttpsProxies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetHttpsProxiesInsertCall) Fields ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesInsertCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetHttpsProxiesInsertCall) Header ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetHttpsProxiesInsertCall) RequestId ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesInsertCall) RequestId(requestId string) *RegionTargetHttpsProxiesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionTargetHttpsProxiesListCall ¶ added in v0.11.0
type RegionTargetHttpsProxiesListCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpsProxiesListCall) Context ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesListCall) Context(ctx context.Context) *RegionTargetHttpsProxiesListCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetHttpsProxiesListCall) Do ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetHttpsProxyList, error)
Do executes the "compute.regionTargetHttpsProxies.list" call. Any non-2xx status code is an error. Response headers are in either *TargetHttpsProxyList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetHttpsProxiesListCall) Fields ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesListCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetHttpsProxiesListCall) Filter ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesListCall) Filter(filter string) *RegionTargetHttpsProxiesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionTargetHttpsProxiesListCall) Header ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetHttpsProxiesListCall) IfNoneMatch ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesListCall) IfNoneMatch(entityTag string) *RegionTargetHttpsProxiesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionTargetHttpsProxiesListCall) MaxResults ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesListCall) MaxResults(maxResults int64) *RegionTargetHttpsProxiesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionTargetHttpsProxiesListCall) OrderBy ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesListCall) OrderBy(orderBy string) *RegionTargetHttpsProxiesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionTargetHttpsProxiesListCall) PageToken ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesListCall) PageToken(pageToken string) *RegionTargetHttpsProxiesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionTargetHttpsProxiesListCall) Pages ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesListCall) Pages(ctx context.Context, f func(*TargetHttpsProxyList) 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 (*RegionTargetHttpsProxiesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionTargetHttpsProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionTargetHttpsProxiesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionTargetHttpsProxiesPatchCall ¶ added in v0.72.0
type RegionTargetHttpsProxiesPatchCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpsProxiesPatchCall) Context ¶ added in v0.72.0
func (c *RegionTargetHttpsProxiesPatchCall) Context(ctx context.Context) *RegionTargetHttpsProxiesPatchCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetHttpsProxiesPatchCall) Do ¶ added in v0.72.0
func (c *RegionTargetHttpsProxiesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetHttpsProxies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetHttpsProxiesPatchCall) Fields ¶ added in v0.72.0
func (c *RegionTargetHttpsProxiesPatchCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetHttpsProxiesPatchCall) Header ¶ added in v0.72.0
func (c *RegionTargetHttpsProxiesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetHttpsProxiesPatchCall) RequestId ¶ added in v0.72.0
func (c *RegionTargetHttpsProxiesPatchCall) RequestId(requestId string) *RegionTargetHttpsProxiesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionTargetHttpsProxiesService ¶ added in v0.11.0
type RegionTargetHttpsProxiesService struct {
// contains filtered or unexported fields
}
func NewRegionTargetHttpsProxiesService ¶ added in v0.11.0
func NewRegionTargetHttpsProxiesService(s *Service) *RegionTargetHttpsProxiesService
func (*RegionTargetHttpsProxiesService) Delete ¶ added in v0.11.0
func (r *RegionTargetHttpsProxiesService) Delete(project string, region string, targetHttpsProxy string) *RegionTargetHttpsProxiesDeleteCall
Delete: Deletes the specified TargetHttpsProxy resource.
- project: Project ID for this request. - region: Name of the region scoping this request. - targetHttpsProxy: Name of the TargetHttpsProxy resource to delete.
func (*RegionTargetHttpsProxiesService) Get ¶ added in v0.11.0
func (r *RegionTargetHttpsProxiesService) Get(project string, region string, targetHttpsProxy string) *RegionTargetHttpsProxiesGetCall
Get: Returns the specified TargetHttpsProxy resource in the specified region.
- project: Project ID for this request. - region: Name of the region scoping this request. - targetHttpsProxy: Name of the TargetHttpsProxy resource to return.
func (*RegionTargetHttpsProxiesService) Insert ¶ added in v0.11.0
func (r *RegionTargetHttpsProxiesService) Insert(project string, region string, targethttpsproxy *TargetHttpsProxy) *RegionTargetHttpsProxiesInsertCall
Insert: Creates a TargetHttpsProxy resource in the specified project and region using the data included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionTargetHttpsProxiesService) List ¶ added in v0.11.0
func (r *RegionTargetHttpsProxiesService) List(project string, region string) *RegionTargetHttpsProxiesListCall
List: Retrieves the list of TargetHttpsProxy resources available to the specified project in the specified region.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionTargetHttpsProxiesService) Patch ¶ added in v0.72.0
func (r *RegionTargetHttpsProxiesService) Patch(project string, region string, targetHttpsProxy string, targethttpsproxy *TargetHttpsProxy) *RegionTargetHttpsProxiesPatchCall
Patch: Patches the specified regional TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
- project: Project ID for this request. - region: Name of the region for this request. - targetHttpsProxy: Name of the TargetHttpsProxy resource to patch.
func (*RegionTargetHttpsProxiesService) SetSslCertificates ¶ added in v0.11.0
func (r *RegionTargetHttpsProxiesService) SetSslCertificates(project string, region string, targetHttpsProxy string, regiontargethttpsproxiessetsslcertificatesrequest *RegionTargetHttpsProxiesSetSslCertificatesRequest) *RegionTargetHttpsProxiesSetSslCertificatesCall
SetSslCertificates: Replaces SslCertificates for TargetHttpsProxy.
- project: Project ID for this request.
- region: Name of the region scoping this request.
- targetHttpsProxy: Name of the TargetHttpsProxy resource to set an SslCertificates resource for.
func (*RegionTargetHttpsProxiesService) SetUrlMap ¶ added in v0.11.0
func (r *RegionTargetHttpsProxiesService) SetUrlMap(project string, region string, targetHttpsProxy string, urlmapreference *UrlMapReference) *RegionTargetHttpsProxiesSetUrlMapCall
SetUrlMap: Changes the URL map for TargetHttpsProxy.
- project: Project ID for this request. - region: Name of the region scoping this request. - targetHttpsProxy: Name of the TargetHttpsProxy to set a URL map for.
type RegionTargetHttpsProxiesSetSslCertificatesCall ¶ added in v0.11.0
type RegionTargetHttpsProxiesSetSslCertificatesCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpsProxiesSetSslCertificatesCall) Context ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) Context(ctx context.Context) *RegionTargetHttpsProxiesSetSslCertificatesCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetHttpsProxiesSetSslCertificatesCall) Do ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetHttpsProxies.setSslCertificates" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetHttpsProxiesSetSslCertificatesCall) Fields ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesSetSslCertificatesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetHttpsProxiesSetSslCertificatesCall) Header ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetHttpsProxiesSetSslCertificatesCall) RequestId ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) RequestId(requestId string) *RegionTargetHttpsProxiesSetSslCertificatesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionTargetHttpsProxiesSetSslCertificatesRequest ¶ added in v0.11.0
type RegionTargetHttpsProxiesSetSslCertificatesRequest struct { // SslCertificates: New set of SslCertificate resources to associate with this // TargetHttpsProxy resource. SslCertificates []string `json:"sslCertificates,omitempty"` // ForceSendFields is a list of field names (e.g. "SslCertificates") 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. "SslCertificates") 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:"-"` }
func (RegionTargetHttpsProxiesSetSslCertificatesRequest) MarshalJSON ¶ added in v0.11.0
func (s RegionTargetHttpsProxiesSetSslCertificatesRequest) MarshalJSON() ([]byte, error)
type RegionTargetHttpsProxiesSetUrlMapCall ¶ added in v0.11.0
type RegionTargetHttpsProxiesSetUrlMapCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpsProxiesSetUrlMapCall) Context ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesSetUrlMapCall) Context(ctx context.Context) *RegionTargetHttpsProxiesSetUrlMapCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetHttpsProxiesSetUrlMapCall) Do ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesSetUrlMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetHttpsProxies.setUrlMap" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetHttpsProxiesSetUrlMapCall) Fields ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesSetUrlMapCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesSetUrlMapCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetHttpsProxiesSetUrlMapCall) Header ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesSetUrlMapCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetHttpsProxiesSetUrlMapCall) RequestId ¶ added in v0.11.0
func (c *RegionTargetHttpsProxiesSetUrlMapCall) RequestId(requestId string) *RegionTargetHttpsProxiesSetUrlMapCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionTargetTcpProxiesDeleteCall ¶ added in v0.96.0
type RegionTargetTcpProxiesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetTcpProxiesDeleteCall) Context ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesDeleteCall) Context(ctx context.Context) *RegionTargetTcpProxiesDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetTcpProxiesDeleteCall) Do ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetTcpProxies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetTcpProxiesDeleteCall) Fields ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesDeleteCall) Fields(s ...googleapi.Field) *RegionTargetTcpProxiesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetTcpProxiesDeleteCall) Header ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetTcpProxiesDeleteCall) RequestId ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesDeleteCall) RequestId(requestId string) *RegionTargetTcpProxiesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionTargetTcpProxiesGetCall ¶ added in v0.96.0
type RegionTargetTcpProxiesGetCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetTcpProxiesGetCall) Context ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesGetCall) Context(ctx context.Context) *RegionTargetTcpProxiesGetCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetTcpProxiesGetCall) Do ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetTcpProxy, error)
Do executes the "compute.regionTargetTcpProxies.get" call. Any non-2xx status code is an error. Response headers are in either *TargetTcpProxy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetTcpProxiesGetCall) Fields ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesGetCall) Fields(s ...googleapi.Field) *RegionTargetTcpProxiesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetTcpProxiesGetCall) Header ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetTcpProxiesGetCall) IfNoneMatch ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesGetCall) IfNoneMatch(entityTag string) *RegionTargetTcpProxiesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionTargetTcpProxiesInsertCall ¶ added in v0.96.0
type RegionTargetTcpProxiesInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetTcpProxiesInsertCall) Context ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesInsertCall) Context(ctx context.Context) *RegionTargetTcpProxiesInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetTcpProxiesInsertCall) Do ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetTcpProxies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetTcpProxiesInsertCall) Fields ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesInsertCall) Fields(s ...googleapi.Field) *RegionTargetTcpProxiesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetTcpProxiesInsertCall) Header ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetTcpProxiesInsertCall) RequestId ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesInsertCall) RequestId(requestId string) *RegionTargetTcpProxiesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RegionTargetTcpProxiesListCall ¶ added in v0.96.0
type RegionTargetTcpProxiesListCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetTcpProxiesListCall) Context ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesListCall) Context(ctx context.Context) *RegionTargetTcpProxiesListCall
Context sets the context to be used in this call's Do method.
func (*RegionTargetTcpProxiesListCall) Do ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetTcpProxyList, error)
Do executes the "compute.regionTargetTcpProxies.list" call. Any non-2xx status code is an error. Response headers are in either *TargetTcpProxyList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionTargetTcpProxiesListCall) Fields ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesListCall) Fields(s ...googleapi.Field) *RegionTargetTcpProxiesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionTargetTcpProxiesListCall) Filter ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesListCall) Filter(filter string) *RegionTargetTcpProxiesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionTargetTcpProxiesListCall) Header ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionTargetTcpProxiesListCall) IfNoneMatch ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesListCall) IfNoneMatch(entityTag string) *RegionTargetTcpProxiesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionTargetTcpProxiesListCall) MaxResults ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesListCall) MaxResults(maxResults int64) *RegionTargetTcpProxiesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionTargetTcpProxiesListCall) OrderBy ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesListCall) OrderBy(orderBy string) *RegionTargetTcpProxiesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionTargetTcpProxiesListCall) PageToken ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesListCall) PageToken(pageToken string) *RegionTargetTcpProxiesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionTargetTcpProxiesListCall) Pages ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesListCall) Pages(ctx context.Context, f func(*TargetTcpProxyList) 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 (*RegionTargetTcpProxiesListCall) ReturnPartialSuccess ¶ added in v0.96.0
func (c *RegionTargetTcpProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionTargetTcpProxiesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionTargetTcpProxiesService ¶ added in v0.96.0
type RegionTargetTcpProxiesService struct {
// contains filtered or unexported fields
}
func NewRegionTargetTcpProxiesService ¶ added in v0.96.0
func NewRegionTargetTcpProxiesService(s *Service) *RegionTargetTcpProxiesService
func (*RegionTargetTcpProxiesService) Delete ¶ added in v0.96.0
func (r *RegionTargetTcpProxiesService) Delete(project string, region string, targetTcpProxy string) *RegionTargetTcpProxiesDeleteCall
Delete: Deletes the specified TargetTcpProxy resource.
- project: Project ID for this request. - region: Name of the region scoping this request. - targetTcpProxy: Name of the TargetTcpProxy resource to delete.
func (*RegionTargetTcpProxiesService) Get ¶ added in v0.96.0
func (r *RegionTargetTcpProxiesService) Get(project string, region string, targetTcpProxy string) *RegionTargetTcpProxiesGetCall
Get: Returns the specified TargetTcpProxy resource.
- project: Project ID for this request. - region: Name of the region scoping this request. - targetTcpProxy: Name of the TargetTcpProxy resource to return.
func (*RegionTargetTcpProxiesService) Insert ¶ added in v0.96.0
func (r *RegionTargetTcpProxiesService) Insert(project string, region string, targettcpproxy *TargetTcpProxy) *RegionTargetTcpProxiesInsertCall
Insert: Creates a TargetTcpProxy resource in the specified project and region using the data included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionTargetTcpProxiesService) List ¶ added in v0.96.0
func (r *RegionTargetTcpProxiesService) List(project string, region string) *RegionTargetTcpProxiesListCall
List: Retrieves a list of TargetTcpProxy resources available to the specified project in a given region.
- project: Project ID for this request. - region: Name of the region scoping this request.
type RegionUrlMapsDeleteCall ¶ added in v0.11.0
type RegionUrlMapsDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsDeleteCall) Context ¶ added in v0.11.0
func (c *RegionUrlMapsDeleteCall) Context(ctx context.Context) *RegionUrlMapsDeleteCall
Context sets the context to be used in this call's Do method.
func (*RegionUrlMapsDeleteCall) Do ¶ added in v0.11.0
func (c *RegionUrlMapsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionUrlMaps.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionUrlMapsDeleteCall) Fields ¶ added in v0.11.0
func (c *RegionUrlMapsDeleteCall) Fields(s ...googleapi.Field) *RegionUrlMapsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionUrlMapsDeleteCall) Header ¶ added in v0.11.0
func (c *RegionUrlMapsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionUrlMapsDeleteCall) RequestId ¶ added in v0.11.0
func (c *RegionUrlMapsDeleteCall) RequestId(requestId string) *RegionUrlMapsDeleteCall
RequestId sets the optional parameter "requestId": begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
type RegionUrlMapsGetCall ¶ added in v0.11.0
type RegionUrlMapsGetCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsGetCall) Context ¶ added in v0.11.0
func (c *RegionUrlMapsGetCall) Context(ctx context.Context) *RegionUrlMapsGetCall
Context sets the context to be used in this call's Do method.
func (*RegionUrlMapsGetCall) Do ¶ added in v0.11.0
func (c *RegionUrlMapsGetCall) Do(opts ...googleapi.CallOption) (*UrlMap, error)
Do executes the "compute.regionUrlMaps.get" call. Any non-2xx status code is an error. Response headers are in either *UrlMap.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionUrlMapsGetCall) Fields ¶ added in v0.11.0
func (c *RegionUrlMapsGetCall) Fields(s ...googleapi.Field) *RegionUrlMapsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionUrlMapsGetCall) Header ¶ added in v0.11.0
func (c *RegionUrlMapsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionUrlMapsGetCall) IfNoneMatch ¶ added in v0.11.0
func (c *RegionUrlMapsGetCall) IfNoneMatch(entityTag string) *RegionUrlMapsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionUrlMapsInsertCall ¶ added in v0.11.0
type RegionUrlMapsInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsInsertCall) Context ¶ added in v0.11.0
func (c *RegionUrlMapsInsertCall) Context(ctx context.Context) *RegionUrlMapsInsertCall
Context sets the context to be used in this call's Do method.
func (*RegionUrlMapsInsertCall) Do ¶ added in v0.11.0
func (c *RegionUrlMapsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionUrlMaps.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionUrlMapsInsertCall) Fields ¶ added in v0.11.0
func (c *RegionUrlMapsInsertCall) Fields(s ...googleapi.Field) *RegionUrlMapsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionUrlMapsInsertCall) Header ¶ added in v0.11.0
func (c *RegionUrlMapsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionUrlMapsInsertCall) RequestId ¶ added in v0.11.0
func (c *RegionUrlMapsInsertCall) RequestId(requestId string) *RegionUrlMapsInsertCall
RequestId sets the optional parameter "requestId": begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
type RegionUrlMapsListCall ¶ added in v0.11.0
type RegionUrlMapsListCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsListCall) Context ¶ added in v0.11.0
func (c *RegionUrlMapsListCall) Context(ctx context.Context) *RegionUrlMapsListCall
Context sets the context to be used in this call's Do method.
func (*RegionUrlMapsListCall) Do ¶ added in v0.11.0
func (c *RegionUrlMapsListCall) Do(opts ...googleapi.CallOption) (*UrlMapList, error)
Do executes the "compute.regionUrlMaps.list" call. Any non-2xx status code is an error. Response headers are in either *UrlMapList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionUrlMapsListCall) Fields ¶ added in v0.11.0
func (c *RegionUrlMapsListCall) Fields(s ...googleapi.Field) *RegionUrlMapsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionUrlMapsListCall) Filter ¶ added in v0.11.0
func (c *RegionUrlMapsListCall) Filter(filter string) *RegionUrlMapsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionUrlMapsListCall) Header ¶ added in v0.11.0
func (c *RegionUrlMapsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionUrlMapsListCall) IfNoneMatch ¶ added in v0.11.0
func (c *RegionUrlMapsListCall) IfNoneMatch(entityTag string) *RegionUrlMapsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionUrlMapsListCall) MaxResults ¶ added in v0.11.0
func (c *RegionUrlMapsListCall) MaxResults(maxResults int64) *RegionUrlMapsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionUrlMapsListCall) OrderBy ¶ added in v0.11.0
func (c *RegionUrlMapsListCall) OrderBy(orderBy string) *RegionUrlMapsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionUrlMapsListCall) PageToken ¶ added in v0.11.0
func (c *RegionUrlMapsListCall) PageToken(pageToken string) *RegionUrlMapsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionUrlMapsListCall) Pages ¶ added in v0.11.0
func (c *RegionUrlMapsListCall) Pages(ctx context.Context, f func(*UrlMapList) 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 (*RegionUrlMapsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionUrlMapsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionUrlMapsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionUrlMapsPatchCall ¶ added in v0.11.0
type RegionUrlMapsPatchCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsPatchCall) Context ¶ added in v0.11.0
func (c *RegionUrlMapsPatchCall) Context(ctx context.Context) *RegionUrlMapsPatchCall
Context sets the context to be used in this call's Do method.
func (*RegionUrlMapsPatchCall) Do ¶ added in v0.11.0
func (c *RegionUrlMapsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionUrlMaps.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionUrlMapsPatchCall) Fields ¶ added in v0.11.0
func (c *RegionUrlMapsPatchCall) Fields(s ...googleapi.Field) *RegionUrlMapsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionUrlMapsPatchCall) Header ¶ added in v0.11.0
func (c *RegionUrlMapsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionUrlMapsPatchCall) RequestId ¶ added in v0.11.0
func (c *RegionUrlMapsPatchCall) RequestId(requestId string) *RegionUrlMapsPatchCall
RequestId sets the optional parameter "requestId": begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
type RegionUrlMapsService ¶ added in v0.11.0
type RegionUrlMapsService struct {
// contains filtered or unexported fields
}
func NewRegionUrlMapsService ¶ added in v0.11.0
func NewRegionUrlMapsService(s *Service) *RegionUrlMapsService
func (*RegionUrlMapsService) Delete ¶ added in v0.11.0
func (r *RegionUrlMapsService) Delete(project string, region string, urlMap string) *RegionUrlMapsDeleteCall
Delete: Deletes the specified UrlMap resource.
- project: Project ID for this request. - region: Name of the region scoping this request. - urlMap: Name of the UrlMap resource to delete.
func (*RegionUrlMapsService) Get ¶ added in v0.11.0
func (r *RegionUrlMapsService) Get(project string, region string, urlMap string) *RegionUrlMapsGetCall
Get: Returns the specified UrlMap resource.
- project: Project ID for this request. - region: Name of the region scoping this request. - urlMap: Name of the UrlMap resource to return.
func (*RegionUrlMapsService) Insert ¶ added in v0.11.0
func (r *RegionUrlMapsService) Insert(project string, region string, urlmap *UrlMap) *RegionUrlMapsInsertCall
Insert: Creates a UrlMap resource in the specified project using the data included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionUrlMapsService) List ¶ added in v0.11.0
func (r *RegionUrlMapsService) List(project string, region string) *RegionUrlMapsListCall
List: Retrieves the list of UrlMap resources available to the specified project in the specified region.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*RegionUrlMapsService) Patch ¶ added in v0.11.0
func (r *RegionUrlMapsService) Patch(project string, region string, urlMap string, urlmap *UrlMap) *RegionUrlMapsPatchCall
Patch: Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
- project: Project ID for this request. - region: Name of the region scoping this request. - urlMap: Name of the UrlMap resource to patch.
func (*RegionUrlMapsService) Update ¶ added in v0.11.0
func (r *RegionUrlMapsService) Update(project string, region string, urlMap string, urlmap *UrlMap) *RegionUrlMapsUpdateCall
Update: Updates the specified UrlMap resource with the data included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request. - urlMap: Name of the UrlMap resource to update.
func (*RegionUrlMapsService) Validate ¶ added in v0.11.0
func (r *RegionUrlMapsService) Validate(project string, region string, urlMap string, regionurlmapsvalidaterequest *RegionUrlMapsValidateRequest) *RegionUrlMapsValidateCall
Validate: Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.
- project: Project ID for this request. - region: Name of the region scoping this request. - urlMap: Name of the UrlMap resource to be validated as.
type RegionUrlMapsUpdateCall ¶ added in v0.11.0
type RegionUrlMapsUpdateCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsUpdateCall) Context ¶ added in v0.11.0
func (c *RegionUrlMapsUpdateCall) Context(ctx context.Context) *RegionUrlMapsUpdateCall
Context sets the context to be used in this call's Do method.
func (*RegionUrlMapsUpdateCall) Do ¶ added in v0.11.0
func (c *RegionUrlMapsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionUrlMaps.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionUrlMapsUpdateCall) Fields ¶ added in v0.11.0
func (c *RegionUrlMapsUpdateCall) Fields(s ...googleapi.Field) *RegionUrlMapsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionUrlMapsUpdateCall) Header ¶ added in v0.11.0
func (c *RegionUrlMapsUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionUrlMapsUpdateCall) RequestId ¶ added in v0.11.0
func (c *RegionUrlMapsUpdateCall) RequestId(requestId string) *RegionUrlMapsUpdateCall
RequestId sets the optional parameter "requestId": begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
type RegionUrlMapsValidateCall ¶ added in v0.11.0
type RegionUrlMapsValidateCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsValidateCall) Context ¶ added in v0.11.0
func (c *RegionUrlMapsValidateCall) Context(ctx context.Context) *RegionUrlMapsValidateCall
Context sets the context to be used in this call's Do method.
func (*RegionUrlMapsValidateCall) Do ¶ added in v0.11.0
func (c *RegionUrlMapsValidateCall) Do(opts ...googleapi.CallOption) (*UrlMapsValidateResponse, error)
Do executes the "compute.regionUrlMaps.validate" call. Any non-2xx status code is an error. Response headers are in either *UrlMapsValidateResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionUrlMapsValidateCall) Fields ¶ added in v0.11.0
func (c *RegionUrlMapsValidateCall) Fields(s ...googleapi.Field) *RegionUrlMapsValidateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionUrlMapsValidateCall) Header ¶ added in v0.11.0
func (c *RegionUrlMapsValidateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type RegionUrlMapsValidateRequest ¶ added in v0.11.0
type RegionUrlMapsValidateRequest struct { // Resource: Content of the UrlMap to be validated. Resource *UrlMap `json:"resource,omitempty"` // ForceSendFields is a list of field names (e.g. "Resource") 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. "Resource") 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:"-"` }
func (RegionUrlMapsValidateRequest) MarshalJSON ¶ added in v0.11.0
func (s RegionUrlMapsValidateRequest) MarshalJSON() ([]byte, error)
type RegionZonesListCall ¶ added in v0.154.0
type RegionZonesListCall struct {
// contains filtered or unexported fields
}
func (*RegionZonesListCall) Context ¶ added in v0.154.0
func (c *RegionZonesListCall) Context(ctx context.Context) *RegionZonesListCall
Context sets the context to be used in this call's Do method.
func (*RegionZonesListCall) Do ¶ added in v0.154.0
func (c *RegionZonesListCall) Do(opts ...googleapi.CallOption) (*ZoneList, error)
Do executes the "compute.regionZones.list" call. Any non-2xx status code is an error. Response headers are in either *ZoneList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionZonesListCall) Fields ¶ added in v0.154.0
func (c *RegionZonesListCall) Fields(s ...googleapi.Field) *RegionZonesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionZonesListCall) Filter ¶ added in v0.154.0
func (c *RegionZonesListCall) Filter(filter string) *RegionZonesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionZonesListCall) Header ¶ added in v0.154.0
func (c *RegionZonesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionZonesListCall) IfNoneMatch ¶ added in v0.154.0
func (c *RegionZonesListCall) IfNoneMatch(entityTag string) *RegionZonesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionZonesListCall) MaxResults ¶ added in v0.154.0
func (c *RegionZonesListCall) MaxResults(maxResults int64) *RegionZonesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionZonesListCall) OrderBy ¶ added in v0.154.0
func (c *RegionZonesListCall) OrderBy(orderBy string) *RegionZonesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionZonesListCall) PageToken ¶ added in v0.154.0
func (c *RegionZonesListCall) PageToken(pageToken string) *RegionZonesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionZonesListCall) Pages ¶ added in v0.154.0
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 (*RegionZonesListCall) ReturnPartialSuccess ¶ added in v0.154.0
func (c *RegionZonesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionZonesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionZonesService ¶ added in v0.154.0
type RegionZonesService struct {
// contains filtered or unexported fields
}
func NewRegionZonesService ¶ added in v0.154.0
func NewRegionZonesService(s *Service) *RegionZonesService
func (*RegionZonesService) List ¶ added in v0.154.0
func (r *RegionZonesService) List(project string, region string) *RegionZonesListCall
List: Retrieves the list of Zone resources under the specific region available to the specified project.
- project: Project ID for this request. - region: Region for this request.
type RegionsGetCall ¶
type RegionsGetCall struct {
// contains filtered or unexported fields
}
func (*RegionsGetCall) Context ¶
func (c *RegionsGetCall) Context(ctx context.Context) *RegionsGetCall
Context sets the context to be used in this call's Do method.
func (*RegionsGetCall) Do ¶
func (c *RegionsGetCall) Do(opts ...googleapi.CallOption) (*Region, error)
Do executes the "compute.regions.get" call. Any non-2xx status code is an error. Response headers are in either *Region.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionsGetCall) Fields ¶
func (c *RegionsGetCall) Fields(s ...googleapi.Field) *RegionsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionsGetCall) Header ¶
func (c *RegionsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionsGetCall) IfNoneMatch ¶
func (c *RegionsGetCall) IfNoneMatch(entityTag string) *RegionsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RegionsListCall ¶
type RegionsListCall struct {
// contains filtered or unexported fields
}
func (*RegionsListCall) Context ¶
func (c *RegionsListCall) Context(ctx context.Context) *RegionsListCall
Context sets the context to be used in this call's Do method.
func (*RegionsListCall) Do ¶
func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionList, error)
Do executes the "compute.regions.list" call. Any non-2xx status code is an error. Response headers are in either *RegionList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionsListCall) Fields ¶
func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RegionsListCall) Filter ¶
func (c *RegionsListCall) Filter(filter string) *RegionsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RegionsListCall) Header ¶
func (c *RegionsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RegionsListCall) IfNoneMatch ¶
func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RegionsListCall) MaxResults ¶
func (c *RegionsListCall) MaxResults(maxResults int64) *RegionsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RegionsListCall) OrderBy ¶
func (c *RegionsListCall) OrderBy(orderBy string) *RegionsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RegionsListCall) PageToken ¶
func (c *RegionsListCall) PageToken(pageToken string) *RegionsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RegionsListCall) Pages ¶
func (c *RegionsListCall) Pages(ctx context.Context, f func(*RegionList) 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 (*RegionsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RegionsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RegionsService ¶
type RegionsService struct {
// contains filtered or unexported fields
}
func NewRegionsService ¶
func NewRegionsService(s *Service) *RegionsService
func (*RegionsService) Get ¶
func (r *RegionsService) Get(project string, region string) *RegionsGetCall
Get: Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method.
- project: Project ID for this request. - region: Name of the region resource to return.
func (*RegionsService) List ¶
func (r *RegionsService) List(project string) *RegionsListCall
List: Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method.
- project: Project ID for this request.
type RequestMirrorPolicy ¶ added in v0.11.0
type RequestMirrorPolicy struct { // BackendService: The full or partial URL to the BackendService resource being // mirrored to. The backend service configured for a mirroring policy must // reference backends that are of the same type as the original backend service // matched in the URL map. Serverless NEG backends are not currently supported // as a mirrored backend service. BackendService string `json:"backendService,omitempty"` // ForceSendFields is a list of field names (e.g. "BackendService") 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. "BackendService") 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:"-"` }
RequestMirrorPolicy: A policy that specifies how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer doesn't wait for responses from the shadow service. Before sending traffic to the shadow service, the host or authority header is suffixed with -shadow.
func (RequestMirrorPolicy) MarshalJSON ¶ added in v0.11.0
func (s RequestMirrorPolicy) MarshalJSON() ([]byte, error)
type Reservation ¶ added in v0.7.0
type Reservation struct { // AggregateReservation: Reservation for aggregated resources, providing shape // flexibility. AggregateReservation *AllocationAggregateReservation `json:"aggregateReservation,omitempty"` // Commitment: [Output Only] Full or partial URL to a parent commitment. This // field displays for reservations that are tied to a commitment. Commitment string `json:"commitment,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#reservations for // reservations. Kind string `json:"kind,omitempty"` // Name: The name of the resource, provided by the client when initially // creating the resource. The resource name must be 1-63 characters long, and // comply with RFC1035. Specifically, the name must be 1-63 characters long and // match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the // first character must be a lowercase letter, and all following characters // must be a dash, lowercase letter, or digit, except the last character, which // cannot be a dash. Name string `json:"name,omitempty"` // ResourcePolicies: Resource policies to be added to this reservation. The key // is defined by user, and the value is resource policy url. This is to define // placement policy with reservation. ResourcePolicies map[string]string `json:"resourcePolicies,omitempty"` // ResourceStatus: [Output Only] Status information for Reservation resource. ResourceStatus *AllocationResourceStatus `json:"resourceStatus,omitempty"` // SatisfiesPzs: [Output Only] Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SelfLink: [Output Only] Server-defined fully-qualified URL for this // resource. SelfLink string `json:"selfLink,omitempty"` // property is optional. For more information about the syntax and options for // this field and its subfields, see the guide for creating a shared // reservation. ShareSettings *ShareSettings `json:"shareSettings,omitempty"` // SpecificReservation: Reservation for instances with specific machine shapes. SpecificReservation *AllocationSpecificSKUReservation `json:"specificReservation,omitempty"` // SpecificReservationRequired: Indicates whether the reservation can be // consumed by VMs with affinity for "any" reservation. If the field is set, // then only VMs that target the reservation by name can consume from this // reservation. SpecificReservationRequired bool `json:"specificReservationRequired,omitempty"` // Status: [Output Only] The status of the reservation. // // Possible values: // "CREATING" - Resources are being allocated for the reservation. // "DELETING" - Reservation is currently being deleted. // "INVALID" // "READY" - Reservation has allocated all its resources. // "UPDATING" - Reservation is currently being resized. Status string `json:"status,omitempty"` // Zone: Zone in which the reservation resides. A zone must be provided if the // reservation is created within a commitment. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AggregateReservation") 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. "AggregateReservation") 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:"-"` }
Reservation: Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources.
func (Reservation) MarshalJSON ¶ added in v0.7.0
func (s Reservation) MarshalJSON() ([]byte, error)
type ReservationAffinity ¶ added in v0.7.0
type ReservationAffinity struct { // ConsumeReservationType: Specifies the type of reservation from which this // instance can consume resources: ANY_RESERVATION (default), // SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances // for examples. // // Possible values: // "ANY_RESERVATION" - Consume any allocation available. // "NO_RESERVATION" - Do not consume from any allocated capacity. // "SPECIFIC_RESERVATION" - Must consume from a specific reservation. Must // specify key value fields for specifying the reservations. // "UNSPECIFIED" ConsumeReservationType string `json:"consumeReservationType,omitempty"` // Key: Corresponds to the label key of a reservation resource. To target a // SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the // key and specify the name of your reservation as its value. Key string `json:"key,omitempty"` // Values: Corresponds to the label values of a reservation resource. This can // be either a name to a reservation in the same project or // "projects/different-project/reservations/some-reservation-name" to target a // shared reservation in the same zone but in a different project. Values []string `json:"values,omitempty"` // ForceSendFields is a list of field names (e.g. "ConsumeReservationType") 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. "ConsumeReservationType") 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:"-"` }
ReservationAffinity: Specifies the reservations that this instance can consume from.
func (ReservationAffinity) MarshalJSON ¶ added in v0.7.0
func (s ReservationAffinity) MarshalJSON() ([]byte, error)
type ReservationAggregatedList ¶ added in v0.7.0
type ReservationAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Allocation resources. Items map[string]ReservationsScopedList `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *ReservationAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
ReservationAggregatedList: Contains a list of reservations.
func (ReservationAggregatedList) MarshalJSON ¶ added in v0.7.0
func (s ReservationAggregatedList) MarshalJSON() ([]byte, error)
type ReservationAggregatedListWarning ¶ added in v0.7.0
type ReservationAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ReservationAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ReservationAggregatedListWarning: [Output Only] Informational warning message.
func (ReservationAggregatedListWarning) MarshalJSON ¶ added in v0.7.0
func (s ReservationAggregatedListWarning) MarshalJSON() ([]byte, error)
type ReservationAggregatedListWarningData ¶ added in v0.7.0
type ReservationAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ReservationAggregatedListWarningData) MarshalJSON ¶ added in v0.7.0
func (s ReservationAggregatedListWarningData) MarshalJSON() ([]byte, error)
type ReservationList ¶ added in v0.7.0
type ReservationList struct { // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id string `json:"id,omitempty"` // Items: [Output Only] A list of Allocation resources. Items []*Reservation `json:"items,omitempty"` // Kind: [Output Only] Type of resource.Always compute#reservationsList for // listsof reservations Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *ReservationListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (ReservationList) MarshalJSON ¶ added in v0.7.0
func (s ReservationList) MarshalJSON() ([]byte, error)
type ReservationListWarning ¶ added in v0.7.0
type ReservationListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ReservationListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ReservationListWarning: [Output Only] Informational warning message.
func (ReservationListWarning) MarshalJSON ¶ added in v0.7.0
func (s ReservationListWarning) MarshalJSON() ([]byte, error)
type ReservationListWarningData ¶ added in v0.7.0
type ReservationListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ReservationListWarningData) MarshalJSON ¶ added in v0.7.0
func (s ReservationListWarningData) MarshalJSON() ([]byte, error)
type ReservationsAggregatedListCall ¶ added in v0.7.0
type ReservationsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*ReservationsAggregatedListCall) Context ¶ added in v0.7.0
func (c *ReservationsAggregatedListCall) Context(ctx context.Context) *ReservationsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*ReservationsAggregatedListCall) Do ¶ added in v0.7.0
func (c *ReservationsAggregatedListCall) Do(opts ...googleapi.CallOption) (*ReservationAggregatedList, error)
Do executes the "compute.reservations.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *ReservationAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ReservationsAggregatedListCall) Fields ¶ added in v0.7.0
func (c *ReservationsAggregatedListCall) Fields(s ...googleapi.Field) *ReservationsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ReservationsAggregatedListCall) Filter ¶ added in v0.7.0
func (c *ReservationsAggregatedListCall) Filter(filter string) *ReservationsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*ReservationsAggregatedListCall) Header ¶ added in v0.7.0
func (c *ReservationsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ReservationsAggregatedListCall) IfNoneMatch ¶ added in v0.7.0
func (c *ReservationsAggregatedListCall) IfNoneMatch(entityTag string) *ReservationsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ReservationsAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *ReservationsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *ReservationsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*ReservationsAggregatedListCall) MaxResults ¶ added in v0.7.0
func (c *ReservationsAggregatedListCall) MaxResults(maxResults int64) *ReservationsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*ReservationsAggregatedListCall) OrderBy ¶ added in v0.7.0
func (c *ReservationsAggregatedListCall) OrderBy(orderBy string) *ReservationsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*ReservationsAggregatedListCall) PageToken ¶ added in v0.7.0
func (c *ReservationsAggregatedListCall) PageToken(pageToken string) *ReservationsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*ReservationsAggregatedListCall) Pages ¶ added in v0.7.0
func (c *ReservationsAggregatedListCall) Pages(ctx context.Context, f func(*ReservationAggregatedList) 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 (*ReservationsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *ReservationsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ReservationsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*ReservationsAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *ReservationsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *ReservationsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type ReservationsDeleteCall ¶ added in v0.7.0
type ReservationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ReservationsDeleteCall) Context ¶ added in v0.7.0
func (c *ReservationsDeleteCall) Context(ctx context.Context) *ReservationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ReservationsDeleteCall) Do ¶ added in v0.7.0
func (c *ReservationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.reservations.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ReservationsDeleteCall) Fields ¶ added in v0.7.0
func (c *ReservationsDeleteCall) Fields(s ...googleapi.Field) *ReservationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ReservationsDeleteCall) Header ¶ added in v0.7.0
func (c *ReservationsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ReservationsDeleteCall) RequestId ¶ added in v0.7.0
func (c *ReservationsDeleteCall) RequestId(requestId string) *ReservationsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ReservationsGetCall ¶ added in v0.7.0
type ReservationsGetCall struct {
// contains filtered or unexported fields
}
func (*ReservationsGetCall) Context ¶ added in v0.7.0
func (c *ReservationsGetCall) Context(ctx context.Context) *ReservationsGetCall
Context sets the context to be used in this call's Do method.
func (*ReservationsGetCall) Do ¶ added in v0.7.0
func (c *ReservationsGetCall) Do(opts ...googleapi.CallOption) (*Reservation, error)
Do executes the "compute.reservations.get" call. Any non-2xx status code is an error. Response headers are in either *Reservation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ReservationsGetCall) Fields ¶ added in v0.7.0
func (c *ReservationsGetCall) Fields(s ...googleapi.Field) *ReservationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ReservationsGetCall) Header ¶ added in v0.7.0
func (c *ReservationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ReservationsGetCall) IfNoneMatch ¶ added in v0.7.0
func (c *ReservationsGetCall) IfNoneMatch(entityTag string) *ReservationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ReservationsGetIamPolicyCall ¶ added in v0.7.0
type ReservationsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ReservationsGetIamPolicyCall) Context ¶ added in v0.7.0
func (c *ReservationsGetIamPolicyCall) Context(ctx context.Context) *ReservationsGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ReservationsGetIamPolicyCall) Do ¶ added in v0.7.0
func (c *ReservationsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.reservations.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ReservationsGetIamPolicyCall) Fields ¶ added in v0.7.0
func (c *ReservationsGetIamPolicyCall) Fields(s ...googleapi.Field) *ReservationsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ReservationsGetIamPolicyCall) Header ¶ added in v0.7.0
func (c *ReservationsGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ReservationsGetIamPolicyCall) IfNoneMatch ¶ added in v0.7.0
func (c *ReservationsGetIamPolicyCall) IfNoneMatch(entityTag string) *ReservationsGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ReservationsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.30.0
func (c *ReservationsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ReservationsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type ReservationsInsertCall ¶ added in v0.7.0
type ReservationsInsertCall struct {
// contains filtered or unexported fields
}
func (*ReservationsInsertCall) Context ¶ added in v0.7.0
func (c *ReservationsInsertCall) Context(ctx context.Context) *ReservationsInsertCall
Context sets the context to be used in this call's Do method.
func (*ReservationsInsertCall) Do ¶ added in v0.7.0
func (c *ReservationsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.reservations.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ReservationsInsertCall) Fields ¶ added in v0.7.0
func (c *ReservationsInsertCall) Fields(s ...googleapi.Field) *ReservationsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ReservationsInsertCall) Header ¶ added in v0.7.0
func (c *ReservationsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ReservationsInsertCall) RequestId ¶ added in v0.7.0
func (c *ReservationsInsertCall) RequestId(requestId string) *ReservationsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ReservationsListCall ¶ added in v0.7.0
type ReservationsListCall struct {
// contains filtered or unexported fields
}
func (*ReservationsListCall) Context ¶ added in v0.7.0
func (c *ReservationsListCall) Context(ctx context.Context) *ReservationsListCall
Context sets the context to be used in this call's Do method.
func (*ReservationsListCall) Do ¶ added in v0.7.0
func (c *ReservationsListCall) Do(opts ...googleapi.CallOption) (*ReservationList, error)
Do executes the "compute.reservations.list" call. Any non-2xx status code is an error. Response headers are in either *ReservationList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ReservationsListCall) Fields ¶ added in v0.7.0
func (c *ReservationsListCall) Fields(s ...googleapi.Field) *ReservationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ReservationsListCall) Filter ¶ added in v0.7.0
func (c *ReservationsListCall) Filter(filter string) *ReservationsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*ReservationsListCall) Header ¶ added in v0.7.0
func (c *ReservationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ReservationsListCall) IfNoneMatch ¶ added in v0.7.0
func (c *ReservationsListCall) IfNoneMatch(entityTag string) *ReservationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ReservationsListCall) MaxResults ¶ added in v0.7.0
func (c *ReservationsListCall) MaxResults(maxResults int64) *ReservationsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*ReservationsListCall) OrderBy ¶ added in v0.7.0
func (c *ReservationsListCall) OrderBy(orderBy string) *ReservationsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*ReservationsListCall) PageToken ¶ added in v0.7.0
func (c *ReservationsListCall) PageToken(pageToken string) *ReservationsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*ReservationsListCall) Pages ¶ added in v0.7.0
func (c *ReservationsListCall) Pages(ctx context.Context, f func(*ReservationList) 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 (*ReservationsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *ReservationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ReservationsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type ReservationsResizeCall ¶ added in v0.7.0
type ReservationsResizeCall struct {
// contains filtered or unexported fields
}
func (*ReservationsResizeCall) Context ¶ added in v0.7.0
func (c *ReservationsResizeCall) Context(ctx context.Context) *ReservationsResizeCall
Context sets the context to be used in this call's Do method.
func (*ReservationsResizeCall) Do ¶ added in v0.7.0
func (c *ReservationsResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.reservations.resize" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ReservationsResizeCall) Fields ¶ added in v0.7.0
func (c *ReservationsResizeCall) Fields(s ...googleapi.Field) *ReservationsResizeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ReservationsResizeCall) Header ¶ added in v0.7.0
func (c *ReservationsResizeCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ReservationsResizeCall) RequestId ¶ added in v0.7.0
func (c *ReservationsResizeCall) RequestId(requestId string) *ReservationsResizeCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ReservationsResizeRequest ¶ added in v0.7.0
type ReservationsResizeRequest struct { // SpecificSkuCount: Number of allocated resources can be resized with minimum // = 1 and maximum = 1000. SpecificSkuCount int64 `json:"specificSkuCount,omitempty,string"` // ForceSendFields is a list of field names (e.g. "SpecificSkuCount") 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. "SpecificSkuCount") 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:"-"` }
func (ReservationsResizeRequest) MarshalJSON ¶ added in v0.7.0
func (s ReservationsResizeRequest) MarshalJSON() ([]byte, error)
type ReservationsScopedList ¶ added in v0.7.0
type ReservationsScopedList struct { // Reservations: A list of reservations contained in this scope. Reservations []*Reservation `json:"reservations,omitempty"` // Warning: Informational warning which replaces the list of reservations when // the list is empty. Warning *ReservationsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "Reservations") 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. "Reservations") 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:"-"` }
func (ReservationsScopedList) MarshalJSON ¶ added in v0.7.0
func (s ReservationsScopedList) MarshalJSON() ([]byte, error)
type ReservationsScopedListWarning ¶ added in v0.7.0
type ReservationsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ReservationsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ReservationsScopedListWarning: Informational warning which replaces the list of reservations when the list is empty.
func (ReservationsScopedListWarning) MarshalJSON ¶ added in v0.7.0
func (s ReservationsScopedListWarning) MarshalJSON() ([]byte, error)
type ReservationsScopedListWarningData ¶ added in v0.7.0
type ReservationsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ReservationsScopedListWarningData) MarshalJSON ¶ added in v0.7.0
func (s ReservationsScopedListWarningData) MarshalJSON() ([]byte, error)
type ReservationsService ¶ added in v0.7.0
type ReservationsService struct {
// contains filtered or unexported fields
}
func NewReservationsService ¶ added in v0.7.0
func NewReservationsService(s *Service) *ReservationsService
func (*ReservationsService) AggregatedList ¶ added in v0.7.0
func (r *ReservationsService) AggregatedList(project string) *ReservationsAggregatedListCall
AggregatedList: Retrieves an aggregated list of reservations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*ReservationsService) Delete ¶ added in v0.7.0
func (r *ReservationsService) Delete(project string, zone string, reservation string) *ReservationsDeleteCall
Delete: Deletes the specified reservation.
- project: Project ID for this request. - reservation: Name of the reservation to delete. - zone: Name of the zone for this request.
func (*ReservationsService) Get ¶ added in v0.7.0
func (r *ReservationsService) Get(project string, zone string, reservation string) *ReservationsGetCall
Get: Retrieves information about the specified reservation.
- project: Project ID for this request. - reservation: Name of the reservation to retrieve. - zone: Name of the zone for this request.
func (*ReservationsService) GetIamPolicy ¶ added in v0.7.0
func (r *ReservationsService) GetIamPolicy(project string, zone string, resource string) *ReservationsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*ReservationsService) Insert ¶ added in v0.7.0
func (r *ReservationsService) Insert(project string, zone string, reservation *Reservation) *ReservationsInsertCall
Insert: Creates a new reservation. For more information, read Reserving zonal resources.
- project: Project ID for this request. - zone: Name of the zone for this request.
func (*ReservationsService) List ¶ added in v0.7.0
func (r *ReservationsService) List(project string, zone string) *ReservationsListCall
List: A list of all the reservations that have been configured for the specified project in specified zone.
- project: Project ID for this request. - zone: Name of the zone for this request.
func (*ReservationsService) Resize ¶ added in v0.7.0
func (r *ReservationsService) Resize(project string, zone string, reservation string, reservationsresizerequest *ReservationsResizeRequest) *ReservationsResizeCall
Resize: Resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations.
- project: Project ID for this request. - reservation: Name of the reservation to update. - zone: Name of the zone for this request.
func (*ReservationsService) SetIamPolicy ¶ added in v0.7.0
func (r *ReservationsService) SetIamPolicy(project string, zone string, resource string, zonesetpolicyrequest *ZoneSetPolicyRequest) *ReservationsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*ReservationsService) TestIamPermissions ¶ added in v0.7.0
func (r *ReservationsService) TestIamPermissions(project string, zone string, resource string, testpermissionsrequest *TestPermissionsRequest) *ReservationsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*ReservationsService) Update ¶ added in v0.62.0
func (r *ReservationsService) Update(project string, zone string, reservation string, reservation2 *Reservation) *ReservationsUpdateCall
Update: Update share settings of the reservation.
- project: Project ID for this request. - reservation: Name of the reservation to update. - zone: Name of the zone for this request.
type ReservationsSetIamPolicyCall ¶ added in v0.7.0
type ReservationsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ReservationsSetIamPolicyCall) Context ¶ added in v0.7.0
func (c *ReservationsSetIamPolicyCall) Context(ctx context.Context) *ReservationsSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ReservationsSetIamPolicyCall) Do ¶ added in v0.7.0
func (c *ReservationsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.reservations.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ReservationsSetIamPolicyCall) Fields ¶ added in v0.7.0
func (c *ReservationsSetIamPolicyCall) Fields(s ...googleapi.Field) *ReservationsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ReservationsSetIamPolicyCall) Header ¶ added in v0.7.0
func (c *ReservationsSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ReservationsTestIamPermissionsCall ¶ added in v0.7.0
type ReservationsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ReservationsTestIamPermissionsCall) Context ¶ added in v0.7.0
func (c *ReservationsTestIamPermissionsCall) Context(ctx context.Context) *ReservationsTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ReservationsTestIamPermissionsCall) Do ¶ added in v0.7.0
func (c *ReservationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.reservations.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ReservationsTestIamPermissionsCall) Fields ¶ added in v0.7.0
func (c *ReservationsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ReservationsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ReservationsTestIamPermissionsCall) Header ¶ added in v0.7.0
func (c *ReservationsTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ReservationsUpdateCall ¶ added in v0.62.0
type ReservationsUpdateCall struct {
// contains filtered or unexported fields
}
func (*ReservationsUpdateCall) Context ¶ added in v0.62.0
func (c *ReservationsUpdateCall) Context(ctx context.Context) *ReservationsUpdateCall
Context sets the context to be used in this call's Do method.
func (*ReservationsUpdateCall) Do ¶ added in v0.62.0
func (c *ReservationsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.reservations.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ReservationsUpdateCall) Fields ¶ added in v0.62.0
func (c *ReservationsUpdateCall) Fields(s ...googleapi.Field) *ReservationsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ReservationsUpdateCall) Header ¶ added in v0.62.0
func (c *ReservationsUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ReservationsUpdateCall) Paths ¶ added in v0.62.0
func (c *ReservationsUpdateCall) Paths(paths ...string) *ReservationsUpdateCall
Paths sets the optional parameter "paths":
func (*ReservationsUpdateCall) RequestId ¶ added in v0.62.0
func (c *ReservationsUpdateCall) RequestId(requestId string) *ReservationsUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*ReservationsUpdateCall) UpdateMask ¶ added in v0.62.0
func (c *ReservationsUpdateCall) UpdateMask(updateMask string) *ReservationsUpdateCall
UpdateMask sets the optional parameter "updateMask": Update_mask indicates fields to be updated as part of this request.
type ResourceCommitment ¶
type ResourceCommitment struct { // AcceleratorType: Name of the accelerator type resource. Applicable only when // the type is ACCELERATOR. AcceleratorType string `json:"acceleratorType,omitempty"` // Amount: The amount of the resource purchased (in a type-dependent unit, such // as bytes). For vCPUs, this can just be an integer. For memory, this must be // provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of // memory per every vCPU. Amount int64 `json:"amount,omitempty,string"` // Type: Type of resource for which this commitment applies. Possible values // are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR. // // Possible values: // "ACCELERATOR" // "LOCAL_SSD" // "MEMORY" // "UNSPECIFIED" // "VCPU" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "AcceleratorType") 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. "AcceleratorType") 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:"-"` }
ResourceCommitment: Commitment for a particular resource (a Commitment is composed of one or more of these).
func (ResourceCommitment) MarshalJSON ¶
func (s ResourceCommitment) MarshalJSON() ([]byte, error)
type ResourceGroupReference ¶
type ResourceGroupReference struct { // Group: A URI referencing one of the instance groups or network endpoint // groups listed in the backend service. Group string `json:"group,omitempty"` // ForceSendFields is a list of field names (e.g. "Group") 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. "Group") 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:"-"` }
func (ResourceGroupReference) MarshalJSON ¶
func (s ResourceGroupReference) MarshalJSON() ([]byte, error)
type ResourcePoliciesAggregatedListCall ¶ added in v0.7.0
type ResourcePoliciesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesAggregatedListCall) Context ¶ added in v0.7.0
func (c *ResourcePoliciesAggregatedListCall) Context(ctx context.Context) *ResourcePoliciesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*ResourcePoliciesAggregatedListCall) Do ¶ added in v0.7.0
func (c *ResourcePoliciesAggregatedListCall) Do(opts ...googleapi.CallOption) (*ResourcePolicyAggregatedList, error)
Do executes the "compute.resourcePolicies.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *ResourcePolicyAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ResourcePoliciesAggregatedListCall) Fields ¶ added in v0.7.0
func (c *ResourcePoliciesAggregatedListCall) Fields(s ...googleapi.Field) *ResourcePoliciesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ResourcePoliciesAggregatedListCall) Filter ¶ added in v0.7.0
func (c *ResourcePoliciesAggregatedListCall) Filter(filter string) *ResourcePoliciesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*ResourcePoliciesAggregatedListCall) Header ¶ added in v0.7.0
func (c *ResourcePoliciesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ResourcePoliciesAggregatedListCall) IfNoneMatch ¶ added in v0.7.0
func (c *ResourcePoliciesAggregatedListCall) IfNoneMatch(entityTag string) *ResourcePoliciesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ResourcePoliciesAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *ResourcePoliciesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *ResourcePoliciesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*ResourcePoliciesAggregatedListCall) MaxResults ¶ added in v0.7.0
func (c *ResourcePoliciesAggregatedListCall) MaxResults(maxResults int64) *ResourcePoliciesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*ResourcePoliciesAggregatedListCall) OrderBy ¶ added in v0.7.0
func (c *ResourcePoliciesAggregatedListCall) OrderBy(orderBy string) *ResourcePoliciesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*ResourcePoliciesAggregatedListCall) PageToken ¶ added in v0.7.0
func (c *ResourcePoliciesAggregatedListCall) PageToken(pageToken string) *ResourcePoliciesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*ResourcePoliciesAggregatedListCall) Pages ¶ added in v0.7.0
func (c *ResourcePoliciesAggregatedListCall) Pages(ctx context.Context, f func(*ResourcePolicyAggregatedList) 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 (*ResourcePoliciesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *ResourcePoliciesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ResourcePoliciesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*ResourcePoliciesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *ResourcePoliciesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *ResourcePoliciesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type ResourcePoliciesDeleteCall ¶ added in v0.7.0
type ResourcePoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesDeleteCall) Context ¶ added in v0.7.0
func (c *ResourcePoliciesDeleteCall) Context(ctx context.Context) *ResourcePoliciesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ResourcePoliciesDeleteCall) Do ¶ added in v0.7.0
func (c *ResourcePoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.resourcePolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ResourcePoliciesDeleteCall) Fields ¶ added in v0.7.0
func (c *ResourcePoliciesDeleteCall) Fields(s ...googleapi.Field) *ResourcePoliciesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ResourcePoliciesDeleteCall) Header ¶ added in v0.7.0
func (c *ResourcePoliciesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ResourcePoliciesDeleteCall) RequestId ¶ added in v0.7.0
func (c *ResourcePoliciesDeleteCall) RequestId(requestId string) *ResourcePoliciesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ResourcePoliciesGetCall ¶ added in v0.7.0
type ResourcePoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesGetCall) Context ¶ added in v0.7.0
func (c *ResourcePoliciesGetCall) Context(ctx context.Context) *ResourcePoliciesGetCall
Context sets the context to be used in this call's Do method.
func (*ResourcePoliciesGetCall) Do ¶ added in v0.7.0
func (c *ResourcePoliciesGetCall) Do(opts ...googleapi.CallOption) (*ResourcePolicy, error)
Do executes the "compute.resourcePolicies.get" call. Any non-2xx status code is an error. Response headers are in either *ResourcePolicy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ResourcePoliciesGetCall) Fields ¶ added in v0.7.0
func (c *ResourcePoliciesGetCall) Fields(s ...googleapi.Field) *ResourcePoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ResourcePoliciesGetCall) Header ¶ added in v0.7.0
func (c *ResourcePoliciesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ResourcePoliciesGetCall) IfNoneMatch ¶ added in v0.7.0
func (c *ResourcePoliciesGetCall) IfNoneMatch(entityTag string) *ResourcePoliciesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ResourcePoliciesGetIamPolicyCall ¶ added in v0.7.0
type ResourcePoliciesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesGetIamPolicyCall) Context ¶ added in v0.7.0
func (c *ResourcePoliciesGetIamPolicyCall) Context(ctx context.Context) *ResourcePoliciesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ResourcePoliciesGetIamPolicyCall) Do ¶ added in v0.7.0
func (c *ResourcePoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.resourcePolicies.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ResourcePoliciesGetIamPolicyCall) Fields ¶ added in v0.7.0
func (c *ResourcePoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ResourcePoliciesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ResourcePoliciesGetIamPolicyCall) Header ¶ added in v0.7.0
func (c *ResourcePoliciesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ResourcePoliciesGetIamPolicyCall) IfNoneMatch ¶ added in v0.7.0
func (c *ResourcePoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ResourcePoliciesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ResourcePoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.30.0
func (c *ResourcePoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ResourcePoliciesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type ResourcePoliciesInsertCall ¶ added in v0.7.0
type ResourcePoliciesInsertCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesInsertCall) Context ¶ added in v0.7.0
func (c *ResourcePoliciesInsertCall) Context(ctx context.Context) *ResourcePoliciesInsertCall
Context sets the context to be used in this call's Do method.
func (*ResourcePoliciesInsertCall) Do ¶ added in v0.7.0
func (c *ResourcePoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.resourcePolicies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ResourcePoliciesInsertCall) Fields ¶ added in v0.7.0
func (c *ResourcePoliciesInsertCall) Fields(s ...googleapi.Field) *ResourcePoliciesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ResourcePoliciesInsertCall) Header ¶ added in v0.7.0
func (c *ResourcePoliciesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ResourcePoliciesInsertCall) RequestId ¶ added in v0.7.0
func (c *ResourcePoliciesInsertCall) RequestId(requestId string) *ResourcePoliciesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ResourcePoliciesListCall ¶ added in v0.7.0
type ResourcePoliciesListCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesListCall) Context ¶ added in v0.7.0
func (c *ResourcePoliciesListCall) Context(ctx context.Context) *ResourcePoliciesListCall
Context sets the context to be used in this call's Do method.
func (*ResourcePoliciesListCall) Do ¶ added in v0.7.0
func (c *ResourcePoliciesListCall) Do(opts ...googleapi.CallOption) (*ResourcePolicyList, error)
Do executes the "compute.resourcePolicies.list" call. Any non-2xx status code is an error. Response headers are in either *ResourcePolicyList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ResourcePoliciesListCall) Fields ¶ added in v0.7.0
func (c *ResourcePoliciesListCall) Fields(s ...googleapi.Field) *ResourcePoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ResourcePoliciesListCall) Filter ¶ added in v0.7.0
func (c *ResourcePoliciesListCall) Filter(filter string) *ResourcePoliciesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*ResourcePoliciesListCall) Header ¶ added in v0.7.0
func (c *ResourcePoliciesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ResourcePoliciesListCall) IfNoneMatch ¶ added in v0.7.0
func (c *ResourcePoliciesListCall) IfNoneMatch(entityTag string) *ResourcePoliciesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ResourcePoliciesListCall) MaxResults ¶ added in v0.7.0
func (c *ResourcePoliciesListCall) MaxResults(maxResults int64) *ResourcePoliciesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*ResourcePoliciesListCall) OrderBy ¶ added in v0.7.0
func (c *ResourcePoliciesListCall) OrderBy(orderBy string) *ResourcePoliciesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*ResourcePoliciesListCall) PageToken ¶ added in v0.7.0
func (c *ResourcePoliciesListCall) PageToken(pageToken string) *ResourcePoliciesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*ResourcePoliciesListCall) Pages ¶ added in v0.7.0
func (c *ResourcePoliciesListCall) Pages(ctx context.Context, f func(*ResourcePolicyList) 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 (*ResourcePoliciesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *ResourcePoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ResourcePoliciesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type ResourcePoliciesPatchCall ¶ added in v0.132.0
type ResourcePoliciesPatchCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesPatchCall) Context ¶ added in v0.132.0
func (c *ResourcePoliciesPatchCall) Context(ctx context.Context) *ResourcePoliciesPatchCall
Context sets the context to be used in this call's Do method.
func (*ResourcePoliciesPatchCall) Do ¶ added in v0.132.0
func (c *ResourcePoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.resourcePolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ResourcePoliciesPatchCall) Fields ¶ added in v0.132.0
func (c *ResourcePoliciesPatchCall) Fields(s ...googleapi.Field) *ResourcePoliciesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ResourcePoliciesPatchCall) Header ¶ added in v0.132.0
func (c *ResourcePoliciesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ResourcePoliciesPatchCall) RequestId ¶ added in v0.132.0
func (c *ResourcePoliciesPatchCall) RequestId(requestId string) *ResourcePoliciesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*ResourcePoliciesPatchCall) UpdateMask ¶ added in v0.132.0
func (c *ResourcePoliciesPatchCall) UpdateMask(updateMask string) *ResourcePoliciesPatchCall
UpdateMask sets the optional parameter "updateMask": update_mask indicates fields to be updated as part of this request.
type ResourcePoliciesScopedList ¶ added in v0.7.0
type ResourcePoliciesScopedList struct { // ResourcePolicies: A list of resourcePolicies contained in this scope. ResourcePolicies []*ResourcePolicy `json:"resourcePolicies,omitempty"` // Warning: Informational warning which replaces the list of resourcePolicies // when the list is empty. Warning *ResourcePoliciesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "ResourcePolicies") 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. "ResourcePolicies") 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:"-"` }
func (ResourcePoliciesScopedList) MarshalJSON ¶ added in v0.7.0
func (s ResourcePoliciesScopedList) MarshalJSON() ([]byte, error)
type ResourcePoliciesScopedListWarning ¶ added in v0.7.0
type ResourcePoliciesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ResourcePoliciesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ResourcePoliciesScopedListWarning: Informational warning which replaces the list of resourcePolicies when the list is empty.
func (ResourcePoliciesScopedListWarning) MarshalJSON ¶ added in v0.7.0
func (s ResourcePoliciesScopedListWarning) MarshalJSON() ([]byte, error)
type ResourcePoliciesScopedListWarningData ¶ added in v0.7.0
type ResourcePoliciesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ResourcePoliciesScopedListWarningData) MarshalJSON ¶ added in v0.7.0
func (s ResourcePoliciesScopedListWarningData) MarshalJSON() ([]byte, error)
type ResourcePoliciesService ¶ added in v0.7.0
type ResourcePoliciesService struct {
// contains filtered or unexported fields
}
func NewResourcePoliciesService ¶ added in v0.7.0
func NewResourcePoliciesService(s *Service) *ResourcePoliciesService
func (*ResourcePoliciesService) AggregatedList ¶ added in v0.7.0
func (r *ResourcePoliciesService) AggregatedList(project string) *ResourcePoliciesAggregatedListCall
AggregatedList: Retrieves an aggregated list of resource policies. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*ResourcePoliciesService) Delete ¶ added in v0.7.0
func (r *ResourcePoliciesService) Delete(project string, region string, resourcePolicy string) *ResourcePoliciesDeleteCall
Delete: Deletes the specified resource policy.
- project: Project ID for this request. - region: Name of the region for this request. - resourcePolicy: Name of the resource policy to delete.
func (*ResourcePoliciesService) Get ¶ added in v0.7.0
func (r *ResourcePoliciesService) Get(project string, region string, resourcePolicy string) *ResourcePoliciesGetCall
Get: Retrieves all information of the specified resource policy.
- project: Project ID for this request. - region: Name of the region for this request. - resourcePolicy: Name of the resource policy to retrieve.
func (*ResourcePoliciesService) GetIamPolicy ¶ added in v0.7.0
func (r *ResourcePoliciesService) GetIamPolicy(project string, region string, resource string) *ResourcePoliciesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*ResourcePoliciesService) Insert ¶ added in v0.7.0
func (r *ResourcePoliciesService) Insert(project string, region string, resourcepolicy *ResourcePolicy) *ResourcePoliciesInsertCall
Insert: Creates a new resource policy.
- project: Project ID for this request. - region: Name of the region for this request.
func (*ResourcePoliciesService) List ¶ added in v0.7.0
func (r *ResourcePoliciesService) List(project string, region string) *ResourcePoliciesListCall
List: A list all the resource policies that have been configured for the specified project in specified region.
- project: Project ID for this request. - region: Name of the region for this request.
func (*ResourcePoliciesService) Patch ¶ added in v0.132.0
func (r *ResourcePoliciesService) Patch(project string, region string, resourcePolicy string, resourcepolicy *ResourcePolicy) *ResourcePoliciesPatchCall
Patch: Modify the specified resource policy.
- project: Project ID for this request. - region: Name of the region for this request. - resourcePolicy: Id of the resource policy to patch.
func (*ResourcePoliciesService) SetIamPolicy ¶ added in v0.7.0
func (r *ResourcePoliciesService) SetIamPolicy(project string, region string, resource string, regionsetpolicyrequest *RegionSetPolicyRequest) *ResourcePoliciesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*ResourcePoliciesService) TestIamPermissions ¶ added in v0.7.0
func (r *ResourcePoliciesService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *ResourcePoliciesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
type ResourcePoliciesSetIamPolicyCall ¶ added in v0.7.0
type ResourcePoliciesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesSetIamPolicyCall) Context ¶ added in v0.7.0
func (c *ResourcePoliciesSetIamPolicyCall) Context(ctx context.Context) *ResourcePoliciesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ResourcePoliciesSetIamPolicyCall) Do ¶ added in v0.7.0
func (c *ResourcePoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.resourcePolicies.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ResourcePoliciesSetIamPolicyCall) Fields ¶ added in v0.7.0
func (c *ResourcePoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ResourcePoliciesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ResourcePoliciesSetIamPolicyCall) Header ¶ added in v0.7.0
func (c *ResourcePoliciesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ResourcePoliciesTestIamPermissionsCall ¶ added in v0.7.0
type ResourcePoliciesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesTestIamPermissionsCall) Context ¶ added in v0.7.0
func (c *ResourcePoliciesTestIamPermissionsCall) Context(ctx context.Context) *ResourcePoliciesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ResourcePoliciesTestIamPermissionsCall) Do ¶ added in v0.7.0
func (c *ResourcePoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.resourcePolicies.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ResourcePoliciesTestIamPermissionsCall) Fields ¶ added in v0.7.0
func (c *ResourcePoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ResourcePoliciesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ResourcePoliciesTestIamPermissionsCall) Header ¶ added in v0.7.0
func (c *ResourcePoliciesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ResourcePolicy ¶ added in v0.7.0
type ResourcePolicy struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` Description string `json:"description,omitempty"` // DiskConsistencyGroupPolicy: Resource policy for disk consistency groups. DiskConsistencyGroupPolicy *ResourcePolicyDiskConsistencyGroupPolicy `json:"diskConsistencyGroupPolicy,omitempty"` // GroupPlacementPolicy: Resource policy for instances for placement // configuration. GroupPlacementPolicy *ResourcePolicyGroupPlacementPolicy `json:"groupPlacementPolicy,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // InstanceSchedulePolicy: Resource policy for scheduling instance operations. InstanceSchedulePolicy *ResourcePolicyInstanceSchedulePolicy `json:"instanceSchedulePolicy,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#resource_policies // for resource policies. Kind string `json:"kind,omitempty"` // Name: The name of the resource, provided by the client when initially // creating the resource. The resource name must be 1-63 characters long, and // comply with RFC1035. Specifically, the name must be 1-63 characters long and // match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the // first character must be a lowercase letter, and all following characters // must be a dash, lowercase letter, or digit, except the last character, which // cannot be a dash. Name string `json:"name,omitempty"` Region string `json:"region,omitempty"` // ResourceStatus: [Output Only] The system status of the resource policy. ResourceStatus *ResourcePolicyResourceStatus `json:"resourceStatus,omitempty"` // SelfLink: [Output Only] Server-defined fully-qualified URL for this // resource. SelfLink string `json:"selfLink,omitempty"` // SnapshotSchedulePolicy: Resource policy for persistent disks for creating // snapshots. SnapshotSchedulePolicy *ResourcePolicySnapshotSchedulePolicy `json:"snapshotSchedulePolicy,omitempty"` // Status: [Output Only] The status of resource policy creation. // // Possible values: // "CREATING" - Resource policy is being created. // "DELETING" - Resource policy is being deleted. // "EXPIRED" - Resource policy is expired and will not run again. // "INVALID" // "READY" - Resource policy is ready to be used. Status string `json:"status,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
ResourcePolicy: Represents a Resource Policy resource. You can use resource policies to schedule actions for some Compute Engine resources. For example, you can use them to schedule persistent disk snapshots.
func (ResourcePolicy) MarshalJSON ¶ added in v0.7.0
func (s ResourcePolicy) MarshalJSON() ([]byte, error)
type ResourcePolicyAggregatedList ¶ added in v0.7.0
type ResourcePolicyAggregatedList struct { Etag string `json:"etag,omitempty"` // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of ResourcePolicy resources. Items map[string]ResourcePoliciesScopedList `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *ResourcePolicyAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Etag") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ResourcePolicyAggregatedList: Contains a list of resourcePolicies.
func (ResourcePolicyAggregatedList) MarshalJSON ¶ added in v0.7.0
func (s ResourcePolicyAggregatedList) MarshalJSON() ([]byte, error)
type ResourcePolicyAggregatedListWarning ¶ added in v0.7.0
type ResourcePolicyAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ResourcePolicyAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ResourcePolicyAggregatedListWarning: [Output Only] Informational warning message.
func (ResourcePolicyAggregatedListWarning) MarshalJSON ¶ added in v0.7.0
func (s ResourcePolicyAggregatedListWarning) MarshalJSON() ([]byte, error)
type ResourcePolicyAggregatedListWarningData ¶ added in v0.7.0
type ResourcePolicyAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ResourcePolicyAggregatedListWarningData) MarshalJSON ¶ added in v0.7.0
func (s ResourcePolicyAggregatedListWarningData) MarshalJSON() ([]byte, error)
type ResourcePolicyDailyCycle ¶ added in v0.7.0
type ResourcePolicyDailyCycle struct { // DaysInCycle: Defines a schedule with units measured in days. The value // determines how many days pass between the start of each cycle. DaysInCycle int64 `json:"daysInCycle,omitempty"` // Duration: [Output only] A predetermined duration for the window, // automatically chosen to be the smallest possible in the given scenario. Duration string `json:"duration,omitempty"` // StartTime: Start time of the window. This must be in UTC format that // resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, // both 13:00-5 and 08:00 are valid. StartTime string `json:"startTime,omitempty"` // ForceSendFields is a list of field names (e.g. "DaysInCycle") 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. "DaysInCycle") 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:"-"` }
ResourcePolicyDailyCycle: Time window specified for daily operations.
func (ResourcePolicyDailyCycle) MarshalJSON ¶ added in v0.7.0
func (s ResourcePolicyDailyCycle) MarshalJSON() ([]byte, error)
type ResourcePolicyDiskConsistencyGroupPolicy ¶ added in v0.127.0
type ResourcePolicyDiskConsistencyGroupPolicy struct { }
ResourcePolicyDiskConsistencyGroupPolicy: Resource policy for disk consistency groups.
type ResourcePolicyGroupPlacementPolicy ¶ added in v0.21.0
type ResourcePolicyGroupPlacementPolicy struct { // AvailabilityDomainCount: The number of availability domains to spread // instances across. If two instances are in different availability domain, // they are not in the same low latency network. AvailabilityDomainCount int64 `json:"availabilityDomainCount,omitempty"` // Collocation: Specifies network collocation // // Possible values: // "COLLOCATED" // "UNSPECIFIED_COLLOCATION" Collocation string `json:"collocation,omitempty"` // VmCount: Number of VMs in this placement group. Google does not recommend // that you use this field unless you use a compact policy and you want your // policy to work only if it contains this exact number of VMs. VmCount int64 `json:"vmCount,omitempty"` // ForceSendFields is a list of field names (e.g. "AvailabilityDomainCount") 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. "AvailabilityDomainCount") 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:"-"` }
ResourcePolicyGroupPlacementPolicy: A GroupPlacementPolicy specifies resource placement configuration. It specifies the failure bucket separation
func (ResourcePolicyGroupPlacementPolicy) MarshalJSON ¶ added in v0.21.0
func (s ResourcePolicyGroupPlacementPolicy) MarshalJSON() ([]byte, error)
type ResourcePolicyHourlyCycle ¶ added in v0.7.0
type ResourcePolicyHourlyCycle struct { // Duration: [Output only] Duration of the time window, automatically chosen to // be smallest possible in the given scenario. Duration string `json:"duration,omitempty"` // HoursInCycle: Defines a schedule with units measured in hours. The value // determines how many hours pass between the start of each cycle. HoursInCycle int64 `json:"hoursInCycle,omitempty"` // StartTime: Time within the window to start the operations. It must be in // format "HH:MM", where HH : [00-23] and MM : [00-00] GMT. StartTime string `json:"startTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Duration") 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. "Duration") 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:"-"` }
ResourcePolicyHourlyCycle: Time window specified for hourly operations.
func (ResourcePolicyHourlyCycle) MarshalJSON ¶ added in v0.7.0
func (s ResourcePolicyHourlyCycle) MarshalJSON() ([]byte, error)
type ResourcePolicyInstanceSchedulePolicy ¶ added in v0.41.0
type ResourcePolicyInstanceSchedulePolicy struct { // ExpirationTime: The expiration time of the schedule. The timestamp is an // RFC3339 string. ExpirationTime string `json:"expirationTime,omitempty"` // StartTime: The start time of the schedule. The timestamp is an RFC3339 // string. StartTime string `json:"startTime,omitempty"` // TimeZone: Specifies the time zone to be used in interpreting // Schedule.schedule. The value of this field must be a time zone name from the // tz database: https://wikipedia.org/wiki/Tz_database. TimeZone string `json:"timeZone,omitempty"` // VmStartSchedule: Specifies the schedule for starting instances. VmStartSchedule *ResourcePolicyInstanceSchedulePolicySchedule `json:"vmStartSchedule,omitempty"` // VmStopSchedule: Specifies the schedule for stopping instances. VmStopSchedule *ResourcePolicyInstanceSchedulePolicySchedule `json:"vmStopSchedule,omitempty"` // ForceSendFields is a list of field names (e.g. "ExpirationTime") 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. "ExpirationTime") 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:"-"` }
ResourcePolicyInstanceSchedulePolicy: An InstanceSchedulePolicy specifies when and how frequent certain operations are performed on the instance.
func (ResourcePolicyInstanceSchedulePolicy) MarshalJSON ¶ added in v0.41.0
func (s ResourcePolicyInstanceSchedulePolicy) MarshalJSON() ([]byte, error)
type ResourcePolicyInstanceSchedulePolicySchedule ¶ added in v0.41.0
type ResourcePolicyInstanceSchedulePolicySchedule struct { // Schedule: Specifies the frequency for the operation, using the unix-cron // format. Schedule string `json:"schedule,omitempty"` // ForceSendFields is a list of field names (e.g. "Schedule") 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. "Schedule") 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:"-"` }
ResourcePolicyInstanceSchedulePolicySchedule: Schedule for an instance operation.
func (ResourcePolicyInstanceSchedulePolicySchedule) MarshalJSON ¶ added in v0.41.0
func (s ResourcePolicyInstanceSchedulePolicySchedule) MarshalJSON() ([]byte, error)
type ResourcePolicyList ¶ added in v0.7.0
type ResourcePolicyList struct { Etag string `json:"etag,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id string `json:"id,omitempty"` // Items: [Output Only] A list of ResourcePolicy resources. Items []*ResourcePolicy `json:"items,omitempty"` // Kind: [Output Only] Type of resource.Always compute#resourcePoliciesList for // listsof resourcePolicies Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *ResourcePolicyListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Etag") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
func (ResourcePolicyList) MarshalJSON ¶ added in v0.7.0
func (s ResourcePolicyList) MarshalJSON() ([]byte, error)
type ResourcePolicyListWarning ¶ added in v0.7.0
type ResourcePolicyListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ResourcePolicyListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ResourcePolicyListWarning: [Output Only] Informational warning message.
func (ResourcePolicyListWarning) MarshalJSON ¶ added in v0.7.0
func (s ResourcePolicyListWarning) MarshalJSON() ([]byte, error)
type ResourcePolicyListWarningData ¶ added in v0.7.0
type ResourcePolicyListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ResourcePolicyListWarningData) MarshalJSON ¶ added in v0.7.0
func (s ResourcePolicyListWarningData) MarshalJSON() ([]byte, error)
type ResourcePolicyResourceStatus ¶ added in v0.41.0
type ResourcePolicyResourceStatus struct { // InstanceSchedulePolicy: [Output Only] Specifies a set of output values // reffering to the instance_schedule_policy system status. This field should // have the same name as corresponding policy field. InstanceSchedulePolicy *ResourcePolicyResourceStatusInstanceSchedulePolicyStatus `json:"instanceSchedulePolicy,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceSchedulePolicy") 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. "InstanceSchedulePolicy") 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:"-"` }
ResourcePolicyResourceStatus: Contains output only fields. Use this sub-message for all output fields set on ResourcePolicy. The internal structure of this "status" field should mimic the structure of ResourcePolicy proto specification.
func (ResourcePolicyResourceStatus) MarshalJSON ¶ added in v0.41.0
func (s ResourcePolicyResourceStatus) MarshalJSON() ([]byte, error)
type ResourcePolicyResourceStatusInstanceSchedulePolicyStatus ¶ added in v0.41.0
type ResourcePolicyResourceStatusInstanceSchedulePolicyStatus struct { // LastRunStartTime: [Output Only] The last time the schedule successfully ran. // The timestamp is an RFC3339 string. LastRunStartTime string `json:"lastRunStartTime,omitempty"` // NextRunStartTime: [Output Only] The next time the schedule is planned to // run. The actual time might be slightly different. The timestamp is an // RFC3339 string. NextRunStartTime string `json:"nextRunStartTime,omitempty"` // ForceSendFields is a list of field names (e.g. "LastRunStartTime") 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. "LastRunStartTime") 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:"-"` }
func (ResourcePolicyResourceStatusInstanceSchedulePolicyStatus) MarshalJSON ¶ added in v0.41.0
func (s ResourcePolicyResourceStatusInstanceSchedulePolicyStatus) MarshalJSON() ([]byte, error)
type ResourcePolicySnapshotSchedulePolicy ¶ added in v0.7.0
type ResourcePolicySnapshotSchedulePolicy struct { // RetentionPolicy: Retention policy applied to snapshots created by this // resource policy. RetentionPolicy *ResourcePolicySnapshotSchedulePolicyRetentionPolicy `json:"retentionPolicy,omitempty"` // Schedule: A Vm Maintenance Policy specifies what kind of infrastructure // maintenance we are allowed to perform on this VM and when. Schedule that is // applied to disks covered by this policy. Schedule *ResourcePolicySnapshotSchedulePolicySchedule `json:"schedule,omitempty"` // SnapshotProperties: Properties with which snapshots are created such as // labels, encryption keys. SnapshotProperties *ResourcePolicySnapshotSchedulePolicySnapshotProperties `json:"snapshotProperties,omitempty"` // ForceSendFields is a list of field names (e.g. "RetentionPolicy") 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. "RetentionPolicy") 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:"-"` }
ResourcePolicySnapshotSchedulePolicy: A snapshot schedule policy specifies when and how frequently snapshots are to be created for the target disk. Also specifies how many and how long these scheduled snapshots should be retained.
func (ResourcePolicySnapshotSchedulePolicy) MarshalJSON ¶ added in v0.7.0
func (s ResourcePolicySnapshotSchedulePolicy) MarshalJSON() ([]byte, error)
type ResourcePolicySnapshotSchedulePolicyRetentionPolicy ¶ added in v0.7.0
type ResourcePolicySnapshotSchedulePolicyRetentionPolicy struct { // MaxRetentionDays: Maximum age of the snapshot that is allowed to be kept. MaxRetentionDays int64 `json:"maxRetentionDays,omitempty"` // OnSourceDiskDelete: Specifies the behavior to apply to scheduled snapshots // when the source disk is deleted. // // Possible values: // "APPLY_RETENTION_POLICY" // "KEEP_AUTO_SNAPSHOTS" // "UNSPECIFIED_ON_SOURCE_DISK_DELETE" OnSourceDiskDelete string `json:"onSourceDiskDelete,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxRetentionDays") 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. "MaxRetentionDays") 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:"-"` }
ResourcePolicySnapshotSchedulePolicyRetentionPolicy: Policy for retention of scheduled snapshots.
func (ResourcePolicySnapshotSchedulePolicyRetentionPolicy) MarshalJSON ¶ added in v0.7.0
func (s ResourcePolicySnapshotSchedulePolicyRetentionPolicy) MarshalJSON() ([]byte, error)
type ResourcePolicySnapshotSchedulePolicySchedule ¶ added in v0.7.0
type ResourcePolicySnapshotSchedulePolicySchedule struct { DailySchedule *ResourcePolicyDailyCycle `json:"dailySchedule,omitempty"` HourlySchedule *ResourcePolicyHourlyCycle `json:"hourlySchedule,omitempty"` WeeklySchedule *ResourcePolicyWeeklyCycle `json:"weeklySchedule,omitempty"` // ForceSendFields is a list of field names (e.g. "DailySchedule") 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. "DailySchedule") 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:"-"` }
ResourcePolicySnapshotSchedulePolicySchedule: A schedule for disks where the schedueled operations are performed.
func (ResourcePolicySnapshotSchedulePolicySchedule) MarshalJSON ¶ added in v0.7.0
func (s ResourcePolicySnapshotSchedulePolicySchedule) MarshalJSON() ([]byte, error)
type ResourcePolicySnapshotSchedulePolicySnapshotProperties ¶ added in v0.7.0
type ResourcePolicySnapshotSchedulePolicySnapshotProperties struct { // ChainName: Chain name that the snapshot is created in. ChainName string `json:"chainName,omitempty"` // GuestFlush: Indication to perform a 'guest aware' snapshot. GuestFlush bool `json:"guestFlush,omitempty"` // Labels: Labels to apply to scheduled snapshots. These can be later modified // by the setLabels method. Label values may be empty. Labels map[string]string `json:"labels,omitempty"` // StorageLocations: Cloud Storage bucket storage location of the auto snapshot // (regional or multi-regional). StorageLocations []string `json:"storageLocations,omitempty"` // ForceSendFields is a list of field names (e.g. "ChainName") 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. "ChainName") 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:"-"` }
ResourcePolicySnapshotSchedulePolicySnapshotProperties: Specified snapshot properties for scheduled snapshots created by this policy.
func (ResourcePolicySnapshotSchedulePolicySnapshotProperties) MarshalJSON ¶ added in v0.7.0
func (s ResourcePolicySnapshotSchedulePolicySnapshotProperties) MarshalJSON() ([]byte, error)
type ResourcePolicyWeeklyCycle ¶ added in v0.7.0
type ResourcePolicyWeeklyCycle struct { // DayOfWeeks: Up to 7 intervals/windows, one for each day of the week. DayOfWeeks []*ResourcePolicyWeeklyCycleDayOfWeek `json:"dayOfWeeks,omitempty"` // ForceSendFields is a list of field names (e.g. "DayOfWeeks") 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. "DayOfWeeks") 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:"-"` }
ResourcePolicyWeeklyCycle: Time window specified for weekly operations.
func (ResourcePolicyWeeklyCycle) MarshalJSON ¶ added in v0.7.0
func (s ResourcePolicyWeeklyCycle) MarshalJSON() ([]byte, error)
type ResourcePolicyWeeklyCycleDayOfWeek ¶ added in v0.7.0
type ResourcePolicyWeeklyCycleDayOfWeek struct { // Day: Defines a schedule that runs on specific days of the week. Specify one // or more days. The following options are available: MONDAY, TUESDAY, // WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY. // // Possible values: // "FRIDAY" // "INVALID" // "MONDAY" // "SATURDAY" // "SUNDAY" // "THURSDAY" // "TUESDAY" // "WEDNESDAY" Day string `json:"day,omitempty"` // Duration: [Output only] Duration of the time window, automatically chosen to // be smallest possible in the given scenario. Duration string `json:"duration,omitempty"` // StartTime: Time within the window to start the operations. It must be in // format "HH:MM", where HH : [00-23] and MM : [00-00] GMT. StartTime string `json:"startTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Day") 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. "Day") 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:"-"` }
func (ResourcePolicyWeeklyCycleDayOfWeek) MarshalJSON ¶ added in v0.7.0
func (s ResourcePolicyWeeklyCycleDayOfWeek) MarshalJSON() ([]byte, error)
type ResourceStatus ¶ added in v0.99.0
type ResourceStatus struct { // PhysicalHost: [Output Only] An opaque ID of the host on which the VM is // running. PhysicalHost string `json:"physicalHost,omitempty"` Scheduling *ResourceStatusScheduling `json:"scheduling,omitempty"` UpcomingMaintenance *UpcomingMaintenance `json:"upcomingMaintenance,omitempty"` // ForceSendFields is a list of field names (e.g. "PhysicalHost") 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. "PhysicalHost") 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:"-"` }
ResourceStatus: Contains output only fields. Use this sub-message for actual values set on Instance attributes as compared to the value requested by the user (intent) in their instance CRUD calls.
func (ResourceStatus) MarshalJSON ¶ added in v0.99.0
func (s ResourceStatus) MarshalJSON() ([]byte, error)
type ResourceStatusScheduling ¶ added in v0.191.0
type ResourceStatusScheduling struct { // AvailabilityDomain: Specifies the availability domain to place the instance // in. The value must be a number between 1 and the number of availability // domains specified in the spread placement policy attached to the instance. AvailabilityDomain int64 `json:"availabilityDomain,omitempty"` // ForceSendFields is a list of field names (e.g. "AvailabilityDomain") 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. "AvailabilityDomain") 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:"-"` }
func (ResourceStatusScheduling) MarshalJSON ¶ added in v0.191.0
func (s ResourceStatusScheduling) MarshalJSON() ([]byte, error)
type Route ¶
type Route struct { // AsPaths: [Output Only] AS path. AsPaths []*RouteAsPath `json:"asPaths,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this field // when you create the resource. Description string `json:"description,omitempty"` // DestRange: The destination range of outgoing packets that this route applies // to. Both IPv4 and IPv6 are supported. Must specify an IPv4 range (e.g. // 192.0.2.0/24) or an IPv6 range in RFC 4291 format (e.g. 2001:db8::/32). IPv6 // range will be displayed using RFC 5952 compressed format. DestRange string `json:"destRange,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of this resource. Always compute#routes for Route // resources. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a // lowercase letter, and all following characters (except for the last // character) must be a dash, lowercase letter, or digit. The last character // must be a lowercase letter or digit. Name string `json:"name,omitempty"` // Network: Fully-qualified URL of the network that this route applies to. Network string `json:"network,omitempty"` // NextHopGateway: The URL to a gateway that should handle matching packets. // You can only specify the internet gateway using a full or partial valid URL: // projects/ project/global/gateways/default-internet-gateway NextHopGateway string `json:"nextHopGateway,omitempty"` // NextHopHub: [Output Only] The full resource name of the Network Connectivity // Center hub that will handle matching packets. NextHopHub string `json:"nextHopHub,omitempty"` // NextHopIlb: The URL to a forwarding rule of type // loadBalancingScheme=INTERNAL that should handle matching packets or the IP // address of the forwarding Rule. For example, the following are all valid // URLs: - // https://www.googleapis.com/compute/v1/projects/project/regions/region // /forwardingRules/forwardingRule - // regions/region/forwardingRules/forwardingRule If an IP address is provided, // must specify an IPv4 address in dot-decimal notation or an IPv6 address in // RFC 4291 format. For example, the following are all valid IP addresses: - // 10.128.0.56 - 2001:db8::2d9:51:0:0 - 2001:db8:0:0:2d9:51:0:0 IPv6 addresses // will be displayed using RFC 5952 compressed format (e.g. // 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. NextHopIlb string `json:"nextHopIlb,omitempty"` // NextHopInstance: The URL to an instance that should handle matching packets. // You can specify this as a full or partial URL. For example: // https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ NextHopInstance string `json:"nextHopInstance,omitempty"` // NextHopIp: The network IP address of an instance that should handle matching // packets. Both IPv6 address and IPv4 addresses are supported. Must specify an // IPv4 address in dot-decimal notation (e.g. 192.0.2.99) or an IPv6 address in // RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or 2001:db8:0:0:2d9:51:0:0). IPv6 // addresses will be displayed using RFC 5952 compressed format (e.g. // 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. NextHopIp string `json:"nextHopIp,omitempty"` // NextHopNetwork: The URL of the local network if it should handle matching // packets. NextHopNetwork string `json:"nextHopNetwork,omitempty"` // NextHopPeering: [Output Only] The network peering name that should handle // matching packets, which should conform to RFC1035. NextHopPeering string `json:"nextHopPeering,omitempty"` // NextHopVpnTunnel: The URL to a VpnTunnel that should handle matching // packets. NextHopVpnTunnel string `json:"nextHopVpnTunnel,omitempty"` // Priority: The priority of this route. Priority is used to break ties in // cases where there is more than one matching route of equal prefix length. In // cases where multiple routes have equal prefix length, the one with the // lowest-numbered priority value wins. The default value is `1000`. The // priority value must be from `0` to `65535`, inclusive. Priority int64 `json:"priority,omitempty"` // RouteStatus: [Output only] The status of the route. // // Possible values: // "ACTIVE" - This route is processed and active. // "DROPPED" - The route is dropped due to the VPC exceeding the dynamic // route limit. For dynamic route limit, please refer to the Learned route // example // "INACTIVE" - This route is processed but inactive due to failure from the // backend. The backend may have rejected the route // "PENDING" - This route is being processed internally. The status will // change once processed. RouteStatus string `json:"routeStatus,omitempty"` // RouteType: [Output Only] The type of this route, which can be one of the // following values: - 'TRANSIT' for a transit route that this router learned // from another Cloud Router and will readvertise to one of its BGP peers - // 'SUBNET' for a route from a subnet of the VPC - 'BGP' for a route learned // from a BGP peer of this router - 'STATIC' for a static route // // Possible values: // "BGP" // "STATIC" // "SUBNET" // "TRANSIT" RouteType string `json:"routeType,omitempty"` // SelfLink: [Output Only] Server-defined fully-qualified URL for this // resource. SelfLink string `json:"selfLink,omitempty"` // Tags: A list of instance tags to which this route applies. Tags []string `json:"tags,omitempty"` // Warnings: [Output Only] If potential misconfigurations are detected for this // route, this field will be populated with warning messages. Warnings []*RouteWarnings `json:"warnings,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AsPaths") 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. "AsPaths") 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:"-"` }
Route: Represents a Route resource. A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read the Routes overview.
func (Route) MarshalJSON ¶
type RouteAsPath ¶ added in v0.59.0
type RouteAsPath struct { // AsLists: [Output Only] The AS numbers of the AS Path. AsLists []int64 `json:"asLists,omitempty"` // PathSegmentType: [Output Only] The type of the AS Path, which can be one of // the following values: - 'AS_SET': unordered set of autonomous systems that // the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous // systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of // Member Autonomous Systems in the local confederation that the route has // traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in // the local confederation that the route has traversed // // Possible values: // "AS_CONFED_SEQUENCE" // "AS_CONFED_SET" // "AS_SEQUENCE" // "AS_SET" PathSegmentType string `json:"pathSegmentType,omitempty"` // ForceSendFields is a list of field names (e.g. "AsLists") 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. "AsLists") 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:"-"` }
func (RouteAsPath) MarshalJSON ¶ added in v0.59.0
func (s RouteAsPath) MarshalJSON() ([]byte, error)
type RouteList ¶
type RouteList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Route resources. Items []*Route `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *RouteListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
RouteList: Contains a list of Route resources.
func (RouteList) MarshalJSON ¶
type RouteListWarning ¶
type RouteListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*RouteListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
RouteListWarning: [Output Only] Informational warning message.
func (RouteListWarning) MarshalJSON ¶
func (s RouteListWarning) MarshalJSON() ([]byte, error)
type RouteListWarningData ¶
type RouteListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (RouteListWarningData) MarshalJSON ¶
func (s RouteListWarningData) MarshalJSON() ([]byte, error)
type RouteWarnings ¶
type RouteWarnings struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*RouteWarningsData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
func (RouteWarnings) MarshalJSON ¶
func (s RouteWarnings) MarshalJSON() ([]byte, error)
type RouteWarningsData ¶
type RouteWarningsData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (RouteWarningsData) MarshalJSON ¶
func (s RouteWarningsData) MarshalJSON() ([]byte, error)
type Router ¶
type Router struct { // Bgp: BGP information specific to this router. Bgp *RouterBgp `json:"bgp,omitempty"` // BgpPeers: BGP information that must be configured into the routing stack to // establish BGP peering. This information must specify the peer ASN and either // the interface name, IP address, or peer IP address. Please refer to RFC4273. BgpPeers []*RouterBgpPeer `json:"bgpPeers,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // EncryptedInterconnectRouter: Indicates if a router is dedicated for use with // encrypted VLAN attachments (interconnectAttachments). EncryptedInterconnectRouter bool `json:"encryptedInterconnectRouter,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Interfaces: Router interfaces. To create a BGP peer that uses a router // interface, the interface must have one of the following fields specified: - // linkedVpnTunnel - linkedInterconnectAttachment - subnetwork You can create a // router interface without any of these fields specified. However, you cannot // create a BGP peer that uses that interface. Interfaces []*RouterInterface `json:"interfaces,omitempty"` // Kind: [Output Only] Type of resource. Always compute#router for routers. Kind string `json:"kind,omitempty"` // Md5AuthenticationKeys: Keys used for MD5 authentication. Md5AuthenticationKeys []*RouterMd5AuthenticationKey `json:"md5AuthenticationKeys,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Nats: A list of NAT services created in this router. Nats []*RouterNat `json:"nats,omitempty"` // Network: URI of the network to which this router belongs. Network string `json:"network,omitempty"` // Region: [Output Only] URI of the region where the router resides. You must // specify this field as part of the HTTP request URL. It is not settable as a // field in the request body. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Bgp") 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. "Bgp") 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:"-"` }
Router: Represents a Cloud Router resource. For more information about Cloud Router, read the Cloud Router overview.
func (Router) MarshalJSON ¶
type RouterAdvertisedIpRange ¶
type RouterAdvertisedIpRange struct { // Description: User-specified description for the IP range. Description string `json:"description,omitempty"` // Range: The IP range to advertise. The value must be a CIDR-formatted string. Range string `json:"range,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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:"-"` }
RouterAdvertisedIpRange: Description-tagged IP ranges for the router to advertise.
func (RouterAdvertisedIpRange) MarshalJSON ¶
func (s RouterAdvertisedIpRange) MarshalJSON() ([]byte, error)
type RouterAggregatedList ¶
type RouterAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Router resources. Items map[string]RoutersScopedList `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *RouterAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
RouterAggregatedList: Contains a list of routers.
func (RouterAggregatedList) MarshalJSON ¶
func (s RouterAggregatedList) MarshalJSON() ([]byte, error)
type RouterAggregatedListWarning ¶
type RouterAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*RouterAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
RouterAggregatedListWarning: [Output Only] Informational warning message.
func (RouterAggregatedListWarning) MarshalJSON ¶
func (s RouterAggregatedListWarning) MarshalJSON() ([]byte, error)
type RouterAggregatedListWarningData ¶
type RouterAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (RouterAggregatedListWarningData) MarshalJSON ¶
func (s RouterAggregatedListWarningData) MarshalJSON() ([]byte, error)
type RouterBgp ¶
type RouterBgp struct { // AdvertiseMode: User-specified flag to indicate which mode to use for // advertisement. The options are DEFAULT or CUSTOM. // // Possible values: // "CUSTOM" // "DEFAULT" AdvertiseMode string `json:"advertiseMode,omitempty"` // AdvertisedGroups: User-specified list of prefix groups to advertise in // custom mode. This field can only be populated if advertise_mode is CUSTOM // and is advertised to all peers of the router. These groups will be // advertised in addition to any specified prefixes. Leave this field blank to // advertise no custom groups. // // Possible values: // "ALL_SUBNETS" - Advertise all available subnets (including peer VPC // subnets). AdvertisedGroups []string `json:"advertisedGroups,omitempty"` // AdvertisedIpRanges: User-specified list of individual IP ranges to advertise // in custom mode. This field can only be populated if advertise_mode is CUSTOM // and is advertised to all peers of the router. These IP ranges will be // advertised in addition to any specified groups. Leave this field blank to // advertise no custom IP ranges. AdvertisedIpRanges []*RouterAdvertisedIpRange `json:"advertisedIpRanges,omitempty"` // Asn: Local BGP Autonomous System Number (ASN). Must be an RFC6996 private // ASN, either 16-bit or 32-bit. The value will be fixed for this router // resource. All VPN tunnels that link to this router will have the same local // ASN. Asn int64 `json:"asn,omitempty"` // IdentifierRange: Explicitly specifies a range of valid BGP Identifiers for // this Router. It is provided as a link-local IPv4 range (from // 169.254.0.0/16), of size at least /30, even if the BGP sessions are over // IPv6. It must not overlap with any IPv4 BGP session ranges. Other vendors // commonly call this "router ID". IdentifierRange string `json:"identifierRange,omitempty"` // KeepaliveInterval: The interval in seconds between BGP keepalive messages // that are sent to the peer. Hold time is three times the interval at which // keepalive messages are sent, and the hold time is the maximum number of // seconds allowed to elapse between successive keepalive messages that BGP // receives from a peer. BGP will use the smaller of either the local hold time // value or the peer's hold time value as the hold time for the BGP connection // between the two peers. If set, this value must be between 20 and 60. The // default is 20. KeepaliveInterval int64 `json:"keepaliveInterval,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvertiseMode") 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. "AdvertiseMode") 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:"-"` }
func (RouterBgp) MarshalJSON ¶
type RouterBgpPeer ¶
type RouterBgpPeer struct { // AdvertiseMode: User-specified flag to indicate which mode to use for // advertisement. // // Possible values: // "CUSTOM" // "DEFAULT" AdvertiseMode string `json:"advertiseMode,omitempty"` // AdvertisedGroups: User-specified list of prefix groups to advertise in // custom mode, which currently supports the following option: - ALL_SUBNETS: // Advertises all of the router's own VPC subnets. This excludes any routes // learned for subnets that use VPC Network Peering. Note that this field can // only be populated if advertise_mode is CUSTOM and overrides the list defined // for the router (in the "bgp" message). These groups are advertised in // addition to any specified prefixes. Leave this field blank to advertise no // custom groups. // // Possible values: // "ALL_SUBNETS" - Advertise all available subnets (including peer VPC // subnets). AdvertisedGroups []string `json:"advertisedGroups,omitempty"` // AdvertisedIpRanges: User-specified list of individual IP ranges to advertise // in custom mode. This field can only be populated if advertise_mode is CUSTOM // and overrides the list defined for the router (in the "bgp" message). These // IP ranges are advertised in addition to any specified groups. Leave this // field blank to advertise no custom IP ranges. AdvertisedIpRanges []*RouterAdvertisedIpRange `json:"advertisedIpRanges,omitempty"` // AdvertisedRoutePriority: The priority of routes advertised to this BGP peer. // Where there is more than one matching route of maximum length, the routes // with the lowest priority value win. AdvertisedRoutePriority int64 `json:"advertisedRoutePriority,omitempty"` // Bfd: BFD configuration for the BGP peering. Bfd *RouterBgpPeerBfd `json:"bfd,omitempty"` // CustomLearnedIpRanges: A list of user-defined custom learned route IP // address ranges for a BGP session. CustomLearnedIpRanges []*RouterBgpPeerCustomLearnedIpRange `json:"customLearnedIpRanges,omitempty"` // CustomLearnedRoutePriority: The user-defined custom learned route priority // for a BGP session. This value is applied to all custom learned route ranges // for the session. You can choose a value from `0` to `65335`. If you don't // provide a value, Google Cloud assigns a priority of `100` to the ranges. CustomLearnedRoutePriority int64 `json:"customLearnedRoutePriority,omitempty"` // Enable: The status of the BGP peer connection. If set to FALSE, any active // session with the peer is terminated and all associated routing information // is removed. If set to TRUE, the peer connection can be established with // routing information. The default is TRUE. // // Possible values: // "FALSE" // "TRUE" Enable string `json:"enable,omitempty"` // EnableIpv4: Enable IPv4 traffic over BGP Peer. It is enabled by default if // the peerIpAddress is version 4. EnableIpv4 bool `json:"enableIpv4,omitempty"` // EnableIpv6: Enable IPv6 traffic over BGP Peer. It is enabled by default if // the peerIpAddress is version 6. EnableIpv6 bool `json:"enableIpv6,omitempty"` // ExportPolicies: List of export policies applied to this peer, in the order // they must be evaluated. The name must correspond to an existing policy that // has ROUTE_POLICY_TYPE_EXPORT type. Note that Route Policies are currently // available in preview. Please use Beta API to use Route Policies. ExportPolicies []string `json:"exportPolicies,omitempty"` // ImportPolicies: List of import policies applied to this peer, in the order // they must be evaluated. The name must correspond to an existing policy that // has ROUTE_POLICY_TYPE_IMPORT type. Note that Route Policies are currently // available in preview. Please use Beta API to use Route Policies. ImportPolicies []string `json:"importPolicies,omitempty"` // InterfaceName: Name of the interface the BGP peer is associated with. InterfaceName string `json:"interfaceName,omitempty"` // IpAddress: IP address of the interface inside Google Cloud Platform. IpAddress string `json:"ipAddress,omitempty"` // Ipv4NexthopAddress: IPv4 address of the interface inside Google Cloud // Platform. Ipv4NexthopAddress string `json:"ipv4NexthopAddress,omitempty"` // Ipv6NexthopAddress: IPv6 address of the interface inside Google Cloud // Platform. Ipv6NexthopAddress string `json:"ipv6NexthopAddress,omitempty"` // ManagementType: [Output Only] The resource that configures and manages this // BGP peer. - MANAGED_BY_USER is the default value and can be managed by you // or other users - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and // managed by Cloud Interconnect, specifically by an InterconnectAttachment of // type PARTNER. Google automatically creates, updates, and deletes this type // of BGP peer when the PARTNER InterconnectAttachment is created, updated, or // deleted. // // Possible values: // "MANAGED_BY_ATTACHMENT" - The BGP peer is automatically created for // PARTNER type InterconnectAttachment; Google will automatically create/delete // this BGP peer when the PARTNER InterconnectAttachment is created/deleted, // and Google will update the ipAddress and peerIpAddress when the PARTNER // InterconnectAttachment is provisioned. This type of BGP peer cannot be // created or deleted, but can be modified for all fields except for name, // ipAddress and peerIpAddress. // "MANAGED_BY_USER" - Default value, the BGP peer is manually created and // managed by user. ManagementType string `json:"managementType,omitempty"` // Md5AuthenticationKeyName: Present if MD5 authentication is enabled for the // peering. Must be the name of one of the entries in the // Router.md5_authentication_keys. The field must comply with RFC1035. Md5AuthenticationKeyName string `json:"md5AuthenticationKeyName,omitempty"` // Name: Name of this BGP peer. The name must be 1-63 characters long, and // comply with RFC1035. Specifically, the name must be 1-63 characters long and // match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the // first character must be a lowercase letter, and all following characters // must be a dash, lowercase letter, or digit, except the last character, which // cannot be a dash. Name string `json:"name,omitempty"` // PeerAsn: Peer BGP Autonomous System Number (ASN). Each BGP interface may use // a different value. PeerAsn int64 `json:"peerAsn,omitempty"` // PeerIpAddress: IP address of the BGP interface outside Google Cloud // Platform. PeerIpAddress string `json:"peerIpAddress,omitempty"` // PeerIpv4NexthopAddress: IPv4 address of the BGP interface outside Google // Cloud Platform. PeerIpv4NexthopAddress string `json:"peerIpv4NexthopAddress,omitempty"` // PeerIpv6NexthopAddress: IPv6 address of the BGP interface outside Google // Cloud Platform. PeerIpv6NexthopAddress string `json:"peerIpv6NexthopAddress,omitempty"` // RouterApplianceInstance: URI of the VM instance that is used as third-party // router appliances such as Next Gen Firewalls, Virtual Routers, or Router // Appliances. The VM instance must be located in zones contained in the same // region as this Cloud Router. The VM instance is the peer side of the BGP // session. RouterApplianceInstance string `json:"routerApplianceInstance,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvertiseMode") 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. "AdvertiseMode") 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:"-"` }
func (RouterBgpPeer) MarshalJSON ¶
func (s RouterBgpPeer) MarshalJSON() ([]byte, error)
type RouterBgpPeerBfd ¶ added in v0.57.0
type RouterBgpPeerBfd struct { // MinReceiveInterval: The minimum interval, in milliseconds, between BFD // control packets received from the peer router. The actual value is // negotiated between the two routers and is equal to the greater of this value // and the transmit interval of the other router. If set, this value must be // between 1000 and 30000. The default is 1000. MinReceiveInterval int64 `json:"minReceiveInterval,omitempty"` // MinTransmitInterval: The minimum interval, in milliseconds, between BFD // control packets transmitted to the peer router. The actual value is // negotiated between the two routers and is equal to the greater of this value // and the corresponding receive interval of the other router. If set, this // value must be between 1000 and 30000. The default is 1000. MinTransmitInterval int64 `json:"minTransmitInterval,omitempty"` // Multiplier: The number of consecutive BFD packets that must be missed before // BFD declares that a peer is unavailable. If set, the value must be a value // between 5 and 16. The default is 5. Multiplier int64 `json:"multiplier,omitempty"` // SessionInitializationMode: The BFD session initialization mode for this BGP // peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for // this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer // router to initiate the BFD session for this BGP peer. If set to DISABLED, // BFD is disabled for this BGP peer. The default is DISABLED. // // Possible values: // "ACTIVE" // "DISABLED" // "PASSIVE" SessionInitializationMode string `json:"sessionInitializationMode,omitempty"` // ForceSendFields is a list of field names (e.g. "MinReceiveInterval") 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. "MinReceiveInterval") 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:"-"` }
func (RouterBgpPeerBfd) MarshalJSON ¶ added in v0.57.0
func (s RouterBgpPeerBfd) MarshalJSON() ([]byte, error)
type RouterBgpPeerCustomLearnedIpRange ¶ added in v0.129.0
type RouterBgpPeerCustomLearnedIpRange struct { // Range: The custom learned route IP address range. Must be a valid // CIDR-formatted prefix. If an IP address is provided without a subnet mask, // it is interpreted as, for IPv4, a `/32` singular IP address range, and, for // IPv6, `/128`. Range string `json:"range,omitempty"` // ForceSendFields is a list of field names (e.g. "Range") 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. "Range") 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:"-"` }
func (RouterBgpPeerCustomLearnedIpRange) MarshalJSON ¶ added in v0.129.0
func (s RouterBgpPeerCustomLearnedIpRange) MarshalJSON() ([]byte, error)
type RouterInterface ¶
type RouterInterface struct { // IpRange: IP address and range of the interface. - For Internet Protocol // version 4 (IPv4), the IP range must be in the RFC3927 link-local IP address // space. The value must be a CIDR-formatted string, for example, // 169.254.0.1/30. Note: Do not truncate the IP address, as it represents the // IP address of the interface. - For Internet Protocol version 6 (IPv6), the // value must be a unique local address (ULA) range from fdff:1::/64 with a // mask length of 126 or less. This value should be a CIDR-formatted string, // for example, fc00:0:1:1::1/112. Within the router's VPC, this IPv6 prefix // will be reserved exclusively for this connection and cannot be used for any // other purpose. IpRange string `json:"ipRange,omitempty"` // IpVersion: IP version of this interface. // // Possible values: // "IPV4" // "IPV6" IpVersion string `json:"ipVersion,omitempty"` // LinkedInterconnectAttachment: URI of the linked Interconnect attachment. It // must be in the same region as the router. Each interface can have one linked // resource, which can be a VPN tunnel, an Interconnect attachment, or a // subnetwork. LinkedInterconnectAttachment string `json:"linkedInterconnectAttachment,omitempty"` // LinkedVpnTunnel: URI of the linked VPN tunnel, which must be in the same // region as the router. Each interface can have one linked resource, which can // be a VPN tunnel, an Interconnect attachment, or a subnetwork. LinkedVpnTunnel string `json:"linkedVpnTunnel,omitempty"` // ManagementType: [Output Only] The resource that configures and manages this // interface. - MANAGED_BY_USER is the default value and can be managed // directly by users. - MANAGED_BY_ATTACHMENT is an interface that is // configured and managed by Cloud Interconnect, specifically, by an // InterconnectAttachment of type PARTNER. Google automatically creates, // updates, and deletes this type of interface when the PARTNER // InterconnectAttachment is created, updated, or deleted. // // Possible values: // "MANAGED_BY_ATTACHMENT" - The interface is automatically created for // PARTNER type InterconnectAttachment, Google will automatically // create/update/delete this interface when the PARTNER InterconnectAttachment // is created/provisioned/deleted. This type of interface cannot be manually // managed by user. // "MANAGED_BY_USER" - Default value, the interface is manually created and // managed by user. ManagementType string `json:"managementType,omitempty"` // Name: Name of this interface entry. The name must be 1-63 characters long, // and comply with RFC1035. Specifically, the name must be 1-63 characters long // and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means // the first character must be a lowercase letter, and all following characters // must be a dash, lowercase letter, or digit, except the last character, which // cannot be a dash. Name string `json:"name,omitempty"` // PrivateIpAddress: The regional private internal IP address that is used to // establish BGP sessions to a VM instance acting as a third-party Router // Appliance, such as a Next Gen Firewall, a Virtual Router, or an SD-WAN VM. PrivateIpAddress string `json:"privateIpAddress,omitempty"` // RedundantInterface: Name of the interface that will be redundant with the // current interface you are creating. The redundantInterface must belong to // the same Cloud Router as the interface here. To establish the BGP session to // a Router Appliance VM, you must create two BGP peers. The two BGP peers must // be attached to two separate interfaces that are redundant with each other. // The redundant_interface must be 1-63 characters long, and comply with // RFC1035. Specifically, the redundant_interface must be 1-63 characters long // and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means // the first character must be a lowercase letter, and all following characters // must be a dash, lowercase letter, or digit, except the last character, which // cannot be a dash. RedundantInterface string `json:"redundantInterface,omitempty"` // Subnetwork: The URI of the subnetwork resource that this interface belongs // to, which must be in the same region as the Cloud Router. When you establish // a BGP session to a VM instance using this interface, the VM instance must // belong to the same subnetwork as the subnetwork specified here. Subnetwork string `json:"subnetwork,omitempty"` // ForceSendFields is a list of field names (e.g. "IpRange") 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. "IpRange") 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:"-"` }
func (RouterInterface) MarshalJSON ¶
func (s RouterInterface) MarshalJSON() ([]byte, error)
type RouterList ¶
type RouterList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Router resources. Items []*Router `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#router for routers. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *RouterListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
RouterList: Contains a list of Router resources.
func (RouterList) MarshalJSON ¶
func (s RouterList) MarshalJSON() ([]byte, error)
type RouterListWarning ¶
type RouterListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*RouterListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
RouterListWarning: [Output Only] Informational warning message.
func (RouterListWarning) MarshalJSON ¶
func (s RouterListWarning) MarshalJSON() ([]byte, error)
type RouterListWarningData ¶
type RouterListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (RouterListWarningData) MarshalJSON ¶
func (s RouterListWarningData) MarshalJSON() ([]byte, error)
type RouterMd5AuthenticationKey ¶ added in v0.99.0
type RouterMd5AuthenticationKey struct { // Key: [Input only] Value of the key. For patch and update calls, it can be // skipped to copy the value from the previous configuration. This is allowed // if the key with the same name existed before the operation. Maximum length // is 80 characters. Can only contain printable ASCII characters. Key string `json:"key,omitempty"` // Name: Name used to identify the key. Must be unique within a router. Must be // referenced by exactly one bgpPeer. Must comply with RFC1035. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (RouterMd5AuthenticationKey) MarshalJSON ¶ added in v0.99.0
func (s RouterMd5AuthenticationKey) MarshalJSON() ([]byte, error)
type RouterNat ¶
type RouterNat struct { // AutoNetworkTier: The network tier to use when automatically reserving NAT IP // addresses. Must be one of: PREMIUM, STANDARD. If not specified, then the // current project-level default tier is used. // // Possible values: // "FIXED_STANDARD" - Public internet quality with fixed bandwidth. // "PREMIUM" - High quality, Google-grade network tier, support for all // networking products. // "STANDARD" - Public internet quality, only limited support for other // networking products. // "STANDARD_OVERRIDES_FIXED_STANDARD" - (Output only) Temporary tier for // FIXED_STANDARD when fixed standard tier is expired or not configured. AutoNetworkTier string `json:"autoNetworkTier,omitempty"` // DrainNatIps: A list of URLs of the IP resources to be drained. These IPs // must be valid static external IPs that have been assigned to the NAT. These // IPs should be used for updating/patching a NAT only. DrainNatIps []string `json:"drainNatIps,omitempty"` // EnableDynamicPortAllocation: Enable Dynamic Port Allocation. If not // specified, it is disabled by default. If set to true, - Dynamic Port // Allocation will be enabled on this NAT config. - // enableEndpointIndependentMapping cannot be set to true. - If minPorts is // set, minPortsPerVm must be set to a power of two greater than or equal to // 32. If minPortsPerVm is not set, a minimum of 32 ports will be allocated to // a VM from this NAT config. EnableDynamicPortAllocation bool `json:"enableDynamicPortAllocation,omitempty"` EnableEndpointIndependentMapping bool `json:"enableEndpointIndependentMapping,omitempty"` // EndpointTypes: List of NAT-ted endpoint types supported by the Nat Gateway. // If the list is empty, then it will be equivalent to include ENDPOINT_TYPE_VM // // Possible values: // "ENDPOINT_TYPE_MANAGED_PROXY_LB" - This is used for regional Application // Load Balancers (internal and external) and regional proxy Network Load // Balancers (internal and external) endpoints. // "ENDPOINT_TYPE_SWG" - This is used for Secure Web Gateway endpoints. // "ENDPOINT_TYPE_VM" - This is the default. EndpointTypes []string `json:"endpointTypes,omitempty"` // IcmpIdleTimeoutSec: Timeout (in seconds) for ICMP connections. Defaults to // 30s if not set. IcmpIdleTimeoutSec int64 `json:"icmpIdleTimeoutSec,omitempty"` // LogConfig: Configure logging on this NAT. LogConfig *RouterNatLogConfig `json:"logConfig,omitempty"` // MaxPortsPerVm: Maximum number of ports allocated to a VM from this NAT // config when Dynamic Port Allocation is enabled. If Dynamic Port Allocation // is not enabled, this field has no effect. If Dynamic Port Allocation is // enabled, and this field is set, it must be set to a power of two greater // than minPortsPerVm, or 64 if minPortsPerVm is not set. If Dynamic Port // Allocation is enabled and this field is not set, a maximum of 65536 ports // will be allocated to a VM from this NAT config. MaxPortsPerVm int64 `json:"maxPortsPerVm,omitempty"` // MinPortsPerVm: Minimum number of ports allocated to a VM from this NAT // config. If not set, a default number of ports is allocated to a VM. This is // rounded up to the nearest power of 2. For example, if the value of this // field is 50, at least 64 ports are allocated to a VM. MinPortsPerVm int64 `json:"minPortsPerVm,omitempty"` // Name: Unique name of this Nat service. The name must be 1-63 characters long // and comply with RFC1035. Name string `json:"name,omitempty"` // NatIpAllocateOption: Specify the NatIpAllocateOption, which can take one of // the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by // customers. When there are not enough specified Nat IPs, the Nat service // fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud // Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then // nat_ip should be empty. // // Possible values: // "AUTO_ONLY" - Nat IPs are allocated by GCP; customers can not specify any // Nat IPs. // "MANUAL_ONLY" - Only use Nat IPs provided by customers. When specified Nat // IPs are not enough then the Nat service fails for new VMs. NatIpAllocateOption string `json:"natIpAllocateOption,omitempty"` // NatIps: A list of URLs of the IP resources used for this Nat service. These // IP addresses must be valid static external IP addresses assigned to the // project. NatIps []string `json:"natIps,omitempty"` // Rules: A list of rules associated with this NAT. Rules []*RouterNatRule `json:"rules,omitempty"` // SourceSubnetworkIpRangesToNat: Specify the Nat option, which can take one of // the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges // in every Subnetwork are allowed to Nat. - // ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every // Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks // are allowed to Nat (specified in the field subnetwork below) The default is // SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field // contains ALL_SUBNETWORKS_ALL_IP_RANGES then there should not be any other // Router.Nat section in any Router for this network in this region. // // Possible values: // "ALL_SUBNETWORKS_ALL_IP_RANGES" - All the IP ranges in every Subnetwork // are allowed to Nat. // "ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES" - All the primary IP ranges in // every Subnetwork are allowed to Nat. // "LIST_OF_SUBNETWORKS" - A list of Subnetworks are allowed to Nat // (specified in the field subnetwork below) SourceSubnetworkIpRangesToNat string `json:"sourceSubnetworkIpRangesToNat,omitempty"` // Subnetworks: A list of Subnetwork resources whose traffic should be // translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is // selected for the SubnetworkIpRangeToNatOption above. Subnetworks []*RouterNatSubnetworkToNat `json:"subnetworks,omitempty"` // TcpEstablishedIdleTimeoutSec: Timeout (in seconds) for TCP established // connections. Defaults to 1200s if not set. TcpEstablishedIdleTimeoutSec int64 `json:"tcpEstablishedIdleTimeoutSec,omitempty"` // TcpTimeWaitTimeoutSec: Timeout (in seconds) for TCP connections that are in // TIME_WAIT state. Defaults to 120s if not set. TcpTimeWaitTimeoutSec int64 `json:"tcpTimeWaitTimeoutSec,omitempty"` // TcpTransitoryIdleTimeoutSec: Timeout (in seconds) for TCP transitory // connections. Defaults to 30s if not set. TcpTransitoryIdleTimeoutSec int64 `json:"tcpTransitoryIdleTimeoutSec,omitempty"` // Type: Indicates whether this NAT is used for public or private IP // translation. If unspecified, it defaults to PUBLIC. // // Possible values: // "PRIVATE" - NAT used for private IP translation. // "PUBLIC" - NAT used for public IP translation. This is the default. Type string `json:"type,omitempty"` // UdpIdleTimeoutSec: Timeout (in seconds) for UDP connections. Defaults to 30s // if not set. UdpIdleTimeoutSec int64 `json:"udpIdleTimeoutSec,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoNetworkTier") 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. "AutoNetworkTier") 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:"-"` }
RouterNat: Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto-allocate ephemeral IPs if no external IPs are provided.
func (RouterNat) MarshalJSON ¶
type RouterNatLogConfig ¶ added in v0.6.0
type RouterNatLogConfig struct { // Enable: Indicates whether or not to export logs. This is false by default. Enable bool `json:"enable,omitempty"` // Filter: Specify the desired filtering of logs on this NAT. If unspecified, // logs are exported for all connections handled by this NAT. This option can // take one of the following values: - ERRORS_ONLY: Export logs only for // connection failures. - TRANSLATIONS_ONLY: Export logs only for successful // connections. - ALL: Export logs for all connections, successful and // unsuccessful. // // Possible values: // "ALL" - Export logs for all (successful and unsuccessful) connections. // "ERRORS_ONLY" - Export logs for connection failures only. // "TRANSLATIONS_ONLY" - Export logs for successful connections only. Filter string `json:"filter,omitempty"` // ForceSendFields is a list of field names (e.g. "Enable") 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. "Enable") 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:"-"` }
RouterNatLogConfig: Configuration of logging on a NAT.
func (RouterNatLogConfig) MarshalJSON ¶ added in v0.6.0
func (s RouterNatLogConfig) MarshalJSON() ([]byte, error)
type RouterNatRule ¶ added in v0.59.0
type RouterNatRule struct { // Action: The action to be enforced for traffic that matches this rule. Action *RouterNatRuleAction `json:"action,omitempty"` // Description: An optional description of this rule. Description string `json:"description,omitempty"` // Match: CEL expression that specifies the match condition that egress traffic // from a VM is evaluated against. If it evaluates to true, the corresponding // `action` is enforced. The following examples are valid match expressions for // public NAT: `inIpRange(destination.ip, '1.1.0.0/16') || // inIpRange(destination.ip, '2.2.0.0/16')` `destination.ip == '1.1.0.1' || // destination.ip == '8.8.8.8'` The following example is a valid match // expression for private NAT: `nexthop.hub == // '//networkconnectivity.googleapis.com/projects/my-project/locations/global/hu // bs/hub-1'` Match string `json:"match,omitempty"` // RuleNumber: An integer uniquely identifying a rule in the list. The rule // number must be a positive value between 0 and 65000, and must be unique // among rules within a NAT. RuleNumber int64 `json:"ruleNumber,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
func (RouterNatRule) MarshalJSON ¶ added in v0.59.0
func (s RouterNatRule) MarshalJSON() ([]byte, error)
type RouterNatRuleAction ¶ added in v0.59.0
type RouterNatRuleAction struct { // SourceNatActiveIps: A list of URLs of the IP resources used for this NAT // rule. These IP addresses must be valid static external IP addresses assigned // to the project. This field is used for public NAT. SourceNatActiveIps []string `json:"sourceNatActiveIps,omitempty"` // SourceNatActiveRanges: A list of URLs of the subnetworks used as source // ranges for this NAT Rule. These subnetworks must have purpose set to // PRIVATE_NAT. This field is used for private NAT. SourceNatActiveRanges []string `json:"sourceNatActiveRanges,omitempty"` // SourceNatDrainIps: A list of URLs of the IP resources to be drained. These // IPs must be valid static external IPs that have been assigned to the NAT. // These IPs should be used for updating/patching a NAT rule only. This field // is used for public NAT. SourceNatDrainIps []string `json:"sourceNatDrainIps,omitempty"` // SourceNatDrainRanges: A list of URLs of subnetworks representing source // ranges to be drained. This is only supported on patch/update, and these // subnetworks must have previously been used as active ranges in this NAT // Rule. This field is used for private NAT. SourceNatDrainRanges []string `json:"sourceNatDrainRanges,omitempty"` // ForceSendFields is a list of field names (e.g. "SourceNatActiveIps") 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. "SourceNatActiveIps") 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:"-"` }
func (RouterNatRuleAction) MarshalJSON ¶ added in v0.59.0
func (s RouterNatRuleAction) MarshalJSON() ([]byte, error)
type RouterNatSubnetworkToNat ¶
type RouterNatSubnetworkToNat struct { // Name: URL for the subnetwork resource that will use NAT. Name string `json:"name,omitempty"` // SecondaryIpRangeNames: A list of the secondary ranges of the Subnetwork that // are allowed to use NAT. This can be populated only if // "LIST_OF_SECONDARY_IP_RANGES" is one of the values in // source_ip_ranges_to_nat. SecondaryIpRangeNames []string `json:"secondaryIpRangeNames,omitempty"` // SourceIpRangesToNat: Specify the options for NAT ranges in the Subnetwork. // All options of a single value are valid except // NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values // is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: // [ALL_IP_RANGES] // // Possible values: // "ALL_IP_RANGES" - The primary and all the secondary ranges are allowed to // Nat. // "LIST_OF_SECONDARY_IP_RANGES" - A list of secondary ranges are allowed to // Nat. // "PRIMARY_IP_RANGE" - The primary range is allowed to Nat. SourceIpRangesToNat []string `json:"sourceIpRangesToNat,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:"-"` }
RouterNatSubnetworkToNat: Defines the IP ranges that want to use NAT for a subnetwork.
func (RouterNatSubnetworkToNat) MarshalJSON ¶
func (s RouterNatSubnetworkToNat) MarshalJSON() ([]byte, error)
type RouterStatus ¶
type RouterStatus struct { // BestRoutes: A list of the best dynamic routes for this Cloud Router's // Virtual Private Cloud (VPC) network in the same region as this Cloud Router. // Lists all of the best routes per prefix that are programmed into this // region's VPC data plane. When global dynamic routing mode is turned on in // the VPC network, this list can include cross-region dynamic routes from // Cloud Routers in other regions. BestRoutes []*Route `json:"bestRoutes,omitempty"` // BestRoutesForRouter: A list of the best BGP routes learned by this Cloud // Router. It is possible that routes listed might not be programmed into the // data plane, if the Google Cloud control plane finds a more optimal route for // a prefix than a route learned by this Cloud Router. BestRoutesForRouter []*Route `json:"bestRoutesForRouter,omitempty"` BgpPeerStatus []*RouterStatusBgpPeerStatus `json:"bgpPeerStatus,omitempty"` NatStatus []*RouterStatusNatStatus `json:"natStatus,omitempty"` // Network: URI of the network to which this router belongs. Network string `json:"network,omitempty"` // ForceSendFields is a list of field names (e.g. "BestRoutes") 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. "BestRoutes") 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:"-"` }
func (RouterStatus) MarshalJSON ¶
func (s RouterStatus) MarshalJSON() ([]byte, error)
type RouterStatusBgpPeerStatus ¶
type RouterStatusBgpPeerStatus struct { // AdvertisedRoutes: Routes that were advertised to the remote BGP peer AdvertisedRoutes []*Route `json:"advertisedRoutes,omitempty"` BfdStatus *BfdStatus `json:"bfdStatus,omitempty"` // EnableIpv4: Enable IPv4 traffic over BGP Peer. It is enabled by default if // the peerIpAddress is version 4. EnableIpv4 bool `json:"enableIpv4,omitempty"` // EnableIpv6: Enable IPv6 traffic over BGP Peer. It is enabled by default if // the peerIpAddress is version 6. EnableIpv6 bool `json:"enableIpv6,omitempty"` // IpAddress: IP address of the local BGP interface. IpAddress string `json:"ipAddress,omitempty"` // Ipv4NexthopAddress: IPv4 address of the local BGP interface. Ipv4NexthopAddress string `json:"ipv4NexthopAddress,omitempty"` // Ipv6NexthopAddress: IPv6 address of the local BGP interface. Ipv6NexthopAddress string `json:"ipv6NexthopAddress,omitempty"` // LinkedVpnTunnel: URL of the VPN tunnel that this BGP peer controls. LinkedVpnTunnel string `json:"linkedVpnTunnel,omitempty"` // Md5AuthEnabled: Informs whether MD5 authentication is enabled on this BGP // peer. Md5AuthEnabled bool `json:"md5AuthEnabled,omitempty"` // Name: Name of this BGP peer. Unique within the Routers resource. Name string `json:"name,omitempty"` // NumLearnedRoutes: Number of routes learned from the remote BGP Peer. NumLearnedRoutes int64 `json:"numLearnedRoutes,omitempty"` // PeerIpAddress: IP address of the remote BGP interface. PeerIpAddress string `json:"peerIpAddress,omitempty"` // PeerIpv4NexthopAddress: IPv4 address of the remote BGP interface. PeerIpv4NexthopAddress string `json:"peerIpv4NexthopAddress,omitempty"` // PeerIpv6NexthopAddress: IPv6 address of the remote BGP interface. PeerIpv6NexthopAddress string `json:"peerIpv6NexthopAddress,omitempty"` // RouterApplianceInstance: [Output only] URI of the VM instance that is used // as third-party router appliances such as Next Gen Firewalls, Virtual // Routers, or Router Appliances. The VM instance is the peer side of the BGP // session. RouterApplianceInstance string `json:"routerApplianceInstance,omitempty"` // State: The state of the BGP session. For a list of possible values for this // field, see BGP session states. State string `json:"state,omitempty"` // Status: Status of the BGP peer: {UP, DOWN} // // Possible values: // "DOWN" // "UNKNOWN" // "UP" Status string `json:"status,omitempty"` // StatusReason: Indicates why particular status was returned. // // Possible values: // "IPV4_PEER_ON_IPV6_ONLY_CONNECTION" - BGP peer disabled because it // requires IPv4 but the underlying connection is IPv6-only. // "IPV6_PEER_ON_IPV4_ONLY_CONNECTION" - BGP peer disabled because it // requires IPv6 but the underlying connection is IPv4-only. // "MD5_AUTH_INTERNAL_PROBLEM" - Indicates internal problems with // configuration of MD5 authentication. This particular reason can only be // returned when md5AuthEnabled is true and status is DOWN. // "STATUS_REASON_UNSPECIFIED" StatusReason string `json:"statusReason,omitempty"` // Uptime: Time this session has been up. Format: 14 years, 51 weeks, 6 days, // 23 hours, 59 minutes, 59 seconds Uptime string `json:"uptime,omitempty"` // UptimeSeconds: Time this session has been up, in seconds. Format: 145 UptimeSeconds string `json:"uptimeSeconds,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvertisedRoutes") 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. "AdvertisedRoutes") 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:"-"` }
func (RouterStatusBgpPeerStatus) MarshalJSON ¶
func (s RouterStatusBgpPeerStatus) MarshalJSON() ([]byte, error)
type RouterStatusNatStatus ¶
type RouterStatusNatStatus struct { // AutoAllocatedNatIps: A list of IPs auto-allocated for NAT. Example: // ["1.1.1.1", "129.2.16.89"] AutoAllocatedNatIps []string `json:"autoAllocatedNatIps,omitempty"` // DrainAutoAllocatedNatIps: A list of IPs auto-allocated for NAT that are in // drain mode. Example: ["1.1.1.1", "179.12.26.133"]. DrainAutoAllocatedNatIps []string `json:"drainAutoAllocatedNatIps,omitempty"` // DrainUserAllocatedNatIps: A list of IPs user-allocated for NAT that are in // drain mode. Example: ["1.1.1.1", "179.12.26.133"]. DrainUserAllocatedNatIps []string `json:"drainUserAllocatedNatIps,omitempty"` // MinExtraNatIpsNeeded: The number of extra IPs to allocate. This will be // greater than 0 only if user-specified IPs are NOT enough to allow all // configured VMs to use NAT. This value is meaningful only when // auto-allocation of NAT IPs is *not* used. MinExtraNatIpsNeeded int64 `json:"minExtraNatIpsNeeded,omitempty"` // Name: Unique name of this NAT. Name string `json:"name,omitempty"` // NumVmEndpointsWithNatMappings: Number of VM endpoints (i.e., Nics) that can // use NAT. NumVmEndpointsWithNatMappings int64 `json:"numVmEndpointsWithNatMappings,omitempty"` // RuleStatus: Status of rules in this NAT. RuleStatus []*RouterStatusNatStatusNatRuleStatus `json:"ruleStatus,omitempty"` // UserAllocatedNatIpResources: A list of fully qualified URLs of reserved IP // address resources. UserAllocatedNatIpResources []string `json:"userAllocatedNatIpResources,omitempty"` // UserAllocatedNatIps: A list of IPs user-allocated for NAT. They will be raw // IP strings like "179.12.26.133". UserAllocatedNatIps []string `json:"userAllocatedNatIps,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoAllocatedNatIps") 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. "AutoAllocatedNatIps") 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:"-"` }
RouterStatusNatStatus: Status of a NAT contained in this router.
func (RouterStatusNatStatus) MarshalJSON ¶
func (s RouterStatusNatStatus) MarshalJSON() ([]byte, error)
type RouterStatusNatStatusNatRuleStatus ¶ added in v0.59.0
type RouterStatusNatStatusNatRuleStatus struct { // ActiveNatIps: A list of active IPs for NAT. Example: ["1.1.1.1", // "179.12.26.133"]. ActiveNatIps []string `json:"activeNatIps,omitempty"` // DrainNatIps: A list of IPs for NAT that are in drain mode. Example: // ["1.1.1.1", "179.12.26.133"]. DrainNatIps []string `json:"drainNatIps,omitempty"` // MinExtraIpsNeeded: The number of extra IPs to allocate. This will be greater // than 0 only if the existing IPs in this NAT Rule are NOT enough to allow all // configured VMs to use NAT. MinExtraIpsNeeded int64 `json:"minExtraIpsNeeded,omitempty"` // NumVmEndpointsWithNatMappings: Number of VM endpoints (i.e., NICs) that have // NAT Mappings from this NAT Rule. NumVmEndpointsWithNatMappings int64 `json:"numVmEndpointsWithNatMappings,omitempty"` // RuleNumber: Rule number of the rule. RuleNumber int64 `json:"ruleNumber,omitempty"` // ForceSendFields is a list of field names (e.g. "ActiveNatIps") 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. "ActiveNatIps") 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:"-"` }
RouterStatusNatStatusNatRuleStatus: Status of a NAT Rule contained in this NAT.
func (RouterStatusNatStatusNatRuleStatus) MarshalJSON ¶ added in v0.59.0
func (s RouterStatusNatStatusNatRuleStatus) MarshalJSON() ([]byte, error)
type RouterStatusResponse ¶
type RouterStatusResponse struct { // Kind: Type of resource. Kind string `json:"kind,omitempty"` Result *RouterStatus `json:"result,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"` }
func (RouterStatusResponse) MarshalJSON ¶
func (s RouterStatusResponse) MarshalJSON() ([]byte, error)
type RoutersAggregatedListCall ¶
type RoutersAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*RoutersAggregatedListCall) Context ¶
func (c *RoutersAggregatedListCall) Context(ctx context.Context) *RoutersAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*RoutersAggregatedListCall) Do ¶
func (c *RoutersAggregatedListCall) Do(opts ...googleapi.CallOption) (*RouterAggregatedList, error)
Do executes the "compute.routers.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *RouterAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RoutersAggregatedListCall) Fields ¶
func (c *RoutersAggregatedListCall) Fields(s ...googleapi.Field) *RoutersAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RoutersAggregatedListCall) Filter ¶
func (c *RoutersAggregatedListCall) Filter(filter string) *RoutersAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RoutersAggregatedListCall) Header ¶
func (c *RoutersAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RoutersAggregatedListCall) IfNoneMatch ¶
func (c *RoutersAggregatedListCall) IfNoneMatch(entityTag string) *RoutersAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RoutersAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *RoutersAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *RoutersAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*RoutersAggregatedListCall) MaxResults ¶
func (c *RoutersAggregatedListCall) MaxResults(maxResults int64) *RoutersAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RoutersAggregatedListCall) OrderBy ¶
func (c *RoutersAggregatedListCall) OrderBy(orderBy string) *RoutersAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RoutersAggregatedListCall) PageToken ¶
func (c *RoutersAggregatedListCall) PageToken(pageToken string) *RoutersAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RoutersAggregatedListCall) Pages ¶
func (c *RoutersAggregatedListCall) Pages(ctx context.Context, f func(*RouterAggregatedList) 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 (*RoutersAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RoutersAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RoutersAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*RoutersAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *RoutersAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *RoutersAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type RoutersDeleteCall ¶
type RoutersDeleteCall struct {
// contains filtered or unexported fields
}
func (*RoutersDeleteCall) Context ¶
func (c *RoutersDeleteCall) Context(ctx context.Context) *RoutersDeleteCall
Context sets the context to be used in this call's Do method.
func (*RoutersDeleteCall) Do ¶
func (c *RoutersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.routers.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RoutersDeleteCall) Fields ¶
func (c *RoutersDeleteCall) Fields(s ...googleapi.Field) *RoutersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RoutersDeleteCall) Header ¶
func (c *RoutersDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RoutersDeleteCall) RequestId ¶
func (c *RoutersDeleteCall) RequestId(requestId string) *RoutersDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RoutersGetCall ¶
type RoutersGetCall struct {
// contains filtered or unexported fields
}
func (*RoutersGetCall) Context ¶
func (c *RoutersGetCall) Context(ctx context.Context) *RoutersGetCall
Context sets the context to be used in this call's Do method.
func (*RoutersGetCall) Do ¶
func (c *RoutersGetCall) Do(opts ...googleapi.CallOption) (*Router, error)
Do executes the "compute.routers.get" call. Any non-2xx status code is an error. Response headers are in either *Router.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RoutersGetCall) Fields ¶
func (c *RoutersGetCall) Fields(s ...googleapi.Field) *RoutersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RoutersGetCall) Header ¶
func (c *RoutersGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RoutersGetCall) IfNoneMatch ¶
func (c *RoutersGetCall) IfNoneMatch(entityTag string) *RoutersGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RoutersGetNatIpInfoCall ¶ added in v0.135.0
type RoutersGetNatIpInfoCall struct {
// contains filtered or unexported fields
}
func (*RoutersGetNatIpInfoCall) Context ¶ added in v0.135.0
func (c *RoutersGetNatIpInfoCall) Context(ctx context.Context) *RoutersGetNatIpInfoCall
Context sets the context to be used in this call's Do method.
func (*RoutersGetNatIpInfoCall) Do ¶ added in v0.135.0
func (c *RoutersGetNatIpInfoCall) Do(opts ...googleapi.CallOption) (*NatIpInfoResponse, error)
Do executes the "compute.routers.getNatIpInfo" call. Any non-2xx status code is an error. Response headers are in either *NatIpInfoResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RoutersGetNatIpInfoCall) Fields ¶ added in v0.135.0
func (c *RoutersGetNatIpInfoCall) Fields(s ...googleapi.Field) *RoutersGetNatIpInfoCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RoutersGetNatIpInfoCall) Header ¶ added in v0.135.0
func (c *RoutersGetNatIpInfoCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RoutersGetNatIpInfoCall) IfNoneMatch ¶ added in v0.135.0
func (c *RoutersGetNatIpInfoCall) IfNoneMatch(entityTag string) *RoutersGetNatIpInfoCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RoutersGetNatIpInfoCall) NatName ¶ added in v0.135.0
func (c *RoutersGetNatIpInfoCall) NatName(natName string) *RoutersGetNatIpInfoCall
NatName sets the optional parameter "natName": Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.
type RoutersGetNatMappingInfoCall ¶
type RoutersGetNatMappingInfoCall struct {
// contains filtered or unexported fields
}
func (*RoutersGetNatMappingInfoCall) Context ¶
func (c *RoutersGetNatMappingInfoCall) Context(ctx context.Context) *RoutersGetNatMappingInfoCall
Context sets the context to be used in this call's Do method.
func (*RoutersGetNatMappingInfoCall) Do ¶
func (c *RoutersGetNatMappingInfoCall) Do(opts ...googleapi.CallOption) (*VmEndpointNatMappingsList, error)
Do executes the "compute.routers.getNatMappingInfo" call. Any non-2xx status code is an error. Response headers are in either *VmEndpointNatMappingsList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RoutersGetNatMappingInfoCall) Fields ¶
func (c *RoutersGetNatMappingInfoCall) Fields(s ...googleapi.Field) *RoutersGetNatMappingInfoCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RoutersGetNatMappingInfoCall) Filter ¶
func (c *RoutersGetNatMappingInfoCall) Filter(filter string) *RoutersGetNatMappingInfoCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RoutersGetNatMappingInfoCall) Header ¶
func (c *RoutersGetNatMappingInfoCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RoutersGetNatMappingInfoCall) IfNoneMatch ¶
func (c *RoutersGetNatMappingInfoCall) IfNoneMatch(entityTag string) *RoutersGetNatMappingInfoCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RoutersGetNatMappingInfoCall) MaxResults ¶
func (c *RoutersGetNatMappingInfoCall) MaxResults(maxResults int64) *RoutersGetNatMappingInfoCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RoutersGetNatMappingInfoCall) NatName ¶ added in v0.117.0
func (c *RoutersGetNatMappingInfoCall) NatName(natName string) *RoutersGetNatMappingInfoCall
NatName sets the optional parameter "natName": Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.
func (*RoutersGetNatMappingInfoCall) OrderBy ¶
func (c *RoutersGetNatMappingInfoCall) OrderBy(orderBy string) *RoutersGetNatMappingInfoCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RoutersGetNatMappingInfoCall) PageToken ¶
func (c *RoutersGetNatMappingInfoCall) PageToken(pageToken string) *RoutersGetNatMappingInfoCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RoutersGetNatMappingInfoCall) Pages ¶
func (c *RoutersGetNatMappingInfoCall) Pages(ctx context.Context, f func(*VmEndpointNatMappingsList) 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 (*RoutersGetNatMappingInfoCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RoutersGetNatMappingInfoCall) ReturnPartialSuccess(returnPartialSuccess bool) *RoutersGetNatMappingInfoCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RoutersGetRouterStatusCall ¶
type RoutersGetRouterStatusCall struct {
// contains filtered or unexported fields
}
func (*RoutersGetRouterStatusCall) Context ¶
func (c *RoutersGetRouterStatusCall) Context(ctx context.Context) *RoutersGetRouterStatusCall
Context sets the context to be used in this call's Do method.
func (*RoutersGetRouterStatusCall) Do ¶
func (c *RoutersGetRouterStatusCall) Do(opts ...googleapi.CallOption) (*RouterStatusResponse, error)
Do executes the "compute.routers.getRouterStatus" call. Any non-2xx status code is an error. Response headers are in either *RouterStatusResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RoutersGetRouterStatusCall) Fields ¶
func (c *RoutersGetRouterStatusCall) Fields(s ...googleapi.Field) *RoutersGetRouterStatusCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RoutersGetRouterStatusCall) Header ¶
func (c *RoutersGetRouterStatusCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RoutersGetRouterStatusCall) IfNoneMatch ¶
func (c *RoutersGetRouterStatusCall) IfNoneMatch(entityTag string) *RoutersGetRouterStatusCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RoutersInsertCall ¶
type RoutersInsertCall struct {
// contains filtered or unexported fields
}
func (*RoutersInsertCall) Context ¶
func (c *RoutersInsertCall) Context(ctx context.Context) *RoutersInsertCall
Context sets the context to be used in this call's Do method.
func (*RoutersInsertCall) Do ¶
func (c *RoutersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.routers.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RoutersInsertCall) Fields ¶
func (c *RoutersInsertCall) Fields(s ...googleapi.Field) *RoutersInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RoutersInsertCall) Header ¶
func (c *RoutersInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RoutersInsertCall) RequestId ¶
func (c *RoutersInsertCall) RequestId(requestId string) *RoutersInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RoutersListCall ¶
type RoutersListCall struct {
// contains filtered or unexported fields
}
func (*RoutersListCall) Context ¶
func (c *RoutersListCall) Context(ctx context.Context) *RoutersListCall
Context sets the context to be used in this call's Do method.
func (*RoutersListCall) Do ¶
func (c *RoutersListCall) Do(opts ...googleapi.CallOption) (*RouterList, error)
Do executes the "compute.routers.list" call. Any non-2xx status code is an error. Response headers are in either *RouterList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RoutersListCall) Fields ¶
func (c *RoutersListCall) Fields(s ...googleapi.Field) *RoutersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RoutersListCall) Filter ¶
func (c *RoutersListCall) Filter(filter string) *RoutersListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RoutersListCall) Header ¶
func (c *RoutersListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RoutersListCall) IfNoneMatch ¶
func (c *RoutersListCall) IfNoneMatch(entityTag string) *RoutersListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RoutersListCall) MaxResults ¶
func (c *RoutersListCall) MaxResults(maxResults int64) *RoutersListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RoutersListCall) OrderBy ¶
func (c *RoutersListCall) OrderBy(orderBy string) *RoutersListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RoutersListCall) PageToken ¶
func (c *RoutersListCall) PageToken(pageToken string) *RoutersListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RoutersListCall) Pages ¶
func (c *RoutersListCall) Pages(ctx context.Context, f func(*RouterList) 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 (*RoutersListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RoutersListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RoutersListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RoutersPatchCall ¶
type RoutersPatchCall struct {
// contains filtered or unexported fields
}
func (*RoutersPatchCall) Context ¶
func (c *RoutersPatchCall) Context(ctx context.Context) *RoutersPatchCall
Context sets the context to be used in this call's Do method.
func (*RoutersPatchCall) Do ¶
func (c *RoutersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.routers.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RoutersPatchCall) Fields ¶
func (c *RoutersPatchCall) Fields(s ...googleapi.Field) *RoutersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RoutersPatchCall) Header ¶
func (c *RoutersPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RoutersPatchCall) RequestId ¶
func (c *RoutersPatchCall) RequestId(requestId string) *RoutersPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RoutersPreviewCall ¶
type RoutersPreviewCall struct {
// contains filtered or unexported fields
}
func (*RoutersPreviewCall) Context ¶
func (c *RoutersPreviewCall) Context(ctx context.Context) *RoutersPreviewCall
Context sets the context to be used in this call's Do method.
func (*RoutersPreviewCall) Do ¶
func (c *RoutersPreviewCall) Do(opts ...googleapi.CallOption) (*RoutersPreviewResponse, error)
Do executes the "compute.routers.preview" call. Any non-2xx status code is an error. Response headers are in either *RoutersPreviewResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RoutersPreviewCall) Fields ¶
func (c *RoutersPreviewCall) Fields(s ...googleapi.Field) *RoutersPreviewCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RoutersPreviewCall) Header ¶
func (c *RoutersPreviewCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type RoutersPreviewResponse ¶
type RoutersPreviewResponse struct { // Resource: Preview of given router. Resource *Router `json:"resource,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Resource") 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. "Resource") 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:"-"` }
func (RoutersPreviewResponse) MarshalJSON ¶
func (s RoutersPreviewResponse) MarshalJSON() ([]byte, error)
type RoutersScopedList ¶
type RoutersScopedList struct { // Routers: A list of routers contained in this scope. Routers []*Router `json:"routers,omitempty"` // Warning: Informational warning which replaces the list of routers when the // list is empty. Warning *RoutersScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "Routers") 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. "Routers") 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:"-"` }
func (RoutersScopedList) MarshalJSON ¶
func (s RoutersScopedList) MarshalJSON() ([]byte, error)
type RoutersScopedListWarning ¶
type RoutersScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*RoutersScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
RoutersScopedListWarning: Informational warning which replaces the list of routers when the list is empty.
func (RoutersScopedListWarning) MarshalJSON ¶
func (s RoutersScopedListWarning) MarshalJSON() ([]byte, error)
type RoutersScopedListWarningData ¶
type RoutersScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (RoutersScopedListWarningData) MarshalJSON ¶
func (s RoutersScopedListWarningData) MarshalJSON() ([]byte, error)
type RoutersService ¶
type RoutersService struct {
// contains filtered or unexported fields
}
func NewRoutersService ¶
func NewRoutersService(s *Service) *RoutersService
func (*RoutersService) AggregatedList ¶
func (r *RoutersService) AggregatedList(project string) *RoutersAggregatedListCall
AggregatedList: Retrieves an aggregated list of routers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*RoutersService) Delete ¶
func (r *RoutersService) Delete(project string, region string, router string) *RoutersDeleteCall
Delete: Deletes the specified Router resource.
- project: Project ID for this request. - region: Name of the region for this request. - router: Name of the Router resource to delete.
func (*RoutersService) Get ¶
func (r *RoutersService) Get(project string, region string, router string) *RoutersGetCall
Get: Returns the specified Router resource.
- project: Project ID for this request. - region: Name of the region for this request. - router: Name of the Router resource to return.
func (*RoutersService) GetNatIpInfo ¶ added in v0.135.0
func (r *RoutersService) GetNatIpInfo(project string, region string, router string) *RoutersGetNatIpInfoCall
GetNatIpInfo: Retrieves runtime NAT IP information.
- project: Project ID for this request.
- region: Name of the region for this request.
- router: Name of the Router resource to query for Nat IP information. The name should conform to RFC1035.
func (*RoutersService) GetNatMappingInfo ¶
func (r *RoutersService) GetNatMappingInfo(project string, region string, router string) *RoutersGetNatMappingInfoCall
GetNatMappingInfo: Retrieves runtime Nat mapping information of VM endpoints.
- project: Project ID for this request.
- region: Name of the region for this request.
- router: Name of the Router resource to query for Nat Mapping information of VM endpoints.
func (*RoutersService) GetRouterStatus ¶
func (r *RoutersService) GetRouterStatus(project string, region string, router string) *RoutersGetRouterStatusCall
GetRouterStatus: Retrieves runtime information of the specified router.
- project: Project ID for this request. - region: Name of the region for this request. - router: Name of the Router resource to query.
func (*RoutersService) Insert ¶
func (r *RoutersService) Insert(project string, region string, router *Router) *RoutersInsertCall
Insert: Creates a Router resource in the specified project and region using the data included in the request.
- project: Project ID for this request. - region: Name of the region for this request.
func (*RoutersService) List ¶
func (r *RoutersService) List(project string, region string) *RoutersListCall
List: Retrieves a list of Router resources available to the specified project.
- project: Project ID for this request. - region: Name of the region for this request.
func (*RoutersService) Patch ¶
func (r *RoutersService) Patch(project string, region string, router string, router2 *Router) *RoutersPatchCall
Patch: Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
- project: Project ID for this request. - region: Name of the region for this request. - router: Name of the Router resource to patch.
func (*RoutersService) Preview ¶
func (r *RoutersService) Preview(project string, region string, router string, router2 *Router) *RoutersPreviewCall
Preview: Preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router.
- project: Project ID for this request. - region: Name of the region for this request. - router: Name of the Router resource to query.
func (*RoutersService) Update ¶
func (r *RoutersService) Update(project string, region string, router string, router2 *Router) *RoutersUpdateCall
Update: Updates the specified Router resource with the data included in the request. This method conforms to PUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.
- project: Project ID for this request. - region: Name of the region for this request. - router: Name of the Router resource to update.
type RoutersUpdateCall ¶
type RoutersUpdateCall struct {
// contains filtered or unexported fields
}
func (*RoutersUpdateCall) Context ¶
func (c *RoutersUpdateCall) Context(ctx context.Context) *RoutersUpdateCall
Context sets the context to be used in this call's Do method.
func (*RoutersUpdateCall) Do ¶
func (c *RoutersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.routers.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RoutersUpdateCall) Fields ¶
func (c *RoutersUpdateCall) Fields(s ...googleapi.Field) *RoutersUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RoutersUpdateCall) Header ¶
func (c *RoutersUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RoutersUpdateCall) RequestId ¶
func (c *RoutersUpdateCall) RequestId(requestId string) *RoutersUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RoutesDeleteCall ¶
type RoutesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RoutesDeleteCall) Context ¶
func (c *RoutesDeleteCall) Context(ctx context.Context) *RoutesDeleteCall
Context sets the context to be used in this call's Do method.
func (*RoutesDeleteCall) Do ¶
func (c *RoutesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.routes.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RoutesDeleteCall) Fields ¶
func (c *RoutesDeleteCall) Fields(s ...googleapi.Field) *RoutesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RoutesDeleteCall) Header ¶
func (c *RoutesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RoutesDeleteCall) RequestId ¶
func (c *RoutesDeleteCall) RequestId(requestId string) *RoutesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RoutesGetCall ¶
type RoutesGetCall struct {
// contains filtered or unexported fields
}
func (*RoutesGetCall) Context ¶
func (c *RoutesGetCall) Context(ctx context.Context) *RoutesGetCall
Context sets the context to be used in this call's Do method.
func (*RoutesGetCall) Do ¶
func (c *RoutesGetCall) Do(opts ...googleapi.CallOption) (*Route, error)
Do executes the "compute.routes.get" call. Any non-2xx status code is an error. Response headers are in either *Route.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RoutesGetCall) Fields ¶
func (c *RoutesGetCall) Fields(s ...googleapi.Field) *RoutesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RoutesGetCall) Header ¶
func (c *RoutesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RoutesGetCall) IfNoneMatch ¶
func (c *RoutesGetCall) IfNoneMatch(entityTag string) *RoutesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type RoutesInsertCall ¶
type RoutesInsertCall struct {
// contains filtered or unexported fields
}
func (*RoutesInsertCall) Context ¶
func (c *RoutesInsertCall) Context(ctx context.Context) *RoutesInsertCall
Context sets the context to be used in this call's Do method.
func (*RoutesInsertCall) Do ¶
func (c *RoutesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.routes.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RoutesInsertCall) Fields ¶
func (c *RoutesInsertCall) Fields(s ...googleapi.Field) *RoutesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RoutesInsertCall) Header ¶
func (c *RoutesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RoutesInsertCall) RequestId ¶
func (c *RoutesInsertCall) RequestId(requestId string) *RoutesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type RoutesListCall ¶
type RoutesListCall struct {
// contains filtered or unexported fields
}
func (*RoutesListCall) Context ¶
func (c *RoutesListCall) Context(ctx context.Context) *RoutesListCall
Context sets the context to be used in this call's Do method.
func (*RoutesListCall) Do ¶
func (c *RoutesListCall) Do(opts ...googleapi.CallOption) (*RouteList, error)
Do executes the "compute.routes.list" call. Any non-2xx status code is an error. Response headers are in either *RouteList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RoutesListCall) Fields ¶
func (c *RoutesListCall) Fields(s ...googleapi.Field) *RoutesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*RoutesListCall) Filter ¶
func (c *RoutesListCall) Filter(filter string) *RoutesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*RoutesListCall) Header ¶
func (c *RoutesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*RoutesListCall) IfNoneMatch ¶
func (c *RoutesListCall) IfNoneMatch(entityTag string) *RoutesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*RoutesListCall) MaxResults ¶
func (c *RoutesListCall) MaxResults(maxResults int64) *RoutesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*RoutesListCall) OrderBy ¶
func (c *RoutesListCall) OrderBy(orderBy string) *RoutesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*RoutesListCall) PageToken ¶
func (c *RoutesListCall) PageToken(pageToken string) *RoutesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*RoutesListCall) Pages ¶
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 (*RoutesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *RoutesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RoutesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type RoutesService ¶
type RoutesService struct {
// contains filtered or unexported fields
}
func NewRoutesService ¶
func NewRoutesService(s *Service) *RoutesService
func (*RoutesService) Delete ¶
func (r *RoutesService) Delete(project string, route string) *RoutesDeleteCall
Delete: Deletes the specified Route resource.
- project: Project ID for this request. - route: Name of the Route resource to delete.
func (*RoutesService) Get ¶
func (r *RoutesService) Get(project string, route string) *RoutesGetCall
Get: Returns the specified Route resource.
- project: Project ID for this request. - route: Name of the Route resource to return.
func (*RoutesService) Insert ¶
func (r *RoutesService) Insert(project string, route *Route) *RoutesInsertCall
Insert: Creates a Route resource in the specified project using the data included in the request.
- project: Project ID for this request.
func (*RoutesService) List ¶
func (r *RoutesService) List(project string) *RoutesListCall
List: Retrieves the list of Route resources available to the specified project.
- project: Project ID for this request.
type Rule ¶
type Rule struct { // Action: This is deprecated and has no effect. Do not use. // // Possible values: // "ALLOW" - This is deprecated and has no effect. Do not use. // "ALLOW_WITH_LOG" - This is deprecated and has no effect. Do not use. // "DENY" - This is deprecated and has no effect. Do not use. // "DENY_WITH_LOG" - This is deprecated and has no effect. Do not use. // "LOG" - This is deprecated and has no effect. Do not use. // "NO_ACTION" - This is deprecated and has no effect. Do not use. Action string `json:"action,omitempty"` // Conditions: This is deprecated and has no effect. Do not use. Conditions []*Condition `json:"conditions,omitempty"` // Description: This is deprecated and has no effect. Do not use. Description string `json:"description,omitempty"` // Ins: This is deprecated and has no effect. Do not use. Ins []string `json:"ins,omitempty"` // LogConfigs: This is deprecated and has no effect. Do not use. LogConfigs []*LogConfig `json:"logConfigs,omitempty"` // NotIns: This is deprecated and has no effect. Do not use. NotIns []string `json:"notIns,omitempty"` // Permissions: This is deprecated and has no effect. Do not use. Permissions []string `json:"permissions,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Rule: This is deprecated and has no effect. Do not use.
func (Rule) MarshalJSON ¶
type SSLHealthCheck ¶
type SSLHealthCheck struct { // Port: The TCP port number to which the health check prober sends packets. // The default value is 443. Valid values are 1 through 65535. Port int64 `json:"port,omitempty"` // PortName: Not supported. PortName string `json:"portName,omitempty"` // PortSpecification: Specifies how a port is selected for health checking. Can // be one of the following values: USE_FIXED_PORT: Specifies a port number // explicitly using the port field in the health check. Supported by backend // services for passthrough load balancers and backend services for proxy load // balancers. Not supported by target pools. The health check supports all // backends supported by the backend service provided the backend can be health // checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT // network endpoint groups, and instance group backends. USE_NAMED_PORT: Not // supported. USE_SERVING_PORT: Provides an indirect method of specifying the // health check port by referring to the backend service. Only supported by // backend services for proxy load balancers. Not supported by target pools. // Not supported by backend services for passthrough load balancers. Supports // all backends that can be health checked; for example, GCE_VM_IP_PORT network // endpoint groups and instance group backends. For GCE_VM_IP_PORT network // endpoint group backends, the health check uses the port number specified for // each endpoint in the network endpoint group. For instance group backends, // the health check uses the port number determined by looking up the backend // service's named port in the instance group's list of named ports. // // Possible values: // "USE_FIXED_PORT" - The port number in the health check's port is used for // health checking. Applies to network endpoint group and instance group // backends. // "USE_NAMED_PORT" - Not supported. // "USE_SERVING_PORT" - For network endpoint group backends, the health check // uses the port number specified on each endpoint in the network endpoint // group. For instance group backends, the health check uses the port number // specified for the backend service's named port defined in the instance // group's named ports. PortSpecification string `json:"portSpecification,omitempty"` // ProxyHeader: Specifies the type of proxy header to append before sending // data to the backend, either NONE or PROXY_V1. The default is NONE. // // Possible values: // "NONE" // "PROXY_V1" ProxyHeader string `json:"proxyHeader,omitempty"` // Request: Instructs the health check prober to send this exact ASCII string, // up to 1024 bytes in length, after establishing the TCP connection and SSL // handshake. Request string `json:"request,omitempty"` // Response: Creates a content-based SSL health check. In addition to // establishing a TCP connection and the TLS handshake, you can configure the // health check to pass only when the backend sends this exact response ASCII // string, up to 1024 bytes in length. For details, see: // https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp Response string `json:"response,omitempty"` // ForceSendFields is a list of field names (e.g. "Port") 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. "Port") 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:"-"` }
func (SSLHealthCheck) MarshalJSON ¶
func (s SSLHealthCheck) MarshalJSON() ([]byte, error)
type SavedAttachedDisk ¶ added in v0.62.0
type SavedAttachedDisk struct { // AutoDelete: Specifies whether the disk will be auto-deleted when the // instance is deleted (but not when the disk is detached from the instance). AutoDelete bool `json:"autoDelete,omitempty"` // Boot: Indicates that this is a boot disk. The virtual machine will use the // first partition of the disk for its root filesystem. Boot bool `json:"boot,omitempty"` // DeviceName: Specifies the name of the disk attached to the source instance. DeviceName string `json:"deviceName,omitempty"` // DiskEncryptionKey: The encryption key for the disk. DiskEncryptionKey *CustomerEncryptionKey `json:"diskEncryptionKey,omitempty"` // DiskSizeGb: The size of the disk in base-2 GB. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` // DiskType: [Output Only] URL of the disk type resource. For example: // projects/project /zones/zone/diskTypes/pd-standard or pd-ssd DiskType string `json:"diskType,omitempty"` // GuestOsFeatures: A list of features to enable on the guest operating system. // Applicable only for bootable images. Read Enabling guest operating system // features to see a list of available options. GuestOsFeatures []*GuestOsFeature `json:"guestOsFeatures,omitempty"` // Index: Specifies zero-based index of the disk that is attached to the source // instance. Index int64 `json:"index,omitempty"` // Interface: Specifies the disk interface to use for attaching this disk, // which is either SCSI or NVME. // // Possible values: // "NVME" // "SCSI" Interface string `json:"interface,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#attachedDisk for // attached disks. Kind string `json:"kind,omitempty"` // Licenses: [Output Only] Any valid publicly visible licenses. Licenses []string `json:"licenses,omitempty"` // Mode: The mode in which this disk is attached to the source instance, either // READ_WRITE or READ_ONLY. // // Possible values: // "READ_ONLY" - Attaches this disk in read-only mode. Multiple virtual // machines can use a disk in read-only mode at a time. // "READ_WRITE" - *[Default]* Attaches this disk in read-write mode. Only one // virtual machine at a time can be attached to a disk in read-write mode. Mode string `json:"mode,omitempty"` // Source: Specifies a URL of the disk attached to the source instance. Source string `json:"source,omitempty"` // StorageBytes: [Output Only] A size of the storage used by the disk's // snapshot by this machine image. StorageBytes int64 `json:"storageBytes,omitempty,string"` // StorageBytesStatus: [Output Only] An indicator whether storageBytes is in a // stable state or it is being adjusted as a result of shared storage // reallocation. This status can either be UPDATING, meaning the size of the // snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot // is up-to-date. // // Possible values: // "UPDATING" // "UP_TO_DATE" StorageBytesStatus string `json:"storageBytesStatus,omitempty"` // Type: Specifies the type of the attached disk, either SCRATCH or PERSISTENT. // // Possible values: // "PERSISTENT" // "SCRATCH" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoDelete") 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. "AutoDelete") 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:"-"` }
SavedAttachedDisk: DEPRECATED: Please use compute#savedDisk instead. An instance-attached disk resource.
func (SavedAttachedDisk) MarshalJSON ¶ added in v0.62.0
func (s SavedAttachedDisk) MarshalJSON() ([]byte, error)
type SavedDisk ¶ added in v0.62.0
type SavedDisk struct { // Architecture: [Output Only] The architecture of the attached disk. // // Possible values: // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture is not // set. // "ARM64" - Machines with architecture ARM64 // "X86_64" - Machines with architecture X86_64 Architecture string `json:"architecture,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#savedDisk for // attached disks. Kind string `json:"kind,omitempty"` // SourceDisk: Specifies a URL of the disk attached to the source instance. SourceDisk string `json:"sourceDisk,omitempty"` // StorageBytes: [Output Only] Size of the individual disk snapshot used by // this machine image. StorageBytes int64 `json:"storageBytes,omitempty,string"` // StorageBytesStatus: [Output Only] An indicator whether storageBytes is in a // stable state or it is being adjusted as a result of shared storage // reallocation. This status can either be UPDATING, meaning the size of the // snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot // is up-to-date. // // Possible values: // "UPDATING" // "UP_TO_DATE" StorageBytesStatus string `json:"storageBytesStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "Architecture") 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. "Architecture") 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:"-"` }
SavedDisk: An instance-attached disk resource.
func (SavedDisk) MarshalJSON ¶ added in v0.62.0
type ScalingScheduleStatus ¶ added in v0.43.0
type ScalingScheduleStatus struct { // LastStartTime: [Output Only] The last time the scaling schedule became // active. Note: this is a timestamp when a schedule actually became active, // not when it was planned to do so. The timestamp is in RFC3339 text format. LastStartTime string `json:"lastStartTime,omitempty"` // NextStartTime: [Output Only] The next time the scaling schedule is to become // active. Note: this is a timestamp when a schedule is planned to run, but the // actual time might be slightly different. The timestamp is in RFC3339 text // format. NextStartTime string `json:"nextStartTime,omitempty"` // State: [Output Only] The current state of a scaling schedule. // // Possible values: // "ACTIVE" - The current autoscaling recommendation is influenced by this // scaling schedule. // "DISABLED" - This scaling schedule has been disabled by the user. // "OBSOLETE" - This scaling schedule will never become active again. // "READY" - The current autoscaling recommendation is not influenced by this // scaling schedule. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "LastStartTime") 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. "LastStartTime") 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:"-"` }
func (ScalingScheduleStatus) MarshalJSON ¶ added in v0.43.0
func (s ScalingScheduleStatus) MarshalJSON() ([]byte, error)
type Scheduling ¶
type Scheduling struct { // AutomaticRestart: Specifies whether the instance should be automatically // restarted if it is terminated by Compute Engine (not terminated by a user). // You can only set the automatic restart option for standard instances. // Preemptible instances cannot be automatically restarted. By default, this is // set to true so an instance is automatically restarted if it is terminated by // Compute Engine. AutomaticRestart *bool `json:"automaticRestart,omitempty"` // AvailabilityDomain: Specifies the availability domain to place the instance // in. The value must be a number between 1 and the number of availability // domains specified in the spread placement policy attached to the instance. AvailabilityDomain int64 `json:"availabilityDomain,omitempty"` // InstanceTerminationAction: Specifies the termination action for the // instance. // // Possible values: // "DELETE" - Delete the VM. // "INSTANCE_TERMINATION_ACTION_UNSPECIFIED" - Default value. This value is // unused. // "STOP" - Stop the VM without storing in-memory content. default action. InstanceTerminationAction string `json:"instanceTerminationAction,omitempty"` // LocalSsdRecoveryTimeout: Specifies the maximum amount of time a Local Ssd Vm // should wait while recovery of the Local Ssd state is attempted. Its value // should be in between 0 and 168 hours with hour granularity and the default // value being 1 hour. LocalSsdRecoveryTimeout *Duration `json:"localSsdRecoveryTimeout,omitempty"` // LocationHint: An opaque location hint used to place the instance close to // other resources. This field is for use by internal tools that use the public // API. LocationHint string `json:"locationHint,omitempty"` // MaxRunDuration: Specifies the max run duration for the given instance. If // specified, the instance termination action will be performed at the end of // the run duration. MaxRunDuration *Duration `json:"maxRunDuration,omitempty"` // MinNodeCpus: The minimum number of virtual CPUs this instance will consume // when running on a sole-tenant node. MinNodeCpus int64 `json:"minNodeCpus,omitempty"` // NodeAffinities: A set of node affinity and anti-affinity configurations. // Refer to Configuring node affinity for more information. Overrides // reservationAffinity. NodeAffinities []*SchedulingNodeAffinity `json:"nodeAffinities,omitempty"` // OnHostMaintenance: Defines the maintenance behavior for this instance. For // standard instances, the default behavior is MIGRATE. For preemptible // instances, the default and only possible behavior is TERMINATE. For more // information, see Set VM host maintenance policy. // // Possible values: // "MIGRATE" - *[Default]* Allows Compute Engine to automatically migrate // instances out of the way of maintenance events. // "TERMINATE" - Tells Compute Engine to terminate and (optionally) restart // the instance away from the maintenance activity. If you would like your // instance to be restarted, set the automaticRestart flag to true. Your // instance may be restarted more than once, and it may be restarted outside // the window of maintenance events. OnHostMaintenance string `json:"onHostMaintenance,omitempty"` OnInstanceStopAction *SchedulingOnInstanceStopAction `json:"onInstanceStopAction,omitempty"` // Preemptible: Defines whether the instance is preemptible. This can only be // set during instance creation or while the instance is stopped and therefore, // in a `TERMINATED` state. See Instance Life Cycle for more information on the // possible instance states. Preemptible bool `json:"preemptible,omitempty"` // ProvisioningModel: Specifies the provisioning model of the instance. // // Possible values: // "SPOT" - Heavily discounted, no guaranteed runtime. // "STANDARD" - Standard provisioning with user controlled runtime, no // discounts. ProvisioningModel string `json:"provisioningModel,omitempty"` // TerminationTime: Specifies the timestamp, when the instance will be // terminated, in RFC3339 text format. If specified, the instance termination // action will be performed at the termination time. TerminationTime string `json:"terminationTime,omitempty"` // ForceSendFields is a list of field names (e.g. "AutomaticRestart") 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. "AutomaticRestart") 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:"-"` }
Scheduling: Sets the scheduling options for an Instance.
func (Scheduling) MarshalJSON ¶
func (s Scheduling) MarshalJSON() ([]byte, error)
type SchedulingNodeAffinity ¶
type SchedulingNodeAffinity struct { // Key: Corresponds to the label key of Node resource. Key string `json:"key,omitempty"` // Operator: Defines the operation of node selection. Valid operators are IN // for affinity and NOT_IN for anti-affinity. // // Possible values: // "IN" - Requires Compute Engine to seek for matched nodes. // "NOT_IN" - Requires Compute Engine to avoid certain nodes. // "OPERATOR_UNSPECIFIED" Operator string `json:"operator,omitempty"` // Values: Corresponds to the label values of Node resource. Values []string `json:"values,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
SchedulingNodeAffinity: Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.
func (SchedulingNodeAffinity) MarshalJSON ¶
func (s SchedulingNodeAffinity) MarshalJSON() ([]byte, error)
type SchedulingOnInstanceStopAction ¶ added in v0.185.0
type SchedulingOnInstanceStopAction struct { // DiscardLocalSsd: If true, the contents of any attached Local SSD disks will // be discarded else, the Local SSD data will be preserved when the instance is // stopped at the end of the run duration/termination time. DiscardLocalSsd bool `json:"discardLocalSsd,omitempty"` // ForceSendFields is a list of field names (e.g. "DiscardLocalSsd") 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. "DiscardLocalSsd") 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:"-"` }
SchedulingOnInstanceStopAction: Defines the behaviour for instances with the instance_termination_action STOP.
func (SchedulingOnInstanceStopAction) MarshalJSON ¶ added in v0.185.0
func (s SchedulingOnInstanceStopAction) MarshalJSON() ([]byte, error)
type Screenshot ¶ added in v0.31.0
type Screenshot struct { // Contents: [Output Only] The Base64-encoded screenshot data. Contents string `json:"contents,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#screenshot for the // screenshots. Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Contents") 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. "Contents") 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:"-"` }
Screenshot: An instance's screenshot.
func (Screenshot) MarshalJSON ¶ added in v0.31.0
func (s Screenshot) MarshalJSON() ([]byte, error)
type SecurityPoliciesAddRuleCall ¶
type SecurityPoliciesAddRuleCall struct {
// contains filtered or unexported fields
}
func (*SecurityPoliciesAddRuleCall) Context ¶
func (c *SecurityPoliciesAddRuleCall) Context(ctx context.Context) *SecurityPoliciesAddRuleCall
Context sets the context to be used in this call's Do method.
func (*SecurityPoliciesAddRuleCall) Do ¶
func (c *SecurityPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.securityPolicies.addRule" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SecurityPoliciesAddRuleCall) Fields ¶
func (c *SecurityPoliciesAddRuleCall) Fields(s ...googleapi.Field) *SecurityPoliciesAddRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SecurityPoliciesAddRuleCall) Header ¶
func (c *SecurityPoliciesAddRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SecurityPoliciesAddRuleCall) ValidateOnly ¶ added in v0.83.0
func (c *SecurityPoliciesAddRuleCall) ValidateOnly(validateOnly bool) *SecurityPoliciesAddRuleCall
ValidateOnly sets the optional parameter "validateOnly": If true, the request will not be committed.
type SecurityPoliciesAggregatedList ¶ added in v0.74.0
type SecurityPoliciesAggregatedList struct { Etag string `json:"etag,omitempty"` // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of SecurityPoliciesScopedList resources. Items map[string]SecurityPoliciesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#securityPolicyAggregatedList for lists of Security Policies. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *SecurityPoliciesAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Etag") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
func (SecurityPoliciesAggregatedList) MarshalJSON ¶ added in v0.74.0
func (s SecurityPoliciesAggregatedList) MarshalJSON() ([]byte, error)
type SecurityPoliciesAggregatedListCall ¶ added in v0.74.0
type SecurityPoliciesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*SecurityPoliciesAggregatedListCall) Context ¶ added in v0.74.0
func (c *SecurityPoliciesAggregatedListCall) Context(ctx context.Context) *SecurityPoliciesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*SecurityPoliciesAggregatedListCall) Do ¶ added in v0.74.0
func (c *SecurityPoliciesAggregatedListCall) Do(opts ...googleapi.CallOption) (*SecurityPoliciesAggregatedList, error)
Do executes the "compute.securityPolicies.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *SecurityPoliciesAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SecurityPoliciesAggregatedListCall) Fields ¶ added in v0.74.0
func (c *SecurityPoliciesAggregatedListCall) Fields(s ...googleapi.Field) *SecurityPoliciesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SecurityPoliciesAggregatedListCall) Filter ¶ added in v0.74.0
func (c *SecurityPoliciesAggregatedListCall) Filter(filter string) *SecurityPoliciesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*SecurityPoliciesAggregatedListCall) Header ¶ added in v0.74.0
func (c *SecurityPoliciesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SecurityPoliciesAggregatedListCall) IfNoneMatch ¶ added in v0.74.0
func (c *SecurityPoliciesAggregatedListCall) IfNoneMatch(entityTag string) *SecurityPoliciesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*SecurityPoliciesAggregatedListCall) IncludeAllScopes ¶ added in v0.74.0
func (c *SecurityPoliciesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *SecurityPoliciesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*SecurityPoliciesAggregatedListCall) MaxResults ¶ added in v0.74.0
func (c *SecurityPoliciesAggregatedListCall) MaxResults(maxResults int64) *SecurityPoliciesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*SecurityPoliciesAggregatedListCall) OrderBy ¶ added in v0.74.0
func (c *SecurityPoliciesAggregatedListCall) OrderBy(orderBy string) *SecurityPoliciesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*SecurityPoliciesAggregatedListCall) PageToken ¶ added in v0.74.0
func (c *SecurityPoliciesAggregatedListCall) PageToken(pageToken string) *SecurityPoliciesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*SecurityPoliciesAggregatedListCall) Pages ¶ added in v0.74.0
func (c *SecurityPoliciesAggregatedListCall) Pages(ctx context.Context, f func(*SecurityPoliciesAggregatedList) 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 (*SecurityPoliciesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.74.0
func (c *SecurityPoliciesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SecurityPoliciesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*SecurityPoliciesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *SecurityPoliciesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *SecurityPoliciesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type SecurityPoliciesAggregatedListWarning ¶ added in v0.74.0
type SecurityPoliciesAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*SecurityPoliciesAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
SecurityPoliciesAggregatedListWarning: [Output Only] Informational warning message.
func (SecurityPoliciesAggregatedListWarning) MarshalJSON ¶ added in v0.74.0
func (s SecurityPoliciesAggregatedListWarning) MarshalJSON() ([]byte, error)
type SecurityPoliciesAggregatedListWarningData ¶ added in v0.74.0
type SecurityPoliciesAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (SecurityPoliciesAggregatedListWarningData) MarshalJSON ¶ added in v0.74.0
func (s SecurityPoliciesAggregatedListWarningData) MarshalJSON() ([]byte, error)
type SecurityPoliciesDeleteCall ¶
type SecurityPoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*SecurityPoliciesDeleteCall) Context ¶
func (c *SecurityPoliciesDeleteCall) Context(ctx context.Context) *SecurityPoliciesDeleteCall
Context sets the context to be used in this call's Do method.
func (*SecurityPoliciesDeleteCall) Do ¶
func (c *SecurityPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.securityPolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SecurityPoliciesDeleteCall) Fields ¶
func (c *SecurityPoliciesDeleteCall) Fields(s ...googleapi.Field) *SecurityPoliciesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SecurityPoliciesDeleteCall) Header ¶
func (c *SecurityPoliciesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SecurityPoliciesDeleteCall) RequestId ¶
func (c *SecurityPoliciesDeleteCall) RequestId(requestId string) *SecurityPoliciesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type SecurityPoliciesGetCall ¶
type SecurityPoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*SecurityPoliciesGetCall) Context ¶
func (c *SecurityPoliciesGetCall) Context(ctx context.Context) *SecurityPoliciesGetCall
Context sets the context to be used in this call's Do method.
func (*SecurityPoliciesGetCall) Do ¶
func (c *SecurityPoliciesGetCall) Do(opts ...googleapi.CallOption) (*SecurityPolicy, error)
Do executes the "compute.securityPolicies.get" call. Any non-2xx status code is an error. Response headers are in either *SecurityPolicy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SecurityPoliciesGetCall) Fields ¶
func (c *SecurityPoliciesGetCall) Fields(s ...googleapi.Field) *SecurityPoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SecurityPoliciesGetCall) Header ¶
func (c *SecurityPoliciesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SecurityPoliciesGetCall) IfNoneMatch ¶
func (c *SecurityPoliciesGetCall) IfNoneMatch(entityTag string) *SecurityPoliciesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type SecurityPoliciesGetRuleCall ¶
type SecurityPoliciesGetRuleCall struct {
// contains filtered or unexported fields
}
func (*SecurityPoliciesGetRuleCall) Context ¶
func (c *SecurityPoliciesGetRuleCall) Context(ctx context.Context) *SecurityPoliciesGetRuleCall
Context sets the context to be used in this call's Do method.
func (*SecurityPoliciesGetRuleCall) Do ¶
func (c *SecurityPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyRule, error)
Do executes the "compute.securityPolicies.getRule" call. Any non-2xx status code is an error. Response headers are in either *SecurityPolicyRule.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SecurityPoliciesGetRuleCall) Fields ¶
func (c *SecurityPoliciesGetRuleCall) Fields(s ...googleapi.Field) *SecurityPoliciesGetRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SecurityPoliciesGetRuleCall) Header ¶
func (c *SecurityPoliciesGetRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SecurityPoliciesGetRuleCall) IfNoneMatch ¶
func (c *SecurityPoliciesGetRuleCall) IfNoneMatch(entityTag string) *SecurityPoliciesGetRuleCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*SecurityPoliciesGetRuleCall) Priority ¶
func (c *SecurityPoliciesGetRuleCall) Priority(priority int64) *SecurityPoliciesGetRuleCall
Priority sets the optional parameter "priority": The priority of the rule to get from the security policy.
type SecurityPoliciesInsertCall ¶
type SecurityPoliciesInsertCall struct {
// contains filtered or unexported fields
}
func (*SecurityPoliciesInsertCall) Context ¶
func (c *SecurityPoliciesInsertCall) Context(ctx context.Context) *SecurityPoliciesInsertCall
Context sets the context to be used in this call's Do method.
func (*SecurityPoliciesInsertCall) Do ¶
func (c *SecurityPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.securityPolicies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SecurityPoliciesInsertCall) Fields ¶
func (c *SecurityPoliciesInsertCall) Fields(s ...googleapi.Field) *SecurityPoliciesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SecurityPoliciesInsertCall) Header ¶
func (c *SecurityPoliciesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SecurityPoliciesInsertCall) RequestId ¶
func (c *SecurityPoliciesInsertCall) RequestId(requestId string) *SecurityPoliciesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*SecurityPoliciesInsertCall) ValidateOnly ¶ added in v0.83.0
func (c *SecurityPoliciesInsertCall) ValidateOnly(validateOnly bool) *SecurityPoliciesInsertCall
ValidateOnly sets the optional parameter "validateOnly": If true, the request will not be committed.
type SecurityPoliciesListCall ¶
type SecurityPoliciesListCall struct {
// contains filtered or unexported fields
}
func (*SecurityPoliciesListCall) Context ¶
func (c *SecurityPoliciesListCall) Context(ctx context.Context) *SecurityPoliciesListCall
Context sets the context to be used in this call's Do method.
func (*SecurityPoliciesListCall) Do ¶
func (c *SecurityPoliciesListCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyList, error)
Do executes the "compute.securityPolicies.list" call. Any non-2xx status code is an error. Response headers are in either *SecurityPolicyList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SecurityPoliciesListCall) Fields ¶
func (c *SecurityPoliciesListCall) Fields(s ...googleapi.Field) *SecurityPoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SecurityPoliciesListCall) Filter ¶
func (c *SecurityPoliciesListCall) Filter(filter string) *SecurityPoliciesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*SecurityPoliciesListCall) Header ¶
func (c *SecurityPoliciesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SecurityPoliciesListCall) IfNoneMatch ¶
func (c *SecurityPoliciesListCall) IfNoneMatch(entityTag string) *SecurityPoliciesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*SecurityPoliciesListCall) MaxResults ¶
func (c *SecurityPoliciesListCall) MaxResults(maxResults int64) *SecurityPoliciesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*SecurityPoliciesListCall) OrderBy ¶
func (c *SecurityPoliciesListCall) OrderBy(orderBy string) *SecurityPoliciesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*SecurityPoliciesListCall) PageToken ¶
func (c *SecurityPoliciesListCall) PageToken(pageToken string) *SecurityPoliciesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*SecurityPoliciesListCall) Pages ¶
func (c *SecurityPoliciesListCall) Pages(ctx context.Context, f func(*SecurityPolicyList) 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 (*SecurityPoliciesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *SecurityPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SecurityPoliciesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type SecurityPoliciesListPreconfiguredExpressionSetsCall ¶ added in v0.22.0
type SecurityPoliciesListPreconfiguredExpressionSetsCall struct {
// contains filtered or unexported fields
}
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) Context ¶ added in v0.22.0
func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Context(ctx context.Context) *SecurityPoliciesListPreconfiguredExpressionSetsCall
Context sets the context to be used in this call's Do method.
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) Do ¶ added in v0.22.0
func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Do(opts ...googleapi.CallOption) (*SecurityPoliciesListPreconfiguredExpressionSetsResponse, error)
Do executes the "compute.securityPolicies.listPreconfiguredExpressionSets" call. Any non-2xx status code is an error. Response headers are in either *SecurityPoliciesListPreconfiguredExpressionSetsResponse.ServerResponse.Heade r or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) Fields ¶ added in v0.22.0
func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Fields(s ...googleapi.Field) *SecurityPoliciesListPreconfiguredExpressionSetsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) Filter ¶ added in v0.22.0
func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Filter(filter string) *SecurityPoliciesListPreconfiguredExpressionSetsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) Header ¶ added in v0.22.0
func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) IfNoneMatch ¶ added in v0.22.0
func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) IfNoneMatch(entityTag string) *SecurityPoliciesListPreconfiguredExpressionSetsCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) MaxResults ¶ added in v0.22.0
func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) MaxResults(maxResults int64) *SecurityPoliciesListPreconfiguredExpressionSetsCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) OrderBy ¶ added in v0.22.0
func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) OrderBy(orderBy string) *SecurityPoliciesListPreconfiguredExpressionSetsCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) PageToken ¶ added in v0.22.0
func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) PageToken(pageToken string) *SecurityPoliciesListPreconfiguredExpressionSetsCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) ReturnPartialSuccess(returnPartialSuccess bool) *SecurityPoliciesListPreconfiguredExpressionSetsCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type SecurityPoliciesListPreconfiguredExpressionSetsResponse ¶ added in v0.22.0
type SecurityPoliciesListPreconfiguredExpressionSetsResponse struct { PreconfiguredExpressionSets *SecurityPoliciesWafConfig `json:"preconfiguredExpressionSets,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "PreconfiguredExpressionSets") 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. "PreconfiguredExpressionSets") 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:"-"` }
func (SecurityPoliciesListPreconfiguredExpressionSetsResponse) MarshalJSON ¶ added in v0.22.0
func (s SecurityPoliciesListPreconfiguredExpressionSetsResponse) MarshalJSON() ([]byte, error)
type SecurityPoliciesPatchCall ¶
type SecurityPoliciesPatchCall struct {
// contains filtered or unexported fields
}
func (*SecurityPoliciesPatchCall) Context ¶
func (c *SecurityPoliciesPatchCall) Context(ctx context.Context) *SecurityPoliciesPatchCall
Context sets the context to be used in this call's Do method.
func (*SecurityPoliciesPatchCall) Do ¶
func (c *SecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.securityPolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SecurityPoliciesPatchCall) Fields ¶
func (c *SecurityPoliciesPatchCall) Fields(s ...googleapi.Field) *SecurityPoliciesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SecurityPoliciesPatchCall) Header ¶
func (c *SecurityPoliciesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SecurityPoliciesPatchCall) RequestId ¶
func (c *SecurityPoliciesPatchCall) RequestId(requestId string) *SecurityPoliciesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*SecurityPoliciesPatchCall) UpdateMask ¶ added in v0.146.0
func (c *SecurityPoliciesPatchCall) UpdateMask(updateMask string) *SecurityPoliciesPatchCall
UpdateMask sets the optional parameter "updateMask": Indicates fields to be cleared as part of this request.
type SecurityPoliciesPatchRuleCall ¶
type SecurityPoliciesPatchRuleCall struct {
// contains filtered or unexported fields
}
func (*SecurityPoliciesPatchRuleCall) Context ¶
func (c *SecurityPoliciesPatchRuleCall) Context(ctx context.Context) *SecurityPoliciesPatchRuleCall
Context sets the context to be used in this call's Do method.
func (*SecurityPoliciesPatchRuleCall) Do ¶
func (c *SecurityPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.securityPolicies.patchRule" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SecurityPoliciesPatchRuleCall) Fields ¶
func (c *SecurityPoliciesPatchRuleCall) Fields(s ...googleapi.Field) *SecurityPoliciesPatchRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SecurityPoliciesPatchRuleCall) Header ¶
func (c *SecurityPoliciesPatchRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SecurityPoliciesPatchRuleCall) Priority ¶
func (c *SecurityPoliciesPatchRuleCall) Priority(priority int64) *SecurityPoliciesPatchRuleCall
Priority sets the optional parameter "priority": The priority of the rule to patch.
func (*SecurityPoliciesPatchRuleCall) UpdateMask ¶ added in v0.146.0
func (c *SecurityPoliciesPatchRuleCall) UpdateMask(updateMask string) *SecurityPoliciesPatchRuleCall
UpdateMask sets the optional parameter "updateMask": Indicates fields to be cleared as part of this request.
func (*SecurityPoliciesPatchRuleCall) ValidateOnly ¶ added in v0.83.0
func (c *SecurityPoliciesPatchRuleCall) ValidateOnly(validateOnly bool) *SecurityPoliciesPatchRuleCall
ValidateOnly sets the optional parameter "validateOnly": If true, the request will not be committed.
type SecurityPoliciesRemoveRuleCall ¶
type SecurityPoliciesRemoveRuleCall struct {
// contains filtered or unexported fields
}
func (*SecurityPoliciesRemoveRuleCall) Context ¶
func (c *SecurityPoliciesRemoveRuleCall) Context(ctx context.Context) *SecurityPoliciesRemoveRuleCall
Context sets the context to be used in this call's Do method.
func (*SecurityPoliciesRemoveRuleCall) Do ¶
func (c *SecurityPoliciesRemoveRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.securityPolicies.removeRule" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SecurityPoliciesRemoveRuleCall) Fields ¶
func (c *SecurityPoliciesRemoveRuleCall) Fields(s ...googleapi.Field) *SecurityPoliciesRemoveRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SecurityPoliciesRemoveRuleCall) Header ¶
func (c *SecurityPoliciesRemoveRuleCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SecurityPoliciesRemoveRuleCall) Priority ¶
func (c *SecurityPoliciesRemoveRuleCall) Priority(priority int64) *SecurityPoliciesRemoveRuleCall
Priority sets the optional parameter "priority": The priority of the rule to remove from the security policy.
type SecurityPoliciesScopedList ¶ added in v0.74.0
type SecurityPoliciesScopedList struct { // SecurityPolicies: A list of SecurityPolicies contained in this scope. SecurityPolicies []*SecurityPolicy `json:"securityPolicies,omitempty"` // Warning: Informational warning which replaces the list of security policies // when the list is empty. Warning *SecurityPoliciesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "SecurityPolicies") 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. "SecurityPolicies") 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:"-"` }
func (SecurityPoliciesScopedList) MarshalJSON ¶ added in v0.74.0
func (s SecurityPoliciesScopedList) MarshalJSON() ([]byte, error)
type SecurityPoliciesScopedListWarning ¶ added in v0.74.0
type SecurityPoliciesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*SecurityPoliciesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
SecurityPoliciesScopedListWarning: Informational warning which replaces the list of security policies when the list is empty.
func (SecurityPoliciesScopedListWarning) MarshalJSON ¶ added in v0.74.0
func (s SecurityPoliciesScopedListWarning) MarshalJSON() ([]byte, error)
type SecurityPoliciesScopedListWarningData ¶ added in v0.74.0
type SecurityPoliciesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (SecurityPoliciesScopedListWarningData) MarshalJSON ¶ added in v0.74.0
func (s SecurityPoliciesScopedListWarningData) MarshalJSON() ([]byte, error)
type SecurityPoliciesService ¶
type SecurityPoliciesService struct {
// contains filtered or unexported fields
}
func NewSecurityPoliciesService ¶
func NewSecurityPoliciesService(s *Service) *SecurityPoliciesService
func (*SecurityPoliciesService) AddRule ¶
func (r *SecurityPoliciesService) AddRule(project string, securityPolicy string, securitypolicyrule *SecurityPolicyRule) *SecurityPoliciesAddRuleCall
AddRule: Inserts a rule into a security policy.
- project: Project ID for this request. - securityPolicy: Name of the security policy to update.
func (*SecurityPoliciesService) AggregatedList ¶ added in v0.74.0
func (r *SecurityPoliciesService) AggregatedList(project string) *SecurityPoliciesAggregatedListCall
AggregatedList: Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Name of the project scoping this request.
func (*SecurityPoliciesService) Delete ¶
func (r *SecurityPoliciesService) Delete(project string, securityPolicy string) *SecurityPoliciesDeleteCall
Delete: Deletes the specified policy.
- project: Project ID for this request. - securityPolicy: Name of the security policy to delete.
func (*SecurityPoliciesService) Get ¶
func (r *SecurityPoliciesService) Get(project string, securityPolicy string) *SecurityPoliciesGetCall
Get: List all of the ordered rules present in a single specified policy.
- project: Project ID for this request. - securityPolicy: Name of the security policy to get.
func (*SecurityPoliciesService) GetRule ¶
func (r *SecurityPoliciesService) GetRule(project string, securityPolicy string) *SecurityPoliciesGetRuleCall
GetRule: Gets a rule at the specified priority.
- project: Project ID for this request.
- securityPolicy: Name of the security policy to which the queried rule belongs.
func (*SecurityPoliciesService) Insert ¶
func (r *SecurityPoliciesService) Insert(project string, securitypolicy *SecurityPolicy) *SecurityPoliciesInsertCall
Insert: Creates a new policy in the specified project using the data included in the request.
- project: Project ID for this request.
func (*SecurityPoliciesService) List ¶
func (r *SecurityPoliciesService) List(project string) *SecurityPoliciesListCall
List: List all the policies that have been configured for the specified project.
- project: Project ID for this request.
func (*SecurityPoliciesService) ListPreconfiguredExpressionSets ¶ added in v0.22.0
func (r *SecurityPoliciesService) ListPreconfiguredExpressionSets(project string) *SecurityPoliciesListPreconfiguredExpressionSetsCall
ListPreconfiguredExpressionSets: Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
- project: Project ID for this request.
func (*SecurityPoliciesService) Patch ¶
func (r *SecurityPoliciesService) Patch(project string, securityPolicy string, securitypolicy *SecurityPolicy) *SecurityPoliciesPatchCall
Patch: Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
- project: Project ID for this request. - securityPolicy: Name of the security policy to update.
func (*SecurityPoliciesService) PatchRule ¶
func (r *SecurityPoliciesService) PatchRule(project string, securityPolicy string, securitypolicyrule *SecurityPolicyRule) *SecurityPoliciesPatchRuleCall
PatchRule: Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.
- project: Project ID for this request. - securityPolicy: Name of the security policy to update.
func (*SecurityPoliciesService) RemoveRule ¶
func (r *SecurityPoliciesService) RemoveRule(project string, securityPolicy string) *SecurityPoliciesRemoveRuleCall
RemoveRule: Deletes a rule at the specified priority.
- project: Project ID for this request. - securityPolicy: Name of the security policy to update.
func (*SecurityPoliciesService) SetLabels ¶ added in v0.96.0
func (r *SecurityPoliciesService) SetLabels(project string, resource string, globalsetlabelsrequest *GlobalSetLabelsRequest) *SecurityPoliciesSetLabelsCall
SetLabels: Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
type SecurityPoliciesSetLabelsCall ¶ added in v0.96.0
type SecurityPoliciesSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*SecurityPoliciesSetLabelsCall) Context ¶ added in v0.96.0
func (c *SecurityPoliciesSetLabelsCall) Context(ctx context.Context) *SecurityPoliciesSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*SecurityPoliciesSetLabelsCall) Do ¶ added in v0.96.0
func (c *SecurityPoliciesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.securityPolicies.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SecurityPoliciesSetLabelsCall) Fields ¶ added in v0.96.0
func (c *SecurityPoliciesSetLabelsCall) Fields(s ...googleapi.Field) *SecurityPoliciesSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SecurityPoliciesSetLabelsCall) Header ¶ added in v0.96.0
func (c *SecurityPoliciesSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type SecurityPoliciesWafConfig ¶ added in v0.22.0
type SecurityPoliciesWafConfig struct { WafRules *PreconfiguredWafSet `json:"wafRules,omitempty"` // ForceSendFields is a list of field names (e.g. "WafRules") 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. "WafRules") 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:"-"` }
func (SecurityPoliciesWafConfig) MarshalJSON ¶ added in v0.22.0
func (s SecurityPoliciesWafConfig) MarshalJSON() ([]byte, error)
type SecurityPolicy ¶
type SecurityPolicy struct { AdaptiveProtectionConfig *SecurityPolicyAdaptiveProtectionConfig `json:"adaptiveProtectionConfig,omitempty"` AdvancedOptionsConfig *SecurityPolicyAdvancedOptionsConfig `json:"advancedOptionsConfig,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` DdosProtectionConfig *SecurityPolicyDdosProtectionConfig `json:"ddosProtectionConfig,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Fingerprint: Specifies a fingerprint for this resource, which is essentially // a hash of the metadata's contents and used for optimistic locking. The // fingerprint is initially generated by Compute Engine and changes after every // request to modify or update metadata. You must always provide an up-to-date // fingerprint hash in order to update or change metadata, otherwise the // request will fail with error 412 conditionNotMet. To see the latest // fingerprint, make get() request to the security policy. Fingerprint string `json:"fingerprint,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output only] Type of the resource. Always compute#securityPolicyfor // security policies Kind string `json:"kind,omitempty"` // LabelFingerprint: A fingerprint for the labels being applied to this // security policy, which is essentially a hash of the labels set used for // optimistic locking. The fingerprint is initially generated by Compute Engine // and changes after every request to modify or update labels. You must always // provide an up-to-date fingerprint hash in order to update or change labels. // To see the latest fingerprint, make get() request to the security policy. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels for this resource. These can only be added or modified by the // setLabels method. Each label key/value pair must comply with RFC1035. Label // values may be empty. Labels map[string]string `json:"labels,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` RecaptchaOptionsConfig *SecurityPolicyRecaptchaOptionsConfig `json:"recaptchaOptionsConfig,omitempty"` // Region: [Output Only] URL of the region where the regional security policy // resides. This field is not applicable to global security policies. Region string `json:"region,omitempty"` // Rules: A list of rules that belong to this policy. There must always be a // default rule which is a rule with priority 2147483647 and match all // condition (for the match condition this means match "*" for srcIpRanges and // for the networkMatch condition every field must be either match "*" or not // set). If no rules are provided when creating a security policy, a default // rule with action "allow" will be added. Rules []*SecurityPolicyRule `json:"rules,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Type: The type indicates the intended use of the security policy. - // CLOUD_ARMOR: Cloud Armor backend security policies can be configured to // filter incoming HTTP requests targeting backend services. They filter // requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor // edge security policies can be configured to filter incoming HTTP requests // targeting backend services (including Cloud CDN-enabled) as well as backend // buckets (Cloud Storage). They filter requests before the request is served // from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal // service policies can be configured to filter HTTP requests targeting // services managed by Traffic Director in a service mesh. They filter requests // before the request is served from the application. - CLOUD_ARMOR_NETWORK: // Cloud Armor network policies can be configured to filter packets targeting // network load balancing resources such as backend services, target pools, // target instances, and instances with external IPs. They filter requests // before the request is served from the application. This field can be set // only at resource creation time. // // Possible values: // "CLOUD_ARMOR" // "CLOUD_ARMOR_EDGE" // "CLOUD_ARMOR_NETWORK" Type string `json:"type,omitempty"` // UserDefinedFields: Definitions of user-defined fields for // CLOUD_ARMOR_NETWORK policies. A user-defined field consists of up to 4 bytes // extracted from a fixed offset in the packet, relative to the IPv4, IPv6, // TCP, or UDP header, with an optional mask to select certain bits. Rules may // then specify matching values for these fields. Example: userDefinedFields: - // name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 mask: "0x1fff" UserDefinedFields []*SecurityPolicyUserDefinedField `json:"userDefinedFields,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AdaptiveProtectionConfig") // 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. "AdaptiveProtectionConfig") 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:"-"` }
SecurityPolicy: Represents a Google Cloud Armor security policy resource. Only external backend services that use load balancers can reference a security policy. For more information, see Google Cloud Armor security policy overview.
func (SecurityPolicy) MarshalJSON ¶
func (s SecurityPolicy) MarshalJSON() ([]byte, error)
type SecurityPolicyAdaptiveProtectionConfig ¶ added in v0.55.0
type SecurityPolicyAdaptiveProtectionConfig struct { // Layer7DdosDefenseConfig: If set to true, enables Cloud Armor Machine // Learning. Layer7DdosDefenseConfig *SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig `json:"layer7DdosDefenseConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "Layer7DdosDefenseConfig") 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. "Layer7DdosDefenseConfig") 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:"-"` }
SecurityPolicyAdaptiveProtectionConfig: Configuration options for Cloud Armor Adaptive Protection (CAAP).
func (SecurityPolicyAdaptiveProtectionConfig) MarshalJSON ¶ added in v0.55.0
func (s SecurityPolicyAdaptiveProtectionConfig) MarshalJSON() ([]byte, error)
type SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig ¶ added in v0.55.0
type SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig struct { // Enable: If set to true, enables CAAP for L7 DDoS detection. This field is // only supported in Global Security Policies of type CLOUD_ARMOR. Enable bool `json:"enable,omitempty"` // RuleVisibility: Rule visibility can be one of the following: STANDARD - // opaque rules. (default) PREMIUM - transparent rules. This field is only // supported in Global Security Policies of type CLOUD_ARMOR. // // Possible values: // "PREMIUM" // "STANDARD" RuleVisibility string `json:"ruleVisibility,omitempty"` // ThresholdConfigs: Configuration options for layer7 adaptive protection for // various customizable thresholds. ThresholdConfigs []*SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig `json:"thresholdConfigs,omitempty"` // ForceSendFields is a list of field names (e.g. "Enable") 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. "Enable") 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:"-"` }
SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig: Configuration options for L7 DDoS detection. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
func (SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig) MarshalJSON ¶ added in v0.55.0
func (s SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig) MarshalJSON() ([]byte, error)
type SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig ¶ added in v0.135.0
type SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig struct { AutoDeployConfidenceThreshold float64 `json:"autoDeployConfidenceThreshold,omitempty"` AutoDeployExpirationSec int64 `json:"autoDeployExpirationSec,omitempty"` AutoDeployImpactedBaselineThreshold float64 `json:"autoDeployImpactedBaselineThreshold,omitempty"` AutoDeployLoadThreshold float64 `json:"autoDeployLoadThreshold,omitempty"` DetectionAbsoluteQps float64 `json:"detectionAbsoluteQps,omitempty"` DetectionLoadThreshold float64 `json:"detectionLoadThreshold,omitempty"` DetectionRelativeToBaselineQps float64 `json:"detectionRelativeToBaselineQps,omitempty"` // Name: The name must be 1-63 characters long, and comply with RFC1035. The // name must be unique within the security policy. Name string `json:"name,omitempty"` // TrafficGranularityConfigs: Configuration options for enabling Adaptive // Protection to operate on specified granular traffic units. TrafficGranularityConfigs []*SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig `json:"trafficGranularityConfigs,omitempty"` // ForceSendFields is a list of field names (e.g. // "AutoDeployConfidenceThreshold") 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. "AutoDeployConfidenceThreshold") // 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:"-"` }
func (SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) MarshalJSON ¶ added in v0.135.0
func (s SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) MarshalJSON() ([]byte, error)
func (*SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) UnmarshalJSON ¶ added in v0.135.0
func (s *SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) UnmarshalJSON(data []byte) error
type SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig ¶ added in v0.187.0
type SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig struct { // EnableEachUniqueValue: If enabled, traffic matching each unique value for // the specified type constitutes a separate traffic unit. It can only be set // to true if `value` is empty. EnableEachUniqueValue bool `json:"enableEachUniqueValue,omitempty"` // Type: Type of this configuration. // // Possible values: // "HTTP_HEADER_HOST" // "HTTP_PATH" // "UNSPECIFIED_TYPE" Type string `json:"type,omitempty"` // Value: Requests that match this value constitute a granular traffic unit. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableEachUniqueValue") 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. "EnableEachUniqueValue") 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:"-"` }
SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigT rafficGranularityConfig: Configurations to specifc granular traffic units processed by Adaptive Protection.
func (SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig) MarshalJSON ¶ added in v0.187.0
func (s SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig) MarshalJSON() ([]byte, error)
type SecurityPolicyAdvancedOptionsConfig ¶ added in v0.48.0
type SecurityPolicyAdvancedOptionsConfig struct { // JsonCustomConfig: Custom configuration to apply the JSON parsing. Only // applicable when json_parsing is set to STANDARD. JsonCustomConfig *SecurityPolicyAdvancedOptionsConfigJsonCustomConfig `json:"jsonCustomConfig,omitempty"` // Possible values: // "DISABLED" // "STANDARD" // "STANDARD_WITH_GRAPHQL" JsonParsing string `json:"jsonParsing,omitempty"` // Possible values: // "NORMAL" // "VERBOSE" LogLevel string `json:"logLevel,omitempty"` // UserIpRequestHeaders: An optional list of case-insensitive request header // names to use for resolving the callers client IP address. UserIpRequestHeaders []string `json:"userIpRequestHeaders,omitempty"` // ForceSendFields is a list of field names (e.g. "JsonCustomConfig") 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. "JsonCustomConfig") 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:"-"` }
func (SecurityPolicyAdvancedOptionsConfig) MarshalJSON ¶ added in v0.48.0
func (s SecurityPolicyAdvancedOptionsConfig) MarshalJSON() ([]byte, error)
type SecurityPolicyAdvancedOptionsConfigJsonCustomConfig ¶ added in v0.92.0
type SecurityPolicyAdvancedOptionsConfigJsonCustomConfig struct { // ContentTypes: A list of custom Content-Type header values to apply the JSON // parsing. As per RFC 1341, a Content-Type header value has the following // format: Content-Type := type "/" subtype *[";" parameter] When configuring a // custom Content-Type header value, only the type/subtype needs to be // specified, and the parameters should be excluded. ContentTypes []string `json:"contentTypes,omitempty"` // ForceSendFields is a list of field names (e.g. "ContentTypes") 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. "ContentTypes") 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:"-"` }
func (SecurityPolicyAdvancedOptionsConfigJsonCustomConfig) MarshalJSON ¶ added in v0.92.0
func (s SecurityPolicyAdvancedOptionsConfigJsonCustomConfig) MarshalJSON() ([]byte, error)
type SecurityPolicyDdosProtectionConfig ¶ added in v0.74.0
type SecurityPolicyDdosProtectionConfig struct { // Possible values: // "ADVANCED" // "STANDARD" DdosProtection string `json:"ddosProtection,omitempty"` // ForceSendFields is a list of field names (e.g. "DdosProtection") 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. "DdosProtection") 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:"-"` }
func (SecurityPolicyDdosProtectionConfig) MarshalJSON ¶ added in v0.74.0
func (s SecurityPolicyDdosProtectionConfig) MarshalJSON() ([]byte, error)
type SecurityPolicyList ¶
type SecurityPolicyList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of SecurityPolicy resources. Items []*SecurityPolicy `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#securityPolicyList for // listsof securityPolicies Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // Warning: [Output Only] Informational warning message. Warning *SecurityPolicyListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (SecurityPolicyList) MarshalJSON ¶
func (s SecurityPolicyList) MarshalJSON() ([]byte, error)
type SecurityPolicyListWarning ¶
type SecurityPolicyListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*SecurityPolicyListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
SecurityPolicyListWarning: [Output Only] Informational warning message.
func (SecurityPolicyListWarning) MarshalJSON ¶
func (s SecurityPolicyListWarning) MarshalJSON() ([]byte, error)
type SecurityPolicyListWarningData ¶
type SecurityPolicyListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (SecurityPolicyListWarningData) MarshalJSON ¶
func (s SecurityPolicyListWarningData) MarshalJSON() ([]byte, error)
type SecurityPolicyRecaptchaOptionsConfig ¶ added in v0.62.0
type SecurityPolicyRecaptchaOptionsConfig struct { // RedirectSiteKey: An optional field to supply a reCAPTCHA site key to be used // for all the rules using the redirect action with the type of // GOOGLE_RECAPTCHA under the security policy. The specified site key needs to // be created from the reCAPTCHA API. The user is responsible for the validity // of the specified site key. If not specified, a Google-managed site key is // used. This field is only supported in Global Security Policies of type // CLOUD_ARMOR. RedirectSiteKey string `json:"redirectSiteKey,omitempty"` // ForceSendFields is a list of field names (e.g. "RedirectSiteKey") 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. "RedirectSiteKey") 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:"-"` }
func (SecurityPolicyRecaptchaOptionsConfig) MarshalJSON ¶ added in v0.62.0
func (s SecurityPolicyRecaptchaOptionsConfig) MarshalJSON() ([]byte, error)
type SecurityPolicyReference ¶
type SecurityPolicyReference struct { SecurityPolicy string `json:"securityPolicy,omitempty"` // ForceSendFields is a list of field names (e.g. "SecurityPolicy") 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. "SecurityPolicy") 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:"-"` }
func (SecurityPolicyReference) MarshalJSON ¶
func (s SecurityPolicyReference) MarshalJSON() ([]byte, error)
type SecurityPolicyRule ¶
type SecurityPolicyRule struct { // Action: The Action to perform when the rule is matched. The following are // the valid actions: - allow: allow access to target. - deny(STATUS): deny // access to target, returns the HTTP response code specified. Valid values for // `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to // the configured threshold and ban the client if the traffic exceeds the // threshold. Configure parameters for this action in RateLimitOptions. // Requires rate_limit_options to be set. - redirect: redirect to a different // target. This can either be an internal reCAPTCHA redirect, or an external // URL-based redirect via a 302 response. Parameters for this action can be // configured via redirectOptions. This action is only supported in Global // Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to // the configured threshold. Configure parameters for this action in // rateLimitOptions. Requires rate_limit_options to be set for this. Action string `json:"action,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // HeaderAction: Optional, additional actions that are performed on headers. // This field is only supported in Global Security Policies of type // CLOUD_ARMOR. HeaderAction *SecurityPolicyRuleHttpHeaderAction `json:"headerAction,omitempty"` // Kind: [Output only] Type of the resource. Always compute#securityPolicyRule // for security policy rules Kind string `json:"kind,omitempty"` // Match: A match condition that incoming traffic is evaluated against. If it // evaluates to true, the corresponding 'action' is enforced. Match *SecurityPolicyRuleMatcher `json:"match,omitempty"` // NetworkMatch: A match condition that incoming packets are evaluated against // for CLOUD_ARMOR_NETWORK security policies. If it matches, the corresponding // 'action' is enforced. The match criteria for a rule consists of built-in // match fields (like 'srcIpRanges') and potentially multiple user-defined // match fields ('userDefinedFields'). Field values may be extracted directly // from the packet or derived from it (e.g. 'srcRegionCodes'). Some fields may // not be present in every packet (e.g. 'srcPorts'). A user-defined field is // only present if the base header is found in the packet and the entire field // is in bounds. Each match field may specify which values can match it, // listing one or more ranges, prefixes, or exact values that are considered a // match for the field. A field value must be present in order to match a // specified match field. If no match values are specified for a match field, // then any field value is considered to match it, and it's not required to be // present. For strings specifying '*' is also equivalent to match all. For a // packet to match a rule, all specified match fields must match the // corresponding field values derived from the packet. Example: networkMatch: // srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: // "ipv4_fragment_offset" values: - "1-0x1fff" The above match condition // matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 and a // user-defined field named "ipv4_fragment_offset" with a value between 1 and // 0x1fff inclusive. NetworkMatch *SecurityPolicyRuleNetworkMatcher `json:"networkMatch,omitempty"` // PreconfiguredWafConfig: Preconfigured WAF configuration to be applied for // the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if // evaluatePreconfiguredWaf() is not used, this field will have no effect. PreconfiguredWafConfig *SecurityPolicyRulePreconfiguredWafConfig `json:"preconfiguredWafConfig,omitempty"` // Preview: If set to true, the specified action is not enforced. Preview bool `json:"preview,omitempty"` // Priority: An integer indicating the priority of a rule in the list. The // priority must be a positive value between 0 and 2147483647. Rules are // evaluated from highest to lowest priority where 0 is the highest priority // and 2147483647 is the lowest priority. Priority int64 `json:"priority,omitempty"` // RateLimitOptions: Must be specified if the action is "rate_based_ban" or // "throttle". Cannot be specified for any other actions. RateLimitOptions *SecurityPolicyRuleRateLimitOptions `json:"rateLimitOptions,omitempty"` // RedirectOptions: Parameters defining the redirect action. Cannot be // specified for any other actions. This field is only supported in Global // Security Policies of type CLOUD_ARMOR. RedirectOptions *SecurityPolicyRuleRedirectOptions `json:"redirectOptions,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:"-"` }
SecurityPolicyRule: Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny).
func (SecurityPolicyRule) MarshalJSON ¶
func (s SecurityPolicyRule) MarshalJSON() ([]byte, error)
type SecurityPolicyRuleHttpHeaderAction ¶ added in v0.62.0
type SecurityPolicyRuleHttpHeaderAction struct { // RequestHeadersToAdds: The list of request headers to add or overwrite if // they're already present. RequestHeadersToAdds []*SecurityPolicyRuleHttpHeaderActionHttpHeaderOption `json:"requestHeadersToAdds,omitempty"` // ForceSendFields is a list of field names (e.g. "RequestHeadersToAdds") 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. "RequestHeadersToAdds") 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:"-"` }
func (SecurityPolicyRuleHttpHeaderAction) MarshalJSON ¶ added in v0.62.0
func (s SecurityPolicyRuleHttpHeaderAction) MarshalJSON() ([]byte, error)
type SecurityPolicyRuleHttpHeaderActionHttpHeaderOption ¶ added in v0.62.0
type SecurityPolicyRuleHttpHeaderActionHttpHeaderOption struct { // HeaderName: The name of the header to set. HeaderName string `json:"headerName,omitempty"` // HeaderValue: The value to set the named header to. HeaderValue string `json:"headerValue,omitempty"` // ForceSendFields is a list of field names (e.g. "HeaderName") 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. "HeaderName") 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:"-"` }
func (SecurityPolicyRuleHttpHeaderActionHttpHeaderOption) MarshalJSON ¶ added in v0.62.0
func (s SecurityPolicyRuleHttpHeaderActionHttpHeaderOption) MarshalJSON() ([]byte, error)
type SecurityPolicyRuleMatcher ¶
type SecurityPolicyRuleMatcher struct { // Config: The configuration options available when specifying versioned_expr. // This field must be specified if versioned_expr is specified and cannot be // specified if versioned_expr is not specified. Config *SecurityPolicyRuleMatcherConfig `json:"config,omitempty"` // Expr: User defined CEVAL expression. A CEVAL expression is used to specify // match criteria such as origin.ip, source.region_code and contents in the // request header. Expressions containing `evaluateThreatIntelligence` require // Cloud Armor Managed Protection Plus tier and are not supported in Edge // Policies nor in Regional Policies. Expressions containing // `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed // Protection Plus tier and are only supported in Global Security Policies. Expr *Expr `json:"expr,omitempty"` // ExprOptions: The configuration options available when specifying a user // defined CEVAL expression (i.e., 'expr'). ExprOptions *SecurityPolicyRuleMatcherExprOptions `json:"exprOptions,omitempty"` // VersionedExpr: Preconfigured versioned expression. If this field is // specified, config must also be specified. Available preconfigured // expressions along with their requirements are: SRC_IPS_V1 - must specify the // corresponding src_ip_range field in config. // // Possible values: // "SRC_IPS_V1" - Matches the source IP address of a request to the IP ranges // supplied in config. VersionedExpr string `json:"versionedExpr,omitempty"` // ForceSendFields is a list of field names (e.g. "Config") 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. "Config") 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:"-"` }
SecurityPolicyRuleMatcher: Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified.
func (SecurityPolicyRuleMatcher) MarshalJSON ¶
func (s SecurityPolicyRuleMatcher) MarshalJSON() ([]byte, error)
type SecurityPolicyRuleMatcherConfig ¶
type SecurityPolicyRuleMatcherConfig struct { // SrcIpRanges: CIDR IP address range. Maximum number of src_ip_ranges allowed // is 10. SrcIpRanges []string `json:"srcIpRanges,omitempty"` // ForceSendFields is a list of field names (e.g. "SrcIpRanges") 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. "SrcIpRanges") 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:"-"` }
func (SecurityPolicyRuleMatcherConfig) MarshalJSON ¶
func (s SecurityPolicyRuleMatcherConfig) MarshalJSON() ([]byte, error)
type SecurityPolicyRuleMatcherExprOptions ¶ added in v0.154.0
type SecurityPolicyRuleMatcherExprOptions struct { // RecaptchaOptions: reCAPTCHA configuration options to be applied for the // rule. If the rule does not evaluate reCAPTCHA tokens, this field has no // effect. RecaptchaOptions *SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions `json:"recaptchaOptions,omitempty"` // ForceSendFields is a list of field names (e.g. "RecaptchaOptions") 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. "RecaptchaOptions") 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:"-"` }
func (SecurityPolicyRuleMatcherExprOptions) MarshalJSON ¶ added in v0.154.0
func (s SecurityPolicyRuleMatcherExprOptions) MarshalJSON() ([]byte, error)
type SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions ¶ added in v0.154.0
type SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions struct { // ActionTokenSiteKeys: A list of site keys to be used during the validation of // reCAPTCHA action-tokens. The provided site keys need to be created from // reCAPTCHA API under the same project where the security policy is created. ActionTokenSiteKeys []string `json:"actionTokenSiteKeys,omitempty"` // SessionTokenSiteKeys: A list of site keys to be used during the validation // of reCAPTCHA session-tokens. The provided site keys need to be created from // reCAPTCHA API under the same project where the security policy is created. SessionTokenSiteKeys []string `json:"sessionTokenSiteKeys,omitempty"` // ForceSendFields is a list of field names (e.g. "ActionTokenSiteKeys") 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. "ActionTokenSiteKeys") 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:"-"` }
func (SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions) MarshalJSON ¶ added in v0.154.0
func (s SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions) MarshalJSON() ([]byte, error)
type SecurityPolicyRuleNetworkMatcher ¶ added in v0.139.0
type SecurityPolicyRuleNetworkMatcher struct { // DestIpRanges: Destination IPv4/IPv6 addresses or CIDR prefixes, in standard // text format. DestIpRanges []string `json:"destIpRanges,omitempty"` // DestPorts: Destination port numbers for TCP/UDP/SCTP. Each element can be a // 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023"). DestPorts []string `json:"destPorts,omitempty"` // IpProtocols: IPv4 protocol / IPv6 next header (after extension headers). // Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. // "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", // "esp", "ah", "ipip", or "sctp". IpProtocols []string `json:"ipProtocols,omitempty"` // SrcAsns: BGP Autonomous System Number associated with the source IP address. SrcAsns []int64 `json:"srcAsns,omitempty"` // SrcIpRanges: Source IPv4/IPv6 addresses or CIDR prefixes, in standard text // format. SrcIpRanges []string `json:"srcIpRanges,omitempty"` // SrcPorts: Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit // unsigned decimal number (e.g. "80") or range (e.g. "0-1023"). SrcPorts []string `json:"srcPorts,omitempty"` // SrcRegionCodes: Two-letter ISO 3166-1 alpha-2 country code associated with // the source IP address. SrcRegionCodes []string `json:"srcRegionCodes,omitempty"` // UserDefinedFields: User-defined fields. Each element names a defined field // and lists the matching values for that field. UserDefinedFields []*SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch `json:"userDefinedFields,omitempty"` // ForceSendFields is a list of field names (e.g. "DestIpRanges") 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. "DestIpRanges") 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:"-"` }
SecurityPolicyRuleNetworkMatcher: Represents a match condition that incoming network traffic is evaluated against.
func (SecurityPolicyRuleNetworkMatcher) MarshalJSON ¶ added in v0.139.0
func (s SecurityPolicyRuleNetworkMatcher) MarshalJSON() ([]byte, error)
type SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch ¶ added in v0.139.0
type SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch struct { // Name: Name of the user-defined field, as given in the definition. Name string `json:"name,omitempty"` // Values: Matching values of the field. Each element can be a 32-bit unsigned // decimal or hexadecimal (starting with "0x") number (e.g. "64") or range // (e.g. "0x400-0x7ff"). Values []string `json:"values,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:"-"` }
func (SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch) MarshalJSON ¶ added in v0.139.0
func (s SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch) MarshalJSON() ([]byte, error)
type SecurityPolicyRulePreconfiguredWafConfig ¶ added in v0.112.0
type SecurityPolicyRulePreconfiguredWafConfig struct { // Exclusions: A list of exclusions to apply during preconfigured WAF // evaluation. Exclusions []*SecurityPolicyRulePreconfiguredWafConfigExclusion `json:"exclusions,omitempty"` // ForceSendFields is a list of field names (e.g. "Exclusions") 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. "Exclusions") 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:"-"` }
func (SecurityPolicyRulePreconfiguredWafConfig) MarshalJSON ¶ added in v0.112.0
func (s SecurityPolicyRulePreconfiguredWafConfig) MarshalJSON() ([]byte, error)
type SecurityPolicyRulePreconfiguredWafConfigExclusion ¶ added in v0.112.0
type SecurityPolicyRulePreconfiguredWafConfigExclusion struct { // RequestCookiesToExclude: A list of request cookie names whose value will be // excluded from inspection during preconfigured WAF evaluation. RequestCookiesToExclude []*SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams `json:"requestCookiesToExclude,omitempty"` // RequestHeadersToExclude: A list of request header names whose value will be // excluded from inspection during preconfigured WAF evaluation. RequestHeadersToExclude []*SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams `json:"requestHeadersToExclude,omitempty"` // RequestQueryParamsToExclude: A list of request query parameter names whose // value will be excluded from inspection during preconfigured WAF evaluation. // Note that the parameter can be in the query string or in the POST body. RequestQueryParamsToExclude []*SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams `json:"requestQueryParamsToExclude,omitempty"` // RequestUrisToExclude: A list of request URIs from the request line to be // excluded from inspection during preconfigured WAF evaluation. When // specifying this field, the query or fragment part should be excluded. RequestUrisToExclude []*SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams `json:"requestUrisToExclude,omitempty"` // TargetRuleIds: A list of target rule IDs under the WAF rule set to apply the // preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under // the WAF rule set. TargetRuleIds []string `json:"targetRuleIds,omitempty"` // TargetRuleSet: Target WAF rule set to apply the preconfigured WAF exclusion. TargetRuleSet string `json:"targetRuleSet,omitempty"` // ForceSendFields is a list of field names (e.g. "RequestCookiesToExclude") 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. "RequestCookiesToExclude") 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:"-"` }
func (SecurityPolicyRulePreconfiguredWafConfigExclusion) MarshalJSON ¶ added in v0.112.0
func (s SecurityPolicyRulePreconfiguredWafConfigExclusion) MarshalJSON() ([]byte, error)
type SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams ¶ added in v0.112.0
type SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams struct { // Op: The match operator for the field. // // Possible values: // "CONTAINS" - The operator matches if the field value contains the // specified value. // "ENDS_WITH" - The operator matches if the field value ends with the // specified value. // "EQUALS" - The operator matches if the field value equals the specified // value. // "EQUALS_ANY" - The operator matches if the field value is any value. // "STARTS_WITH" - The operator matches if the field value starts with the // specified value. Op string `json:"op,omitempty"` // Val: The value of the field. Val string `json:"val,omitempty"` // ForceSendFields is a list of field names (e.g. "Op") 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. "Op") 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:"-"` }
func (SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams) MarshalJSON ¶ added in v0.112.0
func (s SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams) MarshalJSON() ([]byte, error)
type SecurityPolicyRuleRateLimitOptions ¶ added in v0.62.0
type SecurityPolicyRuleRateLimitOptions struct { // BanDurationSec: Can only be specified if the action for the rule is // "rate_based_ban". If specified, determines the time (in seconds) the traffic // will continue to be banned by the rate limit after the rate falls below the // threshold. BanDurationSec int64 `json:"banDurationSec,omitempty"` // BanThreshold: Can only be specified if the action for the rule is // "rate_based_ban". If specified, the key will be banned for the configured // 'ban_duration_sec' when the number of requests that exceed the // 'rate_limit_threshold' also exceed this 'ban_threshold'. BanThreshold *SecurityPolicyRuleRateLimitOptionsThreshold `json:"banThreshold,omitempty"` // ConformAction: Action to take for requests that are under the configured // rate limit threshold. Valid option is "allow" only. ConformAction string `json:"conformAction,omitempty"` // EnforceOnKey: Determines the key to enforce the rate_limit_threshold on. // Possible values are: - ALL: A single rate limit threshold is applied to all // the requests matching this rule. This is the default value if "enforceOnKey" // is not configured. - IP: The source IP address of the request is the key. // Each IP has this limit enforced separately. - HTTP_HEADER: The value of the // HTTP header whose name is configured under "enforceOnKeyName". The key value // is truncated to the first 128 bytes of the header value. If no such header // is present in the request, the key type defaults to ALL. - XFF_IP: The first // IP address (i.e. the originating client IP address) specified in the list of // IPs under X-Forwarded-For HTTP header. If no such header is present or the // value is not a valid IP, the key defaults to the source IP address of the // request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose // name is configured under "enforceOnKeyName". The key value is truncated to // the first 128 bytes of the cookie value. If no such cookie is present in the // request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP // request. The key value is truncated to the first 128 bytes. - SNI: Server // name indication in the TLS session of the HTTPS request. The key value is // truncated to the first 128 bytes. The key type defaults to ALL on a HTTP // session. - REGION_CODE: The country/region from which the request // originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client // connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type // defaults to ALL. - USER_IP: The IP address of the originating client, which // is resolved based on "userIpRequestHeaders" configured with the security // policy. If there is no "userIpRequestHeaders" configuration or an IP address // cannot be resolved from it, the key type defaults to IP. // // Possible values: // "ALL" // "HTTP_COOKIE" // "HTTP_HEADER" // "HTTP_PATH" // "IP" // "REGION_CODE" // "SNI" // "TLS_JA3_FINGERPRINT" // "USER_IP" // "XFF_IP" EnforceOnKey string `json:"enforceOnKey,omitempty"` // EnforceOnKeyConfigs: If specified, any combination of values of // enforce_on_key_type/enforce_on_key_name is treated as the key on which // ratelimit threshold/action is enforced. You can specify up to 3 // enforce_on_key_configs. If enforce_on_key_configs is specified, // enforce_on_key must not be specified. EnforceOnKeyConfigs []*SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig `json:"enforceOnKeyConfigs,omitempty"` // EnforceOnKeyName: Rate limit key name applicable only for the following key // types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the // key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as // the key value. EnforceOnKeyName string `json:"enforceOnKeyName,omitempty"` // ExceedAction: Action to take for requests that are above the configured rate // limit threshold, to either deny with a specified HTTP response code, or // redirect to a different endpoint. Valid options are `deny(STATUS)`, where // valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, where // the redirect parameters come from `exceedRedirectOptions` below. The // `redirect` action is only supported in Global Security Policies of type // CLOUD_ARMOR. ExceedAction string `json:"exceedAction,omitempty"` // ExceedRedirectOptions: Parameters defining the redirect action that is used // as the exceed action. Cannot be specified if the exceed action is not // redirect. This field is only supported in Global Security Policies of type // CLOUD_ARMOR. ExceedRedirectOptions *SecurityPolicyRuleRedirectOptions `json:"exceedRedirectOptions,omitempty"` // RateLimitThreshold: Threshold at which to begin ratelimiting. RateLimitThreshold *SecurityPolicyRuleRateLimitOptionsThreshold `json:"rateLimitThreshold,omitempty"` // ForceSendFields is a list of field names (e.g. "BanDurationSec") 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. "BanDurationSec") 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:"-"` }
func (SecurityPolicyRuleRateLimitOptions) MarshalJSON ¶ added in v0.62.0
func (s SecurityPolicyRuleRateLimitOptions) MarshalJSON() ([]byte, error)
type SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig ¶ added in v0.119.0
type SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig struct { // EnforceOnKeyName: Rate limit key name applicable only for the following key // types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the // key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as // the key value. EnforceOnKeyName string `json:"enforceOnKeyName,omitempty"` // EnforceOnKeyType: Determines the key to enforce the rate_limit_threshold on. // Possible values are: - ALL: A single rate limit threshold is applied to all // the requests matching this rule. This is the default value if // "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the // request is the key. Each IP has this limit enforced separately. - // HTTP_HEADER: The value of the HTTP header whose name is configured under // "enforceOnKeyName". The key value is truncated to the first 128 bytes of the // header value. If no such header is present in the request, the key type // defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client // IP address) specified in the list of IPs under X-Forwarded-For HTTP header. // If no such header is present or the value is not a valid IP, the key // defaults to the source IP address of the request i.e. key type IP. - // HTTP_COOKIE: The value of the HTTP cookie whose name is configured under // "enforceOnKeyName". The key value is truncated to the first 128 bytes of the // cookie value. If no such cookie is present in the request, the key type // defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key // value is truncated to the first 128 bytes. - SNI: Server name indication in // the TLS session of the HTTPS request. The key value is truncated to the // first 128 bytes. The key type defaults to ALL on a HTTP session. - // REGION_CODE: The country/region from which the request originates. - // TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using // HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - // USER_IP: The IP address of the originating client, which is resolved based // on "userIpRequestHeaders" configured with the security policy. If there is // no "userIpRequestHeaders" configuration or an IP address cannot be resolved // from it, the key type defaults to IP. // // Possible values: // "ALL" // "HTTP_COOKIE" // "HTTP_HEADER" // "HTTP_PATH" // "IP" // "REGION_CODE" // "SNI" // "TLS_JA3_FINGERPRINT" // "USER_IP" // "XFF_IP" EnforceOnKeyType string `json:"enforceOnKeyType,omitempty"` // ForceSendFields is a list of field names (e.g. "EnforceOnKeyName") 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. "EnforceOnKeyName") 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:"-"` }
func (SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig) MarshalJSON ¶ added in v0.119.0
func (s SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig) MarshalJSON() ([]byte, error)
type SecurityPolicyRuleRateLimitOptionsThreshold ¶ added in v0.62.0
type SecurityPolicyRuleRateLimitOptionsThreshold struct { // Count: Number of HTTP(S) requests for calculating the threshold. Count int64 `json:"count,omitempty"` // IntervalSec: Interval over which the threshold is computed. IntervalSec int64 `json:"intervalSec,omitempty"` // ForceSendFields is a list of field names (e.g. "Count") 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. "Count") 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:"-"` }
func (SecurityPolicyRuleRateLimitOptionsThreshold) MarshalJSON ¶ added in v0.62.0
func (s SecurityPolicyRuleRateLimitOptionsThreshold) MarshalJSON() ([]byte, error)
type SecurityPolicyRuleRedirectOptions ¶ added in v0.62.0
type SecurityPolicyRuleRedirectOptions struct { // Target: Target for the redirect action. This is required if the type is // EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA. Target string `json:"target,omitempty"` // Type: Type of the redirect action. // // Possible values: // "EXTERNAL_302" // "GOOGLE_RECAPTCHA" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Target") 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. "Target") 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:"-"` }
func (SecurityPolicyRuleRedirectOptions) MarshalJSON ¶ added in v0.62.0
func (s SecurityPolicyRuleRedirectOptions) MarshalJSON() ([]byte, error)
type SecurityPolicyUserDefinedField ¶ added in v0.139.0
type SecurityPolicyUserDefinedField struct { // Base: The base relative to which 'offset' is measured. Possible values are: // - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the // beginning of the IPv6 header. - TCP: Points to the beginning of the TCP // header, skipping over any IPv4 options or IPv6 extension headers. Not // present for non-first fragments. - UDP: Points to the beginning of the UDP // header, skipping over any IPv4 options or IPv6 extension headers. Not // present for non-first fragments. required // // Possible values: // "IPV4" // "IPV6" // "TCP" // "UDP" Base string `json:"base,omitempty"` // Mask: If specified, apply this mask (bitwise AND) to the field to ignore // bits before matching. Encoded as a hexadecimal number (starting with "0x"). // The last byte of the field (in network byte order) corresponds to the least // significant byte of the mask. Mask string `json:"mask,omitempty"` // Name: The name of this field. Must be unique within the policy. Name string `json:"name,omitempty"` // Offset: Offset of the first byte of the field (in network byte order) // relative to 'base'. Offset int64 `json:"offset,omitempty"` // Size: Size of the field in bytes. Valid values: 1-4. Size int64 `json:"size,omitempty"` // ForceSendFields is a list of field names (e.g. "Base") 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. "Base") 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:"-"` }
func (SecurityPolicyUserDefinedField) MarshalJSON ¶ added in v0.139.0
func (s SecurityPolicyUserDefinedField) MarshalJSON() ([]byte, error)
type SecuritySettings ¶ added in v0.35.0
type SecuritySettings struct { // AwsV4Authentication: The configuration needed to generate a signature for // access to private storage buckets that support AWS's Signature Version 4 for // authentication. Allowed only for INTERNET_IP_PORT and INTERNET_FQDN_PORT NEG // backends. AwsV4Authentication *AWSV4Signature `json:"awsV4Authentication,omitempty"` // ClientTlsPolicy: Optional. A URL referring to a // networksecurity.ClientTlsPolicy resource that describes how clients should // authenticate with this service's backends. clientTlsPolicy only applies to a // global BackendService with the loadBalancingScheme set to // INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted. ClientTlsPolicy string `json:"clientTlsPolicy,omitempty"` // SubjectAltNames: Optional. A list of Subject Alternative Names (SANs) that // the client verifies during a mutual TLS handshake with an server/endpoint // for this BackendService. When the server presents its X.509 certificate to // the client, the client inspects the certificate's subjectAltName field. If // the field contains one of the specified values, the communication continues. // Otherwise, it fails. This additional check enables the client to verify that // the server is authorized to run the requested service. Note that the // contents of the server certificate's subjectAltName field are configured by // the Public Key Infrastructure which provisions server identities. Only // applies to a global BackendService with loadBalancingScheme set to // INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached // clientTlsPolicy with clientCertificate (mTLS mode). SubjectAltNames []string `json:"subjectAltNames,omitempty"` // ForceSendFields is a list of field names (e.g. "AwsV4Authentication") 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. "AwsV4Authentication") 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:"-"` }
SecuritySettings: The authentication and authorization settings for a BackendService.
func (SecuritySettings) MarshalJSON ¶ added in v0.35.0
func (s SecuritySettings) MarshalJSON() ([]byte, error)
type SerialPortOutput ¶
type SerialPortOutput struct { // Contents: [Output Only] The contents of the console output. Contents string `json:"contents,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#serialPortOutput // for serial port output. Kind string `json:"kind,omitempty"` // Next: [Output Only] The position of the next byte of content, regardless of // whether the content exists, following the output returned in the `contents` // property. Use this value in the next request as the start parameter. Next int64 `json:"next,omitempty,string"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Start: The starting byte position of the output that was returned. This // should match the start parameter sent with the request. If the serial // console output exceeds the size of the buffer (1 MB), older output is // overwritten by newer content. The output start value will indicate the byte // position of the output that was returned, which might be different than the // `start` value that was specified in the request. Start int64 `json:"start,omitempty,string"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Contents") 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. "Contents") 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:"-"` }
SerialPortOutput: An instance serial console output.
func (SerialPortOutput) MarshalJSON ¶
func (s SerialPortOutput) MarshalJSON() ([]byte, error)
type ServerBinding ¶ added in v0.7.0
type ServerBinding struct { // Possible values: // "RESTART_NODE_ON_ANY_SERVER" - Node may associate with any physical server // over its lifetime. // "RESTART_NODE_ON_MINIMAL_SERVERS" - Node may associate with minimal // physical servers over its lifetime. // "SERVER_BINDING_TYPE_UNSPECIFIED" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Type") 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. "Type") 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:"-"` }
func (ServerBinding) MarshalJSON ¶ added in v0.7.0
func (s ServerBinding) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment AcceleratorTypes *AcceleratorTypesService Addresses *AddressesService Autoscalers *AutoscalersService BackendBuckets *BackendBucketsService BackendServices *BackendServicesService DiskTypes *DiskTypesService Disks *DisksService ExternalVpnGateways *ExternalVpnGatewaysService FirewallPolicies *FirewallPoliciesService Firewalls *FirewallsService ForwardingRules *ForwardingRulesService FutureReservations *FutureReservationsService GlobalAddresses *GlobalAddressesService GlobalForwardingRules *GlobalForwardingRulesService GlobalNetworkEndpointGroups *GlobalNetworkEndpointGroupsService GlobalOperations *GlobalOperationsService GlobalOrganizationOperations *GlobalOrganizationOperationsService GlobalPublicDelegatedPrefixes *GlobalPublicDelegatedPrefixesService HealthChecks *HealthChecksService HttpHealthChecks *HttpHealthChecksService HttpsHealthChecks *HttpsHealthChecksService ImageFamilyViews *ImageFamilyViewsService Images *ImagesService InstanceGroupManagerResizeRequests *InstanceGroupManagerResizeRequestsService InstanceGroupManagers *InstanceGroupManagersService InstanceGroups *InstanceGroupsService InstanceSettings *InstanceSettingsService InstanceTemplates *InstanceTemplatesService Instances *InstancesService InstantSnapshots *InstantSnapshotsService InterconnectAttachments *InterconnectAttachmentsService InterconnectLocations *InterconnectLocationsService InterconnectRemoteLocations *InterconnectRemoteLocationsService Interconnects *InterconnectsService LicenseCodes *LicenseCodesService Licenses *LicensesService MachineImages *MachineImagesService MachineTypes *MachineTypesService NetworkAttachments *NetworkAttachmentsService NetworkEdgeSecurityServices *NetworkEdgeSecurityServicesService NetworkEndpointGroups *NetworkEndpointGroupsService NetworkFirewallPolicies *NetworkFirewallPoliciesService Networks *NetworksService NodeGroups *NodeGroupsService NodeTemplates *NodeTemplatesService NodeTypes *NodeTypesService PacketMirrorings *PacketMirroringsService Projects *ProjectsService PublicAdvertisedPrefixes *PublicAdvertisedPrefixesService PublicDelegatedPrefixes *PublicDelegatedPrefixesService RegionAutoscalers *RegionAutoscalersService RegionBackendServices *RegionBackendServicesService RegionCommitments *RegionCommitmentsService RegionDiskTypes *RegionDiskTypesService RegionDisks *RegionDisksService RegionHealthCheckServices *RegionHealthCheckServicesService RegionHealthChecks *RegionHealthChecksService RegionInstanceGroupManagers *RegionInstanceGroupManagersService RegionInstanceGroups *RegionInstanceGroupsService RegionInstanceTemplates *RegionInstanceTemplatesService RegionInstances *RegionInstancesService RegionInstantSnapshots *RegionInstantSnapshotsService RegionNetworkEndpointGroups *RegionNetworkEndpointGroupsService RegionNetworkFirewallPolicies *RegionNetworkFirewallPoliciesService RegionNotificationEndpoints *RegionNotificationEndpointsService RegionOperations *RegionOperationsService RegionSecurityPolicies *RegionSecurityPoliciesService RegionSslCertificates *RegionSslCertificatesService RegionSslPolicies *RegionSslPoliciesService RegionTargetHttpProxies *RegionTargetHttpProxiesService RegionTargetHttpsProxies *RegionTargetHttpsProxiesService RegionTargetTcpProxies *RegionTargetTcpProxiesService RegionUrlMaps *RegionUrlMapsService RegionZones *RegionZonesService Regions *RegionsService Reservations *ReservationsService ResourcePolicies *ResourcePoliciesService Routers *RoutersService Routes *RoutesService SecurityPolicies *SecurityPoliciesService ServiceAttachments *ServiceAttachmentsService SnapshotSettings *SnapshotSettingsService Snapshots *SnapshotsService SslCertificates *SslCertificatesService SslPolicies *SslPoliciesService StoragePoolTypes *StoragePoolTypesService StoragePools *StoragePoolsService Subnetworks *SubnetworksService TargetGrpcProxies *TargetGrpcProxiesService TargetHttpProxies *TargetHttpProxiesService TargetHttpsProxies *TargetHttpsProxiesService TargetInstances *TargetInstancesService TargetPools *TargetPoolsService TargetSslProxies *TargetSslProxiesService TargetTcpProxies *TargetTcpProxiesService TargetVpnGateways *TargetVpnGatewaysService UrlMaps *UrlMapsService VpnGateways *VpnGatewaysService VpnTunnels *VpnTunnelsService ZoneOperations *ZoneOperationsService Zones *ZonesService // contains filtered or unexported fields }
func New
deprecated
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.
func NewService ¶ added in v0.3.0
NewService creates a new Service.
type ServiceAccount ¶
type ServiceAccount struct { // Email: Email address of the service account. Email string `json:"email,omitempty"` // Scopes: The list of scopes to be made available for this service account. Scopes []string `json:"scopes,omitempty"` // ForceSendFields is a list of field names (e.g. "Email") 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. "Email") 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:"-"` }
ServiceAccount: A service account.
func (ServiceAccount) MarshalJSON ¶
func (s ServiceAccount) MarshalJSON() ([]byte, error)
type ServiceAttachment ¶ added in v0.55.0
type ServiceAttachment struct { // ConnectedEndpoints: [Output Only] An array of connections for all the // consumers connected to this service attachment. ConnectedEndpoints []*ServiceAttachmentConnectedEndpoint `json:"connectedEndpoints,omitempty"` // ConnectionPreference: The connection preference of service attachment. The // value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment // is one that always accepts the connection from consumer forwarding rules. // // Possible values: // "ACCEPT_AUTOMATIC" // "ACCEPT_MANUAL" // "CONNECTION_PREFERENCE_UNSPECIFIED" ConnectionPreference string `json:"connectionPreference,omitempty"` // ConsumerAcceptLists: Specifies which consumer projects or networks are // allowed to connect to the service attachment. Each project or network has a // connection limit. A given service attachment can manage connections at // either the project or network level. Therefore, both the accept and reject // lists for a given service attachment must contain either only projects or // only networks. ConsumerAcceptLists []*ServiceAttachmentConsumerProjectLimit `json:"consumerAcceptLists,omitempty"` // ConsumerRejectLists: Specifies a list of projects or networks that are not // allowed to connect to this service attachment. The project can be specified // using its project ID or project number and the network can be specified // using its URL. A given service attachment can manage connections at either // the project or network level. Therefore, both the reject and accept lists // for a given service attachment must contain either only projects or only // networks. ConsumerRejectLists []string `json:"consumerRejectLists,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // DomainNames: If specified, the domain name will be used during the // integration between the PSC connected endpoints and the Cloud DNS. For // example, this is a valid domain name: "p.mycompany.com.". Current max number // of domain names supported is 1. DomainNames []string `json:"domainNames,omitempty"` // EnableProxyProtocol: If true, enable the proxy protocol which is for // supplying client TCP/IP address data in TCP connections that traverse // proxies on their way to destination servers. EnableProxyProtocol bool `json:"enableProxyProtocol,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents stored in // this object. This field is used in optimistic locking. This field will be // ignored when inserting a ServiceAttachment. An up-to-date fingerprint must // be provided in order to patch/update the ServiceAttachment; otherwise, the // request will fail with error 412 conditionNotMet. To see the latest // fingerprint, make a get() request to retrieve the ServiceAttachment. Fingerprint string `json:"fingerprint,omitempty"` // Id: [Output Only] The unique identifier for the resource type. The server // generates this identifier. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#serviceAttachment // for service attachments. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // NatSubnets: An array of URLs where each entry is the URL of a subnet // provided by the service producer to use for NAT in this service attachment. NatSubnets []string `json:"natSubnets,omitempty"` // ProducerForwardingRule: The URL of a forwarding rule with // loadBalancingScheme INTERNAL* that is serving the endpoint identified by // this service attachment. ProducerForwardingRule string `json:"producerForwardingRule,omitempty"` // PscServiceAttachmentId: [Output Only] An 128-bit global unique ID of the PSC // service attachment. PscServiceAttachmentId *Uint128 `json:"pscServiceAttachmentId,omitempty"` // ReconcileConnections: This flag determines whether a consumer accept/reject // list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC // endpoints. - If false, connection policy update will only affect existing // PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain // untouched regardless how the connection policy is modified . - If true, // update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For // example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project // is added to the reject list. For newly created service attachment, this // boolean defaults to false. ReconcileConnections bool `json:"reconcileConnections,omitempty"` // Region: [Output Only] URL of the region where the service attachment // resides. This field applies only to the region resource. You must specify // this field as part of the HTTP request URL. It is not settable as a field in // the request body. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // TargetService: The URL of a service serving the endpoint identified by this // service attachment. TargetService string `json:"targetService,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ConnectedEndpoints") 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. "ConnectedEndpoints") 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:"-"` }
ServiceAttachment: Represents a ServiceAttachment resource. A service attachment represents a service that a producer has exposed. It encapsulates the load balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to represent the consumers connecting to the service.
func (ServiceAttachment) MarshalJSON ¶ added in v0.55.0
func (s ServiceAttachment) MarshalJSON() ([]byte, error)
type ServiceAttachmentAggregatedList ¶ added in v0.55.0
type ServiceAttachmentAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of ServiceAttachmentsScopedList resources. Items map[string]ServiceAttachmentsScopedList `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *ServiceAttachmentAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
ServiceAttachmentAggregatedList: Contains a list of ServiceAttachmentsScopedList.
func (ServiceAttachmentAggregatedList) MarshalJSON ¶ added in v0.55.0
func (s ServiceAttachmentAggregatedList) MarshalJSON() ([]byte, error)
type ServiceAttachmentAggregatedListWarning ¶ added in v0.55.0
type ServiceAttachmentAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ServiceAttachmentAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ServiceAttachmentAggregatedListWarning: [Output Only] Informational warning message.
func (ServiceAttachmentAggregatedListWarning) MarshalJSON ¶ added in v0.55.0
func (s ServiceAttachmentAggregatedListWarning) MarshalJSON() ([]byte, error)
type ServiceAttachmentAggregatedListWarningData ¶ added in v0.55.0
type ServiceAttachmentAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ServiceAttachmentAggregatedListWarningData) MarshalJSON ¶ added in v0.55.0
func (s ServiceAttachmentAggregatedListWarningData) MarshalJSON() ([]byte, error)
type ServiceAttachmentConnectedEndpoint ¶ added in v0.55.0
type ServiceAttachmentConnectedEndpoint struct { // ConsumerNetwork: The url of the consumer network. ConsumerNetwork string `json:"consumerNetwork,omitempty"` // Endpoint: The url of a connected endpoint. Endpoint string `json:"endpoint,omitempty"` // PscConnectionId: The PSC connection id of the connected endpoint. PscConnectionId uint64 `json:"pscConnectionId,omitempty,string"` // Status: The status of a connected endpoint to this service attachment. // // Possible values: // "ACCEPTED" - The connection has been accepted by the producer. // "CLOSED" - The connection has been closed by the producer. // "NEEDS_ATTENTION" - The connection has been accepted by the producer, but // the producer needs to take further action before the forwarding rule can // serve traffic. // "PENDING" - The connection is pending acceptance by the producer. // "REJECTED" - The consumer is still connected but not using the connection. // "STATUS_UNSPECIFIED" Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "ConsumerNetwork") 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. "ConsumerNetwork") 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:"-"` }
ServiceAttachmentConnectedEndpoint: [Output Only] A connection connected to this service attachment.
func (ServiceAttachmentConnectedEndpoint) MarshalJSON ¶ added in v0.55.0
func (s ServiceAttachmentConnectedEndpoint) MarshalJSON() ([]byte, error)
type ServiceAttachmentConsumerProjectLimit ¶ added in v0.55.0
type ServiceAttachmentConsumerProjectLimit struct { // ConnectionLimit: The value of the limit to set. ConnectionLimit int64 `json:"connectionLimit,omitempty"` // NetworkUrl: The network URL for the network to set the limit for. NetworkUrl string `json:"networkUrl,omitempty"` // ProjectIdOrNum: The project id or number for the project to set the limit // for. ProjectIdOrNum string `json:"projectIdOrNum,omitempty"` // ForceSendFields is a list of field names (e.g. "ConnectionLimit") 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. "ConnectionLimit") 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:"-"` }
func (ServiceAttachmentConsumerProjectLimit) MarshalJSON ¶ added in v0.55.0
func (s ServiceAttachmentConsumerProjectLimit) MarshalJSON() ([]byte, error)
type ServiceAttachmentList ¶ added in v0.55.0
type ServiceAttachmentList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of ServiceAttachment resources. Items []*ServiceAttachment `json:"items,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#serviceAttachment // for service attachments. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *ServiceAttachmentListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (ServiceAttachmentList) MarshalJSON ¶ added in v0.55.0
func (s ServiceAttachmentList) MarshalJSON() ([]byte, error)
type ServiceAttachmentListWarning ¶ added in v0.55.0
type ServiceAttachmentListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ServiceAttachmentListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ServiceAttachmentListWarning: [Output Only] Informational warning message.
func (ServiceAttachmentListWarning) MarshalJSON ¶ added in v0.55.0
func (s ServiceAttachmentListWarning) MarshalJSON() ([]byte, error)
type ServiceAttachmentListWarningData ¶ added in v0.55.0
type ServiceAttachmentListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ServiceAttachmentListWarningData) MarshalJSON ¶ added in v0.55.0
func (s ServiceAttachmentListWarningData) MarshalJSON() ([]byte, error)
type ServiceAttachmentsAggregatedListCall ¶ added in v0.55.0
type ServiceAttachmentsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*ServiceAttachmentsAggregatedListCall) Context ¶ added in v0.55.0
func (c *ServiceAttachmentsAggregatedListCall) Context(ctx context.Context) *ServiceAttachmentsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*ServiceAttachmentsAggregatedListCall) Do ¶ added in v0.55.0
func (c *ServiceAttachmentsAggregatedListCall) Do(opts ...googleapi.CallOption) (*ServiceAttachmentAggregatedList, error)
Do executes the "compute.serviceAttachments.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *ServiceAttachmentAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ServiceAttachmentsAggregatedListCall) Fields ¶ added in v0.55.0
func (c *ServiceAttachmentsAggregatedListCall) Fields(s ...googleapi.Field) *ServiceAttachmentsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ServiceAttachmentsAggregatedListCall) Filter ¶ added in v0.55.0
func (c *ServiceAttachmentsAggregatedListCall) Filter(filter string) *ServiceAttachmentsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*ServiceAttachmentsAggregatedListCall) Header ¶ added in v0.55.0
func (c *ServiceAttachmentsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ServiceAttachmentsAggregatedListCall) IfNoneMatch ¶ added in v0.55.0
func (c *ServiceAttachmentsAggregatedListCall) IfNoneMatch(entityTag string) *ServiceAttachmentsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ServiceAttachmentsAggregatedListCall) IncludeAllScopes ¶ added in v0.55.0
func (c *ServiceAttachmentsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *ServiceAttachmentsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*ServiceAttachmentsAggregatedListCall) MaxResults ¶ added in v0.55.0
func (c *ServiceAttachmentsAggregatedListCall) MaxResults(maxResults int64) *ServiceAttachmentsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*ServiceAttachmentsAggregatedListCall) OrderBy ¶ added in v0.55.0
func (c *ServiceAttachmentsAggregatedListCall) OrderBy(orderBy string) *ServiceAttachmentsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*ServiceAttachmentsAggregatedListCall) PageToken ¶ added in v0.55.0
func (c *ServiceAttachmentsAggregatedListCall) PageToken(pageToken string) *ServiceAttachmentsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*ServiceAttachmentsAggregatedListCall) Pages ¶ added in v0.55.0
func (c *ServiceAttachmentsAggregatedListCall) Pages(ctx context.Context, f func(*ServiceAttachmentAggregatedList) 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 (*ServiceAttachmentsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.55.0
func (c *ServiceAttachmentsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ServiceAttachmentsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*ServiceAttachmentsAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *ServiceAttachmentsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *ServiceAttachmentsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type ServiceAttachmentsDeleteCall ¶ added in v0.55.0
type ServiceAttachmentsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ServiceAttachmentsDeleteCall) Context ¶ added in v0.55.0
func (c *ServiceAttachmentsDeleteCall) Context(ctx context.Context) *ServiceAttachmentsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ServiceAttachmentsDeleteCall) Do ¶ added in v0.55.0
func (c *ServiceAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.serviceAttachments.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ServiceAttachmentsDeleteCall) Fields ¶ added in v0.55.0
func (c *ServiceAttachmentsDeleteCall) Fields(s ...googleapi.Field) *ServiceAttachmentsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ServiceAttachmentsDeleteCall) Header ¶ added in v0.55.0
func (c *ServiceAttachmentsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ServiceAttachmentsDeleteCall) RequestId ¶ added in v0.55.0
func (c *ServiceAttachmentsDeleteCall) RequestId(requestId string) *ServiceAttachmentsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ServiceAttachmentsGetCall ¶ added in v0.55.0
type ServiceAttachmentsGetCall struct {
// contains filtered or unexported fields
}
func (*ServiceAttachmentsGetCall) Context ¶ added in v0.55.0
func (c *ServiceAttachmentsGetCall) Context(ctx context.Context) *ServiceAttachmentsGetCall
Context sets the context to be used in this call's Do method.
func (*ServiceAttachmentsGetCall) Do ¶ added in v0.55.0
func (c *ServiceAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*ServiceAttachment, error)
Do executes the "compute.serviceAttachments.get" call. Any non-2xx status code is an error. Response headers are in either *ServiceAttachment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ServiceAttachmentsGetCall) Fields ¶ added in v0.55.0
func (c *ServiceAttachmentsGetCall) Fields(s ...googleapi.Field) *ServiceAttachmentsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ServiceAttachmentsGetCall) Header ¶ added in v0.55.0
func (c *ServiceAttachmentsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ServiceAttachmentsGetCall) IfNoneMatch ¶ added in v0.55.0
func (c *ServiceAttachmentsGetCall) IfNoneMatch(entityTag string) *ServiceAttachmentsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ServiceAttachmentsGetIamPolicyCall ¶ added in v0.55.0
type ServiceAttachmentsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ServiceAttachmentsGetIamPolicyCall) Context ¶ added in v0.55.0
func (c *ServiceAttachmentsGetIamPolicyCall) Context(ctx context.Context) *ServiceAttachmentsGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ServiceAttachmentsGetIamPolicyCall) Do ¶ added in v0.55.0
func (c *ServiceAttachmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.serviceAttachments.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ServiceAttachmentsGetIamPolicyCall) Fields ¶ added in v0.55.0
func (c *ServiceAttachmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *ServiceAttachmentsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ServiceAttachmentsGetIamPolicyCall) Header ¶ added in v0.55.0
func (c *ServiceAttachmentsGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ServiceAttachmentsGetIamPolicyCall) IfNoneMatch ¶ added in v0.55.0
func (c *ServiceAttachmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *ServiceAttachmentsGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ServiceAttachmentsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.55.0
func (c *ServiceAttachmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ServiceAttachmentsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type ServiceAttachmentsInsertCall ¶ added in v0.55.0
type ServiceAttachmentsInsertCall struct {
// contains filtered or unexported fields
}
func (*ServiceAttachmentsInsertCall) Context ¶ added in v0.55.0
func (c *ServiceAttachmentsInsertCall) Context(ctx context.Context) *ServiceAttachmentsInsertCall
Context sets the context to be used in this call's Do method.
func (*ServiceAttachmentsInsertCall) Do ¶ added in v0.55.0
func (c *ServiceAttachmentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.serviceAttachments.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ServiceAttachmentsInsertCall) Fields ¶ added in v0.55.0
func (c *ServiceAttachmentsInsertCall) Fields(s ...googleapi.Field) *ServiceAttachmentsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ServiceAttachmentsInsertCall) Header ¶ added in v0.55.0
func (c *ServiceAttachmentsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ServiceAttachmentsInsertCall) RequestId ¶ added in v0.55.0
func (c *ServiceAttachmentsInsertCall) RequestId(requestId string) *ServiceAttachmentsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ServiceAttachmentsListCall ¶ added in v0.55.0
type ServiceAttachmentsListCall struct {
// contains filtered or unexported fields
}
func (*ServiceAttachmentsListCall) Context ¶ added in v0.55.0
func (c *ServiceAttachmentsListCall) Context(ctx context.Context) *ServiceAttachmentsListCall
Context sets the context to be used in this call's Do method.
func (*ServiceAttachmentsListCall) Do ¶ added in v0.55.0
func (c *ServiceAttachmentsListCall) Do(opts ...googleapi.CallOption) (*ServiceAttachmentList, error)
Do executes the "compute.serviceAttachments.list" call. Any non-2xx status code is an error. Response headers are in either *ServiceAttachmentList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ServiceAttachmentsListCall) Fields ¶ added in v0.55.0
func (c *ServiceAttachmentsListCall) Fields(s ...googleapi.Field) *ServiceAttachmentsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ServiceAttachmentsListCall) Filter ¶ added in v0.55.0
func (c *ServiceAttachmentsListCall) Filter(filter string) *ServiceAttachmentsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*ServiceAttachmentsListCall) Header ¶ added in v0.55.0
func (c *ServiceAttachmentsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ServiceAttachmentsListCall) IfNoneMatch ¶ added in v0.55.0
func (c *ServiceAttachmentsListCall) IfNoneMatch(entityTag string) *ServiceAttachmentsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ServiceAttachmentsListCall) MaxResults ¶ added in v0.55.0
func (c *ServiceAttachmentsListCall) MaxResults(maxResults int64) *ServiceAttachmentsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*ServiceAttachmentsListCall) OrderBy ¶ added in v0.55.0
func (c *ServiceAttachmentsListCall) OrderBy(orderBy string) *ServiceAttachmentsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*ServiceAttachmentsListCall) PageToken ¶ added in v0.55.0
func (c *ServiceAttachmentsListCall) PageToken(pageToken string) *ServiceAttachmentsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*ServiceAttachmentsListCall) Pages ¶ added in v0.55.0
func (c *ServiceAttachmentsListCall) Pages(ctx context.Context, f func(*ServiceAttachmentList) 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 (*ServiceAttachmentsListCall) ReturnPartialSuccess ¶ added in v0.55.0
func (c *ServiceAttachmentsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ServiceAttachmentsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type ServiceAttachmentsPatchCall ¶ added in v0.55.0
type ServiceAttachmentsPatchCall struct {
// contains filtered or unexported fields
}
func (*ServiceAttachmentsPatchCall) Context ¶ added in v0.55.0
func (c *ServiceAttachmentsPatchCall) Context(ctx context.Context) *ServiceAttachmentsPatchCall
Context sets the context to be used in this call's Do method.
func (*ServiceAttachmentsPatchCall) Do ¶ added in v0.55.0
func (c *ServiceAttachmentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.serviceAttachments.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ServiceAttachmentsPatchCall) Fields ¶ added in v0.55.0
func (c *ServiceAttachmentsPatchCall) Fields(s ...googleapi.Field) *ServiceAttachmentsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ServiceAttachmentsPatchCall) Header ¶ added in v0.55.0
func (c *ServiceAttachmentsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ServiceAttachmentsPatchCall) RequestId ¶ added in v0.55.0
func (c *ServiceAttachmentsPatchCall) RequestId(requestId string) *ServiceAttachmentsPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type ServiceAttachmentsScopedList ¶ added in v0.55.0
type ServiceAttachmentsScopedList struct { // ServiceAttachments: A list of ServiceAttachments contained in this scope. ServiceAttachments []*ServiceAttachment `json:"serviceAttachments,omitempty"` // Warning: Informational warning which replaces the list of service // attachments when the list is empty. Warning *ServiceAttachmentsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "ServiceAttachments") 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. "ServiceAttachments") 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:"-"` }
func (ServiceAttachmentsScopedList) MarshalJSON ¶ added in v0.55.0
func (s ServiceAttachmentsScopedList) MarshalJSON() ([]byte, error)
type ServiceAttachmentsScopedListWarning ¶ added in v0.55.0
type ServiceAttachmentsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ServiceAttachmentsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ServiceAttachmentsScopedListWarning: Informational warning which replaces the list of service attachments when the list is empty.
func (ServiceAttachmentsScopedListWarning) MarshalJSON ¶ added in v0.55.0
func (s ServiceAttachmentsScopedListWarning) MarshalJSON() ([]byte, error)
type ServiceAttachmentsScopedListWarningData ¶ added in v0.55.0
type ServiceAttachmentsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ServiceAttachmentsScopedListWarningData) MarshalJSON ¶ added in v0.55.0
func (s ServiceAttachmentsScopedListWarningData) MarshalJSON() ([]byte, error)
type ServiceAttachmentsService ¶ added in v0.55.0
type ServiceAttachmentsService struct {
// contains filtered or unexported fields
}
func NewServiceAttachmentsService ¶ added in v0.55.0
func NewServiceAttachmentsService(s *Service) *ServiceAttachmentsService
func (*ServiceAttachmentsService) AggregatedList ¶ added in v0.55.0
func (r *ServiceAttachmentsService) AggregatedList(project string) *ServiceAttachmentsAggregatedListCall
AggregatedList: Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Name of the project scoping this request.
func (*ServiceAttachmentsService) Delete ¶ added in v0.55.0
func (r *ServiceAttachmentsService) Delete(project string, region string, serviceAttachment string) *ServiceAttachmentsDeleteCall
Delete: Deletes the specified ServiceAttachment in the given scope
- project: Project ID for this request. - region: Name of the region of this request. - serviceAttachment: Name of the ServiceAttachment resource to delete.
func (*ServiceAttachmentsService) Get ¶ added in v0.55.0
func (r *ServiceAttachmentsService) Get(project string, region string, serviceAttachment string) *ServiceAttachmentsGetCall
Get: Returns the specified ServiceAttachment resource in the given scope.
- project: Project ID for this request. - region: Name of the region of this request. - serviceAttachment: Name of the ServiceAttachment resource to return.
func (*ServiceAttachmentsService) GetIamPolicy ¶ added in v0.55.0
func (r *ServiceAttachmentsService) GetIamPolicy(project string, region string, resource string) *ServiceAttachmentsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*ServiceAttachmentsService) Insert ¶ added in v0.55.0
func (r *ServiceAttachmentsService) Insert(project string, region string, serviceattachment *ServiceAttachment) *ServiceAttachmentsInsertCall
Insert: Creates a ServiceAttachment in the specified project in the given scope using the parameters that are included in the request.
- project: Project ID for this request. - region: Name of the region of this request.
func (*ServiceAttachmentsService) List ¶ added in v0.55.0
func (r *ServiceAttachmentsService) List(project string, region string) *ServiceAttachmentsListCall
List: Lists the ServiceAttachments for a project in the given scope.
- project: Project ID for this request. - region: Name of the region of this request.
func (*ServiceAttachmentsService) Patch ¶ added in v0.55.0
func (r *ServiceAttachmentsService) Patch(project string, region string, serviceAttachment string, serviceattachment *ServiceAttachment) *ServiceAttachmentsPatchCall
Patch: Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
- project: Project ID for this request.
- region: The region scoping this request and should conform to RFC1035.
- serviceAttachment: The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource name or be a string form on an unsigned long number.
func (*ServiceAttachmentsService) SetIamPolicy ¶ added in v0.55.0
func (r *ServiceAttachmentsService) SetIamPolicy(project string, region string, resource string, regionsetpolicyrequest *RegionSetPolicyRequest) *ServiceAttachmentsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*ServiceAttachmentsService) TestIamPermissions ¶ added in v0.55.0
func (r *ServiceAttachmentsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *ServiceAttachmentsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
type ServiceAttachmentsSetIamPolicyCall ¶ added in v0.55.0
type ServiceAttachmentsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ServiceAttachmentsSetIamPolicyCall) Context ¶ added in v0.55.0
func (c *ServiceAttachmentsSetIamPolicyCall) Context(ctx context.Context) *ServiceAttachmentsSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ServiceAttachmentsSetIamPolicyCall) Do ¶ added in v0.55.0
func (c *ServiceAttachmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.serviceAttachments.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ServiceAttachmentsSetIamPolicyCall) Fields ¶ added in v0.55.0
func (c *ServiceAttachmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *ServiceAttachmentsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ServiceAttachmentsSetIamPolicyCall) Header ¶ added in v0.55.0
func (c *ServiceAttachmentsSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ServiceAttachmentsTestIamPermissionsCall ¶ added in v0.55.0
type ServiceAttachmentsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ServiceAttachmentsTestIamPermissionsCall) Context ¶ added in v0.55.0
func (c *ServiceAttachmentsTestIamPermissionsCall) Context(ctx context.Context) *ServiceAttachmentsTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ServiceAttachmentsTestIamPermissionsCall) Do ¶ added in v0.55.0
func (c *ServiceAttachmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.serviceAttachments.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ServiceAttachmentsTestIamPermissionsCall) Fields ¶ added in v0.55.0
func (c *ServiceAttachmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ServiceAttachmentsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ServiceAttachmentsTestIamPermissionsCall) Header ¶ added in v0.55.0
func (c *ServiceAttachmentsTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type SetCommonInstanceMetadataOperationMetadata ¶ added in v0.135.0
type SetCommonInstanceMetadataOperationMetadata struct { // ClientOperationId: [Output Only] The client operation id. ClientOperationId string `json:"clientOperationId,omitempty"` // PerLocationOperations: [Output Only] Status information per location // (location name is key). Example key: zones/us-central1-a PerLocationOperations map[string]SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo `json:"perLocationOperations,omitempty"` // ForceSendFields is a list of field names (e.g. "ClientOperationId") 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. "ClientOperationId") 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:"-"` }
func (SetCommonInstanceMetadataOperationMetadata) MarshalJSON ¶ added in v0.135.0
func (s SetCommonInstanceMetadataOperationMetadata) MarshalJSON() ([]byte, error)
type SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo ¶ added in v0.135.0
type SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo struct { // Error: [Output Only] If state is `ABANDONED` or `FAILED`, this field is // populated. Error *Status `json:"error,omitempty"` // State: [Output Only] Status of the action, which can be one of the // following: `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`. // // Possible values: // "ABANDONED" - Operation not tracked in this location e.g. zone is marked // as DOWN. // "DONE" - Operation has completed successfully. // "FAILED" - Operation is in an error state. // "PROPAGATED" - Operation is confirmed to be in the location. // "PROPAGATING" - Operation is not yet confirmed to have been created in the // location. // "UNSPECIFIED" State string `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:"-"` }
func (SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo) MarshalJSON ¶ added in v0.135.0
func (s SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo) MarshalJSON() ([]byte, error)
type ShareSettings ¶ added in v0.62.0
type ShareSettings struct { // share_type's value is SPECIFIC_PROJECTS. ProjectMap map[string]ShareSettingsProjectConfig `json:"projectMap,omitempty"` // // Possible values: // "LOCAL" - Default value. // "ORGANIZATION" - Shared-reservation is open to entire Organization // "SHARE_TYPE_UNSPECIFIED" - Default value. This value is unused. // "SPECIFIC_PROJECTS" - Shared-reservation is open to specific projects ShareType string `json:"shareType,omitempty"` // 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:"-"` // 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:"-"` }
ShareSettings: The share setting for reservations and sole tenancy node groups.
func (ShareSettings) MarshalJSON ¶ added in v0.62.0
func (s ShareSettings) MarshalJSON() ([]byte, error)
type ShareSettingsProjectConfig ¶ added in v0.62.0
type ShareSettingsProjectConfig struct { // in the parent map. ProjectId string `json:"projectId,omitempty"` // 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:"-"` // 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:"-"` }
ShareSettingsProjectConfig: Config for each project in the share settings.
func (ShareSettingsProjectConfig) MarshalJSON ¶ added in v0.62.0
func (s ShareSettingsProjectConfig) MarshalJSON() ([]byte, error)
type ShieldedInstanceConfig ¶ added in v0.3.0
type ShieldedInstanceConfig struct { // EnableIntegrityMonitoring: Defines whether the instance has integrity // monitoring enabled. Enabled by default. EnableIntegrityMonitoring bool `json:"enableIntegrityMonitoring,omitempty"` // EnableSecureBoot: Defines whether the instance has Secure Boot enabled. // Disabled by default. EnableSecureBoot bool `json:"enableSecureBoot,omitempty"` // EnableVtpm: Defines whether the instance has the vTPM enabled. Enabled by // default. EnableVtpm bool `json:"enableVtpm,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableIntegrityMonitoring") // 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. "EnableIntegrityMonitoring") 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:"-"` }
ShieldedInstanceConfig: A set of Shielded Instance options.
func (ShieldedInstanceConfig) MarshalJSON ¶ added in v0.3.0
func (s ShieldedInstanceConfig) MarshalJSON() ([]byte, error)
type ShieldedInstanceIdentity ¶ added in v0.3.0
type ShieldedInstanceIdentity struct { // EncryptionKey: An Endorsement Key (EK) made by the RSA 2048 algorithm issued // to the Shielded Instance's vTPM. EncryptionKey *ShieldedInstanceIdentityEntry `json:"encryptionKey,omitempty"` // Kind: [Output Only] Type of the resource. Always // compute#shieldedInstanceIdentity for shielded Instance identity entry. Kind string `json:"kind,omitempty"` // SigningKey: An Attestation Key (AK) made by the RSA 2048 algorithm issued to // the Shielded Instance's vTPM. SigningKey *ShieldedInstanceIdentityEntry `json:"signingKey,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "EncryptionKey") 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. "EncryptionKey") 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:"-"` }
ShieldedInstanceIdentity: A Shielded Instance Identity.
func (ShieldedInstanceIdentity) MarshalJSON ¶ added in v0.3.0
func (s ShieldedInstanceIdentity) MarshalJSON() ([]byte, error)
type ShieldedInstanceIdentityEntry ¶ added in v0.3.0
type ShieldedInstanceIdentityEntry struct { // EkCert: A PEM-encoded X.509 certificate. This field can be empty. EkCert string `json:"ekCert,omitempty"` // EkPub: A PEM-encoded public key. EkPub string `json:"ekPub,omitempty"` // ForceSendFields is a list of field names (e.g. "EkCert") 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. "EkCert") 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:"-"` }
ShieldedInstanceIdentityEntry: A Shielded Instance Identity Entry.
func (ShieldedInstanceIdentityEntry) MarshalJSON ¶ added in v0.3.0
func (s ShieldedInstanceIdentityEntry) MarshalJSON() ([]byte, error)
type ShieldedInstanceIntegrityPolicy ¶ added in v0.3.0
type ShieldedInstanceIntegrityPolicy struct { // UpdateAutoLearnPolicy: Updates the integrity policy baseline using the // measurements from the VM instance's most recent boot. UpdateAutoLearnPolicy bool `json:"updateAutoLearnPolicy,omitempty"` // ForceSendFields is a list of field names (e.g. "UpdateAutoLearnPolicy") 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. "UpdateAutoLearnPolicy") 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:"-"` }
ShieldedInstanceIntegrityPolicy: The policy describes the baseline against which Instance boot integrity is measured.
func (ShieldedInstanceIntegrityPolicy) MarshalJSON ¶ added in v0.3.0
func (s ShieldedInstanceIntegrityPolicy) MarshalJSON() ([]byte, error)
type SignedUrlKey ¶
type SignedUrlKey struct { // KeyName: Name of the key. The name must be 1-63 characters long, and comply // with RFC1035. Specifically, the name must be 1-63 characters long and match // the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first // character must be a lowercase letter, and all following characters must be a // dash, lowercase letter, or digit, except the last character, which cannot be // a dash. KeyName string `json:"keyName,omitempty"` // KeyValue: 128-bit key value used for signing the URL. The key value must be // a valid RFC 4648 Section 5 base64url encoded string. KeyValue string `json:"keyValue,omitempty"` // ForceSendFields is a list of field names (e.g. "KeyName") 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. "KeyName") 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:"-"` }
SignedUrlKey: Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs
func (SignedUrlKey) MarshalJSON ¶
func (s SignedUrlKey) MarshalJSON() ([]byte, error)
type Snapshot ¶
type Snapshot struct { // Architecture: [Output Only] The architecture of the snapshot. Valid values // are ARM64 or X86_64. // // Possible values: // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture is not // set. // "ARM64" - Machines with architecture ARM64 // "X86_64" - Machines with architecture X86_64 Architecture string `json:"architecture,omitempty"` // AutoCreated: [Output Only] Set to true if snapshots are automatically // created by applying resource policy on the target disk. AutoCreated bool `json:"autoCreated,omitempty"` // ChainName: Creates the new snapshot in the snapshot chain labeled with the // specified name. The chain name must be 1-63 characters long and comply with // RFC1035. This is an uncommon option only for advanced service owners who // needs to create separate snapshot chains, for example, for chargeback // tracking. When you describe your snapshot resource, this field is visible // only if it has a non-empty value. ChainName string `json:"chainName,omitempty"` // CreationSizeBytes: [Output Only] Size in bytes of the snapshot at creation // time. CreationSizeBytes int64 `json:"creationSizeBytes,omitempty,string"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // DiskSizeGb: [Output Only] Size of the source disk, specified in GB. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` // DownloadBytes: [Output Only] Number of bytes downloaded to restore a // snapshot to a disk. DownloadBytes int64 `json:"downloadBytes,omitempty,string"` // EnableConfidentialCompute: Whether this snapshot is created from a // confidential compute mode disk. [Output Only]: This field is not set by // user, but from source disk. EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"` // GuestOsFeatures: [Output Only] A list of features to enable on the guest // operating system. Applicable only for bootable images. Read Enabling guest // operating system features to see a list of available options. GuestOsFeatures []*GuestOsFeature `json:"guestOsFeatures,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#snapshot for // Snapshot resources. Kind string `json:"kind,omitempty"` // LabelFingerprint: A fingerprint for the labels being applied to this // snapshot, which is essentially a hash of the labels set used for optimistic // locking. The fingerprint is initially generated by Compute Engine and // changes after every request to modify or update labels. You must always // provide an up-to-date fingerprint hash in order to update or change labels, // otherwise the request will fail with error 412 conditionNotMet. To see the // latest fingerprint, make a get() request to retrieve a snapshot. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels to apply to this snapshot. These can be later modified by the // setLabels method. Label values may be empty. Labels map[string]string `json:"labels,omitempty"` // LicenseCodes: [Output Only] Integer license codes indicating which licenses // are attached to this snapshot. LicenseCodes googleapi.Int64s `json:"licenseCodes,omitempty"` // Licenses: [Output Only] A list of public visible licenses that apply to this // snapshot. This can be because the original image had licenses attached (such // as a Windows image). Licenses []string `json:"licenses,omitempty"` // LocationHint: An opaque location hint used to place the snapshot close to // other resources. This field is for use by internal tools that use the public // API. LocationHint string `json:"locationHint,omitempty"` // Name: Name of the resource; provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // SatisfiesPzi: Output only. Reserved for future use. SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: [Output Only] Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SnapshotEncryptionKey: Encrypts the snapshot using a customer-supplied // encryption key. After you encrypt a snapshot using a customer-supplied key, // you must provide the same key if you use the snapshot later. For example, // you must provide the encryption key when you create a disk from the // encrypted snapshot in a future request. Customer-supplied encryption keys do // not protect access to metadata of the snapshot. If you do not provide an // encryption key when creating the snapshot, then the snapshot will be // encrypted using an automatically generated key and you do not need to // provide a key to use the snapshot later. SnapshotEncryptionKey *CustomerEncryptionKey `json:"snapshotEncryptionKey,omitempty"` // SnapshotType: Indicates the type of the snapshot. // // Possible values: // "ARCHIVE" // "STANDARD" SnapshotType string `json:"snapshotType,omitempty"` // SourceDisk: The source disk used to create this snapshot. SourceDisk string `json:"sourceDisk,omitempty"` // SourceDiskEncryptionKey: The customer-supplied encryption key of the source // disk. Required if the source disk is protected by a customer-supplied // encryption key. SourceDiskEncryptionKey *CustomerEncryptionKey `json:"sourceDiskEncryptionKey,omitempty"` // SourceDiskForRecoveryCheckpoint: The source disk whose recovery checkpoint // will be used to create this snapshot. SourceDiskForRecoveryCheckpoint string `json:"sourceDiskForRecoveryCheckpoint,omitempty"` // SourceDiskId: [Output Only] The ID value of the disk used to create this // snapshot. This value may be used to determine whether the snapshot was taken // from the current or a previous instance of a given disk name. SourceDiskId string `json:"sourceDiskId,omitempty"` // SourceInstantSnapshot: The source instant snapshot used to create this // snapshot. You can provide this as a partial or full URL to the resource. For // example, the following are valid values: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /instantSnapshots/instantSnapshot - // projects/project/zones/zone/instantSnapshots/instantSnapshot - // zones/zone/instantSnapshots/instantSnapshot SourceInstantSnapshot string `json:"sourceInstantSnapshot,omitempty"` // SourceInstantSnapshotEncryptionKey: Customer provided encryption key when // creating Snapshot from Instant Snapshot. SourceInstantSnapshotEncryptionKey *CustomerEncryptionKey `json:"sourceInstantSnapshotEncryptionKey,omitempty"` // SourceInstantSnapshotId: [Output Only] The unique ID of the instant snapshot // used to create this snapshot. This value identifies the exact instant // snapshot that was used to create this persistent disk. For example, if you // created the persistent disk from an instant snapshot that was later deleted // and recreated under the same name, the source instant snapshot ID would // identify the exact instant snapshot that was used. SourceInstantSnapshotId string `json:"sourceInstantSnapshotId,omitempty"` // SourceSnapshotSchedulePolicy: [Output Only] URL of the resource policy which // created this scheduled snapshot. SourceSnapshotSchedulePolicy string `json:"sourceSnapshotSchedulePolicy,omitempty"` // SourceSnapshotSchedulePolicyId: [Output Only] ID of the resource policy // which created this scheduled snapshot. SourceSnapshotSchedulePolicyId string `json:"sourceSnapshotSchedulePolicyId,omitempty"` // Status: [Output Only] The status of the snapshot. This can be CREATING, // DELETING, FAILED, READY, or UPLOADING. // // Possible values: // "CREATING" - Snapshot creation is in progress. // "DELETING" - Snapshot is currently being deleted. // "FAILED" - Snapshot creation failed. // "READY" - Snapshot has been created successfully. // "UPLOADING" - Snapshot is being uploaded. Status string `json:"status,omitempty"` // StorageBytes: [Output Only] A size of the storage used by the snapshot. As // snapshots share storage, this number is expected to change with snapshot // creation/deletion. StorageBytes int64 `json:"storageBytes,omitempty,string"` // StorageBytesStatus: [Output Only] An indicator whether storageBytes is in a // stable state or it is being adjusted as a result of shared storage // reallocation. This status can either be UPDATING, meaning the size of the // snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot // is up-to-date. // // Possible values: // "UPDATING" // "UP_TO_DATE" StorageBytesStatus string `json:"storageBytesStatus,omitempty"` // StorageLocations: Cloud Storage bucket storage location of the snapshot // (regional or multi-regional). StorageLocations []string `json:"storageLocations,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Architecture") 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. "Architecture") 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:"-"` }
Snapshot: Represents a Persistent Disk Snapshot resource. You can use snapshots to back up data on a regular interval. For more information, read Creating persistent disk snapshots.
func (Snapshot) MarshalJSON ¶
type SnapshotList ¶
type SnapshotList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Snapshot resources. Items []*Snapshot `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *SnapshotListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
SnapshotList: Contains a list of Snapshot resources.
func (SnapshotList) MarshalJSON ¶
func (s SnapshotList) MarshalJSON() ([]byte, error)
type SnapshotListWarning ¶
type SnapshotListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*SnapshotListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
SnapshotListWarning: [Output Only] Informational warning message.
func (SnapshotListWarning) MarshalJSON ¶
func (s SnapshotListWarning) MarshalJSON() ([]byte, error)
type SnapshotListWarningData ¶
type SnapshotListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (SnapshotListWarningData) MarshalJSON ¶
func (s SnapshotListWarningData) MarshalJSON() ([]byte, error)
type SnapshotSettings ¶ added in v0.149.0
type SnapshotSettings struct { // StorageLocation: Policy of which storage location is going to be resolved, // and additional data that particularizes how the policy is going to be // carried out. StorageLocation *SnapshotSettingsStorageLocationSettings `json:"storageLocation,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "StorageLocation") 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. "StorageLocation") 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:"-"` }
func (SnapshotSettings) MarshalJSON ¶ added in v0.149.0
func (s SnapshotSettings) MarshalJSON() ([]byte, error)
type SnapshotSettingsGetCall ¶ added in v0.149.0
type SnapshotSettingsGetCall struct {
// contains filtered or unexported fields
}
func (*SnapshotSettingsGetCall) Context ¶ added in v0.149.0
func (c *SnapshotSettingsGetCall) Context(ctx context.Context) *SnapshotSettingsGetCall
Context sets the context to be used in this call's Do method.
func (*SnapshotSettingsGetCall) Do ¶ added in v0.149.0
func (c *SnapshotSettingsGetCall) Do(opts ...googleapi.CallOption) (*SnapshotSettings, error)
Do executes the "compute.snapshotSettings.get" call. Any non-2xx status code is an error. Response headers are in either *SnapshotSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SnapshotSettingsGetCall) Fields ¶ added in v0.149.0
func (c *SnapshotSettingsGetCall) Fields(s ...googleapi.Field) *SnapshotSettingsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SnapshotSettingsGetCall) Header ¶ added in v0.149.0
func (c *SnapshotSettingsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SnapshotSettingsGetCall) IfNoneMatch ¶ added in v0.149.0
func (c *SnapshotSettingsGetCall) IfNoneMatch(entityTag string) *SnapshotSettingsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type SnapshotSettingsPatchCall ¶ added in v0.149.0
type SnapshotSettingsPatchCall struct {
// contains filtered or unexported fields
}
func (*SnapshotSettingsPatchCall) Context ¶ added in v0.149.0
func (c *SnapshotSettingsPatchCall) Context(ctx context.Context) *SnapshotSettingsPatchCall
Context sets the context to be used in this call's Do method.
func (*SnapshotSettingsPatchCall) Do ¶ added in v0.149.0
func (c *SnapshotSettingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.snapshotSettings.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SnapshotSettingsPatchCall) Fields ¶ added in v0.149.0
func (c *SnapshotSettingsPatchCall) Fields(s ...googleapi.Field) *SnapshotSettingsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SnapshotSettingsPatchCall) Header ¶ added in v0.149.0
func (c *SnapshotSettingsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SnapshotSettingsPatchCall) RequestId ¶ added in v0.149.0
func (c *SnapshotSettingsPatchCall) RequestId(requestId string) *SnapshotSettingsPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*SnapshotSettingsPatchCall) UpdateMask ¶ added in v0.149.0
func (c *SnapshotSettingsPatchCall) UpdateMask(updateMask string) *SnapshotSettingsPatchCall
UpdateMask sets the optional parameter "updateMask": update_mask indicates fields to be updated as part of this request.
type SnapshotSettingsService ¶ added in v0.149.0
type SnapshotSettingsService struct {
// contains filtered or unexported fields
}
func NewSnapshotSettingsService ¶ added in v0.149.0
func NewSnapshotSettingsService(s *Service) *SnapshotSettingsService
func (*SnapshotSettingsService) Get ¶ added in v0.149.0
func (r *SnapshotSettingsService) Get(project string) *SnapshotSettingsGetCall
Get: Get snapshot settings.
- project: Project ID for this request.
func (*SnapshotSettingsService) Patch ¶ added in v0.149.0
func (r *SnapshotSettingsService) Patch(project string, snapshotsettings *SnapshotSettings) *SnapshotSettingsPatchCall
Patch: Patch snapshot settings.
- project: Project ID for this request.
type SnapshotSettingsStorageLocationSettings ¶ added in v0.149.0
type SnapshotSettingsStorageLocationSettings struct { // Locations: When the policy is SPECIFIC_LOCATIONS, snapshots will be stored // in the locations listed in this field. Keys are Cloud Storage bucket // locations. Only one location can be specified. Locations map[string]SnapshotSettingsStorageLocationSettingsStorageLocationPreference `json:"locations,omitempty"` // Policy: The chosen location policy. // // Possible values: // "LOCAL_REGION" - Store snapshot in the same region as with the originating // disk. No additional parameters are needed. // "NEAREST_MULTI_REGION" - Store snapshot in the nearest multi region Cloud // Storage bucket, relative to the originating disk. No additional parameters // are needed. // "SPECIFIC_LOCATIONS" - Store snapshot in the specific locations, as // specified by the user. The list of regions to store must be defined under // the `locations` field. // "STORAGE_LOCATION_POLICY_UNSPECIFIED" Policy string `json:"policy,omitempty"` // ForceSendFields is a list of field names (e.g. "Locations") 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. "Locations") 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:"-"` }
func (SnapshotSettingsStorageLocationSettings) MarshalJSON ¶ added in v0.149.0
func (s SnapshotSettingsStorageLocationSettings) MarshalJSON() ([]byte, error)
type SnapshotSettingsStorageLocationSettingsStorageLocationPreference ¶ added in v0.149.0
type SnapshotSettingsStorageLocationSettingsStorageLocationPreference struct { // Name: Name of the location. It should be one of the Cloud Storage buckets. // Only one location can be specified. Name string `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:"-"` }
SnapshotSettingsStorageLocationSettingsStorageLocationPreference: A structure for specifying storage locations.
func (SnapshotSettingsStorageLocationSettingsStorageLocationPreference) MarshalJSON ¶ added in v0.149.0
func (s SnapshotSettingsStorageLocationSettingsStorageLocationPreference) MarshalJSON() ([]byte, error)
type SnapshotsDeleteCall ¶
type SnapshotsDeleteCall struct {
// contains filtered or unexported fields
}
func (*SnapshotsDeleteCall) Context ¶
func (c *SnapshotsDeleteCall) Context(ctx context.Context) *SnapshotsDeleteCall
Context sets the context to be used in this call's Do method.
func (*SnapshotsDeleteCall) Do ¶
func (c *SnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.snapshots.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SnapshotsDeleteCall) Fields ¶
func (c *SnapshotsDeleteCall) Fields(s ...googleapi.Field) *SnapshotsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SnapshotsDeleteCall) Header ¶
func (c *SnapshotsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SnapshotsDeleteCall) RequestId ¶
func (c *SnapshotsDeleteCall) RequestId(requestId string) *SnapshotsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type SnapshotsGetCall ¶
type SnapshotsGetCall struct {
// contains filtered or unexported fields
}
func (*SnapshotsGetCall) Context ¶
func (c *SnapshotsGetCall) Context(ctx context.Context) *SnapshotsGetCall
Context sets the context to be used in this call's Do method.
func (*SnapshotsGetCall) Do ¶
func (c *SnapshotsGetCall) Do(opts ...googleapi.CallOption) (*Snapshot, error)
Do executes the "compute.snapshots.get" call. Any non-2xx status code is an error. Response headers are in either *Snapshot.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SnapshotsGetCall) Fields ¶
func (c *SnapshotsGetCall) Fields(s ...googleapi.Field) *SnapshotsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SnapshotsGetCall) Header ¶
func (c *SnapshotsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SnapshotsGetCall) IfNoneMatch ¶
func (c *SnapshotsGetCall) IfNoneMatch(entityTag string) *SnapshotsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type SnapshotsGetIamPolicyCall ¶
type SnapshotsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*SnapshotsGetIamPolicyCall) Context ¶
func (c *SnapshotsGetIamPolicyCall) Context(ctx context.Context) *SnapshotsGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*SnapshotsGetIamPolicyCall) Do ¶
func (c *SnapshotsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.snapshots.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SnapshotsGetIamPolicyCall) Fields ¶
func (c *SnapshotsGetIamPolicyCall) Fields(s ...googleapi.Field) *SnapshotsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SnapshotsGetIamPolicyCall) Header ¶
func (c *SnapshotsGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SnapshotsGetIamPolicyCall) IfNoneMatch ¶
func (c *SnapshotsGetIamPolicyCall) IfNoneMatch(entityTag string) *SnapshotsGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*SnapshotsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.30.0
func (c *SnapshotsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *SnapshotsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type SnapshotsInsertCall ¶ added in v0.62.0
type SnapshotsInsertCall struct {
// contains filtered or unexported fields
}
func (*SnapshotsInsertCall) Context ¶ added in v0.62.0
func (c *SnapshotsInsertCall) Context(ctx context.Context) *SnapshotsInsertCall
Context sets the context to be used in this call's Do method.
func (*SnapshotsInsertCall) Do ¶ added in v0.62.0
func (c *SnapshotsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.snapshots.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SnapshotsInsertCall) Fields ¶ added in v0.62.0
func (c *SnapshotsInsertCall) Fields(s ...googleapi.Field) *SnapshotsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SnapshotsInsertCall) Header ¶ added in v0.62.0
func (c *SnapshotsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SnapshotsInsertCall) RequestId ¶ added in v0.62.0
func (c *SnapshotsInsertCall) RequestId(requestId string) *SnapshotsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type SnapshotsListCall ¶
type SnapshotsListCall struct {
// contains filtered or unexported fields
}
func (*SnapshotsListCall) Context ¶
func (c *SnapshotsListCall) Context(ctx context.Context) *SnapshotsListCall
Context sets the context to be used in this call's Do method.
func (*SnapshotsListCall) Do ¶
func (c *SnapshotsListCall) Do(opts ...googleapi.CallOption) (*SnapshotList, error)
Do executes the "compute.snapshots.list" call. Any non-2xx status code is an error. Response headers are in either *SnapshotList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SnapshotsListCall) Fields ¶
func (c *SnapshotsListCall) Fields(s ...googleapi.Field) *SnapshotsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SnapshotsListCall) Filter ¶
func (c *SnapshotsListCall) Filter(filter string) *SnapshotsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*SnapshotsListCall) Header ¶
func (c *SnapshotsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SnapshotsListCall) IfNoneMatch ¶
func (c *SnapshotsListCall) IfNoneMatch(entityTag string) *SnapshotsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*SnapshotsListCall) MaxResults ¶
func (c *SnapshotsListCall) MaxResults(maxResults int64) *SnapshotsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*SnapshotsListCall) OrderBy ¶
func (c *SnapshotsListCall) OrderBy(orderBy string) *SnapshotsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*SnapshotsListCall) PageToken ¶
func (c *SnapshotsListCall) PageToken(pageToken string) *SnapshotsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*SnapshotsListCall) Pages ¶
func (c *SnapshotsListCall) Pages(ctx context.Context, f func(*SnapshotList) 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 (*SnapshotsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *SnapshotsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SnapshotsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type SnapshotsService ¶
type SnapshotsService struct {
// contains filtered or unexported fields
}
func NewSnapshotsService ¶
func NewSnapshotsService(s *Service) *SnapshotsService
func (*SnapshotsService) Delete ¶
func (r *SnapshotsService) Delete(project string, snapshot string) *SnapshotsDeleteCall
Delete: Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, see Deleting snapshots.
- project: Project ID for this request. - snapshot: Name of the Snapshot resource to delete.
func (*SnapshotsService) Get ¶
func (r *SnapshotsService) Get(project string, snapshot string) *SnapshotsGetCall
Get: Returns the specified Snapshot resource.
- project: Project ID for this request. - snapshot: Name of the Snapshot resource to return.
func (*SnapshotsService) GetIamPolicy ¶
func (r *SnapshotsService) GetIamPolicy(project string, resource string) *SnapshotsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*SnapshotsService) Insert ¶ added in v0.62.0
func (r *SnapshotsService) Insert(project string, snapshot *Snapshot) *SnapshotsInsertCall
Insert: Creates a snapshot in the specified project using the data included in the request. For regular snapshot creation, consider using this method instead of disks.createSnapshot, as this method supports more features, such as creating snapshots in a project different from the source disk project.
- project: Project ID for this request.
func (*SnapshotsService) List ¶
func (r *SnapshotsService) List(project string) *SnapshotsListCall
List: Retrieves the list of Snapshot resources contained within the specified project.
- project: Project ID for this request.
func (*SnapshotsService) SetIamPolicy ¶
func (r *SnapshotsService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *SnapshotsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*SnapshotsService) SetLabels ¶
func (r *SnapshotsService) SetLabels(project string, resource string, globalsetlabelsrequest *GlobalSetLabelsRequest) *SnapshotsSetLabelsCall
SetLabels: Sets the labels on a snapshot. To learn more about labels, read the Labeling Resources documentation.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
func (*SnapshotsService) TestIamPermissions ¶
func (r *SnapshotsService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *SnapshotsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - resource: Name or id of the resource for this request.
type SnapshotsSetIamPolicyCall ¶
type SnapshotsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*SnapshotsSetIamPolicyCall) Context ¶
func (c *SnapshotsSetIamPolicyCall) Context(ctx context.Context) *SnapshotsSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*SnapshotsSetIamPolicyCall) Do ¶
func (c *SnapshotsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.snapshots.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SnapshotsSetIamPolicyCall) Fields ¶
func (c *SnapshotsSetIamPolicyCall) Fields(s ...googleapi.Field) *SnapshotsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SnapshotsSetIamPolicyCall) Header ¶
func (c *SnapshotsSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type SnapshotsSetLabelsCall ¶
type SnapshotsSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*SnapshotsSetLabelsCall) Context ¶
func (c *SnapshotsSetLabelsCall) Context(ctx context.Context) *SnapshotsSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*SnapshotsSetLabelsCall) Do ¶
func (c *SnapshotsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.snapshots.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SnapshotsSetLabelsCall) Fields ¶
func (c *SnapshotsSetLabelsCall) Fields(s ...googleapi.Field) *SnapshotsSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SnapshotsSetLabelsCall) Header ¶
func (c *SnapshotsSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type SnapshotsTestIamPermissionsCall ¶
type SnapshotsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*SnapshotsTestIamPermissionsCall) Context ¶
func (c *SnapshotsTestIamPermissionsCall) Context(ctx context.Context) *SnapshotsTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*SnapshotsTestIamPermissionsCall) Do ¶
func (c *SnapshotsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.snapshots.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SnapshotsTestIamPermissionsCall) Fields ¶
func (c *SnapshotsTestIamPermissionsCall) Fields(s ...googleapi.Field) *SnapshotsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SnapshotsTestIamPermissionsCall) Header ¶
func (c *SnapshotsTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type SourceDiskEncryptionKey ¶ added in v0.62.0
type SourceDiskEncryptionKey struct { // DiskEncryptionKey: The customer-supplied encryption key of the source disk. // Required if the source disk is protected by a customer-supplied encryption // key. DiskEncryptionKey *CustomerEncryptionKey `json:"diskEncryptionKey,omitempty"` // SourceDisk: URL of the disk attached to the source instance. This can be a // full or valid partial URL. For example, the following are valid values: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk SourceDisk string `json:"sourceDisk,omitempty"` // ForceSendFields is a list of field names (e.g. "DiskEncryptionKey") 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. "DiskEncryptionKey") 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:"-"` }
func (SourceDiskEncryptionKey) MarshalJSON ¶ added in v0.62.0
func (s SourceDiskEncryptionKey) MarshalJSON() ([]byte, error)
type SourceInstanceParams ¶
type SourceInstanceParams struct { // DiskConfigs: Attached disks configuration. If not provided, defaults are // applied: For boot disk and any other R/W disks, the source images for each // disk will be used. For read-only disks, they will be attached in read-only // mode. Local SSD disks will be created as blank volumes. DiskConfigs []*DiskInstantiationConfig `json:"diskConfigs,omitempty"` // ForceSendFields is a list of field names (e.g. "DiskConfigs") 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. "DiskConfigs") 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:"-"` }
SourceInstanceParams: A specification of the parameters to use when creating the instance template from a source instance.
func (SourceInstanceParams) MarshalJSON ¶
func (s SourceInstanceParams) MarshalJSON() ([]byte, error)
type SourceInstanceProperties ¶ added in v0.62.0
type SourceInstanceProperties struct { // CanIpForward: Enables instances created based on this machine image to send // packets with source IP addresses other than their own and receive packets // with destination IP addresses other than their own. If these instances will // be used as an IP gateway or it will be set as the next-hop in a Route // resource, specify true. If unsure, leave this set to false. See the Enable // IP forwarding documentation for more information. CanIpForward bool `json:"canIpForward,omitempty"` // DeletionProtection: Whether the instance created from this machine image // should be protected against deletion. DeletionProtection bool `json:"deletionProtection,omitempty"` // Description: An optional text description for the instances that are created // from this machine image. Description string `json:"description,omitempty"` // Disks: An array of disks that are associated with the instances that are // created from this machine image. Disks []*SavedAttachedDisk `json:"disks,omitempty"` // GuestAccelerators: A list of guest accelerator cards' type and count to use // for instances created from this machine image. GuestAccelerators []*AcceleratorConfig `json:"guestAccelerators,omitempty"` // KeyRevocationActionType: KeyRevocationActionType of the instance. Supported // options are "STOP" and "NONE". The default value is "NONE" if it is not // specified. // // Possible values: // "KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED" - Default value. This value is // unused. // "NONE" - Indicates user chose no operation. // "STOP" - Indicates user chose to opt for VM shutdown on key revocation. KeyRevocationActionType string `json:"keyRevocationActionType,omitempty"` // Labels: Labels to apply to instances that are created from this machine // image. Labels map[string]string `json:"labels,omitempty"` // MachineType: The machine type to use for instances that are created from // this machine image. MachineType string `json:"machineType,omitempty"` // Metadata: The metadata key/value pairs to assign to instances that are // created from this machine image. These pairs can consist of custom metadata // or predefined keys. See Project and instance metadata for more information. Metadata *Metadata `json:"metadata,omitempty"` // MinCpuPlatform: Minimum cpu/platform to be used by instances created from // this machine image. The instance may be scheduled on the specified or newer // cpu/platform. Applicable values are the friendly names of CPU platforms, // such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy // Bridge". For more information, read Specifying a Minimum CPU Platform. MinCpuPlatform string `json:"minCpuPlatform,omitempty"` // NetworkInterfaces: An array of network access configurations for this // interface. NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"` // Scheduling: Specifies the scheduling options for the instances that are // created from this machine image. Scheduling *Scheduling `json:"scheduling,omitempty"` // ServiceAccounts: A list of service accounts with specified scopes. Access // tokens for these service accounts are available to the instances that are // created from this machine image. Use metadata queries to obtain the access // tokens for these instances. ServiceAccounts []*ServiceAccount `json:"serviceAccounts,omitempty"` // Tags: A list of tags to apply to the instances that are created from this // machine image. The tags identify valid sources or targets for network // firewalls. The setTags method can modify this list of tags. Each tag within // the list must comply with RFC1035. Tags *Tags `json:"tags,omitempty"` // ForceSendFields is a list of field names (e.g. "CanIpForward") 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. "CanIpForward") 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:"-"` }
SourceInstanceProperties: DEPRECATED: Please use compute#instanceProperties instead. New properties will not be added to this field.
func (SourceInstanceProperties) MarshalJSON ¶ added in v0.62.0
func (s SourceInstanceProperties) MarshalJSON() ([]byte, error)
type SslCertificate ¶
type SslCertificate struct { // Certificate: A value read into memory from a certificate file. The // certificate file must be in PEM format. The certificate chain must be no // greater than 5 certs long. The chain must include at least one intermediate // cert. Certificate string `json:"certificate,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // ExpireTime: [Output Only] Expire time of the certificate. RFC3339 ExpireTime string `json:"expireTime,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#sslCertificate for // SSL certificates. Kind string `json:"kind,omitempty"` // Managed: Configuration and status of a managed SSL certificate. Managed *SslCertificateManagedSslCertificate `json:"managed,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // PrivateKey: A value read into memory from a write-only private key file. The // private key file must be in PEM format. For security, only insert requests // include this field. PrivateKey string `json:"privateKey,omitempty"` // Region: [Output Only] URL of the region where the regional SSL Certificate // resides. This field is not applicable to global SSL Certificate. Region string `json:"region,omitempty"` // SelfLink: [Output only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SelfManaged: Configuration and status of a self-managed SSL certificate. SelfManaged *SslCertificateSelfManagedSslCertificate `json:"selfManaged,omitempty"` // SubjectAlternativeNames: [Output Only] Domains associated with the // certificate via Subject Alternative Name. SubjectAlternativeNames []string `json:"subjectAlternativeNames,omitempty"` // Type: (Optional) Specifies the type of SSL certificate, either // "SELF_MANAGED" or "MANAGED". If not specified, the certificate is // self-managed and the fields certificate and private_key are used. // // Possible values: // "MANAGED" - Google-managed SSLCertificate. // "SELF_MANAGED" - Certificate uploaded by user. // "TYPE_UNSPECIFIED" Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Certificate") 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. "Certificate") 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:"-"` }
SslCertificate: Represents an SSL certificate resource. Google Compute Engine has two SSL certificate resources: * Global (/compute/docs/reference/rest/v1/sslCertificates) * Regional (/compute/docs/reference/rest/v1/regionSslCertificates) The global SSL certificates (sslCertificates) are used by: - Global external Application Load Balancers - Classic Application Load Balancers - Proxy Network Load Balancers (with target SSL proxies) The regional SSL certificates (regionSslCertificates) are used by: - Regional external Application Load Balancers - Regional internal Application Load Balancers Optionally, certificate file contents that you upload can contain a set of up to five PEM-encoded certificates. The API call creates an object (sslCertificate) that holds this data. You can use SSL keys and certificates to secure connections to a load balancer. For more information, read Creating and using SSL certificates, SSL certificates quotas and limits, and Troubleshooting SSL certificates.
func (SslCertificate) MarshalJSON ¶
func (s SslCertificate) MarshalJSON() ([]byte, error)
type SslCertificateAggregatedList ¶ added in v0.11.0
type SslCertificateAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of SslCertificatesScopedList resources. Items map[string]SslCertificatesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#sslCertificateAggregatedList for lists of SSL Certificates. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *SslCertificateAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (SslCertificateAggregatedList) MarshalJSON ¶ added in v0.11.0
func (s SslCertificateAggregatedList) MarshalJSON() ([]byte, error)
type SslCertificateAggregatedListWarning ¶ added in v0.11.0
type SslCertificateAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*SslCertificateAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
SslCertificateAggregatedListWarning: [Output Only] Informational warning message.
func (SslCertificateAggregatedListWarning) MarshalJSON ¶ added in v0.11.0
func (s SslCertificateAggregatedListWarning) MarshalJSON() ([]byte, error)
type SslCertificateAggregatedListWarningData ¶ added in v0.11.0
type SslCertificateAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (SslCertificateAggregatedListWarningData) MarshalJSON ¶ added in v0.11.0
func (s SslCertificateAggregatedListWarningData) MarshalJSON() ([]byte, error)
type SslCertificateList ¶
type SslCertificateList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of SslCertificate resources. Items []*SslCertificate `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *SslCertificateListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
SslCertificateList: Contains a list of SslCertificate resources.
func (SslCertificateList) MarshalJSON ¶
func (s SslCertificateList) MarshalJSON() ([]byte, error)
type SslCertificateListWarning ¶
type SslCertificateListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*SslCertificateListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
SslCertificateListWarning: [Output Only] Informational warning message.
func (SslCertificateListWarning) MarshalJSON ¶
func (s SslCertificateListWarning) MarshalJSON() ([]byte, error)
type SslCertificateListWarningData ¶
type SslCertificateListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (SslCertificateListWarningData) MarshalJSON ¶
func (s SslCertificateListWarningData) MarshalJSON() ([]byte, error)
type SslCertificateManagedSslCertificate ¶ added in v0.23.0
type SslCertificateManagedSslCertificate struct { // DomainStatus: [Output only] Detailed statuses of the domains specified for // managed certificate resource. DomainStatus map[string]string `json:"domainStatus,omitempty"` // Domains: The domains for which a managed SSL certificate will be generated. // Each Google-managed SSL certificate supports up to the maximum number of // domains per Google-managed SSL certificate // (/load-balancing/docs/quotas#ssl_certificates). Domains []string `json:"domains,omitempty"` // Status: [Output only] Status of the managed certificate resource. // // Possible values: // "ACTIVE" - The certificate management is working, and a certificate has // been provisioned. // "MANAGED_CERTIFICATE_STATUS_UNSPECIFIED" // "PROVISIONING" - The certificate management is working. GCP will attempt // to provision the first certificate. // "PROVISIONING_FAILED" - Certificate provisioning failed due to an issue // with the DNS or load balancing configuration. For details of which domain // failed, consult domain_status field. // "PROVISIONING_FAILED_PERMANENTLY" - Certificate provisioning failed due to // an issue with the DNS or load balancing configuration. It won't be retried. // To try again delete and create a new managed SslCertificate resource. For // details of which domain failed, consult domain_status field. // "RENEWAL_FAILED" - Renewal of the certificate has failed due to an issue // with the DNS or load balancing configuration. The existing cert is still // serving; however, it will expire shortly. To provision a renewed // certificate, delete and create a new managed SslCertificate resource. For // details on which domain failed, consult domain_status field. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "DomainStatus") 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. "DomainStatus") 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:"-"` }
SslCertificateManagedSslCertificate: Configuration and status of a managed SSL certificate.
func (SslCertificateManagedSslCertificate) MarshalJSON ¶ added in v0.23.0
func (s SslCertificateManagedSslCertificate) MarshalJSON() ([]byte, error)
type SslCertificateSelfManagedSslCertificate ¶ added in v0.23.0
type SslCertificateSelfManagedSslCertificate struct { // Certificate: A local certificate file. The certificate must be in PEM // format. The certificate chain must be no greater than 5 certs long. The // chain must include at least one intermediate cert. Certificate string `json:"certificate,omitempty"` // PrivateKey: A write-only private key in PEM format. Only insert requests // will include this field. PrivateKey string `json:"privateKey,omitempty"` // ForceSendFields is a list of field names (e.g. "Certificate") 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. "Certificate") 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:"-"` }
SslCertificateSelfManagedSslCertificate: Configuration and status of a self-managed SSL certificate.
func (SslCertificateSelfManagedSslCertificate) MarshalJSON ¶ added in v0.23.0
func (s SslCertificateSelfManagedSslCertificate) MarshalJSON() ([]byte, error)
type SslCertificatesAggregatedListCall ¶ added in v0.11.0
type SslCertificatesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*SslCertificatesAggregatedListCall) Context ¶ added in v0.11.0
func (c *SslCertificatesAggregatedListCall) Context(ctx context.Context) *SslCertificatesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*SslCertificatesAggregatedListCall) Do ¶ added in v0.11.0
func (c *SslCertificatesAggregatedListCall) Do(opts ...googleapi.CallOption) (*SslCertificateAggregatedList, error)
Do executes the "compute.sslCertificates.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *SslCertificateAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SslCertificatesAggregatedListCall) Fields ¶ added in v0.11.0
func (c *SslCertificatesAggregatedListCall) Fields(s ...googleapi.Field) *SslCertificatesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SslCertificatesAggregatedListCall) Filter ¶ added in v0.11.0
func (c *SslCertificatesAggregatedListCall) Filter(filter string) *SslCertificatesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*SslCertificatesAggregatedListCall) Header ¶ added in v0.11.0
func (c *SslCertificatesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SslCertificatesAggregatedListCall) IfNoneMatch ¶ added in v0.11.0
func (c *SslCertificatesAggregatedListCall) IfNoneMatch(entityTag string) *SslCertificatesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*SslCertificatesAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *SslCertificatesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *SslCertificatesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*SslCertificatesAggregatedListCall) MaxResults ¶ added in v0.11.0
func (c *SslCertificatesAggregatedListCall) MaxResults(maxResults int64) *SslCertificatesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*SslCertificatesAggregatedListCall) OrderBy ¶ added in v0.11.0
func (c *SslCertificatesAggregatedListCall) OrderBy(orderBy string) *SslCertificatesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*SslCertificatesAggregatedListCall) PageToken ¶ added in v0.11.0
func (c *SslCertificatesAggregatedListCall) PageToken(pageToken string) *SslCertificatesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*SslCertificatesAggregatedListCall) Pages ¶ added in v0.11.0
func (c *SslCertificatesAggregatedListCall) Pages(ctx context.Context, f func(*SslCertificateAggregatedList) 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 (*SslCertificatesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *SslCertificatesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SslCertificatesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*SslCertificatesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *SslCertificatesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *SslCertificatesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type SslCertificatesDeleteCall ¶
type SslCertificatesDeleteCall struct {
// contains filtered or unexported fields
}
func (*SslCertificatesDeleteCall) Context ¶
func (c *SslCertificatesDeleteCall) Context(ctx context.Context) *SslCertificatesDeleteCall
Context sets the context to be used in this call's Do method.
func (*SslCertificatesDeleteCall) Do ¶
func (c *SslCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.sslCertificates.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SslCertificatesDeleteCall) Fields ¶
func (c *SslCertificatesDeleteCall) Fields(s ...googleapi.Field) *SslCertificatesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SslCertificatesDeleteCall) Header ¶
func (c *SslCertificatesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SslCertificatesDeleteCall) RequestId ¶
func (c *SslCertificatesDeleteCall) RequestId(requestId string) *SslCertificatesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type SslCertificatesGetCall ¶
type SslCertificatesGetCall struct {
// contains filtered or unexported fields
}
func (*SslCertificatesGetCall) Context ¶
func (c *SslCertificatesGetCall) Context(ctx context.Context) *SslCertificatesGetCall
Context sets the context to be used in this call's Do method.
func (*SslCertificatesGetCall) Do ¶
func (c *SslCertificatesGetCall) Do(opts ...googleapi.CallOption) (*SslCertificate, error)
Do executes the "compute.sslCertificates.get" call. Any non-2xx status code is an error. Response headers are in either *SslCertificate.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SslCertificatesGetCall) Fields ¶
func (c *SslCertificatesGetCall) Fields(s ...googleapi.Field) *SslCertificatesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SslCertificatesGetCall) Header ¶
func (c *SslCertificatesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SslCertificatesGetCall) IfNoneMatch ¶
func (c *SslCertificatesGetCall) IfNoneMatch(entityTag string) *SslCertificatesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type SslCertificatesInsertCall ¶
type SslCertificatesInsertCall struct {
// contains filtered or unexported fields
}
func (*SslCertificatesInsertCall) Context ¶
func (c *SslCertificatesInsertCall) Context(ctx context.Context) *SslCertificatesInsertCall
Context sets the context to be used in this call's Do method.
func (*SslCertificatesInsertCall) Do ¶
func (c *SslCertificatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.sslCertificates.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SslCertificatesInsertCall) Fields ¶
func (c *SslCertificatesInsertCall) Fields(s ...googleapi.Field) *SslCertificatesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SslCertificatesInsertCall) Header ¶
func (c *SslCertificatesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SslCertificatesInsertCall) RequestId ¶
func (c *SslCertificatesInsertCall) RequestId(requestId string) *SslCertificatesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type SslCertificatesListCall ¶
type SslCertificatesListCall struct {
// contains filtered or unexported fields
}
func (*SslCertificatesListCall) Context ¶
func (c *SslCertificatesListCall) Context(ctx context.Context) *SslCertificatesListCall
Context sets the context to be used in this call's Do method.
func (*SslCertificatesListCall) Do ¶
func (c *SslCertificatesListCall) Do(opts ...googleapi.CallOption) (*SslCertificateList, error)
Do executes the "compute.sslCertificates.list" call. Any non-2xx status code is an error. Response headers are in either *SslCertificateList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SslCertificatesListCall) Fields ¶
func (c *SslCertificatesListCall) Fields(s ...googleapi.Field) *SslCertificatesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SslCertificatesListCall) Filter ¶
func (c *SslCertificatesListCall) Filter(filter string) *SslCertificatesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*SslCertificatesListCall) Header ¶
func (c *SslCertificatesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SslCertificatesListCall) IfNoneMatch ¶
func (c *SslCertificatesListCall) IfNoneMatch(entityTag string) *SslCertificatesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*SslCertificatesListCall) MaxResults ¶
func (c *SslCertificatesListCall) MaxResults(maxResults int64) *SslCertificatesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*SslCertificatesListCall) OrderBy ¶
func (c *SslCertificatesListCall) OrderBy(orderBy string) *SslCertificatesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*SslCertificatesListCall) PageToken ¶
func (c *SslCertificatesListCall) PageToken(pageToken string) *SslCertificatesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*SslCertificatesListCall) Pages ¶
func (c *SslCertificatesListCall) Pages(ctx context.Context, f func(*SslCertificateList) 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 (*SslCertificatesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *SslCertificatesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SslCertificatesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type SslCertificatesScopedList ¶ added in v0.11.0
type SslCertificatesScopedList struct { // SslCertificates: List of SslCertificates contained in this scope. SslCertificates []*SslCertificate `json:"sslCertificates,omitempty"` // Warning: Informational warning which replaces the list of backend services // when the list is empty. Warning *SslCertificatesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "SslCertificates") 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. "SslCertificates") 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:"-"` }
func (SslCertificatesScopedList) MarshalJSON ¶ added in v0.11.0
func (s SslCertificatesScopedList) MarshalJSON() ([]byte, error)
type SslCertificatesScopedListWarning ¶ added in v0.11.0
type SslCertificatesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*SslCertificatesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
SslCertificatesScopedListWarning: Informational warning which replaces the list of backend services when the list is empty.
func (SslCertificatesScopedListWarning) MarshalJSON ¶ added in v0.11.0
func (s SslCertificatesScopedListWarning) MarshalJSON() ([]byte, error)
type SslCertificatesScopedListWarningData ¶ added in v0.11.0
type SslCertificatesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (SslCertificatesScopedListWarningData) MarshalJSON ¶ added in v0.11.0
func (s SslCertificatesScopedListWarningData) MarshalJSON() ([]byte, error)
type SslCertificatesService ¶
type SslCertificatesService struct {
// contains filtered or unexported fields
}
func NewSslCertificatesService ¶
func NewSslCertificatesService(s *Service) *SslCertificatesService
func (*SslCertificatesService) AggregatedList ¶ added in v0.11.0
func (r *SslCertificatesService) AggregatedList(project string) *SslCertificatesAggregatedListCall
AggregatedList: Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Name of the project scoping this request.
func (*SslCertificatesService) Delete ¶
func (r *SslCertificatesService) Delete(project string, sslCertificate string) *SslCertificatesDeleteCall
Delete: Deletes the specified SslCertificate resource.
- project: Project ID for this request. - sslCertificate: Name of the SslCertificate resource to delete.
func (*SslCertificatesService) Get ¶
func (r *SslCertificatesService) Get(project string, sslCertificate string) *SslCertificatesGetCall
Get: Returns the specified SslCertificate resource.
- project: Project ID for this request. - sslCertificate: Name of the SslCertificate resource to return.
func (*SslCertificatesService) Insert ¶
func (r *SslCertificatesService) Insert(project string, sslcertificate *SslCertificate) *SslCertificatesInsertCall
Insert: Creates a SslCertificate resource in the specified project using the data included in the request.
- project: Project ID for this request.
func (*SslCertificatesService) List ¶
func (r *SslCertificatesService) List(project string) *SslCertificatesListCall
List: Retrieves the list of SslCertificate resources available to the specified project.
- project: Project ID for this request.
type SslPoliciesAggregatedList ¶ added in v0.96.0
type SslPoliciesAggregatedList struct { Etag string `json:"etag,omitempty"` // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of SslPoliciesScopedList resources. Items map[string]SslPoliciesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#sslPolicyAggregatedList // for lists of SSL Policies. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *SslPoliciesAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Etag") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
func (SslPoliciesAggregatedList) MarshalJSON ¶ added in v0.96.0
func (s SslPoliciesAggregatedList) MarshalJSON() ([]byte, error)
type SslPoliciesAggregatedListCall ¶ added in v0.96.0
type SslPoliciesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*SslPoliciesAggregatedListCall) Context ¶ added in v0.96.0
func (c *SslPoliciesAggregatedListCall) Context(ctx context.Context) *SslPoliciesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*SslPoliciesAggregatedListCall) Do ¶ added in v0.96.0
func (c *SslPoliciesAggregatedListCall) Do(opts ...googleapi.CallOption) (*SslPoliciesAggregatedList, error)
Do executes the "compute.sslPolicies.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *SslPoliciesAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SslPoliciesAggregatedListCall) Fields ¶ added in v0.96.0
func (c *SslPoliciesAggregatedListCall) Fields(s ...googleapi.Field) *SslPoliciesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SslPoliciesAggregatedListCall) Filter ¶ added in v0.96.0
func (c *SslPoliciesAggregatedListCall) Filter(filter string) *SslPoliciesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*SslPoliciesAggregatedListCall) Header ¶ added in v0.96.0
func (c *SslPoliciesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SslPoliciesAggregatedListCall) IfNoneMatch ¶ added in v0.96.0
func (c *SslPoliciesAggregatedListCall) IfNoneMatch(entityTag string) *SslPoliciesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*SslPoliciesAggregatedListCall) IncludeAllScopes ¶ added in v0.96.0
func (c *SslPoliciesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *SslPoliciesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*SslPoliciesAggregatedListCall) MaxResults ¶ added in v0.96.0
func (c *SslPoliciesAggregatedListCall) MaxResults(maxResults int64) *SslPoliciesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*SslPoliciesAggregatedListCall) OrderBy ¶ added in v0.96.0
func (c *SslPoliciesAggregatedListCall) OrderBy(orderBy string) *SslPoliciesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*SslPoliciesAggregatedListCall) PageToken ¶ added in v0.96.0
func (c *SslPoliciesAggregatedListCall) PageToken(pageToken string) *SslPoliciesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*SslPoliciesAggregatedListCall) Pages ¶ added in v0.96.0
func (c *SslPoliciesAggregatedListCall) Pages(ctx context.Context, f func(*SslPoliciesAggregatedList) 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 (*SslPoliciesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.96.0
func (c *SslPoliciesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SslPoliciesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*SslPoliciesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *SslPoliciesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *SslPoliciesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type SslPoliciesAggregatedListWarning ¶ added in v0.96.0
type SslPoliciesAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*SslPoliciesAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
SslPoliciesAggregatedListWarning: [Output Only] Informational warning message.
func (SslPoliciesAggregatedListWarning) MarshalJSON ¶ added in v0.96.0
func (s SslPoliciesAggregatedListWarning) MarshalJSON() ([]byte, error)
type SslPoliciesAggregatedListWarningData ¶ added in v0.96.0
type SslPoliciesAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (SslPoliciesAggregatedListWarningData) MarshalJSON ¶ added in v0.96.0
func (s SslPoliciesAggregatedListWarningData) MarshalJSON() ([]byte, error)
type SslPoliciesDeleteCall ¶
type SslPoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*SslPoliciesDeleteCall) Context ¶
func (c *SslPoliciesDeleteCall) Context(ctx context.Context) *SslPoliciesDeleteCall
Context sets the context to be used in this call's Do method.
func (*SslPoliciesDeleteCall) Do ¶
func (c *SslPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.sslPolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SslPoliciesDeleteCall) Fields ¶
func (c *SslPoliciesDeleteCall) Fields(s ...googleapi.Field) *SslPoliciesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SslPoliciesDeleteCall) Header ¶
func (c *SslPoliciesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SslPoliciesDeleteCall) RequestId ¶
func (c *SslPoliciesDeleteCall) RequestId(requestId string) *SslPoliciesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type SslPoliciesGetCall ¶
type SslPoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*SslPoliciesGetCall) Context ¶
func (c *SslPoliciesGetCall) Context(ctx context.Context) *SslPoliciesGetCall
Context sets the context to be used in this call's Do method.
func (*SslPoliciesGetCall) Do ¶
func (c *SslPoliciesGetCall) Do(opts ...googleapi.CallOption) (*SslPolicy, error)
Do executes the "compute.sslPolicies.get" call. Any non-2xx status code is an error. Response headers are in either *SslPolicy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SslPoliciesGetCall) Fields ¶
func (c *SslPoliciesGetCall) Fields(s ...googleapi.Field) *SslPoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SslPoliciesGetCall) Header ¶
func (c *SslPoliciesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SslPoliciesGetCall) IfNoneMatch ¶
func (c *SslPoliciesGetCall) IfNoneMatch(entityTag string) *SslPoliciesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type SslPoliciesInsertCall ¶
type SslPoliciesInsertCall struct {
// contains filtered or unexported fields
}
func (*SslPoliciesInsertCall) Context ¶
func (c *SslPoliciesInsertCall) Context(ctx context.Context) *SslPoliciesInsertCall
Context sets the context to be used in this call's Do method.
func (*SslPoliciesInsertCall) Do ¶
func (c *SslPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.sslPolicies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SslPoliciesInsertCall) Fields ¶
func (c *SslPoliciesInsertCall) Fields(s ...googleapi.Field) *SslPoliciesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SslPoliciesInsertCall) Header ¶
func (c *SslPoliciesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SslPoliciesInsertCall) RequestId ¶
func (c *SslPoliciesInsertCall) RequestId(requestId string) *SslPoliciesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type SslPoliciesList ¶
type SslPoliciesList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of SslPolicy resources. Items []*SslPolicy `json:"items,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#sslPoliciesList for // lists of sslPolicies. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *SslPoliciesListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (SslPoliciesList) MarshalJSON ¶
func (s SslPoliciesList) MarshalJSON() ([]byte, error)
type SslPoliciesListAvailableFeaturesCall ¶
type SslPoliciesListAvailableFeaturesCall struct {
// contains filtered or unexported fields
}
func (*SslPoliciesListAvailableFeaturesCall) Context ¶
func (c *SslPoliciesListAvailableFeaturesCall) Context(ctx context.Context) *SslPoliciesListAvailableFeaturesCall
Context sets the context to be used in this call's Do method.
func (*SslPoliciesListAvailableFeaturesCall) Do ¶
func (c *SslPoliciesListAvailableFeaturesCall) Do(opts ...googleapi.CallOption) (*SslPoliciesListAvailableFeaturesResponse, error)
Do executes the "compute.sslPolicies.listAvailableFeatures" call. Any non-2xx status code is an error. Response headers are in either *SslPoliciesListAvailableFeaturesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SslPoliciesListAvailableFeaturesCall) Fields ¶
func (c *SslPoliciesListAvailableFeaturesCall) Fields(s ...googleapi.Field) *SslPoliciesListAvailableFeaturesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SslPoliciesListAvailableFeaturesCall) Filter ¶
func (c *SslPoliciesListAvailableFeaturesCall) Filter(filter string) *SslPoliciesListAvailableFeaturesCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*SslPoliciesListAvailableFeaturesCall) Header ¶
func (c *SslPoliciesListAvailableFeaturesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SslPoliciesListAvailableFeaturesCall) IfNoneMatch ¶
func (c *SslPoliciesListAvailableFeaturesCall) IfNoneMatch(entityTag string) *SslPoliciesListAvailableFeaturesCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*SslPoliciesListAvailableFeaturesCall) MaxResults ¶
func (c *SslPoliciesListAvailableFeaturesCall) MaxResults(maxResults int64) *SslPoliciesListAvailableFeaturesCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*SslPoliciesListAvailableFeaturesCall) OrderBy ¶
func (c *SslPoliciesListAvailableFeaturesCall) OrderBy(orderBy string) *SslPoliciesListAvailableFeaturesCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*SslPoliciesListAvailableFeaturesCall) PageToken ¶
func (c *SslPoliciesListAvailableFeaturesCall) PageToken(pageToken string) *SslPoliciesListAvailableFeaturesCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*SslPoliciesListAvailableFeaturesCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *SslPoliciesListAvailableFeaturesCall) ReturnPartialSuccess(returnPartialSuccess bool) *SslPoliciesListAvailableFeaturesCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type SslPoliciesListAvailableFeaturesResponse ¶
type SslPoliciesListAvailableFeaturesResponse struct { Features []string `json:"features,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Features") 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. "Features") 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:"-"` }
func (SslPoliciesListAvailableFeaturesResponse) MarshalJSON ¶
func (s SslPoliciesListAvailableFeaturesResponse) MarshalJSON() ([]byte, error)
type SslPoliciesListCall ¶
type SslPoliciesListCall struct {
// contains filtered or unexported fields
}
func (*SslPoliciesListCall) Context ¶
func (c *SslPoliciesListCall) Context(ctx context.Context) *SslPoliciesListCall
Context sets the context to be used in this call's Do method.
func (*SslPoliciesListCall) Do ¶
func (c *SslPoliciesListCall) Do(opts ...googleapi.CallOption) (*SslPoliciesList, error)
Do executes the "compute.sslPolicies.list" call. Any non-2xx status code is an error. Response headers are in either *SslPoliciesList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SslPoliciesListCall) Fields ¶
func (c *SslPoliciesListCall) Fields(s ...googleapi.Field) *SslPoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SslPoliciesListCall) Filter ¶
func (c *SslPoliciesListCall) Filter(filter string) *SslPoliciesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*SslPoliciesListCall) Header ¶
func (c *SslPoliciesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SslPoliciesListCall) IfNoneMatch ¶
func (c *SslPoliciesListCall) IfNoneMatch(entityTag string) *SslPoliciesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*SslPoliciesListCall) MaxResults ¶
func (c *SslPoliciesListCall) MaxResults(maxResults int64) *SslPoliciesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*SslPoliciesListCall) OrderBy ¶
func (c *SslPoliciesListCall) OrderBy(orderBy string) *SslPoliciesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*SslPoliciesListCall) PageToken ¶
func (c *SslPoliciesListCall) PageToken(pageToken string) *SslPoliciesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*SslPoliciesListCall) Pages ¶
func (c *SslPoliciesListCall) Pages(ctx context.Context, f func(*SslPoliciesList) 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 (*SslPoliciesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *SslPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SslPoliciesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type SslPoliciesListWarning ¶
type SslPoliciesListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*SslPoliciesListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
SslPoliciesListWarning: [Output Only] Informational warning message.
func (SslPoliciesListWarning) MarshalJSON ¶
func (s SslPoliciesListWarning) MarshalJSON() ([]byte, error)
type SslPoliciesListWarningData ¶
type SslPoliciesListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (SslPoliciesListWarningData) MarshalJSON ¶
func (s SslPoliciesListWarningData) MarshalJSON() ([]byte, error)
type SslPoliciesPatchCall ¶
type SslPoliciesPatchCall struct {
// contains filtered or unexported fields
}
func (*SslPoliciesPatchCall) Context ¶
func (c *SslPoliciesPatchCall) Context(ctx context.Context) *SslPoliciesPatchCall
Context sets the context to be used in this call's Do method.
func (*SslPoliciesPatchCall) Do ¶
func (c *SslPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.sslPolicies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SslPoliciesPatchCall) Fields ¶
func (c *SslPoliciesPatchCall) Fields(s ...googleapi.Field) *SslPoliciesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SslPoliciesPatchCall) Header ¶
func (c *SslPoliciesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SslPoliciesPatchCall) RequestId ¶
func (c *SslPoliciesPatchCall) RequestId(requestId string) *SslPoliciesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type SslPoliciesScopedList ¶ added in v0.96.0
type SslPoliciesScopedList struct { // SslPolicies: A list of SslPolicies contained in this scope. SslPolicies []*SslPolicy `json:"sslPolicies,omitempty"` // Warning: Informational warning which replaces the list of SSL policies when // the list is empty. Warning *SslPoliciesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "SslPolicies") 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. "SslPolicies") 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:"-"` }
func (SslPoliciesScopedList) MarshalJSON ¶ added in v0.96.0
func (s SslPoliciesScopedList) MarshalJSON() ([]byte, error)
type SslPoliciesScopedListWarning ¶ added in v0.96.0
type SslPoliciesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*SslPoliciesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
SslPoliciesScopedListWarning: Informational warning which replaces the list of SSL policies when the list is empty.
func (SslPoliciesScopedListWarning) MarshalJSON ¶ added in v0.96.0
func (s SslPoliciesScopedListWarning) MarshalJSON() ([]byte, error)
type SslPoliciesScopedListWarningData ¶ added in v0.96.0
type SslPoliciesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (SslPoliciesScopedListWarningData) MarshalJSON ¶ added in v0.96.0
func (s SslPoliciesScopedListWarningData) MarshalJSON() ([]byte, error)
type SslPoliciesService ¶
type SslPoliciesService struct {
// contains filtered or unexported fields
}
func NewSslPoliciesService ¶
func NewSslPoliciesService(s *Service) *SslPoliciesService
func (*SslPoliciesService) AggregatedList ¶ added in v0.96.0
func (r *SslPoliciesService) AggregatedList(project string) *SslPoliciesAggregatedListCall
AggregatedList: Retrieves the list of all SslPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Name of the project scoping this request.
func (*SslPoliciesService) Delete ¶
func (r *SslPoliciesService) Delete(project string, sslPolicy string) *SslPoliciesDeleteCall
Delete: Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
- project: Project ID for this request.
- sslPolicy: Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035.
func (*SslPoliciesService) Get ¶
func (r *SslPoliciesService) Get(project string, sslPolicy string) *SslPoliciesGetCall
Get: Lists all of the ordered rules present in a single specified policy.
- project: Project ID for this request.
- sslPolicy: Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
func (*SslPoliciesService) Insert ¶
func (r *SslPoliciesService) Insert(project string, sslpolicy *SslPolicy) *SslPoliciesInsertCall
Insert: Returns the specified SSL policy resource.
- project: Project ID for this request.
func (*SslPoliciesService) List ¶
func (r *SslPoliciesService) List(project string) *SslPoliciesListCall
List: Lists all the SSL policies that have been configured for the specified project.
- project: Project ID for this request.
func (*SslPoliciesService) ListAvailableFeatures ¶
func (r *SslPoliciesService) ListAvailableFeatures(project string) *SslPoliciesListAvailableFeaturesCall
ListAvailableFeatures: Lists all features that can be specified in the SSL policy when using custom profile.
- project: Project ID for this request.
func (*SslPoliciesService) Patch ¶
func (r *SslPoliciesService) Patch(project string, sslPolicy string, sslpolicy *SslPolicy) *SslPoliciesPatchCall
Patch: Patches the specified SSL policy with the data included in the request.
- project: Project ID for this request.
- sslPolicy: Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
type SslPolicy ¶
type SslPolicy struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // CustomFeatures: A list of features enabled when the selected profile is // CUSTOM. The method returns the set of features that can be specified in this // list. This field must be empty if the profile is not CUSTOM. CustomFeatures []string `json:"customFeatures,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // EnabledFeatures: [Output Only] The list of features enabled in the SSL // policy. EnabledFeatures []string `json:"enabledFeatures,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents stored in // this object. This field is used in optimistic locking. This field will be // ignored when inserting a SslPolicy. An up-to-date fingerprint must be // provided in order to update the SslPolicy, otherwise the request will fail // with error 412 conditionNotMet. To see the latest fingerprint, make a get() // request to retrieve an SslPolicy. Fingerprint string `json:"fingerprint,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output only] Type of the resource. Always compute#sslPolicyfor SSL // policies. Kind string `json:"kind,omitempty"` // MinTlsVersion: The minimum version of SSL protocol that can be used by the // clients to establish a connection with the load balancer. This can be one of // TLS_1_0, TLS_1_1, TLS_1_2. // // Possible values: // "TLS_1_0" - TLS 1.0 // "TLS_1_1" - TLS 1.1 // "TLS_1_2" - TLS 1.2 MinTlsVersion string `json:"minTlsVersion,omitempty"` // Name: Name of the resource. The name must be 1-63 characters long, and // comply with RFC1035. Specifically, the name must be 1-63 characters long and // match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the // first character must be a lowercase letter, and all following characters // must be a dash, lowercase letter, or digit, except the last character, which // cannot be a dash. Name string `json:"name,omitempty"` // Profile: Profile specifies the set of SSL features that can be used by the // load balancer when negotiating SSL with clients. This can be one of // COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL // features to enable must be specified in the customFeatures field. // // Possible values: // "COMPATIBLE" - Compatible profile. Allows the broadset set of clients, // even those which support only out-of-date SSL features to negotiate with the // load balancer. // "CUSTOM" - Custom profile. Allow only the set of allowed SSL features // specified in the customFeatures field. // "MODERN" - Modern profile. Supports a wide set of SSL features, allowing // modern clients to negotiate SSL with the load balancer. // "RESTRICTED" - Restricted profile. Supports a reduced set of SSL features, // intended to meet stricter compliance requirements. Profile string `json:"profile,omitempty"` // Region: [Output Only] URL of the region where the regional SSL policy // resides. This field is not applicable to global SSL policies. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Warnings: [Output Only] If potential misconfigurations are detected for this // SSL policy, this field will be populated with warning messages. Warnings []*SslPolicyWarnings `json:"warnings,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
SslPolicy: Represents an SSL Policy resource. Use SSL policies to control SSL features, such as versions and cipher suites, that are offered by Application Load Balancers and proxy Network Load Balancers. For more information, read SSL policies overview.
func (SslPolicy) MarshalJSON ¶
type SslPolicyReference ¶
type SslPolicyReference struct { // SslPolicy: URL of the SSL policy resource. Set this to empty string to clear // any existing SSL policy associated with the target proxy resource. SslPolicy string `json:"sslPolicy,omitempty"` // ForceSendFields is a list of field names (e.g. "SslPolicy") 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. "SslPolicy") 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:"-"` }
func (SslPolicyReference) MarshalJSON ¶
func (s SslPolicyReference) MarshalJSON() ([]byte, error)
type SslPolicyWarnings ¶
type SslPolicyWarnings struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*SslPolicyWarningsData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
func (SslPolicyWarnings) MarshalJSON ¶
func (s SslPolicyWarnings) MarshalJSON() ([]byte, error)
type SslPolicyWarningsData ¶
type SslPolicyWarningsData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (SslPolicyWarningsData) MarshalJSON ¶
func (s SslPolicyWarningsData) MarshalJSON() ([]byte, error)
type StatefulPolicy ¶ added in v0.31.0
type StatefulPolicy struct { PreservedState *StatefulPolicyPreservedState `json:"preservedState,omitempty"` // ForceSendFields is a list of field names (e.g. "PreservedState") 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. "PreservedState") 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:"-"` }
func (StatefulPolicy) MarshalJSON ¶ added in v0.31.0
func (s StatefulPolicy) MarshalJSON() ([]byte, error)
type StatefulPolicyPreservedState ¶ added in v0.31.0
type StatefulPolicyPreservedState struct { // Disks: Disks created on the instances that will be preserved on instance // delete, update, etc. This map is keyed with the device names of the disks. Disks map[string]StatefulPolicyPreservedStateDiskDevice `json:"disks,omitempty"` // ExternalIPs: External network IPs assigned to the instances that will be // preserved on instance delete, update, etc. This map is keyed with the // network interface name. ExternalIPs map[string]StatefulPolicyPreservedStateNetworkIp `json:"externalIPs,omitempty"` // InternalIPs: Internal network IPs assigned to the instances that will be // preserved on instance delete, update, etc. This map is keyed with the // network interface name. InternalIPs map[string]StatefulPolicyPreservedStateNetworkIp `json:"internalIPs,omitempty"` // ForceSendFields is a list of field names (e.g. "Disks") 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. "Disks") 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:"-"` }
StatefulPolicyPreservedState: Configuration of preserved resources.
func (StatefulPolicyPreservedState) MarshalJSON ¶ added in v0.31.0
func (s StatefulPolicyPreservedState) MarshalJSON() ([]byte, error)
type StatefulPolicyPreservedStateDiskDevice ¶ added in v0.31.0
type StatefulPolicyPreservedStateDiskDevice struct { // AutoDelete: These stateful disks will never be deleted during autohealing, // update or VM instance recreate operations. This flag is used to configure if // the disk should be deleted after it is no longer used by the group, e.g. // when the given instance or the whole group is deleted. Note: disks attached // in READ_ONLY mode cannot be auto-deleted. // // Possible values: // "NEVER" // "ON_PERMANENT_INSTANCE_DELETION" AutoDelete string `json:"autoDelete,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoDelete") 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. "AutoDelete") 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:"-"` }
func (StatefulPolicyPreservedStateDiskDevice) MarshalJSON ¶ added in v0.31.0
func (s StatefulPolicyPreservedStateDiskDevice) MarshalJSON() ([]byte, error)
type StatefulPolicyPreservedStateNetworkIp ¶ added in v0.143.0
type StatefulPolicyPreservedStateNetworkIp struct { // AutoDelete: These stateful IPs will never be released during autohealing, // update or VM instance recreate operations. This flag is used to configure if // the IP reservation should be deleted after it is no longer used by the // group, e.g. when the given instance or the whole group is deleted. // // Possible values: // "NEVER" // "ON_PERMANENT_INSTANCE_DELETION" AutoDelete string `json:"autoDelete,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoDelete") 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. "AutoDelete") 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:"-"` }
func (StatefulPolicyPreservedStateNetworkIp) MarshalJSON ¶ added in v0.143.0
func (s StatefulPolicyPreservedStateNetworkIp) MarshalJSON() ([]byte, error)
type Status ¶ added in v0.135.0
type Status struct { // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `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. Message string `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 for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
func (Status) MarshalJSON ¶ added in v0.135.0
type StoragePool ¶ added in v0.170.0
type StoragePool struct { // CapacityProvisioningType: Provisioning type of the byte capacity of the // pool. // // Possible values: // "ADVANCED" - Advanced provisioning "thinly" allocates the related // resource. // "STANDARD" - Standard provisioning allocates the related resource for the // pool disks' exclusive use. // "UNSPECIFIED" CapacityProvisioningType string `json:"capacityProvisioningType,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#storagePool for // storage pools. Kind string `json:"kind,omitempty"` // LabelFingerprint: A fingerprint for the labels being applied to this storage // pool, which is essentially a hash of the labels set used for optimistic // locking. The fingerprint is initially generated by Compute Engine and // changes after every request to modify or update labels. You must always // provide an up-to-date fingerprint hash in order to update or change labels, // otherwise the request will fail with error 412 conditionNotMet. To see the // latest fingerprint, make a get() request to retrieve a storage pool. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels to apply to this storage pool. These can be later modified by // the setLabels method. Labels map[string]string `json:"labels,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // PerformanceProvisioningType: Provisioning type of the performance-related // parameters of the pool, such as throughput and IOPS. // // Possible values: // "ADVANCED" - Advanced provisioning "thinly" allocates the related // resource. // "STANDARD" - Standard provisioning allocates the related resource for the // pool disks' exclusive use. // "UNSPECIFIED" PerformanceProvisioningType string `json:"performanceProvisioningType,omitempty"` // PoolProvisionedCapacityGb: Size, in GiB, of the storage pool. For more // information about the size limits, see // https://cloud.google.com/compute/docs/disks/storage-pools. PoolProvisionedCapacityGb int64 `json:"poolProvisionedCapacityGb,omitempty,string"` // PoolProvisionedIops: Provisioned IOPS of the storage pool. Only relevant if // the storage pool type is hyperdisk-balanced. PoolProvisionedIops int64 `json:"poolProvisionedIops,omitempty,string"` // PoolProvisionedThroughput: Provisioned throughput of the storage pool. Only // relevant if the storage pool type is hyperdisk-balanced or // hyperdisk-throughput. PoolProvisionedThroughput int64 `json:"poolProvisionedThroughput,omitempty,string"` // ResourceStatus: [Output Only] Status information for the storage pool // resource. ResourceStatus *StoragePoolResourceStatus `json:"resourceStatus,omitempty"` // SelfLink: [Output Only] Server-defined fully-qualified URL for this // resource. SelfLink string `json:"selfLink,omitempty"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource's // resource id. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` // State: [Output Only] The status of storage pool creation. - CREATING: // Storage pool is provisioning. storagePool. - FAILED: Storage pool creation // failed. - READY: Storage pool is ready for use. - DELETING: Storage pool is // deleting. // // Possible values: // "CREATING" - StoragePool is provisioning // "DELETING" - StoragePool is deleting. // "FAILED" - StoragePool creation failed. // "READY" - StoragePool is ready for use. State string `json:"state,omitempty"` // Status: [Output Only] Status information for the storage pool resource. Status *StoragePoolResourceStatus `json:"status,omitempty"` // StoragePoolType: Type of the storage pool. StoragePoolType string `json:"storagePoolType,omitempty"` // Zone: [Output Only] URL of the zone where the storage pool resides. You must // specify this field as part of the HTTP request URL. It is not settable as a // field in the request body. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CapacityProvisioningType") // 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. "CapacityProvisioningType") 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:"-"` }
StoragePool: Represents a zonal storage pool resource.
func (StoragePool) MarshalJSON ¶ added in v0.170.0
func (s StoragePool) MarshalJSON() ([]byte, error)
type StoragePoolAggregatedList ¶ added in v0.170.0
type StoragePoolAggregatedList struct { Etag string `json:"etag,omitempty"` // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of StoragePoolsScopedList resources. Items map[string]StoragePoolsScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#storagePoolAggregatedList for aggregated lists of storage pools. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *StoragePoolAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Etag") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
func (StoragePoolAggregatedList) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolAggregatedList) MarshalJSON() ([]byte, error)
type StoragePoolAggregatedListWarning ¶ added in v0.170.0
type StoragePoolAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*StoragePoolAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
StoragePoolAggregatedListWarning: [Output Only] Informational warning message.
func (StoragePoolAggregatedListWarning) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolAggregatedListWarning) MarshalJSON() ([]byte, error)
type StoragePoolAggregatedListWarningData ¶ added in v0.170.0
type StoragePoolAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (StoragePoolAggregatedListWarningData) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolAggregatedListWarningData) MarshalJSON() ([]byte, error)
type StoragePoolDisk ¶ added in v0.170.0
type StoragePoolDisk struct { // AttachedInstances: [Output Only] Instances this disk is attached to. AttachedInstances []string `json:"attachedInstances,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Disk: [Output Only] The URL of the disk. Disk string `json:"disk,omitempty"` // Name: [Output Only] The name of the disk. Name string `json:"name,omitempty"` // ProvisionedIops: [Output Only] The number of IOPS provisioned for the disk. ProvisionedIops int64 `json:"provisionedIops,omitempty,string"` // ProvisionedThroughput: [Output Only] The throughput provisioned for the // disk. ProvisionedThroughput int64 `json:"provisionedThroughput,omitempty,string"` // ResourcePolicies: [Output Only] Resource policies applied to disk for // automatic snapshot creations. ResourcePolicies []string `json:"resourcePolicies,omitempty"` // SizeGb: [Output Only] The disk size, in GB. SizeGb int64 `json:"sizeGb,omitempty,string"` // Status: [Output Only] The disk status. // // Possible values: // "CREATING" - Disk is provisioning // "DELETING" - Disk is deleting. // "FAILED" - Disk creation failed. // "READY" - Disk is ready for use. // "RESTORING" - Source data is being copied into the disk. // "UNAVAILABLE" - Disk is currently unavailable and cannot be accessed, // attached or detached. Status string `json:"status,omitempty"` // Type: [Output Only] The disk type. Type string `json:"type,omitempty"` // UsedBytes: [Output Only] Amount of disk space used. UsedBytes int64 `json:"usedBytes,omitempty,string"` // ForceSendFields is a list of field names (e.g. "AttachedInstances") 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. "AttachedInstances") 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:"-"` }
func (StoragePoolDisk) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolDisk) MarshalJSON() ([]byte, error)
type StoragePoolList ¶ added in v0.170.0
type StoragePoolList struct { Etag string `json:"etag,omitempty"` // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of StoragePool resources. Items []*StoragePool `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#storagePoolList for // lists of storagePools. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. end_interface: // MixerListResponseWithEtagBuilder Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *StoragePoolListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Etag") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
StoragePoolList: A list of StoragePool resources.
func (StoragePoolList) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolList) MarshalJSON() ([]byte, error)
type StoragePoolListDisks ¶ added in v0.170.0
type StoragePoolListDisks struct { Etag string `json:"etag,omitempty"` // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of StoragePoolDisk resources. Items []*StoragePoolDisk `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#storagePoolListDisks // for lists of disks in a storagePool. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. end_interface: // MixerListResponseWithEtagBuilder Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *StoragePoolListDisksWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Etag") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
func (StoragePoolListDisks) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolListDisks) MarshalJSON() ([]byte, error)
type StoragePoolListDisksWarning ¶ added in v0.170.0
type StoragePoolListDisksWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*StoragePoolListDisksWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
StoragePoolListDisksWarning: [Output Only] Informational warning message.
func (StoragePoolListDisksWarning) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolListDisksWarning) MarshalJSON() ([]byte, error)
type StoragePoolListDisksWarningData ¶ added in v0.170.0
type StoragePoolListDisksWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (StoragePoolListDisksWarningData) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolListDisksWarningData) MarshalJSON() ([]byte, error)
type StoragePoolListWarning ¶ added in v0.170.0
type StoragePoolListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*StoragePoolListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
StoragePoolListWarning: [Output Only] Informational warning message.
func (StoragePoolListWarning) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolListWarning) MarshalJSON() ([]byte, error)
type StoragePoolListWarningData ¶ added in v0.170.0
type StoragePoolListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (StoragePoolListWarningData) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolListWarningData) MarshalJSON() ([]byte, error)
type StoragePoolResourceStatus ¶ added in v0.170.0
type StoragePoolResourceStatus struct { // DiskCount: [Output Only] Number of disks used. DiskCount int64 `json:"diskCount,omitempty,string"` // LastResizeTimestamp: [Output Only] Timestamp of the last successful resize // in RFC3339 text format. LastResizeTimestamp string `json:"lastResizeTimestamp,omitempty"` // MaxTotalProvisionedDiskCapacityGb: [Output Only] Maximum allowed aggregate // disk size in gigabytes. MaxTotalProvisionedDiskCapacityGb int64 `json:"maxTotalProvisionedDiskCapacityGb,omitempty,string"` // PoolUsedCapacityBytes: [Output Only] Space used by data stored in disks // within the storage pool (in bytes). This will reflect the total number of // bytes written to the disks in the pool, in contrast to the capacity of those // disks. PoolUsedCapacityBytes int64 `json:"poolUsedCapacityBytes,omitempty,string"` // PoolUsedIops: [Output Only] Sum of all the disks' provisioned IOPS, minus // some amount that is allowed per disk that is not counted towards pool's IOPS // capacity. For more information, see // https://cloud.google.com/compute/docs/disks/storage-pools. PoolUsedIops int64 `json:"poolUsedIops,omitempty,string"` // PoolUsedThroughput: [Output Only] Sum of all the disks' provisioned // throughput in MB/s. PoolUsedThroughput int64 `json:"poolUsedThroughput,omitempty,string"` // PoolUserWrittenBytes: [Output Only] Amount of data written into the pool, // before it is compacted. PoolUserWrittenBytes int64 `json:"poolUserWrittenBytes,omitempty,string"` // TotalProvisionedDiskCapacityGb: [Output Only] Sum of all the capacity // provisioned in disks in this storage pool. A disk's provisioned capacity is // the same as its total capacity. TotalProvisionedDiskCapacityGb int64 `json:"totalProvisionedDiskCapacityGb,omitempty,string"` // TotalProvisionedDiskIops: [Output Only] Sum of all the disks' provisioned // IOPS. TotalProvisionedDiskIops int64 `json:"totalProvisionedDiskIops,omitempty,string"` // TotalProvisionedDiskThroughput: [Output Only] Sum of all the disks' // provisioned throughput in MB/s, minus some amount that is allowed per disk // that is not counted towards pool's throughput capacity. TotalProvisionedDiskThroughput int64 `json:"totalProvisionedDiskThroughput,omitempty,string"` // ForceSendFields is a list of field names (e.g. "DiskCount") 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. "DiskCount") 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:"-"` }
StoragePoolResourceStatus: [Output Only] Contains output only fields.
func (StoragePoolResourceStatus) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolResourceStatus) MarshalJSON() ([]byte, error)
type StoragePoolType ¶ added in v0.170.0
type StoragePoolType struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Deprecated -- [Output Only] The deprecation status associated with this // storage pool type. Deprecated *DeprecationStatus `json:"deprecated,omitempty"` // Description: [Output Only] An optional description of this resource. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#storagePoolType for // storage pool types. Kind string `json:"kind,omitempty"` // MaxPoolProvisionedCapacityGb: [Output Only] Maximum storage pool size in GB. MaxPoolProvisionedCapacityGb int64 `json:"maxPoolProvisionedCapacityGb,omitempty,string"` // MaxPoolProvisionedIops: [Output Only] Maximum provisioned IOPS. MaxPoolProvisionedIops int64 `json:"maxPoolProvisionedIops,omitempty,string"` // MaxPoolProvisionedThroughput: [Output Only] Maximum provisioned throughput. MaxPoolProvisionedThroughput int64 `json:"maxPoolProvisionedThroughput,omitempty,string"` // MinPoolProvisionedCapacityGb: [Output Only] Minimum storage pool size in GB. MinPoolProvisionedCapacityGb int64 `json:"minPoolProvisionedCapacityGb,omitempty,string"` // MinPoolProvisionedIops: [Output Only] Minimum provisioned IOPS. MinPoolProvisionedIops int64 `json:"minPoolProvisionedIops,omitempty,string"` // MinPoolProvisionedThroughput: [Output Only] Minimum provisioned throughput. MinPoolProvisionedThroughput int64 `json:"minPoolProvisionedThroughput,omitempty,string"` // MinSizeGb: [Deprecated] This field is deprecated. Use // minPoolProvisionedCapacityGb instead. MinSizeGb int64 `json:"minSizeGb,omitempty,string"` // Name: [Output Only] Name of the resource. Name string `json:"name,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource with the // resource id. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` // SupportedDiskTypes: [Output Only] The list of disk types supported in this // storage pool type. SupportedDiskTypes []string `json:"supportedDiskTypes,omitempty"` // Zone: [Output Only] URL of the zone where the storage pool type resides. You // must specify this field as part of the HTTP request URL. It is not settable // as a field in the request body. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
func (StoragePoolType) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolType) MarshalJSON() ([]byte, error)
type StoragePoolTypeAggregatedList ¶ added in v0.170.0
type StoragePoolTypeAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of StoragePoolTypesScopedList resources. Items map[string]StoragePoolTypesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#storagePoolTypeAggregatedList . Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *StoragePoolTypeAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (StoragePoolTypeAggregatedList) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolTypeAggregatedList) MarshalJSON() ([]byte, error)
type StoragePoolTypeAggregatedListWarning ¶ added in v0.170.0
type StoragePoolTypeAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*StoragePoolTypeAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
StoragePoolTypeAggregatedListWarning: [Output Only] Informational warning message.
func (StoragePoolTypeAggregatedListWarning) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolTypeAggregatedListWarning) MarshalJSON() ([]byte, error)
type StoragePoolTypeAggregatedListWarningData ¶ added in v0.170.0
type StoragePoolTypeAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (StoragePoolTypeAggregatedListWarningData) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolTypeAggregatedListWarningData) MarshalJSON() ([]byte, error)
type StoragePoolTypeList ¶ added in v0.170.0
type StoragePoolTypeList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of StoragePoolType resources. Items []*StoragePoolType `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#storagePoolTypeList for // storage pool types. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *StoragePoolTypeListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
StoragePoolTypeList: Contains a list of storage pool types.
func (StoragePoolTypeList) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolTypeList) MarshalJSON() ([]byte, error)
type StoragePoolTypeListWarning ¶ added in v0.170.0
type StoragePoolTypeListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*StoragePoolTypeListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
StoragePoolTypeListWarning: [Output Only] Informational warning message.
func (StoragePoolTypeListWarning) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolTypeListWarning) MarshalJSON() ([]byte, error)
type StoragePoolTypeListWarningData ¶ added in v0.170.0
type StoragePoolTypeListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (StoragePoolTypeListWarningData) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolTypeListWarningData) MarshalJSON() ([]byte, error)
type StoragePoolTypesAggregatedListCall ¶ added in v0.170.0
type StoragePoolTypesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*StoragePoolTypesAggregatedListCall) Context ¶ added in v0.170.0
func (c *StoragePoolTypesAggregatedListCall) Context(ctx context.Context) *StoragePoolTypesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*StoragePoolTypesAggregatedListCall) Do ¶ added in v0.170.0
func (c *StoragePoolTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*StoragePoolTypeAggregatedList, error)
Do executes the "compute.storagePoolTypes.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *StoragePoolTypeAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StoragePoolTypesAggregatedListCall) Fields ¶ added in v0.170.0
func (c *StoragePoolTypesAggregatedListCall) Fields(s ...googleapi.Field) *StoragePoolTypesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*StoragePoolTypesAggregatedListCall) Filter ¶ added in v0.170.0
func (c *StoragePoolTypesAggregatedListCall) Filter(filter string) *StoragePoolTypesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*StoragePoolTypesAggregatedListCall) Header ¶ added in v0.170.0
func (c *StoragePoolTypesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*StoragePoolTypesAggregatedListCall) IfNoneMatch ¶ added in v0.170.0
func (c *StoragePoolTypesAggregatedListCall) IfNoneMatch(entityTag string) *StoragePoolTypesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*StoragePoolTypesAggregatedListCall) IncludeAllScopes ¶ added in v0.170.0
func (c *StoragePoolTypesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *StoragePoolTypesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*StoragePoolTypesAggregatedListCall) MaxResults ¶ added in v0.170.0
func (c *StoragePoolTypesAggregatedListCall) MaxResults(maxResults int64) *StoragePoolTypesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*StoragePoolTypesAggregatedListCall) OrderBy ¶ added in v0.170.0
func (c *StoragePoolTypesAggregatedListCall) OrderBy(orderBy string) *StoragePoolTypesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*StoragePoolTypesAggregatedListCall) PageToken ¶ added in v0.170.0
func (c *StoragePoolTypesAggregatedListCall) PageToken(pageToken string) *StoragePoolTypesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*StoragePoolTypesAggregatedListCall) Pages ¶ added in v0.170.0
func (c *StoragePoolTypesAggregatedListCall) Pages(ctx context.Context, f func(*StoragePoolTypeAggregatedList) 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 (*StoragePoolTypesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.170.0
func (c *StoragePoolTypesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *StoragePoolTypesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*StoragePoolTypesAggregatedListCall) ServiceProjectNumber ¶ added in v0.170.0
func (c *StoragePoolTypesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *StoragePoolTypesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type StoragePoolTypesGetCall ¶ added in v0.170.0
type StoragePoolTypesGetCall struct {
// contains filtered or unexported fields
}
func (*StoragePoolTypesGetCall) Context ¶ added in v0.170.0
func (c *StoragePoolTypesGetCall) Context(ctx context.Context) *StoragePoolTypesGetCall
Context sets the context to be used in this call's Do method.
func (*StoragePoolTypesGetCall) Do ¶ added in v0.170.0
func (c *StoragePoolTypesGetCall) Do(opts ...googleapi.CallOption) (*StoragePoolType, error)
Do executes the "compute.storagePoolTypes.get" call. Any non-2xx status code is an error. Response headers are in either *StoragePoolType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StoragePoolTypesGetCall) Fields ¶ added in v0.170.0
func (c *StoragePoolTypesGetCall) Fields(s ...googleapi.Field) *StoragePoolTypesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*StoragePoolTypesGetCall) Header ¶ added in v0.170.0
func (c *StoragePoolTypesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*StoragePoolTypesGetCall) IfNoneMatch ¶ added in v0.170.0
func (c *StoragePoolTypesGetCall) IfNoneMatch(entityTag string) *StoragePoolTypesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type StoragePoolTypesListCall ¶ added in v0.170.0
type StoragePoolTypesListCall struct {
// contains filtered or unexported fields
}
func (*StoragePoolTypesListCall) Context ¶ added in v0.170.0
func (c *StoragePoolTypesListCall) Context(ctx context.Context) *StoragePoolTypesListCall
Context sets the context to be used in this call's Do method.
func (*StoragePoolTypesListCall) Do ¶ added in v0.170.0
func (c *StoragePoolTypesListCall) Do(opts ...googleapi.CallOption) (*StoragePoolTypeList, error)
Do executes the "compute.storagePoolTypes.list" call. Any non-2xx status code is an error. Response headers are in either *StoragePoolTypeList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StoragePoolTypesListCall) Fields ¶ added in v0.170.0
func (c *StoragePoolTypesListCall) Fields(s ...googleapi.Field) *StoragePoolTypesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*StoragePoolTypesListCall) Filter ¶ added in v0.170.0
func (c *StoragePoolTypesListCall) Filter(filter string) *StoragePoolTypesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*StoragePoolTypesListCall) Header ¶ added in v0.170.0
func (c *StoragePoolTypesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*StoragePoolTypesListCall) IfNoneMatch ¶ added in v0.170.0
func (c *StoragePoolTypesListCall) IfNoneMatch(entityTag string) *StoragePoolTypesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*StoragePoolTypesListCall) MaxResults ¶ added in v0.170.0
func (c *StoragePoolTypesListCall) MaxResults(maxResults int64) *StoragePoolTypesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*StoragePoolTypesListCall) OrderBy ¶ added in v0.170.0
func (c *StoragePoolTypesListCall) OrderBy(orderBy string) *StoragePoolTypesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*StoragePoolTypesListCall) PageToken ¶ added in v0.170.0
func (c *StoragePoolTypesListCall) PageToken(pageToken string) *StoragePoolTypesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*StoragePoolTypesListCall) Pages ¶ added in v0.170.0
func (c *StoragePoolTypesListCall) Pages(ctx context.Context, f func(*StoragePoolTypeList) 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 (*StoragePoolTypesListCall) ReturnPartialSuccess ¶ added in v0.170.0
func (c *StoragePoolTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *StoragePoolTypesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type StoragePoolTypesScopedList ¶ added in v0.170.0
type StoragePoolTypesScopedList struct { // StoragePoolTypes: [Output Only] A list of storage pool types contained in // this scope. StoragePoolTypes []*StoragePoolType `json:"storagePoolTypes,omitempty"` // Warning: [Output Only] Informational warning which replaces the list of // storage pool types when the list is empty. Warning *StoragePoolTypesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "StoragePoolTypes") 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. "StoragePoolTypes") 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:"-"` }
func (StoragePoolTypesScopedList) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolTypesScopedList) MarshalJSON() ([]byte, error)
type StoragePoolTypesScopedListWarning ¶ added in v0.170.0
type StoragePoolTypesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*StoragePoolTypesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
StoragePoolTypesScopedListWarning: [Output Only] Informational warning which replaces the list of storage pool types when the list is empty.
func (StoragePoolTypesScopedListWarning) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolTypesScopedListWarning) MarshalJSON() ([]byte, error)
type StoragePoolTypesScopedListWarningData ¶ added in v0.170.0
type StoragePoolTypesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (StoragePoolTypesScopedListWarningData) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolTypesScopedListWarningData) MarshalJSON() ([]byte, error)
type StoragePoolTypesService ¶ added in v0.170.0
type StoragePoolTypesService struct {
// contains filtered or unexported fields
}
func NewStoragePoolTypesService ¶ added in v0.170.0
func NewStoragePoolTypesService(s *Service) *StoragePoolTypesService
func (*StoragePoolTypesService) AggregatedList ¶ added in v0.170.0
func (r *StoragePoolTypesService) AggregatedList(project string) *StoragePoolTypesAggregatedListCall
AggregatedList: Retrieves an aggregated list of storage pool types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*StoragePoolTypesService) Get ¶ added in v0.170.0
func (r *StoragePoolTypesService) Get(project string, zone string, storagePoolType string) *StoragePoolTypesGetCall
Get: Returns the specified storage pool type.
- project: Project ID for this request. - storagePoolType: Name of the storage pool type to return. - zone: The name of the zone for this request.
func (*StoragePoolTypesService) List ¶ added in v0.170.0
func (r *StoragePoolTypesService) List(project string, zone string) *StoragePoolTypesListCall
List: Retrieves a list of storage pool types available to the specified project.
- project: Project ID for this request. - zone: The name of the zone for this request.
type StoragePoolsAggregatedListCall ¶ added in v0.170.0
type StoragePoolsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*StoragePoolsAggregatedListCall) Context ¶ added in v0.170.0
func (c *StoragePoolsAggregatedListCall) Context(ctx context.Context) *StoragePoolsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*StoragePoolsAggregatedListCall) Do ¶ added in v0.170.0
func (c *StoragePoolsAggregatedListCall) Do(opts ...googleapi.CallOption) (*StoragePoolAggregatedList, error)
Do executes the "compute.storagePools.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *StoragePoolAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StoragePoolsAggregatedListCall) Fields ¶ added in v0.170.0
func (c *StoragePoolsAggregatedListCall) Fields(s ...googleapi.Field) *StoragePoolsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*StoragePoolsAggregatedListCall) Filter ¶ added in v0.170.0
func (c *StoragePoolsAggregatedListCall) Filter(filter string) *StoragePoolsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*StoragePoolsAggregatedListCall) Header ¶ added in v0.170.0
func (c *StoragePoolsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*StoragePoolsAggregatedListCall) IfNoneMatch ¶ added in v0.170.0
func (c *StoragePoolsAggregatedListCall) IfNoneMatch(entityTag string) *StoragePoolsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*StoragePoolsAggregatedListCall) IncludeAllScopes ¶ added in v0.170.0
func (c *StoragePoolsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *StoragePoolsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*StoragePoolsAggregatedListCall) MaxResults ¶ added in v0.170.0
func (c *StoragePoolsAggregatedListCall) MaxResults(maxResults int64) *StoragePoolsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*StoragePoolsAggregatedListCall) OrderBy ¶ added in v0.170.0
func (c *StoragePoolsAggregatedListCall) OrderBy(orderBy string) *StoragePoolsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*StoragePoolsAggregatedListCall) PageToken ¶ added in v0.170.0
func (c *StoragePoolsAggregatedListCall) PageToken(pageToken string) *StoragePoolsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*StoragePoolsAggregatedListCall) Pages ¶ added in v0.170.0
func (c *StoragePoolsAggregatedListCall) Pages(ctx context.Context, f func(*StoragePoolAggregatedList) 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 (*StoragePoolsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.170.0
func (c *StoragePoolsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *StoragePoolsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*StoragePoolsAggregatedListCall) ServiceProjectNumber ¶ added in v0.170.0
func (c *StoragePoolsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *StoragePoolsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type StoragePoolsDeleteCall ¶ added in v0.170.0
type StoragePoolsDeleteCall struct {
// contains filtered or unexported fields
}
func (*StoragePoolsDeleteCall) Context ¶ added in v0.170.0
func (c *StoragePoolsDeleteCall) Context(ctx context.Context) *StoragePoolsDeleteCall
Context sets the context to be used in this call's Do method.
func (*StoragePoolsDeleteCall) Do ¶ added in v0.170.0
func (c *StoragePoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.storagePools.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StoragePoolsDeleteCall) Fields ¶ added in v0.170.0
func (c *StoragePoolsDeleteCall) Fields(s ...googleapi.Field) *StoragePoolsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*StoragePoolsDeleteCall) Header ¶ added in v0.170.0
func (c *StoragePoolsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*StoragePoolsDeleteCall) RequestId ¶ added in v0.170.0
func (c *StoragePoolsDeleteCall) RequestId(requestId string) *StoragePoolsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type StoragePoolsGetCall ¶ added in v0.170.0
type StoragePoolsGetCall struct {
// contains filtered or unexported fields
}
func (*StoragePoolsGetCall) Context ¶ added in v0.170.0
func (c *StoragePoolsGetCall) Context(ctx context.Context) *StoragePoolsGetCall
Context sets the context to be used in this call's Do method.
func (*StoragePoolsGetCall) Do ¶ added in v0.170.0
func (c *StoragePoolsGetCall) Do(opts ...googleapi.CallOption) (*StoragePool, error)
Do executes the "compute.storagePools.get" call. Any non-2xx status code is an error. Response headers are in either *StoragePool.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StoragePoolsGetCall) Fields ¶ added in v0.170.0
func (c *StoragePoolsGetCall) Fields(s ...googleapi.Field) *StoragePoolsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*StoragePoolsGetCall) Header ¶ added in v0.170.0
func (c *StoragePoolsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*StoragePoolsGetCall) IfNoneMatch ¶ added in v0.170.0
func (c *StoragePoolsGetCall) IfNoneMatch(entityTag string) *StoragePoolsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type StoragePoolsGetIamPolicyCall ¶ added in v0.170.0
type StoragePoolsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*StoragePoolsGetIamPolicyCall) Context ¶ added in v0.170.0
func (c *StoragePoolsGetIamPolicyCall) Context(ctx context.Context) *StoragePoolsGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*StoragePoolsGetIamPolicyCall) Do ¶ added in v0.170.0
func (c *StoragePoolsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.storagePools.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StoragePoolsGetIamPolicyCall) Fields ¶ added in v0.170.0
func (c *StoragePoolsGetIamPolicyCall) Fields(s ...googleapi.Field) *StoragePoolsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*StoragePoolsGetIamPolicyCall) Header ¶ added in v0.170.0
func (c *StoragePoolsGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*StoragePoolsGetIamPolicyCall) IfNoneMatch ¶ added in v0.170.0
func (c *StoragePoolsGetIamPolicyCall) IfNoneMatch(entityTag string) *StoragePoolsGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*StoragePoolsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.170.0
func (c *StoragePoolsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *StoragePoolsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type StoragePoolsInsertCall ¶ added in v0.170.0
type StoragePoolsInsertCall struct {
// contains filtered or unexported fields
}
func (*StoragePoolsInsertCall) Context ¶ added in v0.170.0
func (c *StoragePoolsInsertCall) Context(ctx context.Context) *StoragePoolsInsertCall
Context sets the context to be used in this call's Do method.
func (*StoragePoolsInsertCall) Do ¶ added in v0.170.0
func (c *StoragePoolsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.storagePools.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StoragePoolsInsertCall) Fields ¶ added in v0.170.0
func (c *StoragePoolsInsertCall) Fields(s ...googleapi.Field) *StoragePoolsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*StoragePoolsInsertCall) Header ¶ added in v0.170.0
func (c *StoragePoolsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*StoragePoolsInsertCall) RequestId ¶ added in v0.170.0
func (c *StoragePoolsInsertCall) RequestId(requestId string) *StoragePoolsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type StoragePoolsListCall ¶ added in v0.170.0
type StoragePoolsListCall struct {
// contains filtered or unexported fields
}
func (*StoragePoolsListCall) Context ¶ added in v0.170.0
func (c *StoragePoolsListCall) Context(ctx context.Context) *StoragePoolsListCall
Context sets the context to be used in this call's Do method.
func (*StoragePoolsListCall) Do ¶ added in v0.170.0
func (c *StoragePoolsListCall) Do(opts ...googleapi.CallOption) (*StoragePoolList, error)
Do executes the "compute.storagePools.list" call. Any non-2xx status code is an error. Response headers are in either *StoragePoolList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StoragePoolsListCall) Fields ¶ added in v0.170.0
func (c *StoragePoolsListCall) Fields(s ...googleapi.Field) *StoragePoolsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*StoragePoolsListCall) Filter ¶ added in v0.170.0
func (c *StoragePoolsListCall) Filter(filter string) *StoragePoolsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*StoragePoolsListCall) Header ¶ added in v0.170.0
func (c *StoragePoolsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*StoragePoolsListCall) IfNoneMatch ¶ added in v0.170.0
func (c *StoragePoolsListCall) IfNoneMatch(entityTag string) *StoragePoolsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*StoragePoolsListCall) MaxResults ¶ added in v0.170.0
func (c *StoragePoolsListCall) MaxResults(maxResults int64) *StoragePoolsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*StoragePoolsListCall) OrderBy ¶ added in v0.170.0
func (c *StoragePoolsListCall) OrderBy(orderBy string) *StoragePoolsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*StoragePoolsListCall) PageToken ¶ added in v0.170.0
func (c *StoragePoolsListCall) PageToken(pageToken string) *StoragePoolsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*StoragePoolsListCall) Pages ¶ added in v0.170.0
func (c *StoragePoolsListCall) Pages(ctx context.Context, f func(*StoragePoolList) 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 (*StoragePoolsListCall) ReturnPartialSuccess ¶ added in v0.170.0
func (c *StoragePoolsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *StoragePoolsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type StoragePoolsListDisksCall ¶ added in v0.170.0
type StoragePoolsListDisksCall struct {
// contains filtered or unexported fields
}
func (*StoragePoolsListDisksCall) Context ¶ added in v0.170.0
func (c *StoragePoolsListDisksCall) Context(ctx context.Context) *StoragePoolsListDisksCall
Context sets the context to be used in this call's Do method.
func (*StoragePoolsListDisksCall) Do ¶ added in v0.170.0
func (c *StoragePoolsListDisksCall) Do(opts ...googleapi.CallOption) (*StoragePoolListDisks, error)
Do executes the "compute.storagePools.listDisks" call. Any non-2xx status code is an error. Response headers are in either *StoragePoolListDisks.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StoragePoolsListDisksCall) Fields ¶ added in v0.170.0
func (c *StoragePoolsListDisksCall) Fields(s ...googleapi.Field) *StoragePoolsListDisksCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*StoragePoolsListDisksCall) Filter ¶ added in v0.170.0
func (c *StoragePoolsListDisksCall) Filter(filter string) *StoragePoolsListDisksCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*StoragePoolsListDisksCall) Header ¶ added in v0.170.0
func (c *StoragePoolsListDisksCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*StoragePoolsListDisksCall) IfNoneMatch ¶ added in v0.170.0
func (c *StoragePoolsListDisksCall) IfNoneMatch(entityTag string) *StoragePoolsListDisksCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*StoragePoolsListDisksCall) MaxResults ¶ added in v0.170.0
func (c *StoragePoolsListDisksCall) MaxResults(maxResults int64) *StoragePoolsListDisksCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*StoragePoolsListDisksCall) OrderBy ¶ added in v0.170.0
func (c *StoragePoolsListDisksCall) OrderBy(orderBy string) *StoragePoolsListDisksCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*StoragePoolsListDisksCall) PageToken ¶ added in v0.170.0
func (c *StoragePoolsListDisksCall) PageToken(pageToken string) *StoragePoolsListDisksCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*StoragePoolsListDisksCall) Pages ¶ added in v0.170.0
func (c *StoragePoolsListDisksCall) Pages(ctx context.Context, f func(*StoragePoolListDisks) 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 (*StoragePoolsListDisksCall) ReturnPartialSuccess ¶ added in v0.170.0
func (c *StoragePoolsListDisksCall) ReturnPartialSuccess(returnPartialSuccess bool) *StoragePoolsListDisksCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type StoragePoolsScopedList ¶ added in v0.170.0
type StoragePoolsScopedList struct { // StoragePools: [Output Only] A list of storage pool contained in this scope. StoragePools []*StoragePool `json:"storagePools,omitempty"` // Warning: [Output Only] Informational warning which replaces the list of // storage pool when the list is empty. Warning *StoragePoolsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "StoragePools") 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. "StoragePools") 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:"-"` }
func (StoragePoolsScopedList) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolsScopedList) MarshalJSON() ([]byte, error)
type StoragePoolsScopedListWarning ¶ added in v0.170.0
type StoragePoolsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*StoragePoolsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
StoragePoolsScopedListWarning: [Output Only] Informational warning which replaces the list of storage pool when the list is empty.
func (StoragePoolsScopedListWarning) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolsScopedListWarning) MarshalJSON() ([]byte, error)
type StoragePoolsScopedListWarningData ¶ added in v0.170.0
type StoragePoolsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (StoragePoolsScopedListWarningData) MarshalJSON ¶ added in v0.170.0
func (s StoragePoolsScopedListWarningData) MarshalJSON() ([]byte, error)
type StoragePoolsService ¶ added in v0.170.0
type StoragePoolsService struct {
// contains filtered or unexported fields
}
func NewStoragePoolsService ¶ added in v0.170.0
func NewStoragePoolsService(s *Service) *StoragePoolsService
func (*StoragePoolsService) AggregatedList ¶ added in v0.170.0
func (r *StoragePoolsService) AggregatedList(project string) *StoragePoolsAggregatedListCall
AggregatedList: Retrieves an aggregated list of storage pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*StoragePoolsService) Delete ¶ added in v0.170.0
func (r *StoragePoolsService) Delete(project string, zone string, storagePool string) *StoragePoolsDeleteCall
Delete: Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is irreversible. However, deleting a storagePool does not delete any snapshots previously made from the storagePool. You must separately delete snapshots.
- project: Project ID for this request. - storagePool: Name of the storage pool to delete. - zone: The name of the zone for this request.
func (*StoragePoolsService) Get ¶ added in v0.170.0
func (r *StoragePoolsService) Get(project string, zone string, storagePool string) *StoragePoolsGetCall
Get: Returns a specified storage pool. Gets a list of available storage pools by making a list() request.
- project: Project ID for this request. - storagePool: Name of the storage pool to return. - zone: The name of the zone for this request.
func (*StoragePoolsService) GetIamPolicy ¶ added in v0.170.0
func (r *StoragePoolsService) GetIamPolicy(project string, zone string, resource string) *StoragePoolsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*StoragePoolsService) Insert ¶ added in v0.170.0
func (r *StoragePoolsService) Insert(project string, zone string, storagepool *StoragePool) *StoragePoolsInsertCall
Insert: Creates a storage pool in the specified project using the data in the request.
- project: Project ID for this request. - zone: The name of the zone for this request.
func (*StoragePoolsService) List ¶ added in v0.170.0
func (r *StoragePoolsService) List(project string, zone string) *StoragePoolsListCall
List: Retrieves a list of storage pools contained within the specified zone.
- project: Project ID for this request. - zone: The name of the zone for this request.
func (*StoragePoolsService) ListDisks ¶ added in v0.170.0
func (r *StoragePoolsService) ListDisks(project string, zone string, storagePool string) *StoragePoolsListDisksCall
ListDisks: Lists the disks in a specified storage pool.
- project: Project ID for this request. - storagePool: Name of the storage pool to list disks of. - zone: The name of the zone for this request.
func (*StoragePoolsService) SetIamPolicy ¶ added in v0.170.0
func (r *StoragePoolsService) SetIamPolicy(project string, zone string, resource string, zonesetpolicyrequest *ZoneSetPolicyRequest) *StoragePoolsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*StoragePoolsService) TestIamPermissions ¶ added in v0.170.0
func (r *StoragePoolsService) TestIamPermissions(project string, zone string, resource string, testpermissionsrequest *TestPermissionsRequest) *StoragePoolsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - resource: Name or id of the resource for this request. - zone: The name of the zone for this request.
func (*StoragePoolsService) Update ¶ added in v0.170.0
func (r *StoragePoolsService) Update(project string, zone string, storagePool string, storagepool *StoragePool) *StoragePoolsUpdateCall
Update: Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: pool_provisioned_capacity_gb, pool_provisioned_iops and pool_provisioned_throughput.
- project: Project ID for this request. - storagePool: The storagePool name for this request. - zone: The name of the zone for this request.
type StoragePoolsSetIamPolicyCall ¶ added in v0.170.0
type StoragePoolsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*StoragePoolsSetIamPolicyCall) Context ¶ added in v0.170.0
func (c *StoragePoolsSetIamPolicyCall) Context(ctx context.Context) *StoragePoolsSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*StoragePoolsSetIamPolicyCall) Do ¶ added in v0.170.0
func (c *StoragePoolsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.storagePools.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StoragePoolsSetIamPolicyCall) Fields ¶ added in v0.170.0
func (c *StoragePoolsSetIamPolicyCall) Fields(s ...googleapi.Field) *StoragePoolsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*StoragePoolsSetIamPolicyCall) Header ¶ added in v0.170.0
func (c *StoragePoolsSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type StoragePoolsTestIamPermissionsCall ¶ added in v0.170.0
type StoragePoolsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*StoragePoolsTestIamPermissionsCall) Context ¶ added in v0.170.0
func (c *StoragePoolsTestIamPermissionsCall) Context(ctx context.Context) *StoragePoolsTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*StoragePoolsTestIamPermissionsCall) Do ¶ added in v0.170.0
func (c *StoragePoolsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.storagePools.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StoragePoolsTestIamPermissionsCall) Fields ¶ added in v0.170.0
func (c *StoragePoolsTestIamPermissionsCall) Fields(s ...googleapi.Field) *StoragePoolsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*StoragePoolsTestIamPermissionsCall) Header ¶ added in v0.170.0
func (c *StoragePoolsTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type StoragePoolsUpdateCall ¶ added in v0.170.0
type StoragePoolsUpdateCall struct {
// contains filtered or unexported fields
}
func (*StoragePoolsUpdateCall) Context ¶ added in v0.170.0
func (c *StoragePoolsUpdateCall) Context(ctx context.Context) *StoragePoolsUpdateCall
Context sets the context to be used in this call's Do method.
func (*StoragePoolsUpdateCall) Do ¶ added in v0.170.0
func (c *StoragePoolsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.storagePools.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StoragePoolsUpdateCall) Fields ¶ added in v0.170.0
func (c *StoragePoolsUpdateCall) Fields(s ...googleapi.Field) *StoragePoolsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*StoragePoolsUpdateCall) Header ¶ added in v0.170.0
func (c *StoragePoolsUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*StoragePoolsUpdateCall) RequestId ¶ added in v0.170.0
func (c *StoragePoolsUpdateCall) RequestId(requestId string) *StoragePoolsUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
func (*StoragePoolsUpdateCall) UpdateMask ¶ added in v0.170.0
func (c *StoragePoolsUpdateCall) UpdateMask(updateMask string) *StoragePoolsUpdateCall
UpdateMask sets the optional parameter "updateMask": update_mask indicates fields to be updated as part of this request.
type Subnetwork ¶
type Subnetwork struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. This field can be set only at resource // creation time. Description string `json:"description,omitempty"` // EnableFlowLogs: Whether to enable flow logging for this subnetwork. If this // field is not explicitly set, it will not appear in get listings. If not set // the default behavior is determined by the org policy, if there is no org // policy specified, then it will default to disabled. This field isn't // supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. EnableFlowLogs bool `json:"enableFlowLogs,omitempty"` // ExternalIpv6Prefix: The external IPv6 address range that is owned by this // subnetwork. ExternalIpv6Prefix string `json:"externalIpv6Prefix,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents stored in // this object. This field is used in optimistic locking. This field will be // ignored when inserting a Subnetwork. An up-to-date fingerprint must be // provided in order to update the Subnetwork, otherwise the request will fail // with error 412 conditionNotMet. To see the latest fingerprint, make a get() // request to retrieve a Subnetwork. Fingerprint string `json:"fingerprint,omitempty"` // GatewayAddress: [Output Only] The gateway address for default routes to // reach destination addresses outside this subnetwork. GatewayAddress string `json:"gatewayAddress,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // InternalIpv6Prefix: The internal IPv6 address range that is owned by this // subnetwork. InternalIpv6Prefix string `json:"internalIpv6Prefix,omitempty"` // IpCidrRange: The range of internal addresses that are owned by this // subnetwork. Provide this property when you create the subnetwork. For // example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and // non-overlapping within a network. Only IPv4 is supported. This field is set // at resource creation time. The range can be any range listed in the Valid // ranges list. The range can be expanded after creation using // expandIpCidrRange. IpCidrRange string `json:"ipCidrRange,omitempty"` // Ipv6AccessType: The access type of IPv6 address this subnet holds. It's // immutable and can only be specified during creation or the first time the // subnet is updated into IPV4_IPV6 dual stack. // // Possible values: // "EXTERNAL" - VMs on this subnet will be assigned IPv6 addresses that are // accessible via the Internet, as well as the VPC network. // "INTERNAL" - VMs on this subnet will be assigned IPv6 addresses that are // only accessible over the VPC network. Ipv6AccessType string `json:"ipv6AccessType,omitempty"` // Ipv6CidrRange: [Output Only] This field is for internal use. Ipv6CidrRange string `json:"ipv6CidrRange,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#subnetwork for // Subnetwork resources. Kind string `json:"kind,omitempty"` // LogConfig: This field denotes the VPC flow logging options for this // subnetwork. If logging is enabled, logs are exported to Cloud Logging. LogConfig *SubnetworkLogConfig `json:"logConfig,omitempty"` // Name: The name of the resource, provided by the client when initially // creating the resource. The name must be 1-63 characters long, and comply // with RFC1035. Specifically, the name must be 1-63 characters long and match // the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first // character must be a lowercase letter, and all following characters must be a // dash, lowercase letter, or digit, except the last character, which cannot be // a dash. Name string `json:"name,omitempty"` // Network: The URL of the network to which this subnetwork belongs, provided // by the client when initially creating the subnetwork. This field can be set // only at resource creation time. Network string `json:"network,omitempty"` // PrivateIpGoogleAccess: Whether the VMs in this subnet can access Google // services without assigned external IP addresses. This field can be both set // at resource creation time and updated using setPrivateIpGoogleAccess. PrivateIpGoogleAccess bool `json:"privateIpGoogleAccess,omitempty"` // PrivateIpv6GoogleAccess: This field is for internal use. This field can be // both set at resource creation time and updated using patch. // // Possible values: // "DISABLE_GOOGLE_ACCESS" - Disable private IPv6 access to/from Google // services. // "ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE" - Bidirectional private IPv6 // access to/from Google services. // "ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE" - Outbound private IPv6 access from // VMs in this subnet to Google services. PrivateIpv6GoogleAccess string `json:"privateIpv6GoogleAccess,omitempty"` // Purpose: The purpose of the resource. This field can be either PRIVATE, // GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or // PRIVATE is the default purpose for user-created subnets or subnets that are // automatically created in auto mode networks. Subnets with purpose set to // GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks // that are reserved for Envoy-based load balancers. A subnet with purpose set // to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service // Connect. If unspecified, the subnet purpose defaults to PRIVATE. The // enableFlowLogs field isn't supported if the subnet purpose field is set to // GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. // // Possible values: // "GLOBAL_MANAGED_PROXY" - Subnet reserved for Global Envoy-based Load // Balancing. // "INTERNAL_HTTPS_LOAD_BALANCER" - Subnet reserved for Internal HTTP(S) Load // Balancing. This is a legacy purpose, please use REGIONAL_MANAGED_PROXY // instead. // "PRIVATE" - Regular user created or automatically created subnet. // "PRIVATE_NAT" - Subnetwork used as source range for Private NAT Gateways. // "PRIVATE_RFC_1918" - Regular user created or automatically created subnet. // "PRIVATE_SERVICE_CONNECT" - Subnetworks created for Private Service // Connect in the producer network. // "REGIONAL_MANAGED_PROXY" - Subnetwork used for Regional Envoy-based Load // Balancing. Purpose string `json:"purpose,omitempty"` // Region: URL of the region where the Subnetwork resides. This field can be // set only at resource creation time. Region string `json:"region,omitempty"` // ReservedInternalRange: The URL of the reserved internal range. ReservedInternalRange string `json:"reservedInternalRange,omitempty"` // Role: The role of subnetwork. Currently, this field is only used when // purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value // can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is // currently being used for Envoy-based load balancers in a region. A BACKUP // subnetwork is one that is ready to be promoted to ACTIVE or is currently // draining. This field can be updated with a patch request. // // Possible values: // "ACTIVE" - The ACTIVE subnet that is currently used. // "BACKUP" - The BACKUP subnet that could be promoted to ACTIVE. Role string `json:"role,omitempty"` // SecondaryIpRanges: An array of configurations for secondary IP ranges for VM // instances contained in this subnetwork. The primary IP of such VM must // belong to the primary ipCidrRange of the subnetwork. The alias IPs may // belong to either primary or secondary ranges. This field can be updated with // a patch request. SecondaryIpRanges []*SubnetworkSecondaryRange `json:"secondaryIpRanges,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // StackType: The stack type for the subnet. If set to IPV4_ONLY, new VMs in // the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in // the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, // IPV4_ONLY is used. This field can be both set at resource creation time and // updated using patch. // // Possible values: // "IPV4_IPV6" - New VMs in this subnet can have both IPv4 and IPv6 // addresses. // "IPV4_ONLY" - New VMs in this subnet will only be assigned IPv4 addresses. StackType string `json:"stackType,omitempty"` // State: [Output Only] The state of the subnetwork, which can be one of the // following values: READY: Subnetwork is created and ready to use DRAINING: // only applicable to subnetworks that have the purpose set to // INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load // balancer are being drained. A subnetwork that is draining cannot be used or // modified until it reaches a status of READY // // Possible values: // "DRAINING" - Subnetwork is being drained. // "READY" - Subnetwork is ready for use. State string `json:"state,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
Subnetwork: Represents a Subnetwork resource. A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read Virtual Private Cloud (VPC) Network.
func (Subnetwork) MarshalJSON ¶
func (s Subnetwork) MarshalJSON() ([]byte, error)
type SubnetworkAggregatedList ¶
type SubnetworkAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of SubnetworksScopedList resources. Items map[string]SubnetworksScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#subnetworkAggregatedList for aggregated lists of subnetworks. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *SubnetworkAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (SubnetworkAggregatedList) MarshalJSON ¶
func (s SubnetworkAggregatedList) MarshalJSON() ([]byte, error)
type SubnetworkAggregatedListWarning ¶
type SubnetworkAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*SubnetworkAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
SubnetworkAggregatedListWarning: [Output Only] Informational warning message.
func (SubnetworkAggregatedListWarning) MarshalJSON ¶
func (s SubnetworkAggregatedListWarning) MarshalJSON() ([]byte, error)
type SubnetworkAggregatedListWarningData ¶
type SubnetworkAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (SubnetworkAggregatedListWarningData) MarshalJSON ¶
func (s SubnetworkAggregatedListWarningData) MarshalJSON() ([]byte, error)
type SubnetworkList ¶
type SubnetworkList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Subnetwork resources. Items []*Subnetwork `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#subnetworkList for // lists of subnetworks. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *SubnetworkListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
SubnetworkList: Contains a list of Subnetwork resources.
func (SubnetworkList) MarshalJSON ¶
func (s SubnetworkList) MarshalJSON() ([]byte, error)
type SubnetworkListWarning ¶
type SubnetworkListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*SubnetworkListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
SubnetworkListWarning: [Output Only] Informational warning message.
func (SubnetworkListWarning) MarshalJSON ¶
func (s SubnetworkListWarning) MarshalJSON() ([]byte, error)
type SubnetworkListWarningData ¶
type SubnetworkListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (SubnetworkListWarningData) MarshalJSON ¶
func (s SubnetworkListWarningData) MarshalJSON() ([]byte, error)
type SubnetworkLogConfig ¶ added in v0.11.0
type SubnetworkLogConfig struct { // AggregationInterval: Can only be specified if VPC flow logging for this // subnetwork is enabled. Toggles the aggregation interval for collecting flow // logs. Increasing the interval time will reduce the amount of generated flow // logs for long lasting connections. Default is an interval of 5 seconds per // connection. // // Possible values: // "INTERVAL_10_MIN" // "INTERVAL_15_MIN" // "INTERVAL_1_MIN" // "INTERVAL_30_SEC" // "INTERVAL_5_MIN" // "INTERVAL_5_SEC" AggregationInterval string `json:"aggregationInterval,omitempty"` // Enable: Whether to enable flow logging for this subnetwork. If this field is // not explicitly set, it will not appear in get listings. If not set the // default behavior is determined by the org policy, if there is no org policy // specified, then it will default to disabled. Flow logging isn't supported if // the subnet purpose field is set to REGIONAL_MANAGED_PROXY. Enable bool `json:"enable,omitempty"` // FilterExpr: Can only be specified if VPC flow logs for this subnetwork is // enabled. The filter expression is used to define which VPC flow logs should // be exported to Cloud Logging. FilterExpr string `json:"filterExpr,omitempty"` // FlowSampling: Can only be specified if VPC flow logging for this subnetwork // is enabled. The value of the field must be in [0, 1]. Set the sampling rate // of VPC flow logs within the subnetwork where 1.0 means all collected logs // are reported and 0.0 means no logs are reported. Default is 0.5 unless // otherwise specified by the org policy, which means half of all collected // logs are reported. FlowSampling float64 `json:"flowSampling,omitempty"` // Metadata: Can only be specified if VPC flow logs for this subnetwork is // enabled. Configures whether all, none or a subset of metadata fields should // be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA. // // Possible values: // "CUSTOM_METADATA" // "EXCLUDE_ALL_METADATA" // "INCLUDE_ALL_METADATA" Metadata string `json:"metadata,omitempty"` // MetadataFields: Can only be specified if VPC flow logs for this subnetwork // is enabled and "metadata" was set to CUSTOM_METADATA. MetadataFields []string `json:"metadataFields,omitempty"` // ForceSendFields is a list of field names (e.g. "AggregationInterval") 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. "AggregationInterval") 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:"-"` }
SubnetworkLogConfig: The available logging options for this subnetwork.
func (SubnetworkLogConfig) MarshalJSON ¶ added in v0.11.0
func (s SubnetworkLogConfig) MarshalJSON() ([]byte, error)
func (*SubnetworkLogConfig) UnmarshalJSON ¶ added in v0.11.0
func (s *SubnetworkLogConfig) UnmarshalJSON(data []byte) error
type SubnetworkSecondaryRange ¶
type SubnetworkSecondaryRange struct { // IpCidrRange: The range of IP addresses belonging to this subnetwork // secondary range. Provide this property when you create the subnetwork. // Ranges must be unique and non-overlapping with all primary and secondary IP // ranges within a network. Only IPv4 is supported. The range can be any range // listed in the Valid ranges list. IpCidrRange string `json:"ipCidrRange,omitempty"` // RangeName: The name associated with this subnetwork secondary range, used // when adding an alias IP range to a VM instance. The name must be 1-63 // characters long, and comply with RFC1035. The name must be unique within the // subnetwork. RangeName string `json:"rangeName,omitempty"` // ReservedInternalRange: The URL of the reserved internal range. ReservedInternalRange string `json:"reservedInternalRange,omitempty"` // ForceSendFields is a list of field names (e.g. "IpCidrRange") 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. "IpCidrRange") 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:"-"` }
SubnetworkSecondaryRange: Represents a secondary IP range of a subnetwork.
func (SubnetworkSecondaryRange) MarshalJSON ¶
func (s SubnetworkSecondaryRange) MarshalJSON() ([]byte, error)
type SubnetworksAggregatedListCall ¶
type SubnetworksAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*SubnetworksAggregatedListCall) Context ¶
func (c *SubnetworksAggregatedListCall) Context(ctx context.Context) *SubnetworksAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*SubnetworksAggregatedListCall) Do ¶
func (c *SubnetworksAggregatedListCall) Do(opts ...googleapi.CallOption) (*SubnetworkAggregatedList, error)
Do executes the "compute.subnetworks.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *SubnetworkAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SubnetworksAggregatedListCall) Fields ¶
func (c *SubnetworksAggregatedListCall) Fields(s ...googleapi.Field) *SubnetworksAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SubnetworksAggregatedListCall) Filter ¶
func (c *SubnetworksAggregatedListCall) Filter(filter string) *SubnetworksAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*SubnetworksAggregatedListCall) Header ¶
func (c *SubnetworksAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SubnetworksAggregatedListCall) IfNoneMatch ¶
func (c *SubnetworksAggregatedListCall) IfNoneMatch(entityTag string) *SubnetworksAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*SubnetworksAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *SubnetworksAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *SubnetworksAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*SubnetworksAggregatedListCall) MaxResults ¶
func (c *SubnetworksAggregatedListCall) MaxResults(maxResults int64) *SubnetworksAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*SubnetworksAggregatedListCall) OrderBy ¶
func (c *SubnetworksAggregatedListCall) OrderBy(orderBy string) *SubnetworksAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*SubnetworksAggregatedListCall) PageToken ¶
func (c *SubnetworksAggregatedListCall) PageToken(pageToken string) *SubnetworksAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*SubnetworksAggregatedListCall) Pages ¶
func (c *SubnetworksAggregatedListCall) Pages(ctx context.Context, f func(*SubnetworkAggregatedList) 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 (*SubnetworksAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *SubnetworksAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SubnetworksAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*SubnetworksAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *SubnetworksAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *SubnetworksAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type SubnetworksDeleteCall ¶
type SubnetworksDeleteCall struct {
// contains filtered or unexported fields
}
func (*SubnetworksDeleteCall) Context ¶
func (c *SubnetworksDeleteCall) Context(ctx context.Context) *SubnetworksDeleteCall
Context sets the context to be used in this call's Do method.
func (*SubnetworksDeleteCall) Do ¶
func (c *SubnetworksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.subnetworks.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SubnetworksDeleteCall) Fields ¶
func (c *SubnetworksDeleteCall) Fields(s ...googleapi.Field) *SubnetworksDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SubnetworksDeleteCall) Header ¶
func (c *SubnetworksDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SubnetworksDeleteCall) RequestId ¶
func (c *SubnetworksDeleteCall) RequestId(requestId string) *SubnetworksDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type SubnetworksExpandIpCidrRangeCall ¶
type SubnetworksExpandIpCidrRangeCall struct {
// contains filtered or unexported fields
}
func (*SubnetworksExpandIpCidrRangeCall) Context ¶
func (c *SubnetworksExpandIpCidrRangeCall) Context(ctx context.Context) *SubnetworksExpandIpCidrRangeCall
Context sets the context to be used in this call's Do method.
func (*SubnetworksExpandIpCidrRangeCall) Do ¶
func (c *SubnetworksExpandIpCidrRangeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.subnetworks.expandIpCidrRange" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SubnetworksExpandIpCidrRangeCall) Fields ¶
func (c *SubnetworksExpandIpCidrRangeCall) Fields(s ...googleapi.Field) *SubnetworksExpandIpCidrRangeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SubnetworksExpandIpCidrRangeCall) Header ¶
func (c *SubnetworksExpandIpCidrRangeCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SubnetworksExpandIpCidrRangeCall) RequestId ¶
func (c *SubnetworksExpandIpCidrRangeCall) RequestId(requestId string) *SubnetworksExpandIpCidrRangeCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type SubnetworksExpandIpCidrRangeRequest ¶
type SubnetworksExpandIpCidrRangeRequest struct { // IpCidrRange: The IP (in CIDR format or netmask) of internal addresses that // are legal on this Subnetwork. This range should be disjoint from other // subnetworks within this network. This range can only be larger than (i.e. a // superset of) the range previously defined before the update. IpCidrRange string `json:"ipCidrRange,omitempty"` // ForceSendFields is a list of field names (e.g. "IpCidrRange") 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. "IpCidrRange") 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:"-"` }
func (SubnetworksExpandIpCidrRangeRequest) MarshalJSON ¶
func (s SubnetworksExpandIpCidrRangeRequest) MarshalJSON() ([]byte, error)
type SubnetworksGetCall ¶
type SubnetworksGetCall struct {
// contains filtered or unexported fields
}
func (*SubnetworksGetCall) Context ¶
func (c *SubnetworksGetCall) Context(ctx context.Context) *SubnetworksGetCall
Context sets the context to be used in this call's Do method.
func (*SubnetworksGetCall) Do ¶
func (c *SubnetworksGetCall) Do(opts ...googleapi.CallOption) (*Subnetwork, error)
Do executes the "compute.subnetworks.get" call. Any non-2xx status code is an error. Response headers are in either *Subnetwork.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SubnetworksGetCall) Fields ¶
func (c *SubnetworksGetCall) Fields(s ...googleapi.Field) *SubnetworksGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SubnetworksGetCall) Header ¶
func (c *SubnetworksGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SubnetworksGetCall) IfNoneMatch ¶
func (c *SubnetworksGetCall) IfNoneMatch(entityTag string) *SubnetworksGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type SubnetworksGetIamPolicyCall ¶
type SubnetworksGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*SubnetworksGetIamPolicyCall) Context ¶
func (c *SubnetworksGetIamPolicyCall) Context(ctx context.Context) *SubnetworksGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*SubnetworksGetIamPolicyCall) Do ¶
func (c *SubnetworksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.subnetworks.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SubnetworksGetIamPolicyCall) Fields ¶
func (c *SubnetworksGetIamPolicyCall) Fields(s ...googleapi.Field) *SubnetworksGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SubnetworksGetIamPolicyCall) Header ¶
func (c *SubnetworksGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SubnetworksGetIamPolicyCall) IfNoneMatch ¶
func (c *SubnetworksGetIamPolicyCall) IfNoneMatch(entityTag string) *SubnetworksGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*SubnetworksGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.30.0
func (c *SubnetworksGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *SubnetworksGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type SubnetworksInsertCall ¶
type SubnetworksInsertCall struct {
// contains filtered or unexported fields
}
func (*SubnetworksInsertCall) Context ¶
func (c *SubnetworksInsertCall) Context(ctx context.Context) *SubnetworksInsertCall
Context sets the context to be used in this call's Do method.
func (*SubnetworksInsertCall) Do ¶
func (c *SubnetworksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.subnetworks.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SubnetworksInsertCall) Fields ¶
func (c *SubnetworksInsertCall) Fields(s ...googleapi.Field) *SubnetworksInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SubnetworksInsertCall) Header ¶
func (c *SubnetworksInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SubnetworksInsertCall) RequestId ¶
func (c *SubnetworksInsertCall) RequestId(requestId string) *SubnetworksInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type SubnetworksListCall ¶
type SubnetworksListCall struct {
// contains filtered or unexported fields
}
func (*SubnetworksListCall) Context ¶
func (c *SubnetworksListCall) Context(ctx context.Context) *SubnetworksListCall
Context sets the context to be used in this call's Do method.
func (*SubnetworksListCall) Do ¶
func (c *SubnetworksListCall) Do(opts ...googleapi.CallOption) (*SubnetworkList, error)
Do executes the "compute.subnetworks.list" call. Any non-2xx status code is an error. Response headers are in either *SubnetworkList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SubnetworksListCall) Fields ¶
func (c *SubnetworksListCall) Fields(s ...googleapi.Field) *SubnetworksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SubnetworksListCall) Filter ¶
func (c *SubnetworksListCall) Filter(filter string) *SubnetworksListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*SubnetworksListCall) Header ¶
func (c *SubnetworksListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SubnetworksListCall) IfNoneMatch ¶
func (c *SubnetworksListCall) IfNoneMatch(entityTag string) *SubnetworksListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*SubnetworksListCall) MaxResults ¶
func (c *SubnetworksListCall) MaxResults(maxResults int64) *SubnetworksListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*SubnetworksListCall) OrderBy ¶
func (c *SubnetworksListCall) OrderBy(orderBy string) *SubnetworksListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*SubnetworksListCall) PageToken ¶
func (c *SubnetworksListCall) PageToken(pageToken string) *SubnetworksListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*SubnetworksListCall) Pages ¶
func (c *SubnetworksListCall) Pages(ctx context.Context, f func(*SubnetworkList) 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 (*SubnetworksListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *SubnetworksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *SubnetworksListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type SubnetworksListUsableCall ¶
type SubnetworksListUsableCall struct {
// contains filtered or unexported fields
}
func (*SubnetworksListUsableCall) Context ¶
func (c *SubnetworksListUsableCall) Context(ctx context.Context) *SubnetworksListUsableCall
Context sets the context to be used in this call's Do method.
func (*SubnetworksListUsableCall) Do ¶
func (c *SubnetworksListUsableCall) Do(opts ...googleapi.CallOption) (*UsableSubnetworksAggregatedList, error)
Do executes the "compute.subnetworks.listUsable" call. Any non-2xx status code is an error. Response headers are in either *UsableSubnetworksAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SubnetworksListUsableCall) Fields ¶
func (c *SubnetworksListUsableCall) Fields(s ...googleapi.Field) *SubnetworksListUsableCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SubnetworksListUsableCall) Filter ¶
func (c *SubnetworksListUsableCall) Filter(filter string) *SubnetworksListUsableCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*SubnetworksListUsableCall) Header ¶
func (c *SubnetworksListUsableCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SubnetworksListUsableCall) IfNoneMatch ¶
func (c *SubnetworksListUsableCall) IfNoneMatch(entityTag string) *SubnetworksListUsableCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*SubnetworksListUsableCall) MaxResults ¶
func (c *SubnetworksListUsableCall) MaxResults(maxResults int64) *SubnetworksListUsableCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*SubnetworksListUsableCall) OrderBy ¶
func (c *SubnetworksListUsableCall) OrderBy(orderBy string) *SubnetworksListUsableCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*SubnetworksListUsableCall) PageToken ¶
func (c *SubnetworksListUsableCall) PageToken(pageToken string) *SubnetworksListUsableCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*SubnetworksListUsableCall) Pages ¶
func (c *SubnetworksListUsableCall) Pages(ctx context.Context, f func(*UsableSubnetworksAggregatedList) 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 (*SubnetworksListUsableCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *SubnetworksListUsableCall) ReturnPartialSuccess(returnPartialSuccess bool) *SubnetworksListUsableCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type SubnetworksPatchCall ¶
type SubnetworksPatchCall struct {
// contains filtered or unexported fields
}
func (*SubnetworksPatchCall) Context ¶
func (c *SubnetworksPatchCall) Context(ctx context.Context) *SubnetworksPatchCall
Context sets the context to be used in this call's Do method.
func (*SubnetworksPatchCall) Do ¶
func (c *SubnetworksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.subnetworks.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SubnetworksPatchCall) DrainTimeoutSeconds ¶ added in v0.14.0
func (c *SubnetworksPatchCall) DrainTimeoutSeconds(drainTimeoutSeconds int64) *SubnetworksPatchCall
DrainTimeoutSeconds sets the optional parameter "drainTimeoutSeconds": The drain timeout specifies the upper bound in seconds on the amount of time allowed to drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The drain timeout is only applicable when the following conditions are true: - the subnetwork being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch operation the roles of the ACTIVE and BACKUP subnetworks will be swapped.
func (*SubnetworksPatchCall) Fields ¶
func (c *SubnetworksPatchCall) Fields(s ...googleapi.Field) *SubnetworksPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SubnetworksPatchCall) Header ¶
func (c *SubnetworksPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SubnetworksPatchCall) RequestId ¶
func (c *SubnetworksPatchCall) RequestId(requestId string) *SubnetworksPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type SubnetworksScopedList ¶
type SubnetworksScopedList struct { // Subnetworks: A list of subnetworks contained in this scope. Subnetworks []*Subnetwork `json:"subnetworks,omitempty"` // Warning: An informational warning that appears when the list of addresses is // empty. Warning *SubnetworksScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "Subnetworks") 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. "Subnetworks") 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:"-"` }
func (SubnetworksScopedList) MarshalJSON ¶
func (s SubnetworksScopedList) MarshalJSON() ([]byte, error)
type SubnetworksScopedListWarning ¶
type SubnetworksScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*SubnetworksScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
SubnetworksScopedListWarning: An informational warning that appears when the list of addresses is empty.
func (SubnetworksScopedListWarning) MarshalJSON ¶
func (s SubnetworksScopedListWarning) MarshalJSON() ([]byte, error)
type SubnetworksScopedListWarningData ¶
type SubnetworksScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (SubnetworksScopedListWarningData) MarshalJSON ¶
func (s SubnetworksScopedListWarningData) MarshalJSON() ([]byte, error)
type SubnetworksService ¶
type SubnetworksService struct {
// contains filtered or unexported fields
}
func NewSubnetworksService ¶
func NewSubnetworksService(s *Service) *SubnetworksService
func (*SubnetworksService) AggregatedList ¶
func (r *SubnetworksService) AggregatedList(project string) *SubnetworksAggregatedListCall
AggregatedList: Retrieves an aggregated list of subnetworks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*SubnetworksService) Delete ¶
func (r *SubnetworksService) Delete(project string, region string, subnetwork string) *SubnetworksDeleteCall
Delete: Deletes the specified subnetwork.
- project: Project ID for this request. - region: Name of the region scoping this request. - subnetwork: Name of the Subnetwork resource to delete.
func (*SubnetworksService) ExpandIpCidrRange ¶
func (r *SubnetworksService) ExpandIpCidrRange(project string, region string, subnetwork string, subnetworksexpandipcidrrangerequest *SubnetworksExpandIpCidrRangeRequest) *SubnetworksExpandIpCidrRangeCall
ExpandIpCidrRange: Expands the IP CIDR range of the subnetwork to a specified value.
- project: Project ID for this request. - region: Name of the region scoping this request. - subnetwork: Name of the Subnetwork resource to update.
func (*SubnetworksService) Get ¶
func (r *SubnetworksService) Get(project string, region string, subnetwork string) *SubnetworksGetCall
Get: Returns the specified subnetwork.
- project: Project ID for this request. - region: Name of the region scoping this request. - subnetwork: Name of the Subnetwork resource to return.
func (*SubnetworksService) GetIamPolicy ¶
func (r *SubnetworksService) GetIamPolicy(project string, region string, resource string) *SubnetworksGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*SubnetworksService) Insert ¶
func (r *SubnetworksService) Insert(project string, region string, subnetwork *Subnetwork) *SubnetworksInsertCall
Insert: Creates a subnetwork in the specified project using the data included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*SubnetworksService) List ¶
func (r *SubnetworksService) List(project string, region string) *SubnetworksListCall
List: Retrieves a list of subnetworks available to the specified project.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*SubnetworksService) ListUsable ¶
func (r *SubnetworksService) ListUsable(project string) *SubnetworksListUsableCall
ListUsable: Retrieves an aggregated list of all usable subnetworks in the project.
- project: Project ID for this request.
func (*SubnetworksService) Patch ¶
func (r *SubnetworksService) Patch(project string, region string, subnetwork string, subnetwork2 *Subnetwork) *SubnetworksPatchCall
Patch: Patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field descriptions. You must specify the current fingerprint of the subnetwork resource being patched.
- project: Project ID for this request. - region: Name of the region scoping this request. - subnetwork: Name of the Subnetwork resource to patch.
func (*SubnetworksService) SetIamPolicy ¶
func (r *SubnetworksService) SetIamPolicy(project string, region string, resource string, regionsetpolicyrequest *RegionSetPolicyRequest) *SubnetworksSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
func (*SubnetworksService) SetPrivateIpGoogleAccess ¶
func (r *SubnetworksService) SetPrivateIpGoogleAccess(project string, region string, subnetwork string, subnetworkssetprivateipgoogleaccessrequest *SubnetworksSetPrivateIpGoogleAccessRequest) *SubnetworksSetPrivateIpGoogleAccessCall
SetPrivateIpGoogleAccess: Set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access.
- project: Project ID for this request. - region: Name of the region scoping this request. - subnetwork: Name of the Subnetwork resource.
func (*SubnetworksService) TestIamPermissions ¶
func (r *SubnetworksService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *SubnetworksTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
type SubnetworksSetIamPolicyCall ¶
type SubnetworksSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*SubnetworksSetIamPolicyCall) Context ¶
func (c *SubnetworksSetIamPolicyCall) Context(ctx context.Context) *SubnetworksSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*SubnetworksSetIamPolicyCall) Do ¶
func (c *SubnetworksSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.subnetworks.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SubnetworksSetIamPolicyCall) Fields ¶
func (c *SubnetworksSetIamPolicyCall) Fields(s ...googleapi.Field) *SubnetworksSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SubnetworksSetIamPolicyCall) Header ¶
func (c *SubnetworksSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type SubnetworksSetPrivateIpGoogleAccessCall ¶
type SubnetworksSetPrivateIpGoogleAccessCall struct {
// contains filtered or unexported fields
}
func (*SubnetworksSetPrivateIpGoogleAccessCall) Context ¶
func (c *SubnetworksSetPrivateIpGoogleAccessCall) Context(ctx context.Context) *SubnetworksSetPrivateIpGoogleAccessCall
Context sets the context to be used in this call's Do method.
func (*SubnetworksSetPrivateIpGoogleAccessCall) Do ¶
func (c *SubnetworksSetPrivateIpGoogleAccessCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.subnetworks.setPrivateIpGoogleAccess" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SubnetworksSetPrivateIpGoogleAccessCall) Fields ¶
func (c *SubnetworksSetPrivateIpGoogleAccessCall) Fields(s ...googleapi.Field) *SubnetworksSetPrivateIpGoogleAccessCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SubnetworksSetPrivateIpGoogleAccessCall) Header ¶
func (c *SubnetworksSetPrivateIpGoogleAccessCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*SubnetworksSetPrivateIpGoogleAccessCall) RequestId ¶
func (c *SubnetworksSetPrivateIpGoogleAccessCall) RequestId(requestId string) *SubnetworksSetPrivateIpGoogleAccessCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type SubnetworksSetPrivateIpGoogleAccessRequest ¶
type SubnetworksSetPrivateIpGoogleAccessRequest struct { PrivateIpGoogleAccess bool `json:"privateIpGoogleAccess,omitempty"` // ForceSendFields is a list of field names (e.g. "PrivateIpGoogleAccess") 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. "PrivateIpGoogleAccess") 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:"-"` }
func (SubnetworksSetPrivateIpGoogleAccessRequest) MarshalJSON ¶
func (s SubnetworksSetPrivateIpGoogleAccessRequest) MarshalJSON() ([]byte, error)
type SubnetworksTestIamPermissionsCall ¶
type SubnetworksTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*SubnetworksTestIamPermissionsCall) Context ¶
func (c *SubnetworksTestIamPermissionsCall) Context(ctx context.Context) *SubnetworksTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*SubnetworksTestIamPermissionsCall) Do ¶
func (c *SubnetworksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.subnetworks.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SubnetworksTestIamPermissionsCall) Fields ¶
func (c *SubnetworksTestIamPermissionsCall) Fields(s ...googleapi.Field) *SubnetworksTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*SubnetworksTestIamPermissionsCall) Header ¶
func (c *SubnetworksTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type Subsetting ¶ added in v0.59.0
type Subsetting struct { // Possible values: // "CONSISTENT_HASH_SUBSETTING" - Subsetting based on consistent hashing. For // Traffic Director, the number of backends per backend group (the subset size) // is based on the `subset_size` parameter. For Internal HTTP(S) load // balancing, the number of backends per backend group (the subset size) is // dynamically adjusted in two cases: - As the number of proxy instances // participating in Internal HTTP(S) load balancing increases, the subset size // decreases. - When the total number of backends in a network exceeds the // capacity of a single proxy instance, subset sizes are reduced automatically // for each service that has backend subsetting enabled. // "NONE" - No Subsetting. Clients may open connections and send traffic to // all backends of this backend service. This can lead to performance issues if // there is substantial imbalance in the count of clients and backends. Policy string `json:"policy,omitempty"` // ForceSendFields is a list of field names (e.g. "Policy") 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. "Policy") 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:"-"` }
Subsetting: Subsetting configuration for this BackendService. Currently this is applicable only for Internal TCP/UDP load balancing, Internal HTTP(S) load balancing and Traffic Director.
func (Subsetting) MarshalJSON ¶ added in v0.59.0
func (s Subsetting) MarshalJSON() ([]byte, error)
type TCPHealthCheck ¶
type TCPHealthCheck struct { // Port: The TCP port number to which the health check prober sends packets. // The default value is 80. Valid values are 1 through 65535. Port int64 `json:"port,omitempty"` // PortName: Not supported. PortName string `json:"portName,omitempty"` // PortSpecification: Specifies how a port is selected for health checking. Can // be one of the following values: USE_FIXED_PORT: Specifies a port number // explicitly using the port field in the health check. Supported by backend // services for passthrough load balancers and backend services for proxy load // balancers. Not supported by target pools. The health check supports all // backends supported by the backend service provided the backend can be health // checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT // network endpoint groups, and instance group backends. USE_NAMED_PORT: Not // supported. USE_SERVING_PORT: Provides an indirect method of specifying the // health check port by referring to the backend service. Only supported by // backend services for proxy load balancers. Not supported by target pools. // Not supported by backend services for passthrough load balancers. Supports // all backends that can be health checked; for example, GCE_VM_IP_PORT network // endpoint groups and instance group backends. For GCE_VM_IP_PORT network // endpoint group backends, the health check uses the port number specified for // each endpoint in the network endpoint group. For instance group backends, // the health check uses the port number determined by looking up the backend // service's named port in the instance group's list of named ports. // // Possible values: // "USE_FIXED_PORT" - The port number in the health check's port is used for // health checking. Applies to network endpoint group and instance group // backends. // "USE_NAMED_PORT" - Not supported. // "USE_SERVING_PORT" - For network endpoint group backends, the health check // uses the port number specified on each endpoint in the network endpoint // group. For instance group backends, the health check uses the port number // specified for the backend service's named port defined in the instance // group's named ports. PortSpecification string `json:"portSpecification,omitempty"` // ProxyHeader: Specifies the type of proxy header to append before sending // data to the backend, either NONE or PROXY_V1. The default is NONE. // // Possible values: // "NONE" // "PROXY_V1" ProxyHeader string `json:"proxyHeader,omitempty"` // Request: Instructs the health check prober to send this exact ASCII string, // up to 1024 bytes in length, after establishing the TCP connection. Request string `json:"request,omitempty"` // Response: Creates a content-based TCP health check. In addition to // establishing a TCP connection, you can configure the health check to pass // only when the backend sends this exact response ASCII string, up to 1024 // bytes in length. For details, see: // https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp Response string `json:"response,omitempty"` // ForceSendFields is a list of field names (e.g. "Port") 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. "Port") 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:"-"` }
func (TCPHealthCheck) MarshalJSON ¶
func (s TCPHealthCheck) MarshalJSON() ([]byte, error)
type Tags ¶
type Tags struct { // Fingerprint: Specifies a fingerprint for this request, which is essentially // a hash of the tags' contents and used for optimistic locking. The // fingerprint is initially generated by Compute Engine and changes after every // request to modify or update tags. You must always provide an up-to-date // fingerprint hash in order to update or change tags. To see the latest // fingerprint, make get() request to the instance. Fingerprint string `json:"fingerprint,omitempty"` // Items: An array of tags. Each tag must be 1-63 characters long, and comply // with RFC1035. Items []string `json:"items,omitempty"` // ForceSendFields is a list of field names (e.g. "Fingerprint") 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. "Fingerprint") 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:"-"` }
Tags: A set of instance tags.
func (Tags) MarshalJSON ¶
type TargetGrpcProxiesDeleteCall ¶ added in v0.30.0
type TargetGrpcProxiesDeleteCall struct {
// contains filtered or unexported fields
}
func (*TargetGrpcProxiesDeleteCall) Context ¶ added in v0.30.0
func (c *TargetGrpcProxiesDeleteCall) Context(ctx context.Context) *TargetGrpcProxiesDeleteCall
Context sets the context to be used in this call's Do method.
func (*TargetGrpcProxiesDeleteCall) Do ¶ added in v0.30.0
func (c *TargetGrpcProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetGrpcProxies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetGrpcProxiesDeleteCall) Fields ¶ added in v0.30.0
func (c *TargetGrpcProxiesDeleteCall) Fields(s ...googleapi.Field) *TargetGrpcProxiesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetGrpcProxiesDeleteCall) Header ¶ added in v0.30.0
func (c *TargetGrpcProxiesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetGrpcProxiesDeleteCall) RequestId ¶ added in v0.30.0
func (c *TargetGrpcProxiesDeleteCall) RequestId(requestId string) *TargetGrpcProxiesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetGrpcProxiesGetCall ¶ added in v0.30.0
type TargetGrpcProxiesGetCall struct {
// contains filtered or unexported fields
}
func (*TargetGrpcProxiesGetCall) Context ¶ added in v0.30.0
func (c *TargetGrpcProxiesGetCall) Context(ctx context.Context) *TargetGrpcProxiesGetCall
Context sets the context to be used in this call's Do method.
func (*TargetGrpcProxiesGetCall) Do ¶ added in v0.30.0
func (c *TargetGrpcProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetGrpcProxy, error)
Do executes the "compute.targetGrpcProxies.get" call. Any non-2xx status code is an error. Response headers are in either *TargetGrpcProxy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetGrpcProxiesGetCall) Fields ¶ added in v0.30.0
func (c *TargetGrpcProxiesGetCall) Fields(s ...googleapi.Field) *TargetGrpcProxiesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetGrpcProxiesGetCall) Header ¶ added in v0.30.0
func (c *TargetGrpcProxiesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetGrpcProxiesGetCall) IfNoneMatch ¶ added in v0.30.0
func (c *TargetGrpcProxiesGetCall) IfNoneMatch(entityTag string) *TargetGrpcProxiesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type TargetGrpcProxiesInsertCall ¶ added in v0.30.0
type TargetGrpcProxiesInsertCall struct {
// contains filtered or unexported fields
}
func (*TargetGrpcProxiesInsertCall) Context ¶ added in v0.30.0
func (c *TargetGrpcProxiesInsertCall) Context(ctx context.Context) *TargetGrpcProxiesInsertCall
Context sets the context to be used in this call's Do method.
func (*TargetGrpcProxiesInsertCall) Do ¶ added in v0.30.0
func (c *TargetGrpcProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetGrpcProxies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetGrpcProxiesInsertCall) Fields ¶ added in v0.30.0
func (c *TargetGrpcProxiesInsertCall) Fields(s ...googleapi.Field) *TargetGrpcProxiesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetGrpcProxiesInsertCall) Header ¶ added in v0.30.0
func (c *TargetGrpcProxiesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetGrpcProxiesInsertCall) RequestId ¶ added in v0.30.0
func (c *TargetGrpcProxiesInsertCall) RequestId(requestId string) *TargetGrpcProxiesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetGrpcProxiesListCall ¶ added in v0.30.0
type TargetGrpcProxiesListCall struct {
// contains filtered or unexported fields
}
func (*TargetGrpcProxiesListCall) Context ¶ added in v0.30.0
func (c *TargetGrpcProxiesListCall) Context(ctx context.Context) *TargetGrpcProxiesListCall
Context sets the context to be used in this call's Do method.
func (*TargetGrpcProxiesListCall) Do ¶ added in v0.30.0
func (c *TargetGrpcProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetGrpcProxyList, error)
Do executes the "compute.targetGrpcProxies.list" call. Any non-2xx status code is an error. Response headers are in either *TargetGrpcProxyList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetGrpcProxiesListCall) Fields ¶ added in v0.30.0
func (c *TargetGrpcProxiesListCall) Fields(s ...googleapi.Field) *TargetGrpcProxiesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetGrpcProxiesListCall) Filter ¶ added in v0.30.0
func (c *TargetGrpcProxiesListCall) Filter(filter string) *TargetGrpcProxiesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*TargetGrpcProxiesListCall) Header ¶ added in v0.30.0
func (c *TargetGrpcProxiesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetGrpcProxiesListCall) IfNoneMatch ¶ added in v0.30.0
func (c *TargetGrpcProxiesListCall) IfNoneMatch(entityTag string) *TargetGrpcProxiesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*TargetGrpcProxiesListCall) MaxResults ¶ added in v0.30.0
func (c *TargetGrpcProxiesListCall) MaxResults(maxResults int64) *TargetGrpcProxiesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*TargetGrpcProxiesListCall) OrderBy ¶ added in v0.30.0
func (c *TargetGrpcProxiesListCall) OrderBy(orderBy string) *TargetGrpcProxiesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*TargetGrpcProxiesListCall) PageToken ¶ added in v0.30.0
func (c *TargetGrpcProxiesListCall) PageToken(pageToken string) *TargetGrpcProxiesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*TargetGrpcProxiesListCall) Pages ¶ added in v0.30.0
func (c *TargetGrpcProxiesListCall) Pages(ctx context.Context, f func(*TargetGrpcProxyList) 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 (*TargetGrpcProxiesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *TargetGrpcProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetGrpcProxiesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type TargetGrpcProxiesPatchCall ¶ added in v0.30.0
type TargetGrpcProxiesPatchCall struct {
// contains filtered or unexported fields
}
func (*TargetGrpcProxiesPatchCall) Context ¶ added in v0.30.0
func (c *TargetGrpcProxiesPatchCall) Context(ctx context.Context) *TargetGrpcProxiesPatchCall
Context sets the context to be used in this call's Do method.
func (*TargetGrpcProxiesPatchCall) Do ¶ added in v0.30.0
func (c *TargetGrpcProxiesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetGrpcProxies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetGrpcProxiesPatchCall) Fields ¶ added in v0.30.0
func (c *TargetGrpcProxiesPatchCall) Fields(s ...googleapi.Field) *TargetGrpcProxiesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetGrpcProxiesPatchCall) Header ¶ added in v0.30.0
func (c *TargetGrpcProxiesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetGrpcProxiesPatchCall) RequestId ¶ added in v0.30.0
func (c *TargetGrpcProxiesPatchCall) RequestId(requestId string) *TargetGrpcProxiesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetGrpcProxiesService ¶ added in v0.30.0
type TargetGrpcProxiesService struct {
// contains filtered or unexported fields
}
func NewTargetGrpcProxiesService ¶ added in v0.30.0
func NewTargetGrpcProxiesService(s *Service) *TargetGrpcProxiesService
func (*TargetGrpcProxiesService) Delete ¶ added in v0.30.0
func (r *TargetGrpcProxiesService) Delete(project string, targetGrpcProxy string) *TargetGrpcProxiesDeleteCall
Delete: Deletes the specified TargetGrpcProxy in the given scope
- project: Project ID for this request. - targetGrpcProxy: Name of the TargetGrpcProxy resource to delete.
func (*TargetGrpcProxiesService) Get ¶ added in v0.30.0
func (r *TargetGrpcProxiesService) Get(project string, targetGrpcProxy string) *TargetGrpcProxiesGetCall
Get: Returns the specified TargetGrpcProxy resource in the given scope.
- project: Project ID for this request. - targetGrpcProxy: Name of the TargetGrpcProxy resource to return.
func (*TargetGrpcProxiesService) Insert ¶ added in v0.30.0
func (r *TargetGrpcProxiesService) Insert(project string, targetgrpcproxy *TargetGrpcProxy) *TargetGrpcProxiesInsertCall
Insert: Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that are included in the request.
- project: Project ID for this request.
func (*TargetGrpcProxiesService) List ¶ added in v0.30.0
func (r *TargetGrpcProxiesService) List(project string) *TargetGrpcProxiesListCall
List: Lists the TargetGrpcProxies for a project in the given scope.
- project: Project ID for this request.
func (*TargetGrpcProxiesService) Patch ¶ added in v0.30.0
func (r *TargetGrpcProxiesService) Patch(project string, targetGrpcProxy string, targetgrpcproxy *TargetGrpcProxy) *TargetGrpcProxiesPatchCall
Patch: Patches the specified TargetGrpcProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
- project: Project ID for this request. - targetGrpcProxy: Name of the TargetGrpcProxy resource to patch.
type TargetGrpcProxy ¶ added in v0.30.0
type TargetGrpcProxy struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents stored in // this object. This field is used in optimistic locking. This field will be // ignored when inserting a TargetGrpcProxy. An up-to-date fingerprint must be // provided in order to patch/update the TargetGrpcProxy; otherwise, the // request will fail with error 412 conditionNotMet. To see the latest // fingerprint, make a get() request to retrieve the TargetGrpcProxy. Fingerprint string `json:"fingerprint,omitempty"` // Id: [Output Only] The unique identifier for the resource type. The server // generates this identifier. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#targetGrpcProxy for // target grpc proxies. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SelfLinkWithId: [Output Only] Server-defined URL with id for the resource. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` // UrlMap: URL to the UrlMap resource that defines the mapping from URL to the // BackendService. The protocol field in the BackendService must be set to // GRPC. UrlMap string `json:"urlMap,omitempty"` // ValidateForProxyless: If true, indicates that the BackendServices referenced // by the urlMap may be accessed by gRPC applications without using a sidecar // proxy. This will enable configuration checks on urlMap and its referenced // BackendServices to not allow unsupported features. A gRPC application must // use "xds:///" scheme in the target URI of the service it is connecting to. // If false, indicates that the BackendServices referenced by the urlMap will // be accessed by gRPC applications via a sidecar proxy. In this case, a gRPC // application must not use "xds:///" scheme in the target URI of the service // it is connecting to ValidateForProxyless bool `json:"validateForProxyless,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
TargetGrpcProxy: Represents a Target gRPC Proxy resource. A target gRPC proxy is a component of load balancers intended for load balancing gRPC traffic. Only global forwarding rules with load balancing scheme INTERNAL_SELF_MANAGED can reference a target gRPC proxy. The target gRPC Proxy references a URL map that specifies how traffic is routed to gRPC backend services.
func (TargetGrpcProxy) MarshalJSON ¶ added in v0.30.0
func (s TargetGrpcProxy) MarshalJSON() ([]byte, error)
type TargetGrpcProxyList ¶ added in v0.30.0
type TargetGrpcProxyList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of TargetGrpcProxy resources. Items []*TargetGrpcProxy `json:"items,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#targetGrpcProxy for // target grpc proxies. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *TargetGrpcProxyListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (TargetGrpcProxyList) MarshalJSON ¶ added in v0.30.0
func (s TargetGrpcProxyList) MarshalJSON() ([]byte, error)
type TargetGrpcProxyListWarning ¶ added in v0.30.0
type TargetGrpcProxyListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetGrpcProxyListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetGrpcProxyListWarning: [Output Only] Informational warning message.
func (TargetGrpcProxyListWarning) MarshalJSON ¶ added in v0.30.0
func (s TargetGrpcProxyListWarning) MarshalJSON() ([]byte, error)
type TargetGrpcProxyListWarningData ¶ added in v0.30.0
type TargetGrpcProxyListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetGrpcProxyListWarningData) MarshalJSON ¶ added in v0.30.0
func (s TargetGrpcProxyListWarningData) MarshalJSON() ([]byte, error)
type TargetHttpProxiesAggregatedListCall ¶ added in v0.11.0
type TargetHttpProxiesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpProxiesAggregatedListCall) Context ¶ added in v0.11.0
func (c *TargetHttpProxiesAggregatedListCall) Context(ctx context.Context) *TargetHttpProxiesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpProxiesAggregatedListCall) Do ¶ added in v0.11.0
func (c *TargetHttpProxiesAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetHttpProxyAggregatedList, error)
Do executes the "compute.targetHttpProxies.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *TargetHttpProxyAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpProxiesAggregatedListCall) Fields ¶ added in v0.11.0
func (c *TargetHttpProxiesAggregatedListCall) Fields(s ...googleapi.Field) *TargetHttpProxiesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpProxiesAggregatedListCall) Filter ¶ added in v0.11.0
func (c *TargetHttpProxiesAggregatedListCall) Filter(filter string) *TargetHttpProxiesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*TargetHttpProxiesAggregatedListCall) Header ¶ added in v0.11.0
func (c *TargetHttpProxiesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpProxiesAggregatedListCall) IfNoneMatch ¶ added in v0.11.0
func (c *TargetHttpProxiesAggregatedListCall) IfNoneMatch(entityTag string) *TargetHttpProxiesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*TargetHttpProxiesAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *TargetHttpProxiesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *TargetHttpProxiesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*TargetHttpProxiesAggregatedListCall) MaxResults ¶ added in v0.11.0
func (c *TargetHttpProxiesAggregatedListCall) MaxResults(maxResults int64) *TargetHttpProxiesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*TargetHttpProxiesAggregatedListCall) OrderBy ¶ added in v0.11.0
func (c *TargetHttpProxiesAggregatedListCall) OrderBy(orderBy string) *TargetHttpProxiesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*TargetHttpProxiesAggregatedListCall) PageToken ¶ added in v0.11.0
func (c *TargetHttpProxiesAggregatedListCall) PageToken(pageToken string) *TargetHttpProxiesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*TargetHttpProxiesAggregatedListCall) Pages ¶ added in v0.11.0
func (c *TargetHttpProxiesAggregatedListCall) Pages(ctx context.Context, f func(*TargetHttpProxyAggregatedList) 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 (*TargetHttpProxiesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *TargetHttpProxiesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetHttpProxiesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*TargetHttpProxiesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *TargetHttpProxiesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *TargetHttpProxiesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type TargetHttpProxiesDeleteCall ¶
type TargetHttpProxiesDeleteCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpProxiesDeleteCall) Context ¶
func (c *TargetHttpProxiesDeleteCall) Context(ctx context.Context) *TargetHttpProxiesDeleteCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpProxiesDeleteCall) Do ¶
func (c *TargetHttpProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpProxies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpProxiesDeleteCall) Fields ¶
func (c *TargetHttpProxiesDeleteCall) Fields(s ...googleapi.Field) *TargetHttpProxiesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpProxiesDeleteCall) Header ¶
func (c *TargetHttpProxiesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpProxiesDeleteCall) RequestId ¶
func (c *TargetHttpProxiesDeleteCall) RequestId(requestId string) *TargetHttpProxiesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetHttpProxiesGetCall ¶
type TargetHttpProxiesGetCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpProxiesGetCall) Context ¶
func (c *TargetHttpProxiesGetCall) Context(ctx context.Context) *TargetHttpProxiesGetCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpProxiesGetCall) Do ¶
func (c *TargetHttpProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetHttpProxy, error)
Do executes the "compute.targetHttpProxies.get" call. Any non-2xx status code is an error. Response headers are in either *TargetHttpProxy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpProxiesGetCall) Fields ¶
func (c *TargetHttpProxiesGetCall) Fields(s ...googleapi.Field) *TargetHttpProxiesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpProxiesGetCall) Header ¶
func (c *TargetHttpProxiesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpProxiesGetCall) IfNoneMatch ¶
func (c *TargetHttpProxiesGetCall) IfNoneMatch(entityTag string) *TargetHttpProxiesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type TargetHttpProxiesInsertCall ¶
type TargetHttpProxiesInsertCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpProxiesInsertCall) Context ¶
func (c *TargetHttpProxiesInsertCall) Context(ctx context.Context) *TargetHttpProxiesInsertCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpProxiesInsertCall) Do ¶
func (c *TargetHttpProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpProxies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpProxiesInsertCall) Fields ¶
func (c *TargetHttpProxiesInsertCall) Fields(s ...googleapi.Field) *TargetHttpProxiesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpProxiesInsertCall) Header ¶
func (c *TargetHttpProxiesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpProxiesInsertCall) RequestId ¶
func (c *TargetHttpProxiesInsertCall) RequestId(requestId string) *TargetHttpProxiesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetHttpProxiesListCall ¶
type TargetHttpProxiesListCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpProxiesListCall) Context ¶
func (c *TargetHttpProxiesListCall) Context(ctx context.Context) *TargetHttpProxiesListCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpProxiesListCall) Do ¶
func (c *TargetHttpProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetHttpProxyList, error)
Do executes the "compute.targetHttpProxies.list" call. Any non-2xx status code is an error. Response headers are in either *TargetHttpProxyList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpProxiesListCall) Fields ¶
func (c *TargetHttpProxiesListCall) Fields(s ...googleapi.Field) *TargetHttpProxiesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpProxiesListCall) Filter ¶
func (c *TargetHttpProxiesListCall) Filter(filter string) *TargetHttpProxiesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*TargetHttpProxiesListCall) Header ¶
func (c *TargetHttpProxiesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpProxiesListCall) IfNoneMatch ¶
func (c *TargetHttpProxiesListCall) IfNoneMatch(entityTag string) *TargetHttpProxiesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*TargetHttpProxiesListCall) MaxResults ¶
func (c *TargetHttpProxiesListCall) MaxResults(maxResults int64) *TargetHttpProxiesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*TargetHttpProxiesListCall) OrderBy ¶
func (c *TargetHttpProxiesListCall) OrderBy(orderBy string) *TargetHttpProxiesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*TargetHttpProxiesListCall) PageToken ¶
func (c *TargetHttpProxiesListCall) PageToken(pageToken string) *TargetHttpProxiesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*TargetHttpProxiesListCall) Pages ¶
func (c *TargetHttpProxiesListCall) Pages(ctx context.Context, f func(*TargetHttpProxyList) 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 (*TargetHttpProxiesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *TargetHttpProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetHttpProxiesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type TargetHttpProxiesPatchCall ¶ added in v0.33.0
type TargetHttpProxiesPatchCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpProxiesPatchCall) Context ¶ added in v0.33.0
func (c *TargetHttpProxiesPatchCall) Context(ctx context.Context) *TargetHttpProxiesPatchCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpProxiesPatchCall) Do ¶ added in v0.33.0
func (c *TargetHttpProxiesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpProxies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpProxiesPatchCall) Fields ¶ added in v0.33.0
func (c *TargetHttpProxiesPatchCall) Fields(s ...googleapi.Field) *TargetHttpProxiesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpProxiesPatchCall) Header ¶ added in v0.33.0
func (c *TargetHttpProxiesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpProxiesPatchCall) RequestId ¶ added in v0.33.0
func (c *TargetHttpProxiesPatchCall) RequestId(requestId string) *TargetHttpProxiesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetHttpProxiesScopedList ¶ added in v0.11.0
type TargetHttpProxiesScopedList struct { // TargetHttpProxies: A list of TargetHttpProxies contained in this scope. TargetHttpProxies []*TargetHttpProxy `json:"targetHttpProxies,omitempty"` // Warning: Informational warning which replaces the list of backend services // when the list is empty. Warning *TargetHttpProxiesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "TargetHttpProxies") 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. "TargetHttpProxies") 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:"-"` }
func (TargetHttpProxiesScopedList) MarshalJSON ¶ added in v0.11.0
func (s TargetHttpProxiesScopedList) MarshalJSON() ([]byte, error)
type TargetHttpProxiesScopedListWarning ¶ added in v0.11.0
type TargetHttpProxiesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetHttpProxiesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetHttpProxiesScopedListWarning: Informational warning which replaces the list of backend services when the list is empty.
func (TargetHttpProxiesScopedListWarning) MarshalJSON ¶ added in v0.11.0
func (s TargetHttpProxiesScopedListWarning) MarshalJSON() ([]byte, error)
type TargetHttpProxiesScopedListWarningData ¶ added in v0.11.0
type TargetHttpProxiesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetHttpProxiesScopedListWarningData) MarshalJSON ¶ added in v0.11.0
func (s TargetHttpProxiesScopedListWarningData) MarshalJSON() ([]byte, error)
type TargetHttpProxiesService ¶
type TargetHttpProxiesService struct {
// contains filtered or unexported fields
}
func NewTargetHttpProxiesService ¶
func NewTargetHttpProxiesService(s *Service) *TargetHttpProxiesService
func (*TargetHttpProxiesService) AggregatedList ¶ added in v0.11.0
func (r *TargetHttpProxiesService) AggregatedList(project string) *TargetHttpProxiesAggregatedListCall
AggregatedList: Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Name of the project scoping this request.
func (*TargetHttpProxiesService) Delete ¶
func (r *TargetHttpProxiesService) Delete(project string, targetHttpProxy string) *TargetHttpProxiesDeleteCall
Delete: Deletes the specified TargetHttpProxy resource.
- project: Project ID for this request. - targetHttpProxy: Name of the TargetHttpProxy resource to delete.
func (*TargetHttpProxiesService) Get ¶
func (r *TargetHttpProxiesService) Get(project string, targetHttpProxy string) *TargetHttpProxiesGetCall
Get: Returns the specified TargetHttpProxy resource.
- project: Project ID for this request. - targetHttpProxy: Name of the TargetHttpProxy resource to return.
func (*TargetHttpProxiesService) Insert ¶
func (r *TargetHttpProxiesService) Insert(project string, targethttpproxy *TargetHttpProxy) *TargetHttpProxiesInsertCall
Insert: Creates a TargetHttpProxy resource in the specified project using the data included in the request.
- project: Project ID for this request.
func (*TargetHttpProxiesService) List ¶
func (r *TargetHttpProxiesService) List(project string) *TargetHttpProxiesListCall
List: Retrieves the list of TargetHttpProxy resources available to the specified project.
- project: Project ID for this request.
func (*TargetHttpProxiesService) Patch ¶ added in v0.33.0
func (r *TargetHttpProxiesService) Patch(project string, targetHttpProxy string, targethttpproxy *TargetHttpProxy) *TargetHttpProxiesPatchCall
Patch: Patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
- project: Project ID for this request. - targetHttpProxy: Name of the TargetHttpProxy resource to patch.
func (*TargetHttpProxiesService) SetUrlMap ¶
func (r *TargetHttpProxiesService) SetUrlMap(project string, targetHttpProxy string, urlmapreference *UrlMapReference) *TargetHttpProxiesSetUrlMapCall
SetUrlMap: Changes the URL map for TargetHttpProxy.
- project: Project ID for this request. - targetHttpProxy: Name of the TargetHttpProxy to set a URL map for.
type TargetHttpProxiesSetUrlMapCall ¶
type TargetHttpProxiesSetUrlMapCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpProxiesSetUrlMapCall) Context ¶
func (c *TargetHttpProxiesSetUrlMapCall) Context(ctx context.Context) *TargetHttpProxiesSetUrlMapCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpProxiesSetUrlMapCall) Do ¶
func (c *TargetHttpProxiesSetUrlMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpProxies.setUrlMap" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpProxiesSetUrlMapCall) Fields ¶
func (c *TargetHttpProxiesSetUrlMapCall) Fields(s ...googleapi.Field) *TargetHttpProxiesSetUrlMapCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpProxiesSetUrlMapCall) Header ¶
func (c *TargetHttpProxiesSetUrlMapCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpProxiesSetUrlMapCall) RequestId ¶
func (c *TargetHttpProxiesSetUrlMapCall) RequestId(requestId string) *TargetHttpProxiesSetUrlMapCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetHttpProxy ¶
type TargetHttpProxy struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents stored in // this object. This field is used in optimistic locking. This field will be // ignored when inserting a TargetHttpProxy. An up-to-date fingerprint must be // provided in order to patch/update the TargetHttpProxy; otherwise, the // request will fail with error 412 conditionNotMet. To see the latest // fingerprint, make a get() request to retrieve the TargetHttpProxy. Fingerprint string `json:"fingerprint,omitempty"` // HttpKeepAliveTimeoutSec: Specifies how long to keep a connection open, after // completing a response, while there is no matching traffic (in seconds). If // an HTTP keep-alive is not specified, a default value (610 seconds) will be // used. For global external Application Load Balancers, the minimum allowed // value is 5 seconds and the maximum allowed value is 1200 seconds. For // classic Application Load Balancers, this option is not supported. HttpKeepAliveTimeoutSec int64 `json:"httpKeepAliveTimeoutSec,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of resource. Always compute#targetHttpProxy for // target HTTP proxies. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // ProxyBind: This field only applies when the forwarding rule that references // this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. // When this field is set to true, Envoy proxies set up inbound traffic // interception and bind to the IP address and port specified in the forwarding // rule. This is generally useful when using Traffic Director to configure // Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). // The Envoy proxy listens for inbound requests and handles requests when it // receives them. The default is false. ProxyBind bool `json:"proxyBind,omitempty"` // Region: [Output Only] URL of the region where the regional Target HTTP Proxy // resides. This field is not applicable to global Target HTTP Proxies. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // UrlMap: URL to the UrlMap resource that defines the mapping from URL to the // BackendService. UrlMap string `json:"urlMap,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
TargetHttpProxy: Represents a Target HTTP Proxy resource. Google Compute Engine has two Target HTTP Proxy resources: * Global (/compute/docs/reference/rest/v1/targetHttpProxies) * Regional (/compute/docs/reference/rest/v1/regionTargetHttpProxies) A target HTTP proxy is a component of Google Cloud HTTP load balancers. * targetHttpProxies are used by global external Application Load Balancers, classic Application Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * regionTargetHttpProxies are used by regional internal Application Load Balancers and regional external Application Load Balancers. Forwarding rules reference a target HTTP proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts.
func (TargetHttpProxy) MarshalJSON ¶
func (s TargetHttpProxy) MarshalJSON() ([]byte, error)
type TargetHttpProxyAggregatedList ¶ added in v0.11.0
type TargetHttpProxyAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of TargetHttpProxiesScopedList resources. Items map[string]TargetHttpProxiesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#targetHttpProxyAggregatedList for lists of Target HTTP Proxies. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (TargetHttpProxyAggregatedList) MarshalJSON ¶ added in v0.11.0
func (s TargetHttpProxyAggregatedList) MarshalJSON() ([]byte, error)
type TargetHttpProxyList ¶
type TargetHttpProxyList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of TargetHttpProxy resources. Items []*TargetHttpProxy `json:"items,omitempty"` // Kind: Type of resource. Always compute#targetHttpProxyList for lists of // target HTTP proxies. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *TargetHttpProxyListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
TargetHttpProxyList: A list of TargetHttpProxy resources.
func (TargetHttpProxyList) MarshalJSON ¶
func (s TargetHttpProxyList) MarshalJSON() ([]byte, error)
type TargetHttpProxyListWarning ¶
type TargetHttpProxyListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetHttpProxyListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetHttpProxyListWarning: [Output Only] Informational warning message.
func (TargetHttpProxyListWarning) MarshalJSON ¶
func (s TargetHttpProxyListWarning) MarshalJSON() ([]byte, error)
type TargetHttpProxyListWarningData ¶
type TargetHttpProxyListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetHttpProxyListWarningData) MarshalJSON ¶
func (s TargetHttpProxyListWarningData) MarshalJSON() ([]byte, error)
type TargetHttpsProxiesAggregatedListCall ¶ added in v0.11.0
type TargetHttpsProxiesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpsProxiesAggregatedListCall) Context ¶ added in v0.11.0
func (c *TargetHttpsProxiesAggregatedListCall) Context(ctx context.Context) *TargetHttpsProxiesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpsProxiesAggregatedListCall) Do ¶ added in v0.11.0
func (c *TargetHttpsProxiesAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetHttpsProxyAggregatedList, error)
Do executes the "compute.targetHttpsProxies.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *TargetHttpsProxyAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpsProxiesAggregatedListCall) Fields ¶ added in v0.11.0
func (c *TargetHttpsProxiesAggregatedListCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpsProxiesAggregatedListCall) Filter ¶ added in v0.11.0
func (c *TargetHttpsProxiesAggregatedListCall) Filter(filter string) *TargetHttpsProxiesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*TargetHttpsProxiesAggregatedListCall) Header ¶ added in v0.11.0
func (c *TargetHttpsProxiesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpsProxiesAggregatedListCall) IfNoneMatch ¶ added in v0.11.0
func (c *TargetHttpsProxiesAggregatedListCall) IfNoneMatch(entityTag string) *TargetHttpsProxiesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*TargetHttpsProxiesAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *TargetHttpsProxiesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *TargetHttpsProxiesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*TargetHttpsProxiesAggregatedListCall) MaxResults ¶ added in v0.11.0
func (c *TargetHttpsProxiesAggregatedListCall) MaxResults(maxResults int64) *TargetHttpsProxiesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*TargetHttpsProxiesAggregatedListCall) OrderBy ¶ added in v0.11.0
func (c *TargetHttpsProxiesAggregatedListCall) OrderBy(orderBy string) *TargetHttpsProxiesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*TargetHttpsProxiesAggregatedListCall) PageToken ¶ added in v0.11.0
func (c *TargetHttpsProxiesAggregatedListCall) PageToken(pageToken string) *TargetHttpsProxiesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*TargetHttpsProxiesAggregatedListCall) Pages ¶ added in v0.11.0
func (c *TargetHttpsProxiesAggregatedListCall) Pages(ctx context.Context, f func(*TargetHttpsProxyAggregatedList) 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 (*TargetHttpsProxiesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *TargetHttpsProxiesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetHttpsProxiesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*TargetHttpsProxiesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *TargetHttpsProxiesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *TargetHttpsProxiesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type TargetHttpsProxiesDeleteCall ¶
type TargetHttpsProxiesDeleteCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpsProxiesDeleteCall) Context ¶
func (c *TargetHttpsProxiesDeleteCall) Context(ctx context.Context) *TargetHttpsProxiesDeleteCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpsProxiesDeleteCall) Do ¶
func (c *TargetHttpsProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpsProxies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpsProxiesDeleteCall) Fields ¶
func (c *TargetHttpsProxiesDeleteCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpsProxiesDeleteCall) Header ¶
func (c *TargetHttpsProxiesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpsProxiesDeleteCall) RequestId ¶
func (c *TargetHttpsProxiesDeleteCall) RequestId(requestId string) *TargetHttpsProxiesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetHttpsProxiesGetCall ¶
type TargetHttpsProxiesGetCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpsProxiesGetCall) Context ¶
func (c *TargetHttpsProxiesGetCall) Context(ctx context.Context) *TargetHttpsProxiesGetCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpsProxiesGetCall) Do ¶
func (c *TargetHttpsProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetHttpsProxy, error)
Do executes the "compute.targetHttpsProxies.get" call. Any non-2xx status code is an error. Response headers are in either *TargetHttpsProxy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpsProxiesGetCall) Fields ¶
func (c *TargetHttpsProxiesGetCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpsProxiesGetCall) Header ¶
func (c *TargetHttpsProxiesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpsProxiesGetCall) IfNoneMatch ¶
func (c *TargetHttpsProxiesGetCall) IfNoneMatch(entityTag string) *TargetHttpsProxiesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type TargetHttpsProxiesInsertCall ¶
type TargetHttpsProxiesInsertCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpsProxiesInsertCall) Context ¶
func (c *TargetHttpsProxiesInsertCall) Context(ctx context.Context) *TargetHttpsProxiesInsertCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpsProxiesInsertCall) Do ¶
func (c *TargetHttpsProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpsProxies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpsProxiesInsertCall) Fields ¶
func (c *TargetHttpsProxiesInsertCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpsProxiesInsertCall) Header ¶
func (c *TargetHttpsProxiesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpsProxiesInsertCall) RequestId ¶
func (c *TargetHttpsProxiesInsertCall) RequestId(requestId string) *TargetHttpsProxiesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetHttpsProxiesListCall ¶
type TargetHttpsProxiesListCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpsProxiesListCall) Context ¶
func (c *TargetHttpsProxiesListCall) Context(ctx context.Context) *TargetHttpsProxiesListCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpsProxiesListCall) Do ¶
func (c *TargetHttpsProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetHttpsProxyList, error)
Do executes the "compute.targetHttpsProxies.list" call. Any non-2xx status code is an error. Response headers are in either *TargetHttpsProxyList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpsProxiesListCall) Fields ¶
func (c *TargetHttpsProxiesListCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpsProxiesListCall) Filter ¶
func (c *TargetHttpsProxiesListCall) Filter(filter string) *TargetHttpsProxiesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*TargetHttpsProxiesListCall) Header ¶
func (c *TargetHttpsProxiesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpsProxiesListCall) IfNoneMatch ¶
func (c *TargetHttpsProxiesListCall) IfNoneMatch(entityTag string) *TargetHttpsProxiesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*TargetHttpsProxiesListCall) MaxResults ¶
func (c *TargetHttpsProxiesListCall) MaxResults(maxResults int64) *TargetHttpsProxiesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*TargetHttpsProxiesListCall) OrderBy ¶
func (c *TargetHttpsProxiesListCall) OrderBy(orderBy string) *TargetHttpsProxiesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*TargetHttpsProxiesListCall) PageToken ¶
func (c *TargetHttpsProxiesListCall) PageToken(pageToken string) *TargetHttpsProxiesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*TargetHttpsProxiesListCall) Pages ¶
func (c *TargetHttpsProxiesListCall) Pages(ctx context.Context, f func(*TargetHttpsProxyList) 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 (*TargetHttpsProxiesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *TargetHttpsProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetHttpsProxiesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type TargetHttpsProxiesPatchCall ¶ added in v0.39.0
type TargetHttpsProxiesPatchCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpsProxiesPatchCall) Context ¶ added in v0.39.0
func (c *TargetHttpsProxiesPatchCall) Context(ctx context.Context) *TargetHttpsProxiesPatchCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpsProxiesPatchCall) Do ¶ added in v0.39.0
func (c *TargetHttpsProxiesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpsProxies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpsProxiesPatchCall) Fields ¶ added in v0.39.0
func (c *TargetHttpsProxiesPatchCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpsProxiesPatchCall) Header ¶ added in v0.39.0
func (c *TargetHttpsProxiesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpsProxiesPatchCall) RequestId ¶ added in v0.39.0
func (c *TargetHttpsProxiesPatchCall) RequestId(requestId string) *TargetHttpsProxiesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetHttpsProxiesScopedList ¶ added in v0.11.0
type TargetHttpsProxiesScopedList struct { // TargetHttpsProxies: A list of TargetHttpsProxies contained in this scope. TargetHttpsProxies []*TargetHttpsProxy `json:"targetHttpsProxies,omitempty"` // Warning: Informational warning which replaces the list of backend services // when the list is empty. Warning *TargetHttpsProxiesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "TargetHttpsProxies") 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. "TargetHttpsProxies") 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:"-"` }
func (TargetHttpsProxiesScopedList) MarshalJSON ¶ added in v0.11.0
func (s TargetHttpsProxiesScopedList) MarshalJSON() ([]byte, error)
type TargetHttpsProxiesScopedListWarning ¶ added in v0.11.0
type TargetHttpsProxiesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetHttpsProxiesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetHttpsProxiesScopedListWarning: Informational warning which replaces the list of backend services when the list is empty.
func (TargetHttpsProxiesScopedListWarning) MarshalJSON ¶ added in v0.11.0
func (s TargetHttpsProxiesScopedListWarning) MarshalJSON() ([]byte, error)
type TargetHttpsProxiesScopedListWarningData ¶ added in v0.11.0
type TargetHttpsProxiesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetHttpsProxiesScopedListWarningData) MarshalJSON ¶ added in v0.11.0
func (s TargetHttpsProxiesScopedListWarningData) MarshalJSON() ([]byte, error)
type TargetHttpsProxiesService ¶
type TargetHttpsProxiesService struct {
// contains filtered or unexported fields
}
func NewTargetHttpsProxiesService ¶
func NewTargetHttpsProxiesService(s *Service) *TargetHttpsProxiesService
func (*TargetHttpsProxiesService) AggregatedList ¶ added in v0.11.0
func (r *TargetHttpsProxiesService) AggregatedList(project string) *TargetHttpsProxiesAggregatedListCall
AggregatedList: Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Name of the project scoping this request.
func (*TargetHttpsProxiesService) Delete ¶
func (r *TargetHttpsProxiesService) Delete(project string, targetHttpsProxy string) *TargetHttpsProxiesDeleteCall
Delete: Deletes the specified TargetHttpsProxy resource.
- project: Project ID for this request. - targetHttpsProxy: Name of the TargetHttpsProxy resource to delete.
func (*TargetHttpsProxiesService) Get ¶
func (r *TargetHttpsProxiesService) Get(project string, targetHttpsProxy string) *TargetHttpsProxiesGetCall
Get: Returns the specified TargetHttpsProxy resource.
- project: Project ID for this request. - targetHttpsProxy: Name of the TargetHttpsProxy resource to return.
func (*TargetHttpsProxiesService) Insert ¶
func (r *TargetHttpsProxiesService) Insert(project string, targethttpsproxy *TargetHttpsProxy) *TargetHttpsProxiesInsertCall
Insert: Creates a TargetHttpsProxy resource in the specified project using the data included in the request.
- project: Project ID for this request.
func (*TargetHttpsProxiesService) List ¶
func (r *TargetHttpsProxiesService) List(project string) *TargetHttpsProxiesListCall
List: Retrieves the list of TargetHttpsProxy resources available to the specified project.
- project: Project ID for this request.
func (*TargetHttpsProxiesService) Patch ¶ added in v0.39.0
func (r *TargetHttpsProxiesService) Patch(project string, targetHttpsProxy string, targethttpsproxy *TargetHttpsProxy) *TargetHttpsProxiesPatchCall
Patch: Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
- project: Project ID for this request. - targetHttpsProxy: Name of the TargetHttpsProxy resource to patch.
func (*TargetHttpsProxiesService) SetCertificateMap ¶ added in v0.80.0
func (r *TargetHttpsProxiesService) SetCertificateMap(project string, targetHttpsProxy string, targethttpsproxiessetcertificatemaprequest *TargetHttpsProxiesSetCertificateMapRequest) *TargetHttpsProxiesSetCertificateMapCall
SetCertificateMap: Changes the Certificate Map for TargetHttpsProxy.
- project: Project ID for this request.
- targetHttpsProxy: Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be 1-63 characters long, and comply with RFC1035.
func (*TargetHttpsProxiesService) SetQuicOverride ¶
func (r *TargetHttpsProxiesService) SetQuicOverride(project string, targetHttpsProxy string, targethttpsproxiessetquicoverriderequest *TargetHttpsProxiesSetQuicOverrideRequest) *TargetHttpsProxiesSetQuicOverrideCall
SetQuicOverride: Sets the QUIC override policy for TargetHttpsProxy.
- project: Project ID for this request.
- targetHttpsProxy: Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform to RFC1035.
func (*TargetHttpsProxiesService) SetSslCertificates ¶
func (r *TargetHttpsProxiesService) SetSslCertificates(project string, targetHttpsProxy string, targethttpsproxiessetsslcertificatesrequest *TargetHttpsProxiesSetSslCertificatesRequest) *TargetHttpsProxiesSetSslCertificatesCall
SetSslCertificates: Replaces SslCertificates for TargetHttpsProxy.
- project: Project ID for this request.
- targetHttpsProxy: Name of the TargetHttpsProxy resource to set an SslCertificates resource for.
func (*TargetHttpsProxiesService) SetSslPolicy ¶
func (r *TargetHttpsProxiesService) SetSslPolicy(project string, targetHttpsProxy string, sslpolicyreference *SslPolicyReference) *TargetHttpsProxiesSetSslPolicyCall
SetSslPolicy: Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends.
- project: Project ID for this request.
- targetHttpsProxy: Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035.
func (*TargetHttpsProxiesService) SetUrlMap ¶
func (r *TargetHttpsProxiesService) SetUrlMap(project string, targetHttpsProxy string, urlmapreference *UrlMapReference) *TargetHttpsProxiesSetUrlMapCall
SetUrlMap: Changes the URL map for TargetHttpsProxy.
- project: Project ID for this request.
- targetHttpsProxy: Name of the TargetHttpsProxy resource whose URL map is to be set.
type TargetHttpsProxiesSetCertificateMapCall ¶ added in v0.80.0
type TargetHttpsProxiesSetCertificateMapCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpsProxiesSetCertificateMapCall) Context ¶ added in v0.80.0
func (c *TargetHttpsProxiesSetCertificateMapCall) Context(ctx context.Context) *TargetHttpsProxiesSetCertificateMapCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpsProxiesSetCertificateMapCall) Do ¶ added in v0.80.0
func (c *TargetHttpsProxiesSetCertificateMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpsProxies.setCertificateMap" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpsProxiesSetCertificateMapCall) Fields ¶ added in v0.80.0
func (c *TargetHttpsProxiesSetCertificateMapCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesSetCertificateMapCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpsProxiesSetCertificateMapCall) Header ¶ added in v0.80.0
func (c *TargetHttpsProxiesSetCertificateMapCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpsProxiesSetCertificateMapCall) RequestId ¶ added in v0.80.0
func (c *TargetHttpsProxiesSetCertificateMapCall) RequestId(requestId string) *TargetHttpsProxiesSetCertificateMapCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetHttpsProxiesSetCertificateMapRequest ¶ added in v0.80.0
type TargetHttpsProxiesSetCertificateMapRequest struct { // CertificateMap: URL of the Certificate Map to associate with this // TargetHttpsProxy. Accepted format is // //certificatemanager.googleapis.com/projects/{project // }/locations/{location}/certificateMaps/{resourceName}. CertificateMap string `json:"certificateMap,omitempty"` // ForceSendFields is a list of field names (e.g. "CertificateMap") 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. "CertificateMap") 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:"-"` }
func (TargetHttpsProxiesSetCertificateMapRequest) MarshalJSON ¶ added in v0.80.0
func (s TargetHttpsProxiesSetCertificateMapRequest) MarshalJSON() ([]byte, error)
type TargetHttpsProxiesSetQuicOverrideCall ¶
type TargetHttpsProxiesSetQuicOverrideCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpsProxiesSetQuicOverrideCall) Context ¶
func (c *TargetHttpsProxiesSetQuicOverrideCall) Context(ctx context.Context) *TargetHttpsProxiesSetQuicOverrideCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpsProxiesSetQuicOverrideCall) Do ¶
func (c *TargetHttpsProxiesSetQuicOverrideCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpsProxies.setQuicOverride" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpsProxiesSetQuicOverrideCall) Fields ¶
func (c *TargetHttpsProxiesSetQuicOverrideCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesSetQuicOverrideCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpsProxiesSetQuicOverrideCall) Header ¶
func (c *TargetHttpsProxiesSetQuicOverrideCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpsProxiesSetQuicOverrideCall) RequestId ¶
func (c *TargetHttpsProxiesSetQuicOverrideCall) RequestId(requestId string) *TargetHttpsProxiesSetQuicOverrideCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetHttpsProxiesSetQuicOverrideRequest ¶
type TargetHttpsProxiesSetQuicOverrideRequest struct { // QuicOverride: QUIC policy for the TargetHttpsProxy resource. // // Possible values: // "DISABLE" - The load balancer will not attempt to negotiate QUIC with // clients. // "ENABLE" - The load balancer will attempt to negotiate QUIC with clients. // "NONE" - No overrides to the default QUIC policy. This option is implicit // if no QUIC override has been specified in the request. QuicOverride string `json:"quicOverride,omitempty"` // ForceSendFields is a list of field names (e.g. "QuicOverride") 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. "QuicOverride") 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:"-"` }
func (TargetHttpsProxiesSetQuicOverrideRequest) MarshalJSON ¶
func (s TargetHttpsProxiesSetQuicOverrideRequest) MarshalJSON() ([]byte, error)
type TargetHttpsProxiesSetSslCertificatesCall ¶
type TargetHttpsProxiesSetSslCertificatesCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpsProxiesSetSslCertificatesCall) Context ¶
func (c *TargetHttpsProxiesSetSslCertificatesCall) Context(ctx context.Context) *TargetHttpsProxiesSetSslCertificatesCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpsProxiesSetSslCertificatesCall) Do ¶
func (c *TargetHttpsProxiesSetSslCertificatesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpsProxies.setSslCertificates" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpsProxiesSetSslCertificatesCall) Fields ¶
func (c *TargetHttpsProxiesSetSslCertificatesCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesSetSslCertificatesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpsProxiesSetSslCertificatesCall) Header ¶
func (c *TargetHttpsProxiesSetSslCertificatesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpsProxiesSetSslCertificatesCall) RequestId ¶
func (c *TargetHttpsProxiesSetSslCertificatesCall) RequestId(requestId string) *TargetHttpsProxiesSetSslCertificatesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetHttpsProxiesSetSslCertificatesRequest ¶
type TargetHttpsProxiesSetSslCertificatesRequest struct { // SslCertificates: New set of SslCertificate resources to associate with this // TargetHttpsProxy resource. At least one SSL certificate must be specified. // Currently, you may specify up to 15 SSL certificates. SslCertificates []string `json:"sslCertificates,omitempty"` // ForceSendFields is a list of field names (e.g. "SslCertificates") 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. "SslCertificates") 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:"-"` }
func (TargetHttpsProxiesSetSslCertificatesRequest) MarshalJSON ¶
func (s TargetHttpsProxiesSetSslCertificatesRequest) MarshalJSON() ([]byte, error)
type TargetHttpsProxiesSetSslPolicyCall ¶
type TargetHttpsProxiesSetSslPolicyCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpsProxiesSetSslPolicyCall) Context ¶
func (c *TargetHttpsProxiesSetSslPolicyCall) Context(ctx context.Context) *TargetHttpsProxiesSetSslPolicyCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpsProxiesSetSslPolicyCall) Do ¶
func (c *TargetHttpsProxiesSetSslPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpsProxies.setSslPolicy" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpsProxiesSetSslPolicyCall) Fields ¶
func (c *TargetHttpsProxiesSetSslPolicyCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesSetSslPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpsProxiesSetSslPolicyCall) Header ¶
func (c *TargetHttpsProxiesSetSslPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpsProxiesSetSslPolicyCall) RequestId ¶
func (c *TargetHttpsProxiesSetSslPolicyCall) RequestId(requestId string) *TargetHttpsProxiesSetSslPolicyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetHttpsProxiesSetUrlMapCall ¶
type TargetHttpsProxiesSetUrlMapCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpsProxiesSetUrlMapCall) Context ¶
func (c *TargetHttpsProxiesSetUrlMapCall) Context(ctx context.Context) *TargetHttpsProxiesSetUrlMapCall
Context sets the context to be used in this call's Do method.
func (*TargetHttpsProxiesSetUrlMapCall) Do ¶
func (c *TargetHttpsProxiesSetUrlMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpsProxies.setUrlMap" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetHttpsProxiesSetUrlMapCall) Fields ¶
func (c *TargetHttpsProxiesSetUrlMapCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesSetUrlMapCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetHttpsProxiesSetUrlMapCall) Header ¶
func (c *TargetHttpsProxiesSetUrlMapCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetHttpsProxiesSetUrlMapCall) RequestId ¶
func (c *TargetHttpsProxiesSetUrlMapCall) RequestId(requestId string) *TargetHttpsProxiesSetUrlMapCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetHttpsProxy ¶
type TargetHttpsProxy struct { // AuthorizationPolicy: Optional. A URL referring to a // networksecurity.AuthorizationPolicy resource that describes how the proxy // should authorize inbound traffic. If left blank, access will not be // restricted by an authorization policy. Refer to the AuthorizationPolicy // resource for additional details. authorizationPolicy only applies to a // global TargetHttpsProxy attached to globalForwardingRules with the // loadBalancingScheme set to INTERNAL_SELF_MANAGED. Note: This field currently // has no impact. AuthorizationPolicy string `json:"authorizationPolicy,omitempty"` // CertificateMap: URL of a certificate map that identifies a certificate map // associated with the given target proxy. This field can only be set for // Global external Application Load Balancer or Classic Application Load // Balancer. For other products use Certificate Manager Certificates instead. // If set, sslCertificates will be ignored. Accepted format is // //certificatemanager.googleapis.com/projects/{project // }/locations/{location}/certificateMaps/{resourceName}. CertificateMap string `json:"certificateMap,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents stored in // this object. This field is used in optimistic locking. This field will be // ignored when inserting a TargetHttpsProxy. An up-to-date fingerprint must be // provided in order to patch the TargetHttpsProxy; otherwise, the request will // fail with error 412 conditionNotMet. To see the latest fingerprint, make a // get() request to retrieve the TargetHttpsProxy. Fingerprint string `json:"fingerprint,omitempty"` // HttpKeepAliveTimeoutSec: Specifies how long to keep a connection open, after // completing a response, while there is no matching traffic (in seconds). If // an HTTP keep-alive is not specified, a default value (610 seconds) will be // used. For global external Application Load Balancers, the minimum allowed // value is 5 seconds and the maximum allowed value is 1200 seconds. For // classic Application Load Balancers, this option is not supported. HttpKeepAliveTimeoutSec int64 `json:"httpKeepAliveTimeoutSec,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of resource. Always compute#targetHttpsProxy for // target HTTPS proxies. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // ProxyBind: This field only applies when the forwarding rule that references // this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. // When this field is set to true, Envoy proxies set up inbound traffic // interception and bind to the IP address and port specified in the forwarding // rule. This is generally useful when using Traffic Director to configure // Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). // The Envoy proxy listens for inbound requests and handles requests when it // receives them. The default is false. ProxyBind bool `json:"proxyBind,omitempty"` // QuicOverride: Specifies the QUIC override policy for this TargetHttpsProxy // resource. This setting determines whether the load balancer attempts to // negotiate QUIC with clients. You can specify NONE, ENABLE, or DISABLE. - // When quic-override is set to NONE, Google manages whether QUIC is used. - // When quic-override is set to ENABLE, the load balancer uses QUIC when // possible. - When quic-override is set to DISABLE, the load balancer doesn't // use QUIC. - If the quic-override flag is not specified, NONE is implied. // // Possible values: // "DISABLE" - The load balancer will not attempt to negotiate QUIC with // clients. // "ENABLE" - The load balancer will attempt to negotiate QUIC with clients. // "NONE" - No overrides to the default QUIC policy. This option is implicit // if no QUIC override has been specified in the request. QuicOverride string `json:"quicOverride,omitempty"` // Region: [Output Only] URL of the region where the regional TargetHttpsProxy // resides. This field is not applicable to global TargetHttpsProxies. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ServerTlsPolicy: Optional. A URL referring to a // networksecurity.ServerTlsPolicy resource that describes how the proxy should // authenticate inbound traffic. serverTlsPolicy only applies to a global // TargetHttpsProxy attached to globalForwardingRules with the // loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL or // EXTERNAL_MANAGED. For details which ServerTlsPolicy resources are accepted // with INTERNAL_SELF_MANAGED and which with EXTERNAL, EXTERNAL_MANAGED // loadBalancingScheme consult ServerTlsPolicy documentation. If left blank, // communications are not encrypted. ServerTlsPolicy string `json:"serverTlsPolicy,omitempty"` // SslCertificates: URLs to SslCertificate resources that are used to // authenticate connections between users and the load balancer. At least one // SSL certificate must be specified. SslCertificates do not apply when the // load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer // to a SSL Certificate resource or Certificate Manager Certificate resource. // Mixing Classic Certificates and Certificate Manager Certificates is not // allowed. Certificate Manager Certificates must include the // certificatemanager API. Certificate Manager Certificates are not supported // by Global external Application Load Balancer or Classic Application Load // Balancer, use certificate_map instead. Currently, you may specify up to 15 // Classic SSL Certificates. Certificate Manager Certificates accepted formats // are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ // location}/certificates/{resourceName}. - // https://certificatemanager.googleapis.com/v1alpha1/projects/{project // }/locations/{location}/certificates/{resourceName}. SslCertificates []string `json:"sslCertificates,omitempty"` // SslPolicy: URL of SslPolicy resource that will be associated with the // TargetHttpsProxy resource. If not set, the TargetHttpsProxy resource has no // SSL policy configured. SslPolicy string `json:"sslPolicy,omitempty"` // TlsEarlyData: Specifies whether TLS 1.3 0-RTT Data ("Early Data") should be // accepted for this service. Early Data allows a TLS resumption handshake to // include the initial application payload (a HTTP request) alongside the // handshake, reducing the effective round trips to "zero". This applies to TLS // 1.3 connections over TCP (HTTP/2) as well as over UDP (QUIC/h3). This can // improve application performance, especially on networks where interruptions // may be common, such as on mobile. Requests with Early Data will have the // "Early-Data" HTTP header set on the request, with a value of "1", to allow // the backend to determine whether Early Data was included. Note: TLS Early // Data may allow requests to be replayed, as the data is sent to the backend // before the handshake has fully completed. Applications that allow idempotent // HTTP methods to make non-idempotent changes, such as a GET request updating // a database, should not accept Early Data on those requests, and reject // requests with the "Early-Data: 1" HTTP header by returning a HTTP 425 (Too // Early) status code, in order to remain RFC compliant. The default value is // DISABLED. // // Possible values: // "DISABLED" - TLS 1.3 Early Data is not advertised, and any (invalid) // attempts to send Early Data will be rejected by closing the connection. // "PERMISSIVE" - This enables TLS 1.3 0-RTT, and only allows Early Data to // be included on requests with safe HTTP methods (GET, HEAD, OPTIONS, TRACE). // This mode does not enforce any other limitations for requests with Early // Data. The application owner should validate that Early Data is acceptable // for a given request path. // "STRICT" - This enables TLS 1.3 0-RTT, and only allows Early Data to be // included on requests with safe HTTP methods (GET, HEAD, OPTIONS, TRACE) // without query parameters. Requests that send Early Data with non-idempotent // HTTP methods or with query parameters will be rejected with a HTTP 425. TlsEarlyData string `json:"tlsEarlyData,omitempty"` // UrlMap: A fully-qualified or valid partial URL to the UrlMap resource that // defines the mapping from URL to the BackendService. For example, the // following are all valid URLs for specifying a URL map: - // https://www.googleapis.compute/v1/projects/project/global/urlMaps/ url-map - // projects/project/global/urlMaps/url-map - global/urlMaps/url-map UrlMap string `json:"urlMap,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AuthorizationPolicy") 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. "AuthorizationPolicy") 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:"-"` }
TargetHttpsProxy: Represents a Target HTTPS Proxy resource. Google Compute Engine has two Target HTTPS Proxy resources: * Global (/compute/docs/reference/rest/v1/targetHttpsProxies) * Regional (/compute/docs/reference/rest/v1/regionTargetHttpsProxies) A target HTTPS proxy is a component of GCP HTTPS load balancers. * targetHttpProxies are used by global external Application Load Balancers, classic Application Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * regionTargetHttpProxies are used by regional internal Application Load Balancers and regional external Application Load Balancers. Forwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts.
func (TargetHttpsProxy) MarshalJSON ¶
func (s TargetHttpsProxy) MarshalJSON() ([]byte, error)
type TargetHttpsProxyAggregatedList ¶ added in v0.11.0
type TargetHttpsProxyAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of TargetHttpsProxiesScopedList resources. Items map[string]TargetHttpsProxiesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#targetHttpsProxyAggregatedList for lists of Target HTTP Proxies. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *TargetHttpsProxyAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (TargetHttpsProxyAggregatedList) MarshalJSON ¶ added in v0.11.0
func (s TargetHttpsProxyAggregatedList) MarshalJSON() ([]byte, error)
type TargetHttpsProxyAggregatedListWarning ¶ added in v0.11.0
type TargetHttpsProxyAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetHttpsProxyAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetHttpsProxyAggregatedListWarning: [Output Only] Informational warning message.
func (TargetHttpsProxyAggregatedListWarning) MarshalJSON ¶ added in v0.11.0
func (s TargetHttpsProxyAggregatedListWarning) MarshalJSON() ([]byte, error)
type TargetHttpsProxyAggregatedListWarningData ¶ added in v0.11.0
type TargetHttpsProxyAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetHttpsProxyAggregatedListWarningData) MarshalJSON ¶ added in v0.11.0
func (s TargetHttpsProxyAggregatedListWarningData) MarshalJSON() ([]byte, error)
type TargetHttpsProxyList ¶
type TargetHttpsProxyList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of TargetHttpsProxy resources. Items []*TargetHttpsProxy `json:"items,omitempty"` // Kind: Type of resource. Always compute#targetHttpsProxyList for lists of // target HTTPS proxies. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *TargetHttpsProxyListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
TargetHttpsProxyList: Contains a list of TargetHttpsProxy resources.
func (TargetHttpsProxyList) MarshalJSON ¶
func (s TargetHttpsProxyList) MarshalJSON() ([]byte, error)
type TargetHttpsProxyListWarning ¶
type TargetHttpsProxyListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetHttpsProxyListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetHttpsProxyListWarning: [Output Only] Informational warning message.
func (TargetHttpsProxyListWarning) MarshalJSON ¶
func (s TargetHttpsProxyListWarning) MarshalJSON() ([]byte, error)
type TargetHttpsProxyListWarningData ¶
type TargetHttpsProxyListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetHttpsProxyListWarningData) MarshalJSON ¶
func (s TargetHttpsProxyListWarningData) MarshalJSON() ([]byte, error)
type TargetInstance ¶
type TargetInstance struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Instance: A URL to the virtual machine instance that handles traffic for // this target instance. When creating a target instance, you can provide the // fully-qualified URL or a valid partial URL to the desired virtual machine. // For example, the following are all valid URLs: - // https://www.googleapis.com/compute/v1/projects/project/zones/zone // /instances/instance - projects/project/zones/zone/instances/instance - // zones/zone/instances/instance Instance string `json:"instance,omitempty"` // Kind: [Output Only] The type of the resource. Always compute#targetInstance // for target instances. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // NatPolicy: Must have a value of NO_NAT. Protocol forwarding delivers packets // while preserving the destination IP address of the forwarding rule // referencing the target instance. // // Possible values: // "NO_NAT" - No NAT performed. NatPolicy string `json:"natPolicy,omitempty"` // Network: The URL of the network this target instance uses to forward // traffic. If not specified, the traffic will be forwarded to the network that // the default network interface belongs to. Network string `json:"network,omitempty"` // SecurityPolicy: [Output Only] The resource URL for the security policy // associated with this target instance. SecurityPolicy string `json:"securityPolicy,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Zone: [Output Only] URL of the zone where the target instance resides. You // must specify this field as part of the HTTP request URL. It is not settable // as a field in the request body. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
TargetInstance: Represents a Target Instance resource. You can use a target instance to handle traffic for one or more forwarding rules, which is ideal for forwarding protocol traffic that is managed by a single source. For example, ESP, AH, TCP, or UDP. For more information, read Target instances.
func (TargetInstance) MarshalJSON ¶
func (s TargetInstance) MarshalJSON() ([]byte, error)
type TargetInstanceAggregatedList ¶
type TargetInstanceAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of TargetInstance resources. Items map[string]TargetInstancesScopedList `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *TargetInstanceAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (TargetInstanceAggregatedList) MarshalJSON ¶
func (s TargetInstanceAggregatedList) MarshalJSON() ([]byte, error)
type TargetInstanceAggregatedListWarning ¶
type TargetInstanceAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetInstanceAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetInstanceAggregatedListWarning: [Output Only] Informational warning message.
func (TargetInstanceAggregatedListWarning) MarshalJSON ¶
func (s TargetInstanceAggregatedListWarning) MarshalJSON() ([]byte, error)
type TargetInstanceAggregatedListWarningData ¶
type TargetInstanceAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetInstanceAggregatedListWarningData) MarshalJSON ¶
func (s TargetInstanceAggregatedListWarningData) MarshalJSON() ([]byte, error)
type TargetInstanceList ¶
type TargetInstanceList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of TargetInstance resources. Items []*TargetInstance `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *TargetInstanceListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
TargetInstanceList: Contains a list of TargetInstance resources.
func (TargetInstanceList) MarshalJSON ¶
func (s TargetInstanceList) MarshalJSON() ([]byte, error)
type TargetInstanceListWarning ¶
type TargetInstanceListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetInstanceListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetInstanceListWarning: [Output Only] Informational warning message.
func (TargetInstanceListWarning) MarshalJSON ¶
func (s TargetInstanceListWarning) MarshalJSON() ([]byte, error)
type TargetInstanceListWarningData ¶
type TargetInstanceListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetInstanceListWarningData) MarshalJSON ¶
func (s TargetInstanceListWarningData) MarshalJSON() ([]byte, error)
type TargetInstancesAggregatedListCall ¶
type TargetInstancesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*TargetInstancesAggregatedListCall) Context ¶
func (c *TargetInstancesAggregatedListCall) Context(ctx context.Context) *TargetInstancesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*TargetInstancesAggregatedListCall) Do ¶
func (c *TargetInstancesAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetInstanceAggregatedList, error)
Do executes the "compute.targetInstances.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *TargetInstanceAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetInstancesAggregatedListCall) Fields ¶
func (c *TargetInstancesAggregatedListCall) Fields(s ...googleapi.Field) *TargetInstancesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetInstancesAggregatedListCall) Filter ¶
func (c *TargetInstancesAggregatedListCall) Filter(filter string) *TargetInstancesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*TargetInstancesAggregatedListCall) Header ¶
func (c *TargetInstancesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetInstancesAggregatedListCall) IfNoneMatch ¶
func (c *TargetInstancesAggregatedListCall) IfNoneMatch(entityTag string) *TargetInstancesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*TargetInstancesAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *TargetInstancesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *TargetInstancesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*TargetInstancesAggregatedListCall) MaxResults ¶
func (c *TargetInstancesAggregatedListCall) MaxResults(maxResults int64) *TargetInstancesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*TargetInstancesAggregatedListCall) OrderBy ¶
func (c *TargetInstancesAggregatedListCall) OrderBy(orderBy string) *TargetInstancesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*TargetInstancesAggregatedListCall) PageToken ¶
func (c *TargetInstancesAggregatedListCall) PageToken(pageToken string) *TargetInstancesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*TargetInstancesAggregatedListCall) Pages ¶
func (c *TargetInstancesAggregatedListCall) Pages(ctx context.Context, f func(*TargetInstanceAggregatedList) 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 (*TargetInstancesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *TargetInstancesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetInstancesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*TargetInstancesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *TargetInstancesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *TargetInstancesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type TargetInstancesDeleteCall ¶
type TargetInstancesDeleteCall struct {
// contains filtered or unexported fields
}
func (*TargetInstancesDeleteCall) Context ¶
func (c *TargetInstancesDeleteCall) Context(ctx context.Context) *TargetInstancesDeleteCall
Context sets the context to be used in this call's Do method.
func (*TargetInstancesDeleteCall) Do ¶
func (c *TargetInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetInstances.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetInstancesDeleteCall) Fields ¶
func (c *TargetInstancesDeleteCall) Fields(s ...googleapi.Field) *TargetInstancesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetInstancesDeleteCall) Header ¶
func (c *TargetInstancesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetInstancesDeleteCall) RequestId ¶
func (c *TargetInstancesDeleteCall) RequestId(requestId string) *TargetInstancesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetInstancesGetCall ¶
type TargetInstancesGetCall struct {
// contains filtered or unexported fields
}
func (*TargetInstancesGetCall) Context ¶
func (c *TargetInstancesGetCall) Context(ctx context.Context) *TargetInstancesGetCall
Context sets the context to be used in this call's Do method.
func (*TargetInstancesGetCall) Do ¶
func (c *TargetInstancesGetCall) Do(opts ...googleapi.CallOption) (*TargetInstance, error)
Do executes the "compute.targetInstances.get" call. Any non-2xx status code is an error. Response headers are in either *TargetInstance.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetInstancesGetCall) Fields ¶
func (c *TargetInstancesGetCall) Fields(s ...googleapi.Field) *TargetInstancesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetInstancesGetCall) Header ¶
func (c *TargetInstancesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetInstancesGetCall) IfNoneMatch ¶
func (c *TargetInstancesGetCall) IfNoneMatch(entityTag string) *TargetInstancesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type TargetInstancesInsertCall ¶
type TargetInstancesInsertCall struct {
// contains filtered or unexported fields
}
func (*TargetInstancesInsertCall) Context ¶
func (c *TargetInstancesInsertCall) Context(ctx context.Context) *TargetInstancesInsertCall
Context sets the context to be used in this call's Do method.
func (*TargetInstancesInsertCall) Do ¶
func (c *TargetInstancesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetInstances.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetInstancesInsertCall) Fields ¶
func (c *TargetInstancesInsertCall) Fields(s ...googleapi.Field) *TargetInstancesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetInstancesInsertCall) Header ¶
func (c *TargetInstancesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetInstancesInsertCall) RequestId ¶
func (c *TargetInstancesInsertCall) RequestId(requestId string) *TargetInstancesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetInstancesListCall ¶
type TargetInstancesListCall struct {
// contains filtered or unexported fields
}
func (*TargetInstancesListCall) Context ¶
func (c *TargetInstancesListCall) Context(ctx context.Context) *TargetInstancesListCall
Context sets the context to be used in this call's Do method.
func (*TargetInstancesListCall) Do ¶
func (c *TargetInstancesListCall) Do(opts ...googleapi.CallOption) (*TargetInstanceList, error)
Do executes the "compute.targetInstances.list" call. Any non-2xx status code is an error. Response headers are in either *TargetInstanceList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetInstancesListCall) Fields ¶
func (c *TargetInstancesListCall) Fields(s ...googleapi.Field) *TargetInstancesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetInstancesListCall) Filter ¶
func (c *TargetInstancesListCall) Filter(filter string) *TargetInstancesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*TargetInstancesListCall) Header ¶
func (c *TargetInstancesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetInstancesListCall) IfNoneMatch ¶
func (c *TargetInstancesListCall) IfNoneMatch(entityTag string) *TargetInstancesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*TargetInstancesListCall) MaxResults ¶
func (c *TargetInstancesListCall) MaxResults(maxResults int64) *TargetInstancesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*TargetInstancesListCall) OrderBy ¶
func (c *TargetInstancesListCall) OrderBy(orderBy string) *TargetInstancesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*TargetInstancesListCall) PageToken ¶
func (c *TargetInstancesListCall) PageToken(pageToken string) *TargetInstancesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*TargetInstancesListCall) Pages ¶
func (c *TargetInstancesListCall) Pages(ctx context.Context, f func(*TargetInstanceList) 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 (*TargetInstancesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *TargetInstancesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetInstancesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type TargetInstancesScopedList ¶
type TargetInstancesScopedList struct { // TargetInstances: A list of target instances contained in this scope. TargetInstances []*TargetInstance `json:"targetInstances,omitempty"` // Warning: Informational warning which replaces the list of addresses when the // list is empty. Warning *TargetInstancesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "TargetInstances") 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. "TargetInstances") 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:"-"` }
func (TargetInstancesScopedList) MarshalJSON ¶
func (s TargetInstancesScopedList) MarshalJSON() ([]byte, error)
type TargetInstancesScopedListWarning ¶
type TargetInstancesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetInstancesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetInstancesScopedListWarning: Informational warning which replaces the list of addresses when the list is empty.
func (TargetInstancesScopedListWarning) MarshalJSON ¶
func (s TargetInstancesScopedListWarning) MarshalJSON() ([]byte, error)
type TargetInstancesScopedListWarningData ¶
type TargetInstancesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetInstancesScopedListWarningData) MarshalJSON ¶
func (s TargetInstancesScopedListWarningData) MarshalJSON() ([]byte, error)
type TargetInstancesService ¶
type TargetInstancesService struct {
// contains filtered or unexported fields
}
func NewTargetInstancesService ¶
func NewTargetInstancesService(s *Service) *TargetInstancesService
func (*TargetInstancesService) AggregatedList ¶
func (r *TargetInstancesService) AggregatedList(project string) *TargetInstancesAggregatedListCall
AggregatedList: Retrieves an aggregated list of target instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*TargetInstancesService) Delete ¶
func (r *TargetInstancesService) Delete(project string, zone string, targetInstance string) *TargetInstancesDeleteCall
Delete: Deletes the specified TargetInstance resource.
- project: Project ID for this request. - targetInstance: Name of the TargetInstance resource to delete. - zone: Name of the zone scoping this request.
func (*TargetInstancesService) Get ¶
func (r *TargetInstancesService) Get(project string, zone string, targetInstance string) *TargetInstancesGetCall
Get: Returns the specified TargetInstance resource.
- project: Project ID for this request. - targetInstance: Name of the TargetInstance resource to return. - zone: Name of the zone scoping this request.
func (*TargetInstancesService) Insert ¶
func (r *TargetInstancesService) Insert(project string, zone string, targetinstance *TargetInstance) *TargetInstancesInsertCall
Insert: Creates a TargetInstance resource in the specified project and zone using the data included in the request.
- project: Project ID for this request. - zone: Name of the zone scoping this request.
func (*TargetInstancesService) List ¶
func (r *TargetInstancesService) List(project string, zone string) *TargetInstancesListCall
List: Retrieves a list of TargetInstance resources available to the specified project and zone.
- project: Project ID for this request. - zone: Name of the zone scoping this request.
func (*TargetInstancesService) SetSecurityPolicy ¶ added in v0.139.0
func (r *TargetInstancesService) SetSecurityPolicy(project string, zone string, targetInstance string, securitypolicyreference *SecurityPolicyReference) *TargetInstancesSetSecurityPolicyCall
SetSecurityPolicy: Sets the Google Cloud Armor security policy for the specified target instance. For more information, see Google Cloud Armor Overview
- project: Project ID for this request.
- targetInstance: Name of the TargetInstance resource to which the security policy should be set. The name should conform to RFC1035.
- zone: Name of the zone scoping this request.
type TargetInstancesSetSecurityPolicyCall ¶ added in v0.139.0
type TargetInstancesSetSecurityPolicyCall struct {
// contains filtered or unexported fields
}
func (*TargetInstancesSetSecurityPolicyCall) Context ¶ added in v0.139.0
func (c *TargetInstancesSetSecurityPolicyCall) Context(ctx context.Context) *TargetInstancesSetSecurityPolicyCall
Context sets the context to be used in this call's Do method.
func (*TargetInstancesSetSecurityPolicyCall) Do ¶ added in v0.139.0
func (c *TargetInstancesSetSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetInstances.setSecurityPolicy" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetInstancesSetSecurityPolicyCall) Fields ¶ added in v0.139.0
func (c *TargetInstancesSetSecurityPolicyCall) Fields(s ...googleapi.Field) *TargetInstancesSetSecurityPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetInstancesSetSecurityPolicyCall) Header ¶ added in v0.139.0
func (c *TargetInstancesSetSecurityPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetInstancesSetSecurityPolicyCall) RequestId ¶ added in v0.139.0
func (c *TargetInstancesSetSecurityPolicyCall) RequestId(requestId string) *TargetInstancesSetSecurityPolicyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetPool ¶
type TargetPool struct { // BackupPool: The server-defined URL for the resource. This field is // applicable only when the containing target pool is serving a forwarding rule // as the primary pool, and its failoverRatio field is properly set to a value // between [0, 1]. backupPool and failoverRatio together define the fallback // behavior of the primary target pool: if the ratio of the healthy instances // in the primary pool is at or below failoverRatio, traffic arriving at the // load-balanced IP will be directed to the backup pool. In case where // failoverRatio and backupPool are not set, or all the instances in the backup // pool are unhealthy, the traffic will be directed back to the primary pool in // the "force" mode, where traffic will be spread to the healthy instances with // the best effort, or to all instances when no instance is healthy. BackupPool string `json:"backupPool,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // FailoverRatio: This field is applicable only when the containing target pool // is serving a forwarding rule as the primary pool (i.e., not as a backup pool // to some other target pool). The value of the field must be in [0, 1]. If // set, backupPool must also be set. They together define the fallback behavior // of the primary target pool: if the ratio of the healthy instances in the // primary pool is at or below this number, traffic arriving at the // load-balanced IP will be directed to the backup pool. In case where // failoverRatio is not set or all the instances in the backup pool are // unhealthy, the traffic will be directed back to the primary pool in the // "force" mode, where traffic will be spread to the healthy instances with the // best effort, or to all instances when no instance is healthy. FailoverRatio float64 `json:"failoverRatio,omitempty"` // HealthChecks: The URL of the HttpHealthCheck resource. A member instance in // this pool is considered healthy if and only if the health checks pass. Only // legacy HttpHealthChecks are supported. Only one health check may be // specified. HealthChecks []string `json:"healthChecks,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Instances: A list of resource URLs to the virtual machine instances serving // this pool. They must live in zones contained in the same region as this // pool. Instances []string `json:"instances,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#targetPool for // target pools. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Region: [Output Only] URL of the region where the target pool resides. Region string `json:"region,omitempty"` // SecurityPolicy: [Output Only] The resource URL for the security policy // associated with this target pool. SecurityPolicy string `json:"securityPolicy,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SessionAffinity: Session affinity option, must be one of the following // values: NONE: Connections from the same client IP may go to any instance in // the pool. CLIENT_IP: Connections from the same client IP will go to the same // instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: // Connections from the same client IP with the same IP protocol will go to the // same instance in the pool while that instance remains healthy. // // Possible values: // "CLIENT_IP" - 2-tuple hash on packet's source and destination IP // addresses. Connections from the same source IP address to the same // destination IP address will be served by the same backend VM while that VM // remains healthy. // "CLIENT_IP_NO_DESTINATION" - 1-tuple hash only on packet's source IP // address. Connections from the same source IP address will be served by the // same backend VM while that VM remains healthy. This option can only be used // for Internal TCP/UDP Load Balancing. // "CLIENT_IP_PORT_PROTO" - 5-tuple hash on packet's source and destination // IP addresses, IP protocol, and source and destination ports. Connections for // the same IP protocol from the same source IP address and port to the same // destination IP address and port will be served by the same backend VM while // that VM remains healthy. This option cannot be used for HTTP(S) load // balancing. // "CLIENT_IP_PROTO" - 3-tuple hash on packet's source and destination IP // addresses, and IP protocol. Connections for the same IP protocol from the // same source IP address to the same destination IP address will be served by // the same backend VM while that VM remains healthy. This option cannot be // used for HTTP(S) load balancing. // "GENERATED_COOKIE" - Hash based on a cookie generated by the L7 // loadbalancer. Only valid for HTTP(S) load balancing. // "HEADER_FIELD" - The hash is based on a user specified header field. // "HTTP_COOKIE" - The hash is based on a user provided cookie. // "NONE" - No session affinity. Connections from the same client IP may go // to any instance in the pool. SessionAffinity string `json:"sessionAffinity,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "BackupPool") 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. "BackupPool") 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:"-"` }
TargetPool: Represents a Target Pool resource. Target pools are used with external passthrough Network Load Balancers. A target pool references member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup target pool. For more information, read Using target pools.
func (TargetPool) MarshalJSON ¶
func (s TargetPool) MarshalJSON() ([]byte, error)
func (*TargetPool) UnmarshalJSON ¶
func (s *TargetPool) UnmarshalJSON(data []byte) error
type TargetPoolAggregatedList ¶
type TargetPoolAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of TargetPool resources. Items map[string]TargetPoolsScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#targetPoolAggregatedList for aggregated lists of target pools. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *TargetPoolAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (TargetPoolAggregatedList) MarshalJSON ¶
func (s TargetPoolAggregatedList) MarshalJSON() ([]byte, error)
type TargetPoolAggregatedListWarning ¶
type TargetPoolAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetPoolAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetPoolAggregatedListWarning: [Output Only] Informational warning message.
func (TargetPoolAggregatedListWarning) MarshalJSON ¶
func (s TargetPoolAggregatedListWarning) MarshalJSON() ([]byte, error)
type TargetPoolAggregatedListWarningData ¶
type TargetPoolAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetPoolAggregatedListWarningData) MarshalJSON ¶
func (s TargetPoolAggregatedListWarningData) MarshalJSON() ([]byte, error)
type TargetPoolInstanceHealth ¶
type TargetPoolInstanceHealth struct { HealthStatus []*HealthStatus `json:"healthStatus,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#targetPoolInstanceHealth when checking the health of an instance. Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "HealthStatus") 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. "HealthStatus") 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:"-"` }
func (TargetPoolInstanceHealth) MarshalJSON ¶
func (s TargetPoolInstanceHealth) MarshalJSON() ([]byte, error)
type TargetPoolList ¶
type TargetPoolList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of TargetPool resources. Items []*TargetPool `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#targetPoolList for // lists of target pools. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *TargetPoolListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
TargetPoolList: Contains a list of TargetPool resources.
func (TargetPoolList) MarshalJSON ¶
func (s TargetPoolList) MarshalJSON() ([]byte, error)
type TargetPoolListWarning ¶
type TargetPoolListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetPoolListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetPoolListWarning: [Output Only] Informational warning message.
func (TargetPoolListWarning) MarshalJSON ¶
func (s TargetPoolListWarning) MarshalJSON() ([]byte, error)
type TargetPoolListWarningData ¶
type TargetPoolListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetPoolListWarningData) MarshalJSON ¶
func (s TargetPoolListWarningData) MarshalJSON() ([]byte, error)
type TargetPoolsAddHealthCheckCall ¶
type TargetPoolsAddHealthCheckCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsAddHealthCheckCall) Context ¶
func (c *TargetPoolsAddHealthCheckCall) Context(ctx context.Context) *TargetPoolsAddHealthCheckCall
Context sets the context to be used in this call's Do method.
func (*TargetPoolsAddHealthCheckCall) Do ¶
func (c *TargetPoolsAddHealthCheckCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetPools.addHealthCheck" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetPoolsAddHealthCheckCall) Fields ¶
func (c *TargetPoolsAddHealthCheckCall) Fields(s ...googleapi.Field) *TargetPoolsAddHealthCheckCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetPoolsAddHealthCheckCall) Header ¶
func (c *TargetPoolsAddHealthCheckCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetPoolsAddHealthCheckCall) RequestId ¶
func (c *TargetPoolsAddHealthCheckCall) RequestId(requestId string) *TargetPoolsAddHealthCheckCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetPoolsAddHealthCheckRequest ¶
type TargetPoolsAddHealthCheckRequest struct { // HealthChecks: The HttpHealthCheck to add to the target pool. HealthChecks []*HealthCheckReference `json:"healthChecks,omitempty"` // ForceSendFields is a list of field names (e.g. "HealthChecks") 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. "HealthChecks") 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:"-"` }
func (TargetPoolsAddHealthCheckRequest) MarshalJSON ¶
func (s TargetPoolsAddHealthCheckRequest) MarshalJSON() ([]byte, error)
type TargetPoolsAddInstanceCall ¶
type TargetPoolsAddInstanceCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsAddInstanceCall) Context ¶
func (c *TargetPoolsAddInstanceCall) Context(ctx context.Context) *TargetPoolsAddInstanceCall
Context sets the context to be used in this call's Do method.
func (*TargetPoolsAddInstanceCall) Do ¶
func (c *TargetPoolsAddInstanceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetPools.addInstance" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetPoolsAddInstanceCall) Fields ¶
func (c *TargetPoolsAddInstanceCall) Fields(s ...googleapi.Field) *TargetPoolsAddInstanceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetPoolsAddInstanceCall) Header ¶
func (c *TargetPoolsAddInstanceCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetPoolsAddInstanceCall) RequestId ¶
func (c *TargetPoolsAddInstanceCall) RequestId(requestId string) *TargetPoolsAddInstanceCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetPoolsAddInstanceRequest ¶
type TargetPoolsAddInstanceRequest struct { // Instances: A full or partial URL to an instance to add to this target pool. // This can be a full or partial URL. For example, the following are valid // URLs: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone // /instances/instance-name - // projects/project-id/zones/zone/instances/instance-name - // zones/zone/instances/instance-name Instances []*InstanceReference `json:"instances,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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:"-"` }
func (TargetPoolsAddInstanceRequest) MarshalJSON ¶
func (s TargetPoolsAddInstanceRequest) MarshalJSON() ([]byte, error)
type TargetPoolsAggregatedListCall ¶
type TargetPoolsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsAggregatedListCall) Context ¶
func (c *TargetPoolsAggregatedListCall) Context(ctx context.Context) *TargetPoolsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*TargetPoolsAggregatedListCall) Do ¶
func (c *TargetPoolsAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetPoolAggregatedList, error)
Do executes the "compute.targetPools.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *TargetPoolAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetPoolsAggregatedListCall) Fields ¶
func (c *TargetPoolsAggregatedListCall) Fields(s ...googleapi.Field) *TargetPoolsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetPoolsAggregatedListCall) Filter ¶
func (c *TargetPoolsAggregatedListCall) Filter(filter string) *TargetPoolsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*TargetPoolsAggregatedListCall) Header ¶
func (c *TargetPoolsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetPoolsAggregatedListCall) IfNoneMatch ¶
func (c *TargetPoolsAggregatedListCall) IfNoneMatch(entityTag string) *TargetPoolsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*TargetPoolsAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *TargetPoolsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *TargetPoolsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*TargetPoolsAggregatedListCall) MaxResults ¶
func (c *TargetPoolsAggregatedListCall) MaxResults(maxResults int64) *TargetPoolsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*TargetPoolsAggregatedListCall) OrderBy ¶
func (c *TargetPoolsAggregatedListCall) OrderBy(orderBy string) *TargetPoolsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*TargetPoolsAggregatedListCall) PageToken ¶
func (c *TargetPoolsAggregatedListCall) PageToken(pageToken string) *TargetPoolsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*TargetPoolsAggregatedListCall) Pages ¶
func (c *TargetPoolsAggregatedListCall) Pages(ctx context.Context, f func(*TargetPoolAggregatedList) 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 (*TargetPoolsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *TargetPoolsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetPoolsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*TargetPoolsAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *TargetPoolsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *TargetPoolsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type TargetPoolsDeleteCall ¶
type TargetPoolsDeleteCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsDeleteCall) Context ¶
func (c *TargetPoolsDeleteCall) Context(ctx context.Context) *TargetPoolsDeleteCall
Context sets the context to be used in this call's Do method.
func (*TargetPoolsDeleteCall) Do ¶
func (c *TargetPoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetPools.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetPoolsDeleteCall) Fields ¶
func (c *TargetPoolsDeleteCall) Fields(s ...googleapi.Field) *TargetPoolsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetPoolsDeleteCall) Header ¶
func (c *TargetPoolsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetPoolsDeleteCall) RequestId ¶
func (c *TargetPoolsDeleteCall) RequestId(requestId string) *TargetPoolsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetPoolsGetCall ¶
type TargetPoolsGetCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsGetCall) Context ¶
func (c *TargetPoolsGetCall) Context(ctx context.Context) *TargetPoolsGetCall
Context sets the context to be used in this call's Do method.
func (*TargetPoolsGetCall) Do ¶
func (c *TargetPoolsGetCall) Do(opts ...googleapi.CallOption) (*TargetPool, error)
Do executes the "compute.targetPools.get" call. Any non-2xx status code is an error. Response headers are in either *TargetPool.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetPoolsGetCall) Fields ¶
func (c *TargetPoolsGetCall) Fields(s ...googleapi.Field) *TargetPoolsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetPoolsGetCall) Header ¶
func (c *TargetPoolsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetPoolsGetCall) IfNoneMatch ¶
func (c *TargetPoolsGetCall) IfNoneMatch(entityTag string) *TargetPoolsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type TargetPoolsGetHealthCall ¶
type TargetPoolsGetHealthCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsGetHealthCall) Context ¶
func (c *TargetPoolsGetHealthCall) Context(ctx context.Context) *TargetPoolsGetHealthCall
Context sets the context to be used in this call's Do method.
func (*TargetPoolsGetHealthCall) Do ¶
func (c *TargetPoolsGetHealthCall) Do(opts ...googleapi.CallOption) (*TargetPoolInstanceHealth, error)
Do executes the "compute.targetPools.getHealth" call. Any non-2xx status code is an error. Response headers are in either *TargetPoolInstanceHealth.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetPoolsGetHealthCall) Fields ¶
func (c *TargetPoolsGetHealthCall) Fields(s ...googleapi.Field) *TargetPoolsGetHealthCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetPoolsGetHealthCall) Header ¶
func (c *TargetPoolsGetHealthCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type TargetPoolsInsertCall ¶
type TargetPoolsInsertCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsInsertCall) Context ¶
func (c *TargetPoolsInsertCall) Context(ctx context.Context) *TargetPoolsInsertCall
Context sets the context to be used in this call's Do method.
func (*TargetPoolsInsertCall) Do ¶
func (c *TargetPoolsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetPools.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetPoolsInsertCall) Fields ¶
func (c *TargetPoolsInsertCall) Fields(s ...googleapi.Field) *TargetPoolsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetPoolsInsertCall) Header ¶
func (c *TargetPoolsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetPoolsInsertCall) RequestId ¶
func (c *TargetPoolsInsertCall) RequestId(requestId string) *TargetPoolsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetPoolsListCall ¶
type TargetPoolsListCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsListCall) Context ¶
func (c *TargetPoolsListCall) Context(ctx context.Context) *TargetPoolsListCall
Context sets the context to be used in this call's Do method.
func (*TargetPoolsListCall) Do ¶
func (c *TargetPoolsListCall) Do(opts ...googleapi.CallOption) (*TargetPoolList, error)
Do executes the "compute.targetPools.list" call. Any non-2xx status code is an error. Response headers are in either *TargetPoolList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetPoolsListCall) Fields ¶
func (c *TargetPoolsListCall) Fields(s ...googleapi.Field) *TargetPoolsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetPoolsListCall) Filter ¶
func (c *TargetPoolsListCall) Filter(filter string) *TargetPoolsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*TargetPoolsListCall) Header ¶
func (c *TargetPoolsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetPoolsListCall) IfNoneMatch ¶
func (c *TargetPoolsListCall) IfNoneMatch(entityTag string) *TargetPoolsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*TargetPoolsListCall) MaxResults ¶
func (c *TargetPoolsListCall) MaxResults(maxResults int64) *TargetPoolsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*TargetPoolsListCall) OrderBy ¶
func (c *TargetPoolsListCall) OrderBy(orderBy string) *TargetPoolsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*TargetPoolsListCall) PageToken ¶
func (c *TargetPoolsListCall) PageToken(pageToken string) *TargetPoolsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*TargetPoolsListCall) Pages ¶
func (c *TargetPoolsListCall) Pages(ctx context.Context, f func(*TargetPoolList) 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 (*TargetPoolsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *TargetPoolsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetPoolsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type TargetPoolsRemoveHealthCheckCall ¶
type TargetPoolsRemoveHealthCheckCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsRemoveHealthCheckCall) Context ¶
func (c *TargetPoolsRemoveHealthCheckCall) Context(ctx context.Context) *TargetPoolsRemoveHealthCheckCall
Context sets the context to be used in this call's Do method.
func (*TargetPoolsRemoveHealthCheckCall) Do ¶
func (c *TargetPoolsRemoveHealthCheckCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetPools.removeHealthCheck" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetPoolsRemoveHealthCheckCall) Fields ¶
func (c *TargetPoolsRemoveHealthCheckCall) Fields(s ...googleapi.Field) *TargetPoolsRemoveHealthCheckCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetPoolsRemoveHealthCheckCall) Header ¶
func (c *TargetPoolsRemoveHealthCheckCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetPoolsRemoveHealthCheckCall) RequestId ¶
func (c *TargetPoolsRemoveHealthCheckCall) RequestId(requestId string) *TargetPoolsRemoveHealthCheckCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetPoolsRemoveHealthCheckRequest ¶
type TargetPoolsRemoveHealthCheckRequest struct { // HealthChecks: Health check URL to be removed. This can be a full or valid // partial URL. For example, the following are valid URLs: - // https://www.googleapis.com/compute/beta/projects/project // /global/httpHealthChecks/health-check - // projects/project/global/httpHealthChecks/health-check - // global/httpHealthChecks/health-check HealthChecks []*HealthCheckReference `json:"healthChecks,omitempty"` // ForceSendFields is a list of field names (e.g. "HealthChecks") 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. "HealthChecks") 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:"-"` }
func (TargetPoolsRemoveHealthCheckRequest) MarshalJSON ¶
func (s TargetPoolsRemoveHealthCheckRequest) MarshalJSON() ([]byte, error)
type TargetPoolsRemoveInstanceCall ¶
type TargetPoolsRemoveInstanceCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsRemoveInstanceCall) Context ¶
func (c *TargetPoolsRemoveInstanceCall) Context(ctx context.Context) *TargetPoolsRemoveInstanceCall
Context sets the context to be used in this call's Do method.
func (*TargetPoolsRemoveInstanceCall) Do ¶
func (c *TargetPoolsRemoveInstanceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetPools.removeInstance" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetPoolsRemoveInstanceCall) Fields ¶
func (c *TargetPoolsRemoveInstanceCall) Fields(s ...googleapi.Field) *TargetPoolsRemoveInstanceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetPoolsRemoveInstanceCall) Header ¶
func (c *TargetPoolsRemoveInstanceCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetPoolsRemoveInstanceCall) RequestId ¶
func (c *TargetPoolsRemoveInstanceCall) RequestId(requestId string) *TargetPoolsRemoveInstanceCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetPoolsRemoveInstanceRequest ¶
type TargetPoolsRemoveInstanceRequest struct { // Instances: URLs of the instances to be removed from target pool. Instances []*InstanceReference `json:"instances,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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:"-"` }
func (TargetPoolsRemoveInstanceRequest) MarshalJSON ¶
func (s TargetPoolsRemoveInstanceRequest) MarshalJSON() ([]byte, error)
type TargetPoolsScopedList ¶
type TargetPoolsScopedList struct { // TargetPools: A list of target pools contained in this scope. TargetPools []*TargetPool `json:"targetPools,omitempty"` // Warning: Informational warning which replaces the list of addresses when the // list is empty. Warning *TargetPoolsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "TargetPools") 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. "TargetPools") 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:"-"` }
func (TargetPoolsScopedList) MarshalJSON ¶
func (s TargetPoolsScopedList) MarshalJSON() ([]byte, error)
type TargetPoolsScopedListWarning ¶
type TargetPoolsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetPoolsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetPoolsScopedListWarning: Informational warning which replaces the list of addresses when the list is empty.
func (TargetPoolsScopedListWarning) MarshalJSON ¶
func (s TargetPoolsScopedListWarning) MarshalJSON() ([]byte, error)
type TargetPoolsScopedListWarningData ¶
type TargetPoolsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetPoolsScopedListWarningData) MarshalJSON ¶
func (s TargetPoolsScopedListWarningData) MarshalJSON() ([]byte, error)
type TargetPoolsService ¶
type TargetPoolsService struct {
// contains filtered or unexported fields
}
func NewTargetPoolsService ¶
func NewTargetPoolsService(s *Service) *TargetPoolsService
func (*TargetPoolsService) AddHealthCheck ¶
func (r *TargetPoolsService) AddHealthCheck(project string, region string, targetPool string, targetpoolsaddhealthcheckrequest *TargetPoolsAddHealthCheckRequest) *TargetPoolsAddHealthCheckCall
AddHealthCheck: Adds health check URLs to a target pool.
- project: Project ID for this request. - region: Name of the region scoping this request. - targetPool: Name of the target pool to add a health check to.
func (*TargetPoolsService) AddInstance ¶
func (r *TargetPoolsService) AddInstance(project string, region string, targetPool string, targetpoolsaddinstancerequest *TargetPoolsAddInstanceRequest) *TargetPoolsAddInstanceCall
AddInstance: Adds an instance to a target pool.
- project: Project ID for this request. - region: Name of the region scoping this request. - targetPool: Name of the TargetPool resource to add instances to.
func (*TargetPoolsService) AggregatedList ¶
func (r *TargetPoolsService) AggregatedList(project string) *TargetPoolsAggregatedListCall
AggregatedList: Retrieves an aggregated list of target pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*TargetPoolsService) Delete ¶
func (r *TargetPoolsService) Delete(project string, region string, targetPool string) *TargetPoolsDeleteCall
Delete: Deletes the specified target pool.
- project: Project ID for this request. - region: Name of the region scoping this request. - targetPool: Name of the TargetPool resource to delete.
func (*TargetPoolsService) Get ¶
func (r *TargetPoolsService) Get(project string, region string, targetPool string) *TargetPoolsGetCall
Get: Returns the specified target pool.
- project: Project ID for this request. - region: Name of the region scoping this request. - targetPool: Name of the TargetPool resource to return.
func (*TargetPoolsService) GetHealth ¶
func (r *TargetPoolsService) GetHealth(project string, region string, targetPool string, instancereference *InstanceReference) *TargetPoolsGetHealthCall
GetHealth: Gets the most recent health check results for each IP for the instance that is referenced by the given target pool.
- project: Project ID for this request.
- region: Name of the region scoping this request.
- targetPool: Name of the TargetPool resource to which the queried instance belongs.
func (*TargetPoolsService) Insert ¶
func (r *TargetPoolsService) Insert(project string, region string, targetpool *TargetPool) *TargetPoolsInsertCall
Insert: Creates a target pool in the specified project and region using the data included in the request.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*TargetPoolsService) List ¶
func (r *TargetPoolsService) List(project string, region string) *TargetPoolsListCall
List: Retrieves a list of target pools available to the specified project and region.
- project: Project ID for this request. - region: Name of the region scoping this request.
func (*TargetPoolsService) RemoveHealthCheck ¶
func (r *TargetPoolsService) RemoveHealthCheck(project string, region string, targetPool string, targetpoolsremovehealthcheckrequest *TargetPoolsRemoveHealthCheckRequest) *TargetPoolsRemoveHealthCheckCall
RemoveHealthCheck: Removes health check URL from a target pool.
- project: Project ID for this request. - region: Name of the region for this request. - targetPool: Name of the target pool to remove health checks from.
func (*TargetPoolsService) RemoveInstance ¶
func (r *TargetPoolsService) RemoveInstance(project string, region string, targetPool string, targetpoolsremoveinstancerequest *TargetPoolsRemoveInstanceRequest) *TargetPoolsRemoveInstanceCall
RemoveInstance: Removes instance URL from a target pool.
- project: Project ID for this request. - region: Name of the region scoping this request. - targetPool: Name of the TargetPool resource to remove instances from.
func (*TargetPoolsService) SetBackup ¶
func (r *TargetPoolsService) SetBackup(project string, region string, targetPool string, targetreference *TargetReference) *TargetPoolsSetBackupCall
SetBackup: Changes a backup target pool's configurations.
- project: Project ID for this request. - region: Name of the region scoping this request. - targetPool: Name of the TargetPool resource to set a backup pool for.
func (*TargetPoolsService) SetSecurityPolicy ¶ added in v0.139.0
func (r *TargetPoolsService) SetSecurityPolicy(project string, region string, targetPool string, securitypolicyreference *SecurityPolicyReference) *TargetPoolsSetSecurityPolicyCall
SetSecurityPolicy: Sets the Google Cloud Armor security policy for the specified target pool. For more information, see Google Cloud Armor Overview
- project: Project ID for this request.
- region: Name of the region scoping this request.
- targetPool: Name of the TargetPool resource to which the security policy should be set. The name should conform to RFC1035.
type TargetPoolsSetBackupCall ¶
type TargetPoolsSetBackupCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsSetBackupCall) Context ¶
func (c *TargetPoolsSetBackupCall) Context(ctx context.Context) *TargetPoolsSetBackupCall
Context sets the context to be used in this call's Do method.
func (*TargetPoolsSetBackupCall) Do ¶
func (c *TargetPoolsSetBackupCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetPools.setBackup" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetPoolsSetBackupCall) FailoverRatio ¶
func (c *TargetPoolsSetBackupCall) FailoverRatio(failoverRatio float64) *TargetPoolsSetBackupCall
FailoverRatio sets the optional parameter "failoverRatio": New failoverRatio value for the target pool.
func (*TargetPoolsSetBackupCall) Fields ¶
func (c *TargetPoolsSetBackupCall) Fields(s ...googleapi.Field) *TargetPoolsSetBackupCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetPoolsSetBackupCall) Header ¶
func (c *TargetPoolsSetBackupCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetPoolsSetBackupCall) RequestId ¶
func (c *TargetPoolsSetBackupCall) RequestId(requestId string) *TargetPoolsSetBackupCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetPoolsSetSecurityPolicyCall ¶ added in v0.139.0
type TargetPoolsSetSecurityPolicyCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsSetSecurityPolicyCall) Context ¶ added in v0.139.0
func (c *TargetPoolsSetSecurityPolicyCall) Context(ctx context.Context) *TargetPoolsSetSecurityPolicyCall
Context sets the context to be used in this call's Do method.
func (*TargetPoolsSetSecurityPolicyCall) Do ¶ added in v0.139.0
func (c *TargetPoolsSetSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetPools.setSecurityPolicy" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetPoolsSetSecurityPolicyCall) Fields ¶ added in v0.139.0
func (c *TargetPoolsSetSecurityPolicyCall) Fields(s ...googleapi.Field) *TargetPoolsSetSecurityPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetPoolsSetSecurityPolicyCall) Header ¶ added in v0.139.0
func (c *TargetPoolsSetSecurityPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetPoolsSetSecurityPolicyCall) RequestId ¶ added in v0.139.0
func (c *TargetPoolsSetSecurityPolicyCall) RequestId(requestId string) *TargetPoolsSetSecurityPolicyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetReference ¶
type TargetReference struct { Target string `json:"target,omitempty"` // ForceSendFields is a list of field names (e.g. "Target") 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. "Target") 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:"-"` }
func (TargetReference) MarshalJSON ¶
func (s TargetReference) MarshalJSON() ([]byte, error)
type TargetSslProxiesDeleteCall ¶
type TargetSslProxiesDeleteCall struct {
// contains filtered or unexported fields
}
func (*TargetSslProxiesDeleteCall) Context ¶
func (c *TargetSslProxiesDeleteCall) Context(ctx context.Context) *TargetSslProxiesDeleteCall
Context sets the context to be used in this call's Do method.
func (*TargetSslProxiesDeleteCall) Do ¶
func (c *TargetSslProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetSslProxies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetSslProxiesDeleteCall) Fields ¶
func (c *TargetSslProxiesDeleteCall) Fields(s ...googleapi.Field) *TargetSslProxiesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetSslProxiesDeleteCall) Header ¶
func (c *TargetSslProxiesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetSslProxiesDeleteCall) RequestId ¶
func (c *TargetSslProxiesDeleteCall) RequestId(requestId string) *TargetSslProxiesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetSslProxiesGetCall ¶
type TargetSslProxiesGetCall struct {
// contains filtered or unexported fields
}
func (*TargetSslProxiesGetCall) Context ¶
func (c *TargetSslProxiesGetCall) Context(ctx context.Context) *TargetSslProxiesGetCall
Context sets the context to be used in this call's Do method.
func (*TargetSslProxiesGetCall) Do ¶
func (c *TargetSslProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetSslProxy, error)
Do executes the "compute.targetSslProxies.get" call. Any non-2xx status code is an error. Response headers are in either *TargetSslProxy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetSslProxiesGetCall) Fields ¶
func (c *TargetSslProxiesGetCall) Fields(s ...googleapi.Field) *TargetSslProxiesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetSslProxiesGetCall) Header ¶
func (c *TargetSslProxiesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetSslProxiesGetCall) IfNoneMatch ¶
func (c *TargetSslProxiesGetCall) IfNoneMatch(entityTag string) *TargetSslProxiesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type TargetSslProxiesInsertCall ¶
type TargetSslProxiesInsertCall struct {
// contains filtered or unexported fields
}
func (*TargetSslProxiesInsertCall) Context ¶
func (c *TargetSslProxiesInsertCall) Context(ctx context.Context) *TargetSslProxiesInsertCall
Context sets the context to be used in this call's Do method.
func (*TargetSslProxiesInsertCall) Do ¶
func (c *TargetSslProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetSslProxies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetSslProxiesInsertCall) Fields ¶
func (c *TargetSslProxiesInsertCall) Fields(s ...googleapi.Field) *TargetSslProxiesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetSslProxiesInsertCall) Header ¶
func (c *TargetSslProxiesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetSslProxiesInsertCall) RequestId ¶
func (c *TargetSslProxiesInsertCall) RequestId(requestId string) *TargetSslProxiesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetSslProxiesListCall ¶
type TargetSslProxiesListCall struct {
// contains filtered or unexported fields
}
func (*TargetSslProxiesListCall) Context ¶
func (c *TargetSslProxiesListCall) Context(ctx context.Context) *TargetSslProxiesListCall
Context sets the context to be used in this call's Do method.
func (*TargetSslProxiesListCall) Do ¶
func (c *TargetSslProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetSslProxyList, error)
Do executes the "compute.targetSslProxies.list" call. Any non-2xx status code is an error. Response headers are in either *TargetSslProxyList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetSslProxiesListCall) Fields ¶
func (c *TargetSslProxiesListCall) Fields(s ...googleapi.Field) *TargetSslProxiesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetSslProxiesListCall) Filter ¶
func (c *TargetSslProxiesListCall) Filter(filter string) *TargetSslProxiesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*TargetSslProxiesListCall) Header ¶
func (c *TargetSslProxiesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetSslProxiesListCall) IfNoneMatch ¶
func (c *TargetSslProxiesListCall) IfNoneMatch(entityTag string) *TargetSslProxiesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*TargetSslProxiesListCall) MaxResults ¶
func (c *TargetSslProxiesListCall) MaxResults(maxResults int64) *TargetSslProxiesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*TargetSslProxiesListCall) OrderBy ¶
func (c *TargetSslProxiesListCall) OrderBy(orderBy string) *TargetSslProxiesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*TargetSslProxiesListCall) PageToken ¶
func (c *TargetSslProxiesListCall) PageToken(pageToken string) *TargetSslProxiesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*TargetSslProxiesListCall) Pages ¶
func (c *TargetSslProxiesListCall) Pages(ctx context.Context, f func(*TargetSslProxyList) 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 (*TargetSslProxiesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *TargetSslProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetSslProxiesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type TargetSslProxiesService ¶
type TargetSslProxiesService struct {
// contains filtered or unexported fields
}
func NewTargetSslProxiesService ¶
func NewTargetSslProxiesService(s *Service) *TargetSslProxiesService
func (*TargetSslProxiesService) Delete ¶
func (r *TargetSslProxiesService) Delete(project string, targetSslProxy string) *TargetSslProxiesDeleteCall
Delete: Deletes the specified TargetSslProxy resource.
- project: Project ID for this request. - targetSslProxy: Name of the TargetSslProxy resource to delete.
func (*TargetSslProxiesService) Get ¶
func (r *TargetSslProxiesService) Get(project string, targetSslProxy string) *TargetSslProxiesGetCall
Get: Returns the specified TargetSslProxy resource.
- project: Project ID for this request. - targetSslProxy: Name of the TargetSslProxy resource to return.
func (*TargetSslProxiesService) Insert ¶
func (r *TargetSslProxiesService) Insert(project string, targetsslproxy *TargetSslProxy) *TargetSslProxiesInsertCall
Insert: Creates a TargetSslProxy resource in the specified project using the data included in the request.
- project: Project ID for this request.
func (*TargetSslProxiesService) List ¶
func (r *TargetSslProxiesService) List(project string) *TargetSslProxiesListCall
List: Retrieves the list of TargetSslProxy resources available to the specified project.
- project: Project ID for this request.
func (*TargetSslProxiesService) SetBackendService ¶
func (r *TargetSslProxiesService) SetBackendService(project string, targetSslProxy string, targetsslproxiessetbackendservicerequest *TargetSslProxiesSetBackendServiceRequest) *TargetSslProxiesSetBackendServiceCall
SetBackendService: Changes the BackendService for TargetSslProxy.
- project: Project ID for this request.
- targetSslProxy: Name of the TargetSslProxy resource whose BackendService resource is to be set.
func (*TargetSslProxiesService) SetCertificateMap ¶ added in v0.80.0
func (r *TargetSslProxiesService) SetCertificateMap(project string, targetSslProxy string, targetsslproxiessetcertificatemaprequest *TargetSslProxiesSetCertificateMapRequest) *TargetSslProxiesSetCertificateMapCall
SetCertificateMap: Changes the Certificate Map for TargetSslProxy.
- project: Project ID for this request.
- targetSslProxy: Name of the TargetSslProxy resource whose CertificateMap is to be set. The name must be 1-63 characters long, and comply with RFC1035.
func (*TargetSslProxiesService) SetProxyHeader ¶
func (r *TargetSslProxiesService) SetProxyHeader(project string, targetSslProxy string, targetsslproxiessetproxyheaderrequest *TargetSslProxiesSetProxyHeaderRequest) *TargetSslProxiesSetProxyHeaderCall
SetProxyHeader: Changes the ProxyHeaderType for TargetSslProxy.
- project: Project ID for this request.
- targetSslProxy: Name of the TargetSslProxy resource whose ProxyHeader is to be set.
func (*TargetSslProxiesService) SetSslCertificates ¶
func (r *TargetSslProxiesService) SetSslCertificates(project string, targetSslProxy string, targetsslproxiessetsslcertificatesrequest *TargetSslProxiesSetSslCertificatesRequest) *TargetSslProxiesSetSslCertificatesCall
SetSslCertificates: Changes SslCertificates for TargetSslProxy.
- project: Project ID for this request.
- targetSslProxy: Name of the TargetSslProxy resource whose SslCertificate resource is to be set.
func (*TargetSslProxiesService) SetSslPolicy ¶
func (r *TargetSslProxiesService) SetSslPolicy(project string, targetSslProxy string, sslpolicyreference *SslPolicyReference) *TargetSslProxiesSetSslPolicyCall
SetSslPolicy: Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the load balancer. They do not affect the connection between the load balancer and the backends.
- project: Project ID for this request.
- targetSslProxy: Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035.
type TargetSslProxiesSetBackendServiceCall ¶
type TargetSslProxiesSetBackendServiceCall struct {
// contains filtered or unexported fields
}
func (*TargetSslProxiesSetBackendServiceCall) Context ¶
func (c *TargetSslProxiesSetBackendServiceCall) Context(ctx context.Context) *TargetSslProxiesSetBackendServiceCall
Context sets the context to be used in this call's Do method.
func (*TargetSslProxiesSetBackendServiceCall) Do ¶
func (c *TargetSslProxiesSetBackendServiceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetSslProxies.setBackendService" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetSslProxiesSetBackendServiceCall) Fields ¶
func (c *TargetSslProxiesSetBackendServiceCall) Fields(s ...googleapi.Field) *TargetSslProxiesSetBackendServiceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetSslProxiesSetBackendServiceCall) Header ¶
func (c *TargetSslProxiesSetBackendServiceCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetSslProxiesSetBackendServiceCall) RequestId ¶
func (c *TargetSslProxiesSetBackendServiceCall) RequestId(requestId string) *TargetSslProxiesSetBackendServiceCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetSslProxiesSetBackendServiceRequest ¶
type TargetSslProxiesSetBackendServiceRequest struct { // Service: The URL of the new BackendService resource for the targetSslProxy. Service string `json:"service,omitempty"` // ForceSendFields is a list of field names (e.g. "Service") 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. "Service") 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:"-"` }
func (TargetSslProxiesSetBackendServiceRequest) MarshalJSON ¶
func (s TargetSslProxiesSetBackendServiceRequest) MarshalJSON() ([]byte, error)
type TargetSslProxiesSetCertificateMapCall ¶ added in v0.80.0
type TargetSslProxiesSetCertificateMapCall struct {
// contains filtered or unexported fields
}
func (*TargetSslProxiesSetCertificateMapCall) Context ¶ added in v0.80.0
func (c *TargetSslProxiesSetCertificateMapCall) Context(ctx context.Context) *TargetSslProxiesSetCertificateMapCall
Context sets the context to be used in this call's Do method.
func (*TargetSslProxiesSetCertificateMapCall) Do ¶ added in v0.80.0
func (c *TargetSslProxiesSetCertificateMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetSslProxies.setCertificateMap" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetSslProxiesSetCertificateMapCall) Fields ¶ added in v0.80.0
func (c *TargetSslProxiesSetCertificateMapCall) Fields(s ...googleapi.Field) *TargetSslProxiesSetCertificateMapCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetSslProxiesSetCertificateMapCall) Header ¶ added in v0.80.0
func (c *TargetSslProxiesSetCertificateMapCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetSslProxiesSetCertificateMapCall) RequestId ¶ added in v0.80.0
func (c *TargetSslProxiesSetCertificateMapCall) RequestId(requestId string) *TargetSslProxiesSetCertificateMapCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetSslProxiesSetCertificateMapRequest ¶ added in v0.80.0
type TargetSslProxiesSetCertificateMapRequest struct { // CertificateMap: URL of the Certificate Map to associate with this // TargetSslProxy. Accepted format is // //certificatemanager.googleapis.com/projects/{project // }/locations/{location}/certificateMaps/{resourceName}. CertificateMap string `json:"certificateMap,omitempty"` // ForceSendFields is a list of field names (e.g. "CertificateMap") 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. "CertificateMap") 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:"-"` }
func (TargetSslProxiesSetCertificateMapRequest) MarshalJSON ¶ added in v0.80.0
func (s TargetSslProxiesSetCertificateMapRequest) MarshalJSON() ([]byte, error)
type TargetSslProxiesSetProxyHeaderCall ¶
type TargetSslProxiesSetProxyHeaderCall struct {
// contains filtered or unexported fields
}
func (*TargetSslProxiesSetProxyHeaderCall) Context ¶
func (c *TargetSslProxiesSetProxyHeaderCall) Context(ctx context.Context) *TargetSslProxiesSetProxyHeaderCall
Context sets the context to be used in this call's Do method.
func (*TargetSslProxiesSetProxyHeaderCall) Do ¶
func (c *TargetSslProxiesSetProxyHeaderCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetSslProxies.setProxyHeader" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetSslProxiesSetProxyHeaderCall) Fields ¶
func (c *TargetSslProxiesSetProxyHeaderCall) Fields(s ...googleapi.Field) *TargetSslProxiesSetProxyHeaderCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetSslProxiesSetProxyHeaderCall) Header ¶
func (c *TargetSslProxiesSetProxyHeaderCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetSslProxiesSetProxyHeaderCall) RequestId ¶
func (c *TargetSslProxiesSetProxyHeaderCall) RequestId(requestId string) *TargetSslProxiesSetProxyHeaderCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetSslProxiesSetProxyHeaderRequest ¶
type TargetSslProxiesSetProxyHeaderRequest struct { // ProxyHeader: The new type of proxy header to append before sending data to // the backend. NONE or PROXY_V1 are allowed. // // Possible values: // "NONE" // "PROXY_V1" ProxyHeader string `json:"proxyHeader,omitempty"` // ForceSendFields is a list of field names (e.g. "ProxyHeader") 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. "ProxyHeader") 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:"-"` }
func (TargetSslProxiesSetProxyHeaderRequest) MarshalJSON ¶
func (s TargetSslProxiesSetProxyHeaderRequest) MarshalJSON() ([]byte, error)
type TargetSslProxiesSetSslCertificatesCall ¶
type TargetSslProxiesSetSslCertificatesCall struct {
// contains filtered or unexported fields
}
func (*TargetSslProxiesSetSslCertificatesCall) Context ¶
func (c *TargetSslProxiesSetSslCertificatesCall) Context(ctx context.Context) *TargetSslProxiesSetSslCertificatesCall
Context sets the context to be used in this call's Do method.
func (*TargetSslProxiesSetSslCertificatesCall) Do ¶
func (c *TargetSslProxiesSetSslCertificatesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetSslProxies.setSslCertificates" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetSslProxiesSetSslCertificatesCall) Fields ¶
func (c *TargetSslProxiesSetSslCertificatesCall) Fields(s ...googleapi.Field) *TargetSslProxiesSetSslCertificatesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetSslProxiesSetSslCertificatesCall) Header ¶
func (c *TargetSslProxiesSetSslCertificatesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetSslProxiesSetSslCertificatesCall) RequestId ¶
func (c *TargetSslProxiesSetSslCertificatesCall) RequestId(requestId string) *TargetSslProxiesSetSslCertificatesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetSslProxiesSetSslCertificatesRequest ¶
type TargetSslProxiesSetSslCertificatesRequest struct { // SslCertificates: New set of URLs to SslCertificate resources to associate // with this TargetSslProxy. At least one SSL certificate must be specified. // Currently, you may specify up to 15 SSL certificates. SslCertificates []string `json:"sslCertificates,omitempty"` // ForceSendFields is a list of field names (e.g. "SslCertificates") 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. "SslCertificates") 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:"-"` }
func (TargetSslProxiesSetSslCertificatesRequest) MarshalJSON ¶
func (s TargetSslProxiesSetSslCertificatesRequest) MarshalJSON() ([]byte, error)
type TargetSslProxiesSetSslPolicyCall ¶
type TargetSslProxiesSetSslPolicyCall struct {
// contains filtered or unexported fields
}
func (*TargetSslProxiesSetSslPolicyCall) Context ¶
func (c *TargetSslProxiesSetSslPolicyCall) Context(ctx context.Context) *TargetSslProxiesSetSslPolicyCall
Context sets the context to be used in this call's Do method.
func (*TargetSslProxiesSetSslPolicyCall) Do ¶
func (c *TargetSslProxiesSetSslPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetSslProxies.setSslPolicy" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetSslProxiesSetSslPolicyCall) Fields ¶
func (c *TargetSslProxiesSetSslPolicyCall) Fields(s ...googleapi.Field) *TargetSslProxiesSetSslPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetSslProxiesSetSslPolicyCall) Header ¶
func (c *TargetSslProxiesSetSslPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetSslProxiesSetSslPolicyCall) RequestId ¶
func (c *TargetSslProxiesSetSslPolicyCall) RequestId(requestId string) *TargetSslProxiesSetSslPolicyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetSslProxy ¶
type TargetSslProxy struct { // CertificateMap: URL of a certificate map that identifies a certificate map // associated with the given target proxy. This field can only be set for // global target proxies. If set, sslCertificates will be ignored. Accepted // format is //certificatemanager.googleapis.com/projects/{project // }/locations/{location}/certificateMaps/{resourceName}. CertificateMap string `json:"certificateMap,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#targetSslProxy for // target SSL proxies. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // ProxyHeader: Specifies the type of proxy header to append before sending // data to the backend, either NONE or PROXY_V1. The default is NONE. // // Possible values: // "NONE" // "PROXY_V1" ProxyHeader string `json:"proxyHeader,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Service: URL to the BackendService resource. Service string `json:"service,omitempty"` // SslCertificates: URLs to SslCertificate resources that are used to // authenticate connections to Backends. At least one SSL certificate must be // specified. Currently, you may specify up to 15 SSL certificates. // sslCertificates do not apply when the load balancing scheme is set to // INTERNAL_SELF_MANAGED. SslCertificates []string `json:"sslCertificates,omitempty"` // SslPolicy: URL of SslPolicy resource that will be associated with the // TargetSslProxy resource. If not set, the TargetSslProxy resource will not // have any SSL policy configured. SslPolicy string `json:"sslPolicy,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CertificateMap") 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. "CertificateMap") 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:"-"` }
TargetSslProxy: Represents a Target SSL Proxy resource. A target SSL proxy is a component of a Proxy Network Load Balancer. The forwarding rule references the target SSL proxy, and the target proxy then references a backend service. For more information, read Proxy Network Load Balancer overview.
func (TargetSslProxy) MarshalJSON ¶
func (s TargetSslProxy) MarshalJSON() ([]byte, error)
type TargetSslProxyList ¶
type TargetSslProxyList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of TargetSslProxy resources. Items []*TargetSslProxy `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *TargetSslProxyListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
TargetSslProxyList: Contains a list of TargetSslProxy resources.
func (TargetSslProxyList) MarshalJSON ¶
func (s TargetSslProxyList) MarshalJSON() ([]byte, error)
type TargetSslProxyListWarning ¶
type TargetSslProxyListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetSslProxyListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetSslProxyListWarning: [Output Only] Informational warning message.
func (TargetSslProxyListWarning) MarshalJSON ¶
func (s TargetSslProxyListWarning) MarshalJSON() ([]byte, error)
type TargetSslProxyListWarningData ¶
type TargetSslProxyListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetSslProxyListWarningData) MarshalJSON ¶
func (s TargetSslProxyListWarningData) MarshalJSON() ([]byte, error)
type TargetTcpProxiesAggregatedListCall ¶ added in v0.103.0
type TargetTcpProxiesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*TargetTcpProxiesAggregatedListCall) Context ¶ added in v0.103.0
func (c *TargetTcpProxiesAggregatedListCall) Context(ctx context.Context) *TargetTcpProxiesAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*TargetTcpProxiesAggregatedListCall) Do ¶ added in v0.103.0
func (c *TargetTcpProxiesAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetTcpProxyAggregatedList, error)
Do executes the "compute.targetTcpProxies.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *TargetTcpProxyAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetTcpProxiesAggregatedListCall) Fields ¶ added in v0.103.0
func (c *TargetTcpProxiesAggregatedListCall) Fields(s ...googleapi.Field) *TargetTcpProxiesAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetTcpProxiesAggregatedListCall) Filter ¶ added in v0.103.0
func (c *TargetTcpProxiesAggregatedListCall) Filter(filter string) *TargetTcpProxiesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*TargetTcpProxiesAggregatedListCall) Header ¶ added in v0.103.0
func (c *TargetTcpProxiesAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetTcpProxiesAggregatedListCall) IfNoneMatch ¶ added in v0.103.0
func (c *TargetTcpProxiesAggregatedListCall) IfNoneMatch(entityTag string) *TargetTcpProxiesAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*TargetTcpProxiesAggregatedListCall) IncludeAllScopes ¶ added in v0.103.0
func (c *TargetTcpProxiesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *TargetTcpProxiesAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*TargetTcpProxiesAggregatedListCall) MaxResults ¶ added in v0.103.0
func (c *TargetTcpProxiesAggregatedListCall) MaxResults(maxResults int64) *TargetTcpProxiesAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*TargetTcpProxiesAggregatedListCall) OrderBy ¶ added in v0.103.0
func (c *TargetTcpProxiesAggregatedListCall) OrderBy(orderBy string) *TargetTcpProxiesAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*TargetTcpProxiesAggregatedListCall) PageToken ¶ added in v0.103.0
func (c *TargetTcpProxiesAggregatedListCall) PageToken(pageToken string) *TargetTcpProxiesAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*TargetTcpProxiesAggregatedListCall) Pages ¶ added in v0.103.0
func (c *TargetTcpProxiesAggregatedListCall) Pages(ctx context.Context, f func(*TargetTcpProxyAggregatedList) 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 (*TargetTcpProxiesAggregatedListCall) ReturnPartialSuccess ¶ added in v0.103.0
func (c *TargetTcpProxiesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetTcpProxiesAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*TargetTcpProxiesAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *TargetTcpProxiesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *TargetTcpProxiesAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type TargetTcpProxiesDeleteCall ¶
type TargetTcpProxiesDeleteCall struct {
// contains filtered or unexported fields
}
func (*TargetTcpProxiesDeleteCall) Context ¶
func (c *TargetTcpProxiesDeleteCall) Context(ctx context.Context) *TargetTcpProxiesDeleteCall
Context sets the context to be used in this call's Do method.
func (*TargetTcpProxiesDeleteCall) Do ¶
func (c *TargetTcpProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetTcpProxies.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetTcpProxiesDeleteCall) Fields ¶
func (c *TargetTcpProxiesDeleteCall) Fields(s ...googleapi.Field) *TargetTcpProxiesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetTcpProxiesDeleteCall) Header ¶
func (c *TargetTcpProxiesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetTcpProxiesDeleteCall) RequestId ¶
func (c *TargetTcpProxiesDeleteCall) RequestId(requestId string) *TargetTcpProxiesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetTcpProxiesGetCall ¶
type TargetTcpProxiesGetCall struct {
// contains filtered or unexported fields
}
func (*TargetTcpProxiesGetCall) Context ¶
func (c *TargetTcpProxiesGetCall) Context(ctx context.Context) *TargetTcpProxiesGetCall
Context sets the context to be used in this call's Do method.
func (*TargetTcpProxiesGetCall) Do ¶
func (c *TargetTcpProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetTcpProxy, error)
Do executes the "compute.targetTcpProxies.get" call. Any non-2xx status code is an error. Response headers are in either *TargetTcpProxy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetTcpProxiesGetCall) Fields ¶
func (c *TargetTcpProxiesGetCall) Fields(s ...googleapi.Field) *TargetTcpProxiesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetTcpProxiesGetCall) Header ¶
func (c *TargetTcpProxiesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetTcpProxiesGetCall) IfNoneMatch ¶
func (c *TargetTcpProxiesGetCall) IfNoneMatch(entityTag string) *TargetTcpProxiesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type TargetTcpProxiesInsertCall ¶
type TargetTcpProxiesInsertCall struct {
// contains filtered or unexported fields
}
func (*TargetTcpProxiesInsertCall) Context ¶
func (c *TargetTcpProxiesInsertCall) Context(ctx context.Context) *TargetTcpProxiesInsertCall
Context sets the context to be used in this call's Do method.
func (*TargetTcpProxiesInsertCall) Do ¶
func (c *TargetTcpProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetTcpProxies.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetTcpProxiesInsertCall) Fields ¶
func (c *TargetTcpProxiesInsertCall) Fields(s ...googleapi.Field) *TargetTcpProxiesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetTcpProxiesInsertCall) Header ¶
func (c *TargetTcpProxiesInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetTcpProxiesInsertCall) RequestId ¶
func (c *TargetTcpProxiesInsertCall) RequestId(requestId string) *TargetTcpProxiesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetTcpProxiesListCall ¶
type TargetTcpProxiesListCall struct {
// contains filtered or unexported fields
}
func (*TargetTcpProxiesListCall) Context ¶
func (c *TargetTcpProxiesListCall) Context(ctx context.Context) *TargetTcpProxiesListCall
Context sets the context to be used in this call's Do method.
func (*TargetTcpProxiesListCall) Do ¶
func (c *TargetTcpProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetTcpProxyList, error)
Do executes the "compute.targetTcpProxies.list" call. Any non-2xx status code is an error. Response headers are in either *TargetTcpProxyList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetTcpProxiesListCall) Fields ¶
func (c *TargetTcpProxiesListCall) Fields(s ...googleapi.Field) *TargetTcpProxiesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetTcpProxiesListCall) Filter ¶
func (c *TargetTcpProxiesListCall) Filter(filter string) *TargetTcpProxiesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*TargetTcpProxiesListCall) Header ¶
func (c *TargetTcpProxiesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetTcpProxiesListCall) IfNoneMatch ¶
func (c *TargetTcpProxiesListCall) IfNoneMatch(entityTag string) *TargetTcpProxiesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*TargetTcpProxiesListCall) MaxResults ¶
func (c *TargetTcpProxiesListCall) MaxResults(maxResults int64) *TargetTcpProxiesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*TargetTcpProxiesListCall) OrderBy ¶
func (c *TargetTcpProxiesListCall) OrderBy(orderBy string) *TargetTcpProxiesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*TargetTcpProxiesListCall) PageToken ¶
func (c *TargetTcpProxiesListCall) PageToken(pageToken string) *TargetTcpProxiesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*TargetTcpProxiesListCall) Pages ¶
func (c *TargetTcpProxiesListCall) Pages(ctx context.Context, f func(*TargetTcpProxyList) 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 (*TargetTcpProxiesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *TargetTcpProxiesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetTcpProxiesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type TargetTcpProxiesScopedList ¶ added in v0.103.0
type TargetTcpProxiesScopedList struct { // TargetTcpProxies: A list of TargetTcpProxies contained in this scope. TargetTcpProxies []*TargetTcpProxy `json:"targetTcpProxies,omitempty"` // Warning: Informational warning which replaces the list of backend services // when the list is empty. Warning *TargetTcpProxiesScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "TargetTcpProxies") 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. "TargetTcpProxies") 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:"-"` }
func (TargetTcpProxiesScopedList) MarshalJSON ¶ added in v0.103.0
func (s TargetTcpProxiesScopedList) MarshalJSON() ([]byte, error)
type TargetTcpProxiesScopedListWarning ¶ added in v0.103.0
type TargetTcpProxiesScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetTcpProxiesScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetTcpProxiesScopedListWarning: Informational warning which replaces the list of backend services when the list is empty.
func (TargetTcpProxiesScopedListWarning) MarshalJSON ¶ added in v0.103.0
func (s TargetTcpProxiesScopedListWarning) MarshalJSON() ([]byte, error)
type TargetTcpProxiesScopedListWarningData ¶ added in v0.103.0
type TargetTcpProxiesScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetTcpProxiesScopedListWarningData) MarshalJSON ¶ added in v0.103.0
func (s TargetTcpProxiesScopedListWarningData) MarshalJSON() ([]byte, error)
type TargetTcpProxiesService ¶
type TargetTcpProxiesService struct {
// contains filtered or unexported fields
}
func NewTargetTcpProxiesService ¶
func NewTargetTcpProxiesService(s *Service) *TargetTcpProxiesService
func (*TargetTcpProxiesService) AggregatedList ¶ added in v0.103.0
func (r *TargetTcpProxiesService) AggregatedList(project string) *TargetTcpProxiesAggregatedListCall
AggregatedList: Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Name of the project scoping this request.
func (*TargetTcpProxiesService) Delete ¶
func (r *TargetTcpProxiesService) Delete(project string, targetTcpProxy string) *TargetTcpProxiesDeleteCall
Delete: Deletes the specified TargetTcpProxy resource.
- project: Project ID for this request. - targetTcpProxy: Name of the TargetTcpProxy resource to delete.
func (*TargetTcpProxiesService) Get ¶
func (r *TargetTcpProxiesService) Get(project string, targetTcpProxy string) *TargetTcpProxiesGetCall
Get: Returns the specified TargetTcpProxy resource.
- project: Project ID for this request. - targetTcpProxy: Name of the TargetTcpProxy resource to return.
func (*TargetTcpProxiesService) Insert ¶
func (r *TargetTcpProxiesService) Insert(project string, targettcpproxy *TargetTcpProxy) *TargetTcpProxiesInsertCall
Insert: Creates a TargetTcpProxy resource in the specified project using the data included in the request.
- project: Project ID for this request.
func (*TargetTcpProxiesService) List ¶
func (r *TargetTcpProxiesService) List(project string) *TargetTcpProxiesListCall
List: Retrieves the list of TargetTcpProxy resources available to the specified project.
- project: Project ID for this request.
func (*TargetTcpProxiesService) SetBackendService ¶
func (r *TargetTcpProxiesService) SetBackendService(project string, targetTcpProxy string, targettcpproxiessetbackendservicerequest *TargetTcpProxiesSetBackendServiceRequest) *TargetTcpProxiesSetBackendServiceCall
SetBackendService: Changes the BackendService for TargetTcpProxy.
- project: Project ID for this request.
- targetTcpProxy: Name of the TargetTcpProxy resource whose BackendService resource is to be set.
func (*TargetTcpProxiesService) SetProxyHeader ¶
func (r *TargetTcpProxiesService) SetProxyHeader(project string, targetTcpProxy string, targettcpproxiessetproxyheaderrequest *TargetTcpProxiesSetProxyHeaderRequest) *TargetTcpProxiesSetProxyHeaderCall
SetProxyHeader: Changes the ProxyHeaderType for TargetTcpProxy.
- project: Project ID for this request.
- targetTcpProxy: Name of the TargetTcpProxy resource whose ProxyHeader is to be set.
type TargetTcpProxiesSetBackendServiceCall ¶
type TargetTcpProxiesSetBackendServiceCall struct {
// contains filtered or unexported fields
}
func (*TargetTcpProxiesSetBackendServiceCall) Context ¶
func (c *TargetTcpProxiesSetBackendServiceCall) Context(ctx context.Context) *TargetTcpProxiesSetBackendServiceCall
Context sets the context to be used in this call's Do method.
func (*TargetTcpProxiesSetBackendServiceCall) Do ¶
func (c *TargetTcpProxiesSetBackendServiceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetTcpProxies.setBackendService" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetTcpProxiesSetBackendServiceCall) Fields ¶
func (c *TargetTcpProxiesSetBackendServiceCall) Fields(s ...googleapi.Field) *TargetTcpProxiesSetBackendServiceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetTcpProxiesSetBackendServiceCall) Header ¶
func (c *TargetTcpProxiesSetBackendServiceCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetTcpProxiesSetBackendServiceCall) RequestId ¶
func (c *TargetTcpProxiesSetBackendServiceCall) RequestId(requestId string) *TargetTcpProxiesSetBackendServiceCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetTcpProxiesSetBackendServiceRequest ¶
type TargetTcpProxiesSetBackendServiceRequest struct { // Service: The URL of the new BackendService resource for the targetTcpProxy. Service string `json:"service,omitempty"` // ForceSendFields is a list of field names (e.g. "Service") 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. "Service") 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:"-"` }
func (TargetTcpProxiesSetBackendServiceRequest) MarshalJSON ¶
func (s TargetTcpProxiesSetBackendServiceRequest) MarshalJSON() ([]byte, error)
type TargetTcpProxiesSetProxyHeaderCall ¶
type TargetTcpProxiesSetProxyHeaderCall struct {
// contains filtered or unexported fields
}
func (*TargetTcpProxiesSetProxyHeaderCall) Context ¶
func (c *TargetTcpProxiesSetProxyHeaderCall) Context(ctx context.Context) *TargetTcpProxiesSetProxyHeaderCall
Context sets the context to be used in this call's Do method.
func (*TargetTcpProxiesSetProxyHeaderCall) Do ¶
func (c *TargetTcpProxiesSetProxyHeaderCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetTcpProxies.setProxyHeader" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetTcpProxiesSetProxyHeaderCall) Fields ¶
func (c *TargetTcpProxiesSetProxyHeaderCall) Fields(s ...googleapi.Field) *TargetTcpProxiesSetProxyHeaderCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetTcpProxiesSetProxyHeaderCall) Header ¶
func (c *TargetTcpProxiesSetProxyHeaderCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetTcpProxiesSetProxyHeaderCall) RequestId ¶
func (c *TargetTcpProxiesSetProxyHeaderCall) RequestId(requestId string) *TargetTcpProxiesSetProxyHeaderCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetTcpProxiesSetProxyHeaderRequest ¶
type TargetTcpProxiesSetProxyHeaderRequest struct { // ProxyHeader: The new type of proxy header to append before sending data to // the backend. NONE or PROXY_V1 are allowed. // // Possible values: // "NONE" // "PROXY_V1" ProxyHeader string `json:"proxyHeader,omitempty"` // ForceSendFields is a list of field names (e.g. "ProxyHeader") 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. "ProxyHeader") 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:"-"` }
func (TargetTcpProxiesSetProxyHeaderRequest) MarshalJSON ¶
func (s TargetTcpProxiesSetProxyHeaderRequest) MarshalJSON() ([]byte, error)
type TargetTcpProxy ¶
type TargetTcpProxy struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#targetTcpProxy for // target TCP proxies. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // ProxyBind: This field only applies when the forwarding rule that references // this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. // When this field is set to true, Envoy proxies set up inbound traffic // interception and bind to the IP address and port specified in the forwarding // rule. This is generally useful when using Traffic Director to configure // Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). // The Envoy proxy listens for inbound requests and handles requests when it // receives them. The default is false. ProxyBind bool `json:"proxyBind,omitempty"` // ProxyHeader: Specifies the type of proxy header to append before sending // data to the backend, either NONE or PROXY_V1. The default is NONE. // // Possible values: // "NONE" // "PROXY_V1" ProxyHeader string `json:"proxyHeader,omitempty"` // Region: [Output Only] URL of the region where the regional TCP proxy // resides. This field is not applicable to global TCP proxy. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Service: URL to the BackendService resource. Service string `json:"service,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
TargetTcpProxy: Represents a Target TCP Proxy resource. A target TCP proxy is a component of a Proxy Network Load Balancer. The forwarding rule references the target TCP proxy, and the target proxy then references a backend service. For more information, read Proxy Network Load Balancer overview.
func (TargetTcpProxy) MarshalJSON ¶
func (s TargetTcpProxy) MarshalJSON() ([]byte, error)
type TargetTcpProxyAggregatedList ¶ added in v0.103.0
type TargetTcpProxyAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of TargetTcpProxiesScopedList resources. Items map[string]TargetTcpProxiesScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#targetTcpProxyAggregatedList for lists of Target TCP Proxies. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *TargetTcpProxyAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (TargetTcpProxyAggregatedList) MarshalJSON ¶ added in v0.103.0
func (s TargetTcpProxyAggregatedList) MarshalJSON() ([]byte, error)
type TargetTcpProxyAggregatedListWarning ¶ added in v0.103.0
type TargetTcpProxyAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetTcpProxyAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetTcpProxyAggregatedListWarning: [Output Only] Informational warning message.
func (TargetTcpProxyAggregatedListWarning) MarshalJSON ¶ added in v0.103.0
func (s TargetTcpProxyAggregatedListWarning) MarshalJSON() ([]byte, error)
type TargetTcpProxyAggregatedListWarningData ¶ added in v0.103.0
type TargetTcpProxyAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetTcpProxyAggregatedListWarningData) MarshalJSON ¶ added in v0.103.0
func (s TargetTcpProxyAggregatedListWarningData) MarshalJSON() ([]byte, error)
type TargetTcpProxyList ¶
type TargetTcpProxyList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of TargetTcpProxy resources. Items []*TargetTcpProxy `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *TargetTcpProxyListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
TargetTcpProxyList: Contains a list of TargetTcpProxy resources.
func (TargetTcpProxyList) MarshalJSON ¶
func (s TargetTcpProxyList) MarshalJSON() ([]byte, error)
type TargetTcpProxyListWarning ¶
type TargetTcpProxyListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetTcpProxyListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetTcpProxyListWarning: [Output Only] Informational warning message.
func (TargetTcpProxyListWarning) MarshalJSON ¶
func (s TargetTcpProxyListWarning) MarshalJSON() ([]byte, error)
type TargetTcpProxyListWarningData ¶
type TargetTcpProxyListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetTcpProxyListWarningData) MarshalJSON ¶
func (s TargetTcpProxyListWarningData) MarshalJSON() ([]byte, error)
type TargetVpnGateway ¶
type TargetVpnGateway struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // ForwardingRules: [Output Only] A list of URLs to the ForwardingRule // resources. ForwardingRules are created using compute.forwardingRules.insert // and associated with a VPN gateway. ForwardingRules []string `json:"forwardingRules,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of resource. Always compute#targetVpnGateway for // target VPN gateways. Kind string `json:"kind,omitempty"` // LabelFingerprint: A fingerprint for the labels being applied to this // TargetVpnGateway, which is essentially a hash of the labels set used for // optimistic locking. The fingerprint is initially generated by Compute Engine // and changes after every request to modify or update labels. You must always // provide an up-to-date fingerprint hash in order to update or change labels, // otherwise the request will fail with error 412 conditionNotMet. To see the // latest fingerprint, make a get() request to retrieve a TargetVpnGateway. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels for this resource. These can only be added or modified by the // setLabels method. Each label key/value pair must comply with RFC1035. Label // values may be empty. Labels map[string]string `json:"labels,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Network: URL of the network to which this VPN gateway is attached. Provided // by the client when the VPN gateway is created. Network string `json:"network,omitempty"` // Region: [Output Only] URL of the region where the target VPN gateway // resides. You must specify this field as part of the HTTP request URL. It is // not settable as a field in the request body. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Status: [Output Only] The status of the VPN gateway, which can be one of the // following: CREATING, READY, FAILED, or DELETING. // // Possible values: // "CREATING" // "DELETING" // "FAILED" // "READY" Status string `json:"status,omitempty"` // Tunnels: [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are // created using the compute.vpntunnels.insert method and associated with a VPN // gateway. Tunnels []string `json:"tunnels,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
TargetVpnGateway: Represents a Target VPN Gateway resource. The target VPN gateway resource represents a Classic Cloud VPN gateway. For more information, read the the Cloud VPN Overview.
func (TargetVpnGateway) MarshalJSON ¶
func (s TargetVpnGateway) MarshalJSON() ([]byte, error)
type TargetVpnGatewayAggregatedList ¶
type TargetVpnGatewayAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of TargetVpnGateway resources. Items map[string]TargetVpnGatewaysScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#targetVpnGateway for // target VPN gateways. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *TargetVpnGatewayAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (TargetVpnGatewayAggregatedList) MarshalJSON ¶
func (s TargetVpnGatewayAggregatedList) MarshalJSON() ([]byte, error)
type TargetVpnGatewayAggregatedListWarning ¶
type TargetVpnGatewayAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetVpnGatewayAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetVpnGatewayAggregatedListWarning: [Output Only] Informational warning message.
func (TargetVpnGatewayAggregatedListWarning) MarshalJSON ¶
func (s TargetVpnGatewayAggregatedListWarning) MarshalJSON() ([]byte, error)
type TargetVpnGatewayAggregatedListWarningData ¶
type TargetVpnGatewayAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetVpnGatewayAggregatedListWarningData) MarshalJSON ¶
func (s TargetVpnGatewayAggregatedListWarningData) MarshalJSON() ([]byte, error)
type TargetVpnGatewayList ¶
type TargetVpnGatewayList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of TargetVpnGateway resources. Items []*TargetVpnGateway `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#targetVpnGateway for // target VPN gateways. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *TargetVpnGatewayListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
TargetVpnGatewayList: Contains a list of TargetVpnGateway resources.
func (TargetVpnGatewayList) MarshalJSON ¶
func (s TargetVpnGatewayList) MarshalJSON() ([]byte, error)
type TargetVpnGatewayListWarning ¶
type TargetVpnGatewayListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetVpnGatewayListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetVpnGatewayListWarning: [Output Only] Informational warning message.
func (TargetVpnGatewayListWarning) MarshalJSON ¶
func (s TargetVpnGatewayListWarning) MarshalJSON() ([]byte, error)
type TargetVpnGatewayListWarningData ¶
type TargetVpnGatewayListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetVpnGatewayListWarningData) MarshalJSON ¶
func (s TargetVpnGatewayListWarningData) MarshalJSON() ([]byte, error)
type TargetVpnGatewaysAggregatedListCall ¶
type TargetVpnGatewaysAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*TargetVpnGatewaysAggregatedListCall) Context ¶
func (c *TargetVpnGatewaysAggregatedListCall) Context(ctx context.Context) *TargetVpnGatewaysAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*TargetVpnGatewaysAggregatedListCall) Do ¶
func (c *TargetVpnGatewaysAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetVpnGatewayAggregatedList, error)
Do executes the "compute.targetVpnGateways.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *TargetVpnGatewayAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetVpnGatewaysAggregatedListCall) Fields ¶
func (c *TargetVpnGatewaysAggregatedListCall) Fields(s ...googleapi.Field) *TargetVpnGatewaysAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetVpnGatewaysAggregatedListCall) Filter ¶
func (c *TargetVpnGatewaysAggregatedListCall) Filter(filter string) *TargetVpnGatewaysAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*TargetVpnGatewaysAggregatedListCall) Header ¶
func (c *TargetVpnGatewaysAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetVpnGatewaysAggregatedListCall) IfNoneMatch ¶
func (c *TargetVpnGatewaysAggregatedListCall) IfNoneMatch(entityTag string) *TargetVpnGatewaysAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*TargetVpnGatewaysAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *TargetVpnGatewaysAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *TargetVpnGatewaysAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*TargetVpnGatewaysAggregatedListCall) MaxResults ¶
func (c *TargetVpnGatewaysAggregatedListCall) MaxResults(maxResults int64) *TargetVpnGatewaysAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*TargetVpnGatewaysAggregatedListCall) OrderBy ¶
func (c *TargetVpnGatewaysAggregatedListCall) OrderBy(orderBy string) *TargetVpnGatewaysAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*TargetVpnGatewaysAggregatedListCall) PageToken ¶
func (c *TargetVpnGatewaysAggregatedListCall) PageToken(pageToken string) *TargetVpnGatewaysAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*TargetVpnGatewaysAggregatedListCall) Pages ¶
func (c *TargetVpnGatewaysAggregatedListCall) Pages(ctx context.Context, f func(*TargetVpnGatewayAggregatedList) 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 (*TargetVpnGatewaysAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *TargetVpnGatewaysAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetVpnGatewaysAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*TargetVpnGatewaysAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *TargetVpnGatewaysAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *TargetVpnGatewaysAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type TargetVpnGatewaysDeleteCall ¶
type TargetVpnGatewaysDeleteCall struct {
// contains filtered or unexported fields
}
func (*TargetVpnGatewaysDeleteCall) Context ¶
func (c *TargetVpnGatewaysDeleteCall) Context(ctx context.Context) *TargetVpnGatewaysDeleteCall
Context sets the context to be used in this call's Do method.
func (*TargetVpnGatewaysDeleteCall) Do ¶
func (c *TargetVpnGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetVpnGateways.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetVpnGatewaysDeleteCall) Fields ¶
func (c *TargetVpnGatewaysDeleteCall) Fields(s ...googleapi.Field) *TargetVpnGatewaysDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetVpnGatewaysDeleteCall) Header ¶
func (c *TargetVpnGatewaysDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetVpnGatewaysDeleteCall) RequestId ¶
func (c *TargetVpnGatewaysDeleteCall) RequestId(requestId string) *TargetVpnGatewaysDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetVpnGatewaysGetCall ¶
type TargetVpnGatewaysGetCall struct {
// contains filtered or unexported fields
}
func (*TargetVpnGatewaysGetCall) Context ¶
func (c *TargetVpnGatewaysGetCall) Context(ctx context.Context) *TargetVpnGatewaysGetCall
Context sets the context to be used in this call's Do method.
func (*TargetVpnGatewaysGetCall) Do ¶
func (c *TargetVpnGatewaysGetCall) Do(opts ...googleapi.CallOption) (*TargetVpnGateway, error)
Do executes the "compute.targetVpnGateways.get" call. Any non-2xx status code is an error. Response headers are in either *TargetVpnGateway.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetVpnGatewaysGetCall) Fields ¶
func (c *TargetVpnGatewaysGetCall) Fields(s ...googleapi.Field) *TargetVpnGatewaysGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetVpnGatewaysGetCall) Header ¶
func (c *TargetVpnGatewaysGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetVpnGatewaysGetCall) IfNoneMatch ¶
func (c *TargetVpnGatewaysGetCall) IfNoneMatch(entityTag string) *TargetVpnGatewaysGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type TargetVpnGatewaysInsertCall ¶
type TargetVpnGatewaysInsertCall struct {
// contains filtered or unexported fields
}
func (*TargetVpnGatewaysInsertCall) Context ¶
func (c *TargetVpnGatewaysInsertCall) Context(ctx context.Context) *TargetVpnGatewaysInsertCall
Context sets the context to be used in this call's Do method.
func (*TargetVpnGatewaysInsertCall) Do ¶
func (c *TargetVpnGatewaysInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetVpnGateways.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetVpnGatewaysInsertCall) Fields ¶
func (c *TargetVpnGatewaysInsertCall) Fields(s ...googleapi.Field) *TargetVpnGatewaysInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetVpnGatewaysInsertCall) Header ¶
func (c *TargetVpnGatewaysInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetVpnGatewaysInsertCall) RequestId ¶
func (c *TargetVpnGatewaysInsertCall) RequestId(requestId string) *TargetVpnGatewaysInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TargetVpnGatewaysListCall ¶
type TargetVpnGatewaysListCall struct {
// contains filtered or unexported fields
}
func (*TargetVpnGatewaysListCall) Context ¶
func (c *TargetVpnGatewaysListCall) Context(ctx context.Context) *TargetVpnGatewaysListCall
Context sets the context to be used in this call's Do method.
func (*TargetVpnGatewaysListCall) Do ¶
func (c *TargetVpnGatewaysListCall) Do(opts ...googleapi.CallOption) (*TargetVpnGatewayList, error)
Do executes the "compute.targetVpnGateways.list" call. Any non-2xx status code is an error. Response headers are in either *TargetVpnGatewayList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetVpnGatewaysListCall) Fields ¶
func (c *TargetVpnGatewaysListCall) Fields(s ...googleapi.Field) *TargetVpnGatewaysListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetVpnGatewaysListCall) Filter ¶
func (c *TargetVpnGatewaysListCall) Filter(filter string) *TargetVpnGatewaysListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*TargetVpnGatewaysListCall) Header ¶
func (c *TargetVpnGatewaysListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetVpnGatewaysListCall) IfNoneMatch ¶
func (c *TargetVpnGatewaysListCall) IfNoneMatch(entityTag string) *TargetVpnGatewaysListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*TargetVpnGatewaysListCall) MaxResults ¶
func (c *TargetVpnGatewaysListCall) MaxResults(maxResults int64) *TargetVpnGatewaysListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*TargetVpnGatewaysListCall) OrderBy ¶
func (c *TargetVpnGatewaysListCall) OrderBy(orderBy string) *TargetVpnGatewaysListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*TargetVpnGatewaysListCall) PageToken ¶
func (c *TargetVpnGatewaysListCall) PageToken(pageToken string) *TargetVpnGatewaysListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*TargetVpnGatewaysListCall) Pages ¶
func (c *TargetVpnGatewaysListCall) Pages(ctx context.Context, f func(*TargetVpnGatewayList) 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 (*TargetVpnGatewaysListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *TargetVpnGatewaysListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TargetVpnGatewaysListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type TargetVpnGatewaysScopedList ¶
type TargetVpnGatewaysScopedList struct { // TargetVpnGateways: [Output Only] A list of target VPN gateways contained in // this scope. TargetVpnGateways []*TargetVpnGateway `json:"targetVpnGateways,omitempty"` // Warning: [Output Only] Informational warning which replaces the list of // addresses when the list is empty. Warning *TargetVpnGatewaysScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "TargetVpnGateways") 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. "TargetVpnGateways") 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:"-"` }
func (TargetVpnGatewaysScopedList) MarshalJSON ¶
func (s TargetVpnGatewaysScopedList) MarshalJSON() ([]byte, error)
type TargetVpnGatewaysScopedListWarning ¶
type TargetVpnGatewaysScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*TargetVpnGatewaysScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
TargetVpnGatewaysScopedListWarning: [Output Only] Informational warning which replaces the list of addresses when the list is empty.
func (TargetVpnGatewaysScopedListWarning) MarshalJSON ¶
func (s TargetVpnGatewaysScopedListWarning) MarshalJSON() ([]byte, error)
type TargetVpnGatewaysScopedListWarningData ¶
type TargetVpnGatewaysScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (TargetVpnGatewaysScopedListWarningData) MarshalJSON ¶
func (s TargetVpnGatewaysScopedListWarningData) MarshalJSON() ([]byte, error)
type TargetVpnGatewaysService ¶
type TargetVpnGatewaysService struct {
// contains filtered or unexported fields
}
func NewTargetVpnGatewaysService ¶
func NewTargetVpnGatewaysService(s *Service) *TargetVpnGatewaysService
func (*TargetVpnGatewaysService) AggregatedList ¶
func (r *TargetVpnGatewaysService) AggregatedList(project string) *TargetVpnGatewaysAggregatedListCall
AggregatedList: Retrieves an aggregated list of target VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*TargetVpnGatewaysService) Delete ¶
func (r *TargetVpnGatewaysService) Delete(project string, region string, targetVpnGateway string) *TargetVpnGatewaysDeleteCall
Delete: Deletes the specified target VPN gateway.
- project: Project ID for this request. - region: Name of the region for this request. - targetVpnGateway: Name of the target VPN gateway to delete.
func (*TargetVpnGatewaysService) Get ¶
func (r *TargetVpnGatewaysService) Get(project string, region string, targetVpnGateway string) *TargetVpnGatewaysGetCall
Get: Returns the specified target VPN gateway.
- project: Project ID for this request. - region: Name of the region for this request. - targetVpnGateway: Name of the target VPN gateway to return.
func (*TargetVpnGatewaysService) Insert ¶
func (r *TargetVpnGatewaysService) Insert(project string, region string, targetvpngateway *TargetVpnGateway) *TargetVpnGatewaysInsertCall
Insert: Creates a target VPN gateway in the specified project and region using the data included in the request.
- project: Project ID for this request. - region: Name of the region for this request.
func (*TargetVpnGatewaysService) List ¶
func (r *TargetVpnGatewaysService) List(project string, region string) *TargetVpnGatewaysListCall
List: Retrieves a list of target VPN gateways available to the specified project and region.
- project: Project ID for this request. - region: Name of the region for this request.
func (*TargetVpnGatewaysService) SetLabels ¶ added in v0.96.0
func (r *TargetVpnGatewaysService) SetLabels(project string, region string, resource string, regionsetlabelsrequest *RegionSetLabelsRequest) *TargetVpnGatewaysSetLabelsCall
SetLabels: Sets the labels on a TargetVpnGateway. To learn more about labels, read the Labeling Resources documentation.
- project: Project ID for this request. - region: The region for this request. - resource: Name or id of the resource for this request.
type TargetVpnGatewaysSetLabelsCall ¶ added in v0.96.0
type TargetVpnGatewaysSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*TargetVpnGatewaysSetLabelsCall) Context ¶ added in v0.96.0
func (c *TargetVpnGatewaysSetLabelsCall) Context(ctx context.Context) *TargetVpnGatewaysSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*TargetVpnGatewaysSetLabelsCall) Do ¶ added in v0.96.0
func (c *TargetVpnGatewaysSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetVpnGateways.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*TargetVpnGatewaysSetLabelsCall) Fields ¶ added in v0.96.0
func (c *TargetVpnGatewaysSetLabelsCall) Fields(s ...googleapi.Field) *TargetVpnGatewaysSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TargetVpnGatewaysSetLabelsCall) Header ¶ added in v0.96.0
func (c *TargetVpnGatewaysSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TargetVpnGatewaysSetLabelsCall) RequestId ¶ added in v0.96.0
func (c *TargetVpnGatewaysSetLabelsCall) RequestId(requestId string) *TargetVpnGatewaysSetLabelsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type TestFailure ¶
type TestFailure struct { // ActualOutputUrl: The actual output URL evaluated by a load balancer // containing the scheme, host, path and query parameters. ActualOutputUrl string `json:"actualOutputUrl,omitempty"` // ActualRedirectResponseCode: Actual HTTP status code for rule with // `urlRedirect` calculated by load balancer ActualRedirectResponseCode int64 `json:"actualRedirectResponseCode,omitempty"` // ActualService: BackendService or BackendBucket returned by load balancer. ActualService string `json:"actualService,omitempty"` // ExpectedOutputUrl: The expected output URL evaluated by a load balancer // containing the scheme, host, path and query parameters. ExpectedOutputUrl string `json:"expectedOutputUrl,omitempty"` // ExpectedRedirectResponseCode: Expected HTTP status code for rule with // `urlRedirect` calculated by load balancer ExpectedRedirectResponseCode int64 `json:"expectedRedirectResponseCode,omitempty"` // ExpectedService: Expected BackendService or BackendBucket resource the given // URL should be mapped to. ExpectedService string `json:"expectedService,omitempty"` // Headers: HTTP headers of the request. Headers []*UrlMapTestHeader `json:"headers,omitempty"` // Host: Host portion of the URL. Host string `json:"host,omitempty"` // Path: Path portion including query parameters in the URL. Path string `json:"path,omitempty"` // ForceSendFields is a list of field names (e.g. "ActualOutputUrl") 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. "ActualOutputUrl") 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:"-"` }
func (TestFailure) MarshalJSON ¶
func (s TestFailure) MarshalJSON() ([]byte, error)
type TestPermissionsRequest ¶
type TestPermissionsRequest struct { // Permissions: The set of permissions to check for the 'resource'. Permissions // with wildcards (such as '*' or 'storage.*') are not allowed. Permissions []string `json:"permissions,omitempty"` // ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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:"-"` }
func (TestPermissionsRequest) MarshalJSON ¶
func (s TestPermissionsRequest) MarshalJSON() ([]byte, error)
type TestPermissionsResponse ¶
type TestPermissionsResponse struct { // Permissions: A subset of `TestPermissionsRequest.permissions` that the // caller is allowed. Permissions []string `json:"permissions,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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:"-"` }
func (TestPermissionsResponse) MarshalJSON ¶
func (s TestPermissionsResponse) MarshalJSON() ([]byte, error)
type Uint128 ¶ added in v0.55.0
type Uint128 struct { High uint64 `json:"high,omitempty,string"` Low uint64 `json:"low,omitempty,string"` // ForceSendFields is a list of field names (e.g. "High") 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. "High") 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:"-"` }
func (Uint128) MarshalJSON ¶ added in v0.55.0
type UpcomingMaintenance ¶ added in v0.151.0
type UpcomingMaintenance struct { // CanReschedule: Indicates if the maintenance can be customer triggered. CanReschedule bool `json:"canReschedule,omitempty"` // LatestWindowStartTime: The latest time for the planned maintenance window to // start. This timestamp value is in RFC3339 text format. LatestWindowStartTime string `json:"latestWindowStartTime,omitempty"` // Possible values: // "ONGOING" - There is ongoing maintenance on this VM. // "PENDING" - There is pending maintenance. // "UNKNOWN" - Unknown maintenance status. Do not use this value. MaintenanceStatus string `json:"maintenanceStatus,omitempty"` // Type: Defines the type of maintenance. // // Possible values: // "SCHEDULED" - Scheduled maintenance (e.g. maintenance after uptime // guarantee is complete). // "UNKNOWN_TYPE" - No type specified. Do not use this value. // "UNSCHEDULED" - Unscheduled maintenance (e.g. emergency maintenance during // uptime guarantee). Type string `json:"type,omitempty"` // WindowEndTime: The time by which the maintenance disruption will be // completed. This timestamp value is in RFC3339 text format. WindowEndTime string `json:"windowEndTime,omitempty"` // WindowStartTime: The current start time of the maintenance window. This // timestamp value is in RFC3339 text format. WindowStartTime string `json:"windowStartTime,omitempty"` // ForceSendFields is a list of field names (e.g. "CanReschedule") 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. "CanReschedule") 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:"-"` }
UpcomingMaintenance: Upcoming Maintenance notification information.
func (UpcomingMaintenance) MarshalJSON ¶ added in v0.151.0
func (s UpcomingMaintenance) MarshalJSON() ([]byte, error)
type UrlMap ¶
type UrlMap struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // DefaultCustomErrorResponsePolicy: defaultCustomErrorResponsePolicy specifies // how the Load Balancer returns error responses when BackendServiceor // BackendBucket responds with an error. This policy takes effect at the load // balancer level and applies only when no policy has been defined for the // error code at lower levels like PathMatcher, RouteRule and PathRule within // this UrlMap. For example, consider a UrlMap with the following // configuration: - defaultCustomErrorResponsePolicy containing policies for // responding to 5xx and 4xx errors - A PathMatcher configured for // *.example.com has defaultCustomErrorResponsePolicy for 4xx. If a request for // http://www.example.com/ encounters a 404, the policy in // pathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the // request for http://www.example.com/ encounters a 502, the policy in // UrlMap.defaultCustomErrorResponsePolicy will be enforced. When a request // that does not match any host in *.example.com such as // http://www.myotherexample.com/, encounters a 404, // UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in // conjunction with defaultRouteAction.retryPolicy, retries take precedence. // Only once all retries are exhausted, the defaultCustomErrorResponsePolicy is // applied. While attempting a retry, if load balancer is successful in // reaching the service, the defaultCustomErrorResponsePolicy is ignored and // the response from the service is returned to the client. // defaultCustomErrorResponsePolicy is supported only for global external // Application Load Balancers. DefaultCustomErrorResponsePolicy *CustomErrorResponsePolicy `json:"defaultCustomErrorResponsePolicy,omitempty"` // DefaultRouteAction: defaultRouteAction takes effect when none of the // hostRules match. The load balancer performs advanced routing actions, such // as URL rewrites and header transformations, before forwarding the request to // the selected backend. If defaultRouteAction specifies any // weightedBackendServices, defaultService must not be set. Conversely if // defaultService is set, defaultRouteAction cannot contain any // weightedBackendServices. Only one of defaultRouteAction or // defaultUrlRedirect must be set. URL maps for classic Application Load // Balancers only support the urlRewrite action within defaultRouteAction. // defaultRouteAction has no effect when the URL map is bound to a target gRPC // proxy that has the validateForProxyless field set to true. DefaultRouteAction *HttpRouteAction `json:"defaultRouteAction,omitempty"` // DefaultService: The full or partial URL of the defaultService resource to // which traffic is directed if none of the hostRules match. If // defaultRouteAction is also specified, advanced routing actions, such as URL // rewrites, take effect before sending the request to the backend. However, if // defaultService is specified, defaultRouteAction cannot contain any // defaultRouteAction.weightedBackendServices. Conversely, if // defaultRouteAction specifies any defaultRouteAction.weightedBackendServices, // defaultService must not be specified. If defaultService is specified, then // set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService // Don't set both. defaultService has no effect when the URL map is bound to a // target gRPC proxy that has the validateForProxyless field set to true. DefaultService string `json:"defaultService,omitempty"` // DefaultUrlRedirect: When none of the specified hostRules match, the request // is redirected to a URL specified by defaultUrlRedirect. If // defaultUrlRedirect is specified, defaultService or defaultRouteAction must // not be set. Not supported when the URL map is bound to a target gRPC proxy. DefaultUrlRedirect *HttpRedirectAction `json:"defaultUrlRedirect,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents stored in // this object. This field is used in optimistic locking. This field is ignored // when inserting a UrlMap. An up-to-date fingerprint must be provided in order // to update the UrlMap, otherwise the request will fail with error 412 // conditionNotMet. To see the latest fingerprint, make a get() request to // retrieve a UrlMap. Fingerprint string `json:"fingerprint,omitempty"` // HeaderAction: Specifies changes to request and response headers that need to // take effect for the selected backendService. The headerAction specified here // take effect after headerAction specified under pathMatcher. headerAction is // not supported for load balancers that have their loadBalancingScheme set to // EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy // that has validateForProxyless field set to true. HeaderAction *HttpHeaderAction `json:"headerAction,omitempty"` // HostRules: The list of host rules to use against the URL. HostRules []*HostRule `json:"hostRules,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#urlMaps for url // maps. Kind string `json:"kind,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // PathMatchers: The list of named PathMatchers to use against the URL. PathMatchers []*PathMatcher `json:"pathMatchers,omitempty"` // Region: [Output Only] URL of the region where the regional URL map resides. // This field is not applicable to global URL maps. You must specify this field // as part of the HTTP request URL. It is not settable as a field in the // request body. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Tests: The list of expected URL mapping tests. Request to update the UrlMap // succeeds only if all test cases pass. You can specify a maximum of 100 tests // per UrlMap. Not supported when the URL map is bound to a target gRPC proxy // that has validateForProxyless field set to true. Tests []*UrlMapTest `json:"tests,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
UrlMap: Represents a URL Map resource. Compute Engine has two URL Map resources: * Global (/compute/docs/reference/rest/v1/urlMaps) * Regional (/compute/docs/reference/rest/v1/regionUrlMaps) A URL map resource is a component of certain types of cloud load balancers and Traffic Director: * urlMaps are used by global external Application Load Balancers, classic Application Load Balancers, and cross-region internal Application Load Balancers. * regionUrlMaps are used by internal Application Load Balancers, regional external Application Load Balancers and regional internal Application Load Balancers. For a list of supported URL map features by the load balancer type, see the Load balancing features: Routing and traffic management table. For a list of supported URL map features for Traffic Director, see the Traffic Director features: Routing and traffic management table. This resource defines mappings from hostnames and URL paths to either a backend service or a backend bucket. To use the global urlMaps resource, the backend service must have a loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the regionUrlMaps resource, the backend service must have a loadBalancingScheme of INTERNAL_MANAGED. For more information, read URL Map Concepts.
func (UrlMap) MarshalJSON ¶
type UrlMapList ¶
type UrlMapList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of UrlMap resources. Items []*UrlMap `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *UrlMapListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
UrlMapList: Contains a list of UrlMap resources.
func (UrlMapList) MarshalJSON ¶
func (s UrlMapList) MarshalJSON() ([]byte, error)
type UrlMapListWarning ¶
type UrlMapListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*UrlMapListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
UrlMapListWarning: [Output Only] Informational warning message.
func (UrlMapListWarning) MarshalJSON ¶
func (s UrlMapListWarning) MarshalJSON() ([]byte, error)
type UrlMapListWarningData ¶
type UrlMapListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (UrlMapListWarningData) MarshalJSON ¶
func (s UrlMapListWarningData) MarshalJSON() ([]byte, error)
type UrlMapReference ¶
type UrlMapReference struct { UrlMap string `json:"urlMap,omitempty"` // ForceSendFields is a list of field names (e.g. "UrlMap") 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. "UrlMap") 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:"-"` }
func (UrlMapReference) MarshalJSON ¶
func (s UrlMapReference) MarshalJSON() ([]byte, error)
type UrlMapTest ¶
type UrlMapTest struct { // Description: Description of this test case. Description string `json:"description,omitempty"` // ExpectedOutputUrl: The expected output URL evaluated by the load balancer // containing the scheme, host, path and query parameters. For rules that // forward requests to backends, the test passes only when expectedOutputUrl // matches the request forwarded by the load balancer to backends. For rules // with urlRewrite, the test verifies that the forwarded request matches // hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is // specified, expectedOutputUrl`s scheme is ignored. For rules with // urlRedirect, the test passes only if expectedOutputUrl matches the URL in // the load balancer's redirect response. If urlRedirect specifies // https_redirect, the test passes only if the scheme in expectedOutputUrl is // also set to HTTPS. If urlRedirect specifies strip_query, the test passes // only if expectedOutputUrl does not contain any query parameters. // expectedOutputUrl is optional when service is specified. ExpectedOutputUrl string `json:"expectedOutputUrl,omitempty"` // ExpectedRedirectResponseCode: For rules with urlRedirect, the test passes // only if expectedRedirectResponseCode matches the HTTP status code in load // balancer's redirect response. expectedRedirectResponseCode cannot be set // when service is set. ExpectedRedirectResponseCode int64 `json:"expectedRedirectResponseCode,omitempty"` // Headers: HTTP headers for this request. If headers contains a host header, // then host must also match the header value. Headers []*UrlMapTestHeader `json:"headers,omitempty"` // Host: Host portion of the URL. If headers contains a host header, then host // must also match the header value. Host string `json:"host,omitempty"` // Path: Path portion of the URL. Path string `json:"path,omitempty"` // Service: Expected BackendService or BackendBucket resource the given URL // should be mapped to. The service field cannot be set if // expectedRedirectResponseCode is set. Service string `json:"service,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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:"-"` }
UrlMapTest: Message for the expected URL mappings.
func (UrlMapTest) MarshalJSON ¶
func (s UrlMapTest) MarshalJSON() ([]byte, error)
type UrlMapTestHeader ¶ added in v0.37.0
type UrlMapTestHeader struct { // Name: Header name. Name string `json:"name,omitempty"` // Value: Header value. Value string `json:"value,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:"-"` }
UrlMapTestHeader: HTTP headers used in UrlMapTests.
func (UrlMapTestHeader) MarshalJSON ¶ added in v0.37.0
func (s UrlMapTestHeader) MarshalJSON() ([]byte, error)
type UrlMapValidationResult ¶
type UrlMapValidationResult struct { LoadErrors []string `json:"loadErrors,omitempty"` // LoadSucceeded: Whether the given UrlMap can be successfully loaded. If // false, 'loadErrors' indicates the reasons. LoadSucceeded bool `json:"loadSucceeded,omitempty"` TestFailures []*TestFailure `json:"testFailures,omitempty"` // TestPassed: If successfully loaded, this field indicates whether the test // passed. If false, 'testFailures's indicate the reason of failure. TestPassed bool `json:"testPassed,omitempty"` // ForceSendFields is a list of field names (e.g. "LoadErrors") 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. "LoadErrors") 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:"-"` }
UrlMapValidationResult: Message representing the validation result for a UrlMap.
func (UrlMapValidationResult) MarshalJSON ¶
func (s UrlMapValidationResult) MarshalJSON() ([]byte, error)
type UrlMapsAggregatedList ¶ added in v0.11.0
type UrlMapsAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of UrlMapsScopedList resources. Items map[string]UrlMapsScopedList `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *UrlMapsAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (UrlMapsAggregatedList) MarshalJSON ¶ added in v0.11.0
func (s UrlMapsAggregatedList) MarshalJSON() ([]byte, error)
type UrlMapsAggregatedListCall ¶ added in v0.11.0
type UrlMapsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*UrlMapsAggregatedListCall) Context ¶ added in v0.11.0
func (c *UrlMapsAggregatedListCall) Context(ctx context.Context) *UrlMapsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*UrlMapsAggregatedListCall) Do ¶ added in v0.11.0
func (c *UrlMapsAggregatedListCall) Do(opts ...googleapi.CallOption) (*UrlMapsAggregatedList, error)
Do executes the "compute.urlMaps.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *UrlMapsAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UrlMapsAggregatedListCall) Fields ¶ added in v0.11.0
func (c *UrlMapsAggregatedListCall) Fields(s ...googleapi.Field) *UrlMapsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UrlMapsAggregatedListCall) Filter ¶ added in v0.11.0
func (c *UrlMapsAggregatedListCall) Filter(filter string) *UrlMapsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*UrlMapsAggregatedListCall) Header ¶ added in v0.11.0
func (c *UrlMapsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UrlMapsAggregatedListCall) IfNoneMatch ¶ added in v0.11.0
func (c *UrlMapsAggregatedListCall) IfNoneMatch(entityTag string) *UrlMapsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*UrlMapsAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *UrlMapsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *UrlMapsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*UrlMapsAggregatedListCall) MaxResults ¶ added in v0.11.0
func (c *UrlMapsAggregatedListCall) MaxResults(maxResults int64) *UrlMapsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*UrlMapsAggregatedListCall) OrderBy ¶ added in v0.11.0
func (c *UrlMapsAggregatedListCall) OrderBy(orderBy string) *UrlMapsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*UrlMapsAggregatedListCall) PageToken ¶ added in v0.11.0
func (c *UrlMapsAggregatedListCall) PageToken(pageToken string) *UrlMapsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*UrlMapsAggregatedListCall) Pages ¶ added in v0.11.0
func (c *UrlMapsAggregatedListCall) Pages(ctx context.Context, f func(*UrlMapsAggregatedList) 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 (*UrlMapsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *UrlMapsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *UrlMapsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*UrlMapsAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *UrlMapsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *UrlMapsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type UrlMapsAggregatedListWarning ¶ added in v0.11.0
type UrlMapsAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*UrlMapsAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
UrlMapsAggregatedListWarning: [Output Only] Informational warning message.
func (UrlMapsAggregatedListWarning) MarshalJSON ¶ added in v0.11.0
func (s UrlMapsAggregatedListWarning) MarshalJSON() ([]byte, error)
type UrlMapsAggregatedListWarningData ¶ added in v0.11.0
type UrlMapsAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (UrlMapsAggregatedListWarningData) MarshalJSON ¶ added in v0.11.0
func (s UrlMapsAggregatedListWarningData) MarshalJSON() ([]byte, error)
type UrlMapsDeleteCall ¶
type UrlMapsDeleteCall struct {
// contains filtered or unexported fields
}
func (*UrlMapsDeleteCall) Context ¶
func (c *UrlMapsDeleteCall) Context(ctx context.Context) *UrlMapsDeleteCall
Context sets the context to be used in this call's Do method.
func (*UrlMapsDeleteCall) Do ¶
func (c *UrlMapsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.urlMaps.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UrlMapsDeleteCall) Fields ¶
func (c *UrlMapsDeleteCall) Fields(s ...googleapi.Field) *UrlMapsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UrlMapsDeleteCall) Header ¶
func (c *UrlMapsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UrlMapsDeleteCall) RequestId ¶
func (c *UrlMapsDeleteCall) RequestId(requestId string) *UrlMapsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type UrlMapsGetCall ¶
type UrlMapsGetCall struct {
// contains filtered or unexported fields
}
func (*UrlMapsGetCall) Context ¶
func (c *UrlMapsGetCall) Context(ctx context.Context) *UrlMapsGetCall
Context sets the context to be used in this call's Do method.
func (*UrlMapsGetCall) Do ¶
func (c *UrlMapsGetCall) Do(opts ...googleapi.CallOption) (*UrlMap, error)
Do executes the "compute.urlMaps.get" call. Any non-2xx status code is an error. Response headers are in either *UrlMap.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UrlMapsGetCall) Fields ¶
func (c *UrlMapsGetCall) Fields(s ...googleapi.Field) *UrlMapsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UrlMapsGetCall) Header ¶
func (c *UrlMapsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UrlMapsGetCall) IfNoneMatch ¶
func (c *UrlMapsGetCall) IfNoneMatch(entityTag string) *UrlMapsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type UrlMapsInsertCall ¶
type UrlMapsInsertCall struct {
// contains filtered or unexported fields
}
func (*UrlMapsInsertCall) Context ¶
func (c *UrlMapsInsertCall) Context(ctx context.Context) *UrlMapsInsertCall
Context sets the context to be used in this call's Do method.
func (*UrlMapsInsertCall) Do ¶
func (c *UrlMapsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.urlMaps.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UrlMapsInsertCall) Fields ¶
func (c *UrlMapsInsertCall) Fields(s ...googleapi.Field) *UrlMapsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UrlMapsInsertCall) Header ¶
func (c *UrlMapsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UrlMapsInsertCall) RequestId ¶
func (c *UrlMapsInsertCall) RequestId(requestId string) *UrlMapsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type UrlMapsInvalidateCacheCall ¶
type UrlMapsInvalidateCacheCall struct {
// contains filtered or unexported fields
}
func (*UrlMapsInvalidateCacheCall) Context ¶
func (c *UrlMapsInvalidateCacheCall) Context(ctx context.Context) *UrlMapsInvalidateCacheCall
Context sets the context to be used in this call's Do method.
func (*UrlMapsInvalidateCacheCall) Do ¶
func (c *UrlMapsInvalidateCacheCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.urlMaps.invalidateCache" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UrlMapsInvalidateCacheCall) Fields ¶
func (c *UrlMapsInvalidateCacheCall) Fields(s ...googleapi.Field) *UrlMapsInvalidateCacheCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UrlMapsInvalidateCacheCall) Header ¶
func (c *UrlMapsInvalidateCacheCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UrlMapsInvalidateCacheCall) RequestId ¶
func (c *UrlMapsInvalidateCacheCall) RequestId(requestId string) *UrlMapsInvalidateCacheCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type UrlMapsListCall ¶
type UrlMapsListCall struct {
// contains filtered or unexported fields
}
func (*UrlMapsListCall) Context ¶
func (c *UrlMapsListCall) Context(ctx context.Context) *UrlMapsListCall
Context sets the context to be used in this call's Do method.
func (*UrlMapsListCall) Do ¶
func (c *UrlMapsListCall) Do(opts ...googleapi.CallOption) (*UrlMapList, error)
Do executes the "compute.urlMaps.list" call. Any non-2xx status code is an error. Response headers are in either *UrlMapList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UrlMapsListCall) Fields ¶
func (c *UrlMapsListCall) Fields(s ...googleapi.Field) *UrlMapsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UrlMapsListCall) Filter ¶
func (c *UrlMapsListCall) Filter(filter string) *UrlMapsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*UrlMapsListCall) Header ¶
func (c *UrlMapsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UrlMapsListCall) IfNoneMatch ¶
func (c *UrlMapsListCall) IfNoneMatch(entityTag string) *UrlMapsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*UrlMapsListCall) MaxResults ¶
func (c *UrlMapsListCall) MaxResults(maxResults int64) *UrlMapsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*UrlMapsListCall) OrderBy ¶
func (c *UrlMapsListCall) OrderBy(orderBy string) *UrlMapsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*UrlMapsListCall) PageToken ¶
func (c *UrlMapsListCall) PageToken(pageToken string) *UrlMapsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*UrlMapsListCall) Pages ¶
func (c *UrlMapsListCall) Pages(ctx context.Context, f func(*UrlMapList) 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 (*UrlMapsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *UrlMapsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *UrlMapsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type UrlMapsPatchCall ¶
type UrlMapsPatchCall struct {
// contains filtered or unexported fields
}
func (*UrlMapsPatchCall) Context ¶
func (c *UrlMapsPatchCall) Context(ctx context.Context) *UrlMapsPatchCall
Context sets the context to be used in this call's Do method.
func (*UrlMapsPatchCall) Do ¶
func (c *UrlMapsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.urlMaps.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UrlMapsPatchCall) Fields ¶
func (c *UrlMapsPatchCall) Fields(s ...googleapi.Field) *UrlMapsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UrlMapsPatchCall) Header ¶
func (c *UrlMapsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UrlMapsPatchCall) RequestId ¶
func (c *UrlMapsPatchCall) RequestId(requestId string) *UrlMapsPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type UrlMapsScopedList ¶ added in v0.11.0
type UrlMapsScopedList struct { // UrlMaps: A list of UrlMaps contained in this scope. UrlMaps []*UrlMap `json:"urlMaps,omitempty"` // Warning: Informational warning which replaces the list of backend services // when the list is empty. Warning *UrlMapsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "UrlMaps") 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. "UrlMaps") 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:"-"` }
func (UrlMapsScopedList) MarshalJSON ¶ added in v0.11.0
func (s UrlMapsScopedList) MarshalJSON() ([]byte, error)
type UrlMapsScopedListWarning ¶ added in v0.11.0
type UrlMapsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*UrlMapsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
UrlMapsScopedListWarning: Informational warning which replaces the list of backend services when the list is empty.
func (UrlMapsScopedListWarning) MarshalJSON ¶ added in v0.11.0
func (s UrlMapsScopedListWarning) MarshalJSON() ([]byte, error)
type UrlMapsScopedListWarningData ¶ added in v0.11.0
type UrlMapsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (UrlMapsScopedListWarningData) MarshalJSON ¶ added in v0.11.0
func (s UrlMapsScopedListWarningData) MarshalJSON() ([]byte, error)
type UrlMapsService ¶
type UrlMapsService struct {
// contains filtered or unexported fields
}
func NewUrlMapsService ¶
func NewUrlMapsService(s *Service) *UrlMapsService
func (*UrlMapsService) AggregatedList ¶ added in v0.11.0
func (r *UrlMapsService) AggregatedList(project string) *UrlMapsAggregatedListCall
AggregatedList: Retrieves the list of all UrlMap resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Name of the project scoping this request.
func (*UrlMapsService) Delete ¶
func (r *UrlMapsService) Delete(project string, urlMap string) *UrlMapsDeleteCall
Delete: Deletes the specified UrlMap resource.
- project: Project ID for this request. - urlMap: Name of the UrlMap resource to delete.
func (*UrlMapsService) Get ¶
func (r *UrlMapsService) Get(project string, urlMap string) *UrlMapsGetCall
Get: Returns the specified UrlMap resource.
- project: Project ID for this request. - urlMap: Name of the UrlMap resource to return.
func (*UrlMapsService) Insert ¶
func (r *UrlMapsService) Insert(project string, urlmap *UrlMap) *UrlMapsInsertCall
Insert: Creates a UrlMap resource in the specified project using the data included in the request.
- project: Project ID for this request.
func (*UrlMapsService) InvalidateCache ¶
func (r *UrlMapsService) InvalidateCache(project string, urlMap string, cacheinvalidationrule *CacheInvalidationRule) *UrlMapsInvalidateCacheCall
InvalidateCache: Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. For more information, see Invalidating cached content (/cdn/docs/invalidating-cached-content).
- project: Project ID for this request. - urlMap: Name of the UrlMap scoping this request.
func (*UrlMapsService) List ¶
func (r *UrlMapsService) List(project string) *UrlMapsListCall
List: Retrieves the list of UrlMap resources available to the specified project.
- project: Project ID for this request.
func (*UrlMapsService) Patch ¶
func (r *UrlMapsService) Patch(project string, urlMap string, urlmap *UrlMap) *UrlMapsPatchCall
Patch: Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- project: Project ID for this request. - urlMap: Name of the UrlMap resource to patch.
func (*UrlMapsService) Update ¶
func (r *UrlMapsService) Update(project string, urlMap string, urlmap *UrlMap) *UrlMapsUpdateCall
Update: Updates the specified UrlMap resource with the data included in the request.
- project: Project ID for this request. - urlMap: Name of the UrlMap resource to update.
func (*UrlMapsService) Validate ¶
func (r *UrlMapsService) Validate(project string, urlMap string, urlmapsvalidaterequest *UrlMapsValidateRequest) *UrlMapsValidateCall
Validate: Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.
- project: Project ID for this request. - urlMap: Name of the UrlMap resource to be validated as.
type UrlMapsUpdateCall ¶
type UrlMapsUpdateCall struct {
// contains filtered or unexported fields
}
func (*UrlMapsUpdateCall) Context ¶
func (c *UrlMapsUpdateCall) Context(ctx context.Context) *UrlMapsUpdateCall
Context sets the context to be used in this call's Do method.
func (*UrlMapsUpdateCall) Do ¶
func (c *UrlMapsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.urlMaps.update" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UrlMapsUpdateCall) Fields ¶
func (c *UrlMapsUpdateCall) Fields(s ...googleapi.Field) *UrlMapsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UrlMapsUpdateCall) Header ¶
func (c *UrlMapsUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UrlMapsUpdateCall) RequestId ¶
func (c *UrlMapsUpdateCall) RequestId(requestId string) *UrlMapsUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type UrlMapsValidateCall ¶
type UrlMapsValidateCall struct {
// contains filtered or unexported fields
}
func (*UrlMapsValidateCall) Context ¶
func (c *UrlMapsValidateCall) Context(ctx context.Context) *UrlMapsValidateCall
Context sets the context to be used in this call's Do method.
func (*UrlMapsValidateCall) Do ¶
func (c *UrlMapsValidateCall) Do(opts ...googleapi.CallOption) (*UrlMapsValidateResponse, error)
Do executes the "compute.urlMaps.validate" call. Any non-2xx status code is an error. Response headers are in either *UrlMapsValidateResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UrlMapsValidateCall) Fields ¶
func (c *UrlMapsValidateCall) Fields(s ...googleapi.Field) *UrlMapsValidateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UrlMapsValidateCall) Header ¶
func (c *UrlMapsValidateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type UrlMapsValidateRequest ¶
type UrlMapsValidateRequest struct { // LoadBalancingSchemes: Specifies the load balancer type(s) this validation // request is for. Use EXTERNAL_MANAGED for global external Application Load // Balancers and regional external Application Load Balancers. Use EXTERNAL for // classic Application Load Balancers. Use INTERNAL_MANAGED for internal // Application Load Balancers. For more information, refer to Choosing a load // balancer. If unspecified, the load balancing scheme will be inferred from // the backend service resources this URL map references. If that can not be // inferred (for example, this URL map only references backend buckets, or this // Url map is for rewrites and redirects only and doesn't reference any // backends), EXTERNAL will be used as the default type. If specified, the // scheme(s) must not conflict with the load balancing scheme of the backend // service resources this Url map references. // // Possible values: // "EXTERNAL" - Signifies that this will be used for classic Application Load // Balancers. // "EXTERNAL_MANAGED" - Signifies that this will be used for Envoy-based // global external Application Load Balancers. // "LOAD_BALANCING_SCHEME_UNSPECIFIED" - If unspecified, the validation will // try to infer the scheme from the backend service resources this Url map // references. If the inference is not possible, EXTERNAL will be used as the // default type. LoadBalancingSchemes []string `json:"loadBalancingSchemes,omitempty"` // Resource: Content of the UrlMap to be validated. Resource *UrlMap `json:"resource,omitempty"` // ForceSendFields is a list of field names (e.g. "LoadBalancingSchemes") 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. "LoadBalancingSchemes") 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:"-"` }
func (UrlMapsValidateRequest) MarshalJSON ¶
func (s UrlMapsValidateRequest) MarshalJSON() ([]byte, error)
type UrlMapsValidateResponse ¶
type UrlMapsValidateResponse struct { Result *UrlMapValidationResult `json:"result,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Result") 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. "Result") 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:"-"` }
func (UrlMapsValidateResponse) MarshalJSON ¶
func (s UrlMapsValidateResponse) MarshalJSON() ([]byte, error)
type UrlRewrite ¶ added in v0.11.0
type UrlRewrite struct { // HostRewrite: Before forwarding the request to the selected service, the // request's host header is replaced with contents of hostRewrite. The value // must be from 1 to 255 characters. HostRewrite string `json:"hostRewrite,omitempty"` // PathPrefixRewrite: Before forwarding the request to the selected backend // service, the matching portion of the request's path is replaced by // pathPrefixRewrite. The value must be from 1 to 1024 characters. PathPrefixRewrite string `json:"pathPrefixRewrite,omitempty"` // PathTemplateRewrite: If specified, the pattern rewrites the URL path (based // on the :path header) using the HTTP template syntax. A corresponding // path_template_match must be specified. Any template variables must exist in // the path_template_match field. - -At least one variable must be specified in // the path_template_match field - You can omit variables from the rewritten // URL - The * and ** operators cannot be matched unless they have a // corresponding variable name - e.g. {format=*} or {var=**}. For example, a // path_template_match of /static/{format=**} could be rewritten as // /static/content/{format} to prefix /content to the URL. Variables can also // be re-ordered in a rewrite, so that /{country}/{format}/{suffix=**} can be // rewritten as /content/{format}/{country}/{suffix}. At least one non-empty // routeRules[].matchRules[].path_template_match is required. Only one of // path_prefix_rewrite or path_template_rewrite may be specified. PathTemplateRewrite string `json:"pathTemplateRewrite,omitempty"` // ForceSendFields is a list of field names (e.g. "HostRewrite") 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. "HostRewrite") 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:"-"` }
UrlRewrite: The spec for modifying the path before sending the request to the matched backend service.
func (UrlRewrite) MarshalJSON ¶ added in v0.11.0
func (s UrlRewrite) MarshalJSON() ([]byte, error)
type UsableSubnetwork ¶
type UsableSubnetwork struct { // ExternalIpv6Prefix: [Output Only] The external IPv6 address range that is // assigned to this subnetwork. ExternalIpv6Prefix string `json:"externalIpv6Prefix,omitempty"` // InternalIpv6Prefix: [Output Only] The internal IPv6 address range that is // assigned to this subnetwork. InternalIpv6Prefix string `json:"internalIpv6Prefix,omitempty"` // IpCidrRange: The range of internal addresses that are owned by this // subnetwork. IpCidrRange string `json:"ipCidrRange,omitempty"` // Ipv6AccessType: The access type of IPv6 address this subnet holds. It's // immutable and can only be specified during creation or the first time the // subnet is updated into IPV4_IPV6 dual stack. // // Possible values: // "EXTERNAL" - VMs on this subnet will be assigned IPv6 addresses that are // accessible via the Internet, as well as the VPC network. // "INTERNAL" - VMs on this subnet will be assigned IPv6 addresses that are // only accessible over the VPC network. Ipv6AccessType string `json:"ipv6AccessType,omitempty"` // Network: Network URL. Network string `json:"network,omitempty"` // Purpose: The purpose of the resource. This field can be either PRIVATE, // GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or // PRIVATE is the default purpose for user-created subnets or subnets that are // automatically created in auto mode networks. Subnets with purpose set to // GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks // that are reserved for Envoy-based load balancers. A subnet with purpose set // to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service // Connect. If unspecified, the subnet purpose defaults to PRIVATE. The // enableFlowLogs field isn't supported if the subnet purpose field is set to // GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. // // Possible values: // "GLOBAL_MANAGED_PROXY" - Subnet reserved for Global Envoy-based Load // Balancing. // "INTERNAL_HTTPS_LOAD_BALANCER" - Subnet reserved for Internal HTTP(S) Load // Balancing. This is a legacy purpose, please use REGIONAL_MANAGED_PROXY // instead. // "PRIVATE" - Regular user created or automatically created subnet. // "PRIVATE_NAT" - Subnetwork used as source range for Private NAT Gateways. // "PRIVATE_RFC_1918" - Regular user created or automatically created subnet. // "PRIVATE_SERVICE_CONNECT" - Subnetworks created for Private Service // Connect in the producer network. // "REGIONAL_MANAGED_PROXY" - Subnetwork used for Regional Envoy-based Load // Balancing. Purpose string `json:"purpose,omitempty"` // Role: The role of subnetwork. Currently, this field is only used when // purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value // can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is // currently being used for Envoy-based load balancers in a region. A BACKUP // subnetwork is one that is ready to be promoted to ACTIVE or is currently // draining. This field can be updated with a patch request. // // Possible values: // "ACTIVE" - The ACTIVE subnet that is currently used. // "BACKUP" - The BACKUP subnet that could be promoted to ACTIVE. Role string `json:"role,omitempty"` // SecondaryIpRanges: Secondary IP ranges. SecondaryIpRanges []*UsableSubnetworkSecondaryRange `json:"secondaryIpRanges,omitempty"` // StackType: The stack type for the subnet. If set to IPV4_ONLY, new VMs in // the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in // the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, // IPV4_ONLY is used. This field can be both set at resource creation time and // updated using patch. // // Possible values: // "IPV4_IPV6" - New VMs in this subnet can have both IPv4 and IPv6 // addresses. // "IPV4_ONLY" - New VMs in this subnet will only be assigned IPv4 addresses. StackType string `json:"stackType,omitempty"` // Subnetwork: Subnetwork URL. Subnetwork string `json:"subnetwork,omitempty"` // ForceSendFields is a list of field names (e.g. "ExternalIpv6Prefix") 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. "ExternalIpv6Prefix") 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:"-"` }
UsableSubnetwork: Subnetwork which the current user has compute.subnetworks.use permission on.
func (UsableSubnetwork) MarshalJSON ¶
func (s UsableSubnetwork) MarshalJSON() ([]byte, error)
type UsableSubnetworkSecondaryRange ¶
type UsableSubnetworkSecondaryRange struct { // IpCidrRange: The range of IP addresses belonging to this subnetwork // secondary range. IpCidrRange string `json:"ipCidrRange,omitempty"` // RangeName: The name associated with this subnetwork secondary range, used // when adding an alias IP range to a VM instance. The name must be 1-63 // characters long, and comply with RFC1035. The name must be unique within the // subnetwork. RangeName string `json:"rangeName,omitempty"` // ForceSendFields is a list of field names (e.g. "IpCidrRange") 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. "IpCidrRange") 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:"-"` }
UsableSubnetworkSecondaryRange: Secondary IP range of a usable subnetwork.
func (UsableSubnetworkSecondaryRange) MarshalJSON ¶
func (s UsableSubnetworkSecondaryRange) MarshalJSON() ([]byte, error)
type UsableSubnetworksAggregatedList ¶
type UsableSubnetworksAggregatedList struct { // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id string `json:"id,omitempty"` // Items: [Output] A list of usable subnetwork URLs. Items []*UsableSubnetwork `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#usableSubnetworksAggregatedList for aggregated lists of usable // subnetworks. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. In special cases // listUsable may return 0 subnetworks and nextPageToken which still should be // used to get the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *UsableSubnetworksAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (UsableSubnetworksAggregatedList) MarshalJSON ¶
func (s UsableSubnetworksAggregatedList) MarshalJSON() ([]byte, error)
type UsableSubnetworksAggregatedListWarning ¶
type UsableSubnetworksAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*UsableSubnetworksAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
UsableSubnetworksAggregatedListWarning: [Output Only] Informational warning message.
func (UsableSubnetworksAggregatedListWarning) MarshalJSON ¶
func (s UsableSubnetworksAggregatedListWarning) MarshalJSON() ([]byte, error)
type UsableSubnetworksAggregatedListWarningData ¶
type UsableSubnetworksAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (UsableSubnetworksAggregatedListWarningData) MarshalJSON ¶
func (s UsableSubnetworksAggregatedListWarningData) MarshalJSON() ([]byte, error)
type UsageExportLocation ¶
type UsageExportLocation struct { // BucketName: The name of an existing bucket in Cloud Storage where the usage // report object is stored. The Google Service Account is granted write access // to this bucket. This can either be the bucket name by itself, such as // example-bucket, or the bucket name with gs:// or // https://storage.googleapis.com/ in front of it, such as gs://example-bucket. BucketName string `json:"bucketName,omitempty"` // ReportNamePrefix: An optional prefix for the name of the usage report object // stored in bucketName. If not supplied, defaults to usage_gce. The report is // stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where // YYYYMMDD is the day of the usage according to Pacific Time. If you supply a // prefix, it should conform to Cloud Storage object naming conventions. ReportNamePrefix string `json:"reportNamePrefix,omitempty"` // ForceSendFields is a list of field names (e.g. "BucketName") 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. "BucketName") 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:"-"` }
UsageExportLocation: The location in Cloud Storage and naming method of the daily usage report. Contains bucket_name and report_name prefix.
func (UsageExportLocation) MarshalJSON ¶
func (s UsageExportLocation) MarshalJSON() ([]byte, error)
type VmEndpointNatMappings ¶
type VmEndpointNatMappings struct { // InstanceName: Name of the VM instance which the endpoint belongs to InstanceName string `json:"instanceName,omitempty"` InterfaceNatMappings []*VmEndpointNatMappingsInterfaceNatMappings `json:"interfaceNatMappings,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceName") 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. "InstanceName") 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:"-"` }
VmEndpointNatMappings: Contain information of Nat mapping for a VM endpoint (i.e., NIC).
func (VmEndpointNatMappings) MarshalJSON ¶
func (s VmEndpointNatMappings) MarshalJSON() ([]byte, error)
type VmEndpointNatMappingsInterfaceNatMappings ¶
type VmEndpointNatMappingsInterfaceNatMappings struct { // DrainNatIpPortRanges: List of all drain IP:port-range mappings assigned to // this interface. These ranges are inclusive, that is, both the first and the // last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", // "1.1.1.1:2234-2234"]. DrainNatIpPortRanges []string `json:"drainNatIpPortRanges,omitempty"` // NatIpPortRanges: A list of all IP:port-range mappings assigned to this // interface. These ranges are inclusive, that is, both the first and the last // ports can be used for NAT. Example: ["2.2.2.2:12345-12355", // "1.1.1.1:2234-2234"]. NatIpPortRanges []string `json:"natIpPortRanges,omitempty"` // NumTotalDrainNatPorts: Total number of drain ports across all NAT IPs // allocated to this interface. It equals to the aggregated port number in the // field drain_nat_ip_port_ranges. NumTotalDrainNatPorts int64 `json:"numTotalDrainNatPorts,omitempty"` // NumTotalNatPorts: Total number of ports across all NAT IPs allocated to this // interface. It equals to the aggregated port number in the field // nat_ip_port_ranges. NumTotalNatPorts int64 `json:"numTotalNatPorts,omitempty"` // RuleMappings: Information about mappings provided by rules in this NAT. RuleMappings []*VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings `json:"ruleMappings,omitempty"` // SourceAliasIpRange: Alias IP range for this interface endpoint. It will be a // private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24". SourceAliasIpRange string `json:"sourceAliasIpRange,omitempty"` // SourceVirtualIp: Primary IP of the VM for this NIC. SourceVirtualIp string `json:"sourceVirtualIp,omitempty"` // ForceSendFields is a list of field names (e.g. "DrainNatIpPortRanges") 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. "DrainNatIpPortRanges") 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:"-"` }
VmEndpointNatMappingsInterfaceNatMappings: Contain information of Nat mapping for an interface of this endpoint.
func (VmEndpointNatMappingsInterfaceNatMappings) MarshalJSON ¶
func (s VmEndpointNatMappingsInterfaceNatMappings) MarshalJSON() ([]byte, error)
type VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings ¶ added in v0.85.0
type VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings struct { // DrainNatIpPortRanges: List of all drain IP:port-range mappings assigned to // this interface by this rule. These ranges are inclusive, that is, both the // first and the last ports can be used for NAT. Example: // ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. DrainNatIpPortRanges []string `json:"drainNatIpPortRanges,omitempty"` // NatIpPortRanges: A list of all IP:port-range mappings assigned to this // interface by this rule. These ranges are inclusive, that is, both the first // and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", // "1.1.1.1:2234-2234"]. NatIpPortRanges []string `json:"natIpPortRanges,omitempty"` // NumTotalDrainNatPorts: Total number of drain ports across all NAT IPs // allocated to this interface by this rule. It equals the aggregated port // number in the field drain_nat_ip_port_ranges. NumTotalDrainNatPorts int64 `json:"numTotalDrainNatPorts,omitempty"` // NumTotalNatPorts: Total number of ports across all NAT IPs allocated to this // interface by this rule. It equals the aggregated port number in the field // nat_ip_port_ranges. NumTotalNatPorts int64 `json:"numTotalNatPorts,omitempty"` // RuleNumber: Rule number of the NAT Rule. RuleNumber int64 `json:"ruleNumber,omitempty"` // ForceSendFields is a list of field names (e.g. "DrainNatIpPortRanges") 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. "DrainNatIpPortRanges") 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:"-"` }
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings: Contains information of NAT Mappings provided by a NAT Rule.
func (VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings) MarshalJSON ¶ added in v0.85.0
func (s VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings) MarshalJSON() ([]byte, error)
type VmEndpointNatMappingsList ¶
type VmEndpointNatMappingsList struct { // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id string `json:"id,omitempty"` // Kind: [Output Only] Type of resource. Always // compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // Result: [Output Only] A list of Nat mapping information of VM endpoints. Result []*VmEndpointNatMappings `json:"result,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *VmEndpointNatMappingsListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
VmEndpointNatMappingsList: Contains a list of VmEndpointNatMappings.
func (VmEndpointNatMappingsList) MarshalJSON ¶
func (s VmEndpointNatMappingsList) MarshalJSON() ([]byte, error)
type VmEndpointNatMappingsListWarning ¶
type VmEndpointNatMappingsListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*VmEndpointNatMappingsListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
VmEndpointNatMappingsListWarning: [Output Only] Informational warning message.
func (VmEndpointNatMappingsListWarning) MarshalJSON ¶
func (s VmEndpointNatMappingsListWarning) MarshalJSON() ([]byte, error)
type VmEndpointNatMappingsListWarningData ¶
type VmEndpointNatMappingsListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (VmEndpointNatMappingsListWarningData) MarshalJSON ¶
func (s VmEndpointNatMappingsListWarningData) MarshalJSON() ([]byte, error)
type VpnGateway ¶ added in v0.11.0
type VpnGateway struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // GatewayIpVersion: The IP family of the gateway IPs for the HA-VPN gateway // interfaces. If not specified, IPV4 will be used. // // Possible values: // "IPV4" - Every HA-VPN gateway interface is configured with an IPv4 // address. // "IPV6" - Every HA-VPN gateway interface is configured with an IPv6 // address. GatewayIpVersion string `json:"gatewayIpVersion,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of resource. Always compute#vpnGateway for VPN // gateways. Kind string `json:"kind,omitempty"` // LabelFingerprint: A fingerprint for the labels being applied to this // VpnGateway, which is essentially a hash of the labels set used for // optimistic locking. The fingerprint is initially generated by Compute Engine // and changes after every request to modify or update labels. You must always // provide an up-to-date fingerprint hash in order to update or change labels, // otherwise the request will fail with error 412 conditionNotMet. To see the // latest fingerprint, make a get() request to retrieve a VpnGateway. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels for this resource. These can only be added or modified by the // setLabels method. Each label key/value pair must comply with RFC1035. Label // values may be empty. Labels map[string]string `json:"labels,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // Network: URL of the network to which this VPN gateway is attached. Provided // by the client when the VPN gateway is created. Network string `json:"network,omitempty"` // Region: [Output Only] URL of the region where the VPN gateway resides. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // StackType: The stack type for this VPN gateway to identify the IP protocols // that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6, IPV6_ONLY. If // not specified, IPV4_ONLY is used if the gateway IP version is IPV4, or // IPV4_IPV6 if the gateway IP version is IPV6. // // Possible values: // "IPV4_IPV6" - Enable VPN gateway with both IPv4 and IPv6 protocols. // "IPV4_ONLY" - Enable VPN gateway with only IPv4 protocol. // "IPV6_ONLY" - Enable VPN gateway with only IPv6 protocol. StackType string `json:"stackType,omitempty"` // VpnInterfaces: The list of VPN interfaces associated with this VPN gateway. VpnInterfaces []*VpnGatewayVpnGatewayInterface `json:"vpnInterfaces,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
VpnGateway: Represents a HA VPN gateway. HA VPN is a high-availability (HA) Cloud VPN solution that lets you securely connect your on-premises network to your Google Cloud Virtual Private Cloud network through an IPsec VPN connection in a single region. For more information about Cloud HA VPN solutions, see Cloud VPN topologies .
func (VpnGateway) MarshalJSON ¶ added in v0.11.0
func (s VpnGateway) MarshalJSON() ([]byte, error)
type VpnGatewayAggregatedList ¶ added in v0.11.0
type VpnGatewayAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of VpnGateway resources. Items map[string]VpnGatewaysScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#vpnGateway for VPN // gateways. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *VpnGatewayAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (VpnGatewayAggregatedList) MarshalJSON ¶ added in v0.11.0
func (s VpnGatewayAggregatedList) MarshalJSON() ([]byte, error)
type VpnGatewayAggregatedListWarning ¶ added in v0.11.0
type VpnGatewayAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*VpnGatewayAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
VpnGatewayAggregatedListWarning: [Output Only] Informational warning message.
func (VpnGatewayAggregatedListWarning) MarshalJSON ¶ added in v0.11.0
func (s VpnGatewayAggregatedListWarning) MarshalJSON() ([]byte, error)
type VpnGatewayAggregatedListWarningData ¶ added in v0.11.0
type VpnGatewayAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (VpnGatewayAggregatedListWarningData) MarshalJSON ¶ added in v0.11.0
func (s VpnGatewayAggregatedListWarningData) MarshalJSON() ([]byte, error)
type VpnGatewayList ¶ added in v0.11.0
type VpnGatewayList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of VpnGateway resources. Items []*VpnGateway `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#vpnGateway for VPN // gateways. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *VpnGatewayListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
VpnGatewayList: Contains a list of VpnGateway resources.
func (VpnGatewayList) MarshalJSON ¶ added in v0.11.0
func (s VpnGatewayList) MarshalJSON() ([]byte, error)
type VpnGatewayListWarning ¶ added in v0.11.0
type VpnGatewayListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*VpnGatewayListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
VpnGatewayListWarning: [Output Only] Informational warning message.
func (VpnGatewayListWarning) MarshalJSON ¶ added in v0.11.0
func (s VpnGatewayListWarning) MarshalJSON() ([]byte, error)
type VpnGatewayListWarningData ¶ added in v0.11.0
type VpnGatewayListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (VpnGatewayListWarningData) MarshalJSON ¶ added in v0.11.0
func (s VpnGatewayListWarningData) MarshalJSON() ([]byte, error)
type VpnGatewayStatus ¶ added in v0.11.0
type VpnGatewayStatus struct { // VpnConnections: List of VPN connection for this VpnGateway. VpnConnections []*VpnGatewayStatusVpnConnection `json:"vpnConnections,omitempty"` // ForceSendFields is a list of field names (e.g. "VpnConnections") 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. "VpnConnections") 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:"-"` }
func (VpnGatewayStatus) MarshalJSON ¶ added in v0.11.0
func (s VpnGatewayStatus) MarshalJSON() ([]byte, error)
type VpnGatewayStatusHighAvailabilityRequirementState ¶ added in v0.11.0
type VpnGatewayStatusHighAvailabilityRequirementState struct { // State: Indicates the high availability requirement state for the VPN // connection. Valid values are CONNECTION_REDUNDANCY_MET, // CONNECTION_REDUNDANCY_NOT_MET. // // Possible values: // "CONNECTION_REDUNDANCY_MET" - VPN tunnels are configured with adequate // redundancy from Cloud VPN gateway to the peer VPN gateway. For both // GCP-to-non-GCP and GCP-to-GCP connections, the adequate redundancy is a // pre-requirement for users to get 99.99% availability on GCP side; please // note that for any connection, end-to-end 99.99% availability is subject to // proper configuration on the peer VPN gateway. // "CONNECTION_REDUNDANCY_NOT_MET" - VPN tunnels are not configured with // adequate redundancy from the Cloud VPN gateway to the peer gateway State string `json:"state,omitempty"` // UnsatisfiedReason: Indicates the reason why the VPN connection does not meet // the high availability redundancy criteria/requirement. Valid values is // INCOMPLETE_TUNNELS_COVERAGE. // // Possible values: // "INCOMPLETE_TUNNELS_COVERAGE" UnsatisfiedReason string `json:"unsatisfiedReason,omitempty"` // ForceSendFields is a list of field names (e.g. "State") 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. "State") 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:"-"` }
VpnGatewayStatusHighAvailabilityRequirementState: Describes the high availability requirement state for the VPN connection between this Cloud VPN gateway and a peer gateway.
func (VpnGatewayStatusHighAvailabilityRequirementState) MarshalJSON ¶ added in v0.11.0
func (s VpnGatewayStatusHighAvailabilityRequirementState) MarshalJSON() ([]byte, error)
type VpnGatewayStatusTunnel ¶ added in v0.11.0
type VpnGatewayStatusTunnel struct { // LocalGatewayInterface: The VPN gateway interface this VPN tunnel is // associated with. LocalGatewayInterface int64 `json:"localGatewayInterface,omitempty"` // PeerGatewayInterface: The peer gateway interface this VPN tunnel is // connected to, the peer gateway could either be an external VPN gateway or a // Google Cloud VPN gateway. PeerGatewayInterface int64 `json:"peerGatewayInterface,omitempty"` // TunnelUrl: URL reference to the VPN tunnel. TunnelUrl string `json:"tunnelUrl,omitempty"` // ForceSendFields is a list of field names (e.g. "LocalGatewayInterface") 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. "LocalGatewayInterface") 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:"-"` }
VpnGatewayStatusTunnel: Contains some information about a VPN tunnel.
func (VpnGatewayStatusTunnel) MarshalJSON ¶ added in v0.11.0
func (s VpnGatewayStatusTunnel) MarshalJSON() ([]byte, error)
type VpnGatewayStatusVpnConnection ¶ added in v0.11.0
type VpnGatewayStatusVpnConnection struct { // PeerExternalGateway: URL reference to the peer external VPN gateways to // which the VPN tunnels in this VPN connection are connected. This field is // mutually exclusive with peer_gcp_gateway. PeerExternalGateway string `json:"peerExternalGateway,omitempty"` // PeerGcpGateway: URL reference to the peer side VPN gateways to which the VPN // tunnels in this VPN connection are connected. This field is mutually // exclusive with peer_gcp_gateway. PeerGcpGateway string `json:"peerGcpGateway,omitempty"` // State: HighAvailabilityRequirementState for the VPN connection. State *VpnGatewayStatusHighAvailabilityRequirementState `json:"state,omitempty"` // Tunnels: List of VPN tunnels that are in this VPN connection. Tunnels []*VpnGatewayStatusTunnel `json:"tunnels,omitempty"` // ForceSendFields is a list of field names (e.g. "PeerExternalGateway") 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. "PeerExternalGateway") 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:"-"` }
VpnGatewayStatusVpnConnection: A VPN connection contains all VPN tunnels connected from this VpnGateway to the same peer gateway. The peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.
func (VpnGatewayStatusVpnConnection) MarshalJSON ¶ added in v0.11.0
func (s VpnGatewayStatusVpnConnection) MarshalJSON() ([]byte, error)
type VpnGatewayVpnGatewayInterface ¶ added in v0.11.0
type VpnGatewayVpnGatewayInterface struct { // Id: [Output Only] Numeric identifier for this VPN interface associated with // the VPN gateway. Id int64 `json:"id,omitempty"` // InterconnectAttachment: URL of the VLAN attachment (interconnectAttachment) // resource for this VPN gateway interface. When the value of this field is // present, the VPN gateway is used for HA VPN over Cloud Interconnect; all // egress or ingress traffic for this VPN gateway interface goes through the // specified VLAN attachment resource. InterconnectAttachment string `json:"interconnectAttachment,omitempty"` // IpAddress: [Output Only] IP address for this VPN interface associated with // the VPN gateway. The IP address could be either a regional external IP // address or a regional internal IP address. The two IP addresses for a VPN // gateway must be all regional external or regional internal IP addresses. // There cannot be a mix of regional external IP addresses and regional // internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses // for both interfaces could either be regional internal IP addresses or // regional external IP addresses. For regular (non HA VPN over Cloud // Interconnect) HA VPN tunnels, the IP address must be a regional external IP // address. IpAddress string `json:"ipAddress,omitempty"` // Ipv6Address: [Output Only] IPv6 address for this VPN interface associated // with the VPN gateway. The IPv6 address must be a regional external IPv6 // address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0). Ipv6Address string `json:"ipv6Address,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:"-"` }
VpnGatewayVpnGatewayInterface: A VPN gateway interface.
func (VpnGatewayVpnGatewayInterface) MarshalJSON ¶ added in v0.11.0
func (s VpnGatewayVpnGatewayInterface) MarshalJSON() ([]byte, error)
type VpnGatewaysAggregatedListCall ¶ added in v0.11.0
type VpnGatewaysAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysAggregatedListCall) Context ¶ added in v0.11.0
func (c *VpnGatewaysAggregatedListCall) Context(ctx context.Context) *VpnGatewaysAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*VpnGatewaysAggregatedListCall) Do ¶ added in v0.11.0
func (c *VpnGatewaysAggregatedListCall) Do(opts ...googleapi.CallOption) (*VpnGatewayAggregatedList, error)
Do executes the "compute.vpnGateways.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *VpnGatewayAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*VpnGatewaysAggregatedListCall) Fields ¶ added in v0.11.0
func (c *VpnGatewaysAggregatedListCall) Fields(s ...googleapi.Field) *VpnGatewaysAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*VpnGatewaysAggregatedListCall) Filter ¶ added in v0.11.0
func (c *VpnGatewaysAggregatedListCall) Filter(filter string) *VpnGatewaysAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*VpnGatewaysAggregatedListCall) Header ¶ added in v0.11.0
func (c *VpnGatewaysAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*VpnGatewaysAggregatedListCall) IfNoneMatch ¶ added in v0.11.0
func (c *VpnGatewaysAggregatedListCall) IfNoneMatch(entityTag string) *VpnGatewaysAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*VpnGatewaysAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *VpnGatewaysAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *VpnGatewaysAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*VpnGatewaysAggregatedListCall) MaxResults ¶ added in v0.11.0
func (c *VpnGatewaysAggregatedListCall) MaxResults(maxResults int64) *VpnGatewaysAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*VpnGatewaysAggregatedListCall) OrderBy ¶ added in v0.11.0
func (c *VpnGatewaysAggregatedListCall) OrderBy(orderBy string) *VpnGatewaysAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*VpnGatewaysAggregatedListCall) PageToken ¶ added in v0.11.0
func (c *VpnGatewaysAggregatedListCall) PageToken(pageToken string) *VpnGatewaysAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*VpnGatewaysAggregatedListCall) Pages ¶ added in v0.11.0
func (c *VpnGatewaysAggregatedListCall) Pages(ctx context.Context, f func(*VpnGatewayAggregatedList) 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 (*VpnGatewaysAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *VpnGatewaysAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *VpnGatewaysAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*VpnGatewaysAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *VpnGatewaysAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *VpnGatewaysAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type VpnGatewaysDeleteCall ¶ added in v0.11.0
type VpnGatewaysDeleteCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysDeleteCall) Context ¶ added in v0.11.0
func (c *VpnGatewaysDeleteCall) Context(ctx context.Context) *VpnGatewaysDeleteCall
Context sets the context to be used in this call's Do method.
func (*VpnGatewaysDeleteCall) Do ¶ added in v0.11.0
func (c *VpnGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.vpnGateways.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*VpnGatewaysDeleteCall) Fields ¶ added in v0.11.0
func (c *VpnGatewaysDeleteCall) Fields(s ...googleapi.Field) *VpnGatewaysDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*VpnGatewaysDeleteCall) Header ¶ added in v0.11.0
func (c *VpnGatewaysDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*VpnGatewaysDeleteCall) RequestId ¶ added in v0.11.0
func (c *VpnGatewaysDeleteCall) RequestId(requestId string) *VpnGatewaysDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type VpnGatewaysGetCall ¶ added in v0.11.0
type VpnGatewaysGetCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysGetCall) Context ¶ added in v0.11.0
func (c *VpnGatewaysGetCall) Context(ctx context.Context) *VpnGatewaysGetCall
Context sets the context to be used in this call's Do method.
func (*VpnGatewaysGetCall) Do ¶ added in v0.11.0
func (c *VpnGatewaysGetCall) Do(opts ...googleapi.CallOption) (*VpnGateway, error)
Do executes the "compute.vpnGateways.get" call. Any non-2xx status code is an error. Response headers are in either *VpnGateway.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*VpnGatewaysGetCall) Fields ¶ added in v0.11.0
func (c *VpnGatewaysGetCall) Fields(s ...googleapi.Field) *VpnGatewaysGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*VpnGatewaysGetCall) Header ¶ added in v0.11.0
func (c *VpnGatewaysGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*VpnGatewaysGetCall) IfNoneMatch ¶ added in v0.11.0
func (c *VpnGatewaysGetCall) IfNoneMatch(entityTag string) *VpnGatewaysGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type VpnGatewaysGetStatusCall ¶ added in v0.11.0
type VpnGatewaysGetStatusCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysGetStatusCall) Context ¶ added in v0.11.0
func (c *VpnGatewaysGetStatusCall) Context(ctx context.Context) *VpnGatewaysGetStatusCall
Context sets the context to be used in this call's Do method.
func (*VpnGatewaysGetStatusCall) Do ¶ added in v0.11.0
func (c *VpnGatewaysGetStatusCall) Do(opts ...googleapi.CallOption) (*VpnGatewaysGetStatusResponse, error)
Do executes the "compute.vpnGateways.getStatus" call. Any non-2xx status code is an error. Response headers are in either *VpnGatewaysGetStatusResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*VpnGatewaysGetStatusCall) Fields ¶ added in v0.11.0
func (c *VpnGatewaysGetStatusCall) Fields(s ...googleapi.Field) *VpnGatewaysGetStatusCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*VpnGatewaysGetStatusCall) Header ¶ added in v0.11.0
func (c *VpnGatewaysGetStatusCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*VpnGatewaysGetStatusCall) IfNoneMatch ¶ added in v0.11.0
func (c *VpnGatewaysGetStatusCall) IfNoneMatch(entityTag string) *VpnGatewaysGetStatusCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type VpnGatewaysGetStatusResponse ¶ added in v0.11.0
type VpnGatewaysGetStatusResponse struct { Result *VpnGatewayStatus `json:"result,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Result") 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. "Result") 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:"-"` }
func (VpnGatewaysGetStatusResponse) MarshalJSON ¶ added in v0.11.0
func (s VpnGatewaysGetStatusResponse) MarshalJSON() ([]byte, error)
type VpnGatewaysInsertCall ¶ added in v0.11.0
type VpnGatewaysInsertCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysInsertCall) Context ¶ added in v0.11.0
func (c *VpnGatewaysInsertCall) Context(ctx context.Context) *VpnGatewaysInsertCall
Context sets the context to be used in this call's Do method.
func (*VpnGatewaysInsertCall) Do ¶ added in v0.11.0
func (c *VpnGatewaysInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.vpnGateways.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*VpnGatewaysInsertCall) Fields ¶ added in v0.11.0
func (c *VpnGatewaysInsertCall) Fields(s ...googleapi.Field) *VpnGatewaysInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*VpnGatewaysInsertCall) Header ¶ added in v0.11.0
func (c *VpnGatewaysInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*VpnGatewaysInsertCall) RequestId ¶ added in v0.11.0
func (c *VpnGatewaysInsertCall) RequestId(requestId string) *VpnGatewaysInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type VpnGatewaysListCall ¶ added in v0.11.0
type VpnGatewaysListCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysListCall) Context ¶ added in v0.11.0
func (c *VpnGatewaysListCall) Context(ctx context.Context) *VpnGatewaysListCall
Context sets the context to be used in this call's Do method.
func (*VpnGatewaysListCall) Do ¶ added in v0.11.0
func (c *VpnGatewaysListCall) Do(opts ...googleapi.CallOption) (*VpnGatewayList, error)
Do executes the "compute.vpnGateways.list" call. Any non-2xx status code is an error. Response headers are in either *VpnGatewayList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*VpnGatewaysListCall) Fields ¶ added in v0.11.0
func (c *VpnGatewaysListCall) Fields(s ...googleapi.Field) *VpnGatewaysListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*VpnGatewaysListCall) Filter ¶ added in v0.11.0
func (c *VpnGatewaysListCall) Filter(filter string) *VpnGatewaysListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*VpnGatewaysListCall) Header ¶ added in v0.11.0
func (c *VpnGatewaysListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*VpnGatewaysListCall) IfNoneMatch ¶ added in v0.11.0
func (c *VpnGatewaysListCall) IfNoneMatch(entityTag string) *VpnGatewaysListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*VpnGatewaysListCall) MaxResults ¶ added in v0.11.0
func (c *VpnGatewaysListCall) MaxResults(maxResults int64) *VpnGatewaysListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*VpnGatewaysListCall) OrderBy ¶ added in v0.11.0
func (c *VpnGatewaysListCall) OrderBy(orderBy string) *VpnGatewaysListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*VpnGatewaysListCall) PageToken ¶ added in v0.11.0
func (c *VpnGatewaysListCall) PageToken(pageToken string) *VpnGatewaysListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*VpnGatewaysListCall) Pages ¶ added in v0.11.0
func (c *VpnGatewaysListCall) Pages(ctx context.Context, f func(*VpnGatewayList) 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 (*VpnGatewaysListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *VpnGatewaysListCall) ReturnPartialSuccess(returnPartialSuccess bool) *VpnGatewaysListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type VpnGatewaysScopedList ¶ added in v0.11.0
type VpnGatewaysScopedList struct { // VpnGateways: [Output Only] A list of VPN gateways contained in this scope. VpnGateways []*VpnGateway `json:"vpnGateways,omitempty"` // Warning: [Output Only] Informational warning which replaces the list of // addresses when the list is empty. Warning *VpnGatewaysScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "VpnGateways") 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. "VpnGateways") 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:"-"` }
func (VpnGatewaysScopedList) MarshalJSON ¶ added in v0.11.0
func (s VpnGatewaysScopedList) MarshalJSON() ([]byte, error)
type VpnGatewaysScopedListWarning ¶ added in v0.11.0
type VpnGatewaysScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*VpnGatewaysScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
VpnGatewaysScopedListWarning: [Output Only] Informational warning which replaces the list of addresses when the list is empty.
func (VpnGatewaysScopedListWarning) MarshalJSON ¶ added in v0.11.0
func (s VpnGatewaysScopedListWarning) MarshalJSON() ([]byte, error)
type VpnGatewaysScopedListWarningData ¶ added in v0.11.0
type VpnGatewaysScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (VpnGatewaysScopedListWarningData) MarshalJSON ¶ added in v0.11.0
func (s VpnGatewaysScopedListWarningData) MarshalJSON() ([]byte, error)
type VpnGatewaysService ¶ added in v0.11.0
type VpnGatewaysService struct {
// contains filtered or unexported fields
}
func NewVpnGatewaysService ¶ added in v0.11.0
func NewVpnGatewaysService(s *Service) *VpnGatewaysService
func (*VpnGatewaysService) AggregatedList ¶ added in v0.11.0
func (r *VpnGatewaysService) AggregatedList(project string) *VpnGatewaysAggregatedListCall
AggregatedList: Retrieves an aggregated list of VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*VpnGatewaysService) Delete ¶ added in v0.11.0
func (r *VpnGatewaysService) Delete(project string, region string, vpnGateway string) *VpnGatewaysDeleteCall
Delete: Deletes the specified VPN gateway.
- project: Project ID for this request. - region: Name of the region for this request. - vpnGateway: Name of the VPN gateway to delete.
func (*VpnGatewaysService) Get ¶ added in v0.11.0
func (r *VpnGatewaysService) Get(project string, region string, vpnGateway string) *VpnGatewaysGetCall
Get: Returns the specified VPN gateway.
- project: Project ID for this request. - region: Name of the region for this request. - vpnGateway: Name of the VPN gateway to return.
func (*VpnGatewaysService) GetStatus ¶ added in v0.11.0
func (r *VpnGatewaysService) GetStatus(project string, region string, vpnGateway string) *VpnGatewaysGetStatusCall
GetStatus: Returns the status for the specified VPN gateway.
- project: Project ID for this request. - region: Name of the region for this request. - vpnGateway: Name of the VPN gateway to return.
func (*VpnGatewaysService) Insert ¶ added in v0.11.0
func (r *VpnGatewaysService) Insert(project string, region string, vpngateway *VpnGateway) *VpnGatewaysInsertCall
Insert: Creates a VPN gateway in the specified project and region using the data included in the request.
- project: Project ID for this request. - region: Name of the region for this request.
func (*VpnGatewaysService) List ¶ added in v0.11.0
func (r *VpnGatewaysService) List(project string, region string) *VpnGatewaysListCall
List: Retrieves a list of VPN gateways available to the specified project and region.
- project: Project ID for this request. - region: Name of the region for this request.
func (*VpnGatewaysService) SetLabels ¶ added in v0.11.0
func (r *VpnGatewaysService) SetLabels(project string, region string, resource string, regionsetlabelsrequest *RegionSetLabelsRequest) *VpnGatewaysSetLabelsCall
SetLabels: Sets the labels on a VpnGateway. To learn more about labels, read the Labeling Resources documentation.
- project: Project ID for this request. - region: The region for this request. - resource: Name or id of the resource for this request.
func (*VpnGatewaysService) TestIamPermissions ¶ added in v0.11.0
func (r *VpnGatewaysService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *VpnGatewaysTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource.
- project: Project ID for this request. - region: The name of the region for this request. - resource: Name or id of the resource for this request.
type VpnGatewaysSetLabelsCall ¶ added in v0.11.0
type VpnGatewaysSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysSetLabelsCall) Context ¶ added in v0.11.0
func (c *VpnGatewaysSetLabelsCall) Context(ctx context.Context) *VpnGatewaysSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*VpnGatewaysSetLabelsCall) Do ¶ added in v0.11.0
func (c *VpnGatewaysSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.vpnGateways.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*VpnGatewaysSetLabelsCall) Fields ¶ added in v0.11.0
func (c *VpnGatewaysSetLabelsCall) Fields(s ...googleapi.Field) *VpnGatewaysSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*VpnGatewaysSetLabelsCall) Header ¶ added in v0.11.0
func (c *VpnGatewaysSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*VpnGatewaysSetLabelsCall) RequestId ¶ added in v0.11.0
func (c *VpnGatewaysSetLabelsCall) RequestId(requestId string) *VpnGatewaysSetLabelsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type VpnGatewaysTestIamPermissionsCall ¶ added in v0.11.0
type VpnGatewaysTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysTestIamPermissionsCall) Context ¶ added in v0.11.0
func (c *VpnGatewaysTestIamPermissionsCall) Context(ctx context.Context) *VpnGatewaysTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*VpnGatewaysTestIamPermissionsCall) Do ¶ added in v0.11.0
func (c *VpnGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.vpnGateways.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*VpnGatewaysTestIamPermissionsCall) Fields ¶ added in v0.11.0
func (c *VpnGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *VpnGatewaysTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*VpnGatewaysTestIamPermissionsCall) Header ¶ added in v0.11.0
func (c *VpnGatewaysTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type VpnTunnel ¶
type VpnTunnel struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` // DetailedStatus: [Output Only] Detailed status message for the VPN tunnel. DetailedStatus string `json:"detailedStatus,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // IkeVersion: IKE protocol version to use when establishing the VPN tunnel // with the peer VPN gateway. Acceptable IKE versions are 1 or 2. The default // version is 2. IkeVersion int64 `json:"ikeVersion,omitempty"` // Kind: [Output Only] Type of resource. Always compute#vpnTunnel for VPN // tunnels. Kind string `json:"kind,omitempty"` // LabelFingerprint: A fingerprint for the labels being applied to this // VpnTunnel, which is essentially a hash of the labels set used for optimistic // locking. The fingerprint is initially generated by Compute Engine and // changes after every request to modify or update labels. You must always // provide an up-to-date fingerprint hash in order to update or change labels, // otherwise the request will fail with error 412 conditionNotMet. To see the // latest fingerprint, make a get() request to retrieve a VpnTunnel. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels for this resource. These can only be added or modified by the // setLabels method. Each label key/value pair must comply with RFC1035. Label // values may be empty. Labels map[string]string `json:"labels,omitempty"` // LocalTrafficSelector: Local traffic selector to use when establishing the // VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted // string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 // is supported for Classic VPN tunnels. This field is output only for HA VPN // tunnels. LocalTrafficSelector []string `json:"localTrafficSelector,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. // Specifically, the name must be 1-63 characters long and match the regular // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must // be a lowercase letter, and all following characters must be a dash, // lowercase letter, or digit, except the last character, which cannot be a // dash. Name string `json:"name,omitempty"` // PeerExternalGateway: URL of the peer side external VPN gateway to which this // VPN tunnel is connected. Provided by the client when the VPN tunnel is // created. This field is exclusive with the field peerGcpGateway. PeerExternalGateway string `json:"peerExternalGateway,omitempty"` // PeerExternalGatewayInterface: The interface ID of the external VPN gateway // to which this VPN tunnel is connected. Provided by the client when the VPN // tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number of // IDs in use depends on the external VPN gateway redundancy type. PeerExternalGatewayInterface int64 `json:"peerExternalGatewayInterface,omitempty"` // PeerGcpGateway: URL of the peer side HA VPN gateway to which this VPN tunnel // is connected. Provided by the client when the VPN tunnel is created. This // field can be used when creating highly available VPN from VPC network to VPC // network, the field is exclusive with the field peerExternalGateway. If // provided, the VPN tunnel will automatically use the same vpnGatewayInterface // ID in the peer Google Cloud VPN gateway. PeerGcpGateway string `json:"peerGcpGateway,omitempty"` // PeerIp: IP address of the peer VPN gateway. Only IPv4 is supported. This // field can be set only for Classic VPN tunnels. PeerIp string `json:"peerIp,omitempty"` // Region: [Output Only] URL of the region where the VPN tunnel resides. You // must specify this field as part of the HTTP request URL. It is not settable // as a field in the request body. Region string `json:"region,omitempty"` // RemoteTrafficSelector: Remote traffic selectors to use when establishing the // VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted // string, for example: 192.168.0.0/16. The ranges should be disjoint. Only // IPv4 is supported for Classic VPN tunnels. This field is output only for HA // VPN tunnels. RemoteTrafficSelector []string `json:"remoteTrafficSelector,omitempty"` // Router: URL of the router resource to be used for dynamic routing. Router string `json:"router,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // VPN gateway and the peer VPN gateway. SharedSecret string `json:"sharedSecret,omitempty"` SharedSecretHash string `json:"sharedSecretHash,omitempty"` // Status: [Output Only] The status of the VPN tunnel, which can be one of the // following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - // WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the // user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route // resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful // first handshake with the peer VPN. - ESTABLISHED: Secure session is // successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, // replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for // example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - // DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - // FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - // NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel // configuration was rejected, can be result of being denied access. - // ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required // resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being // deleted for Classic VPN tunnels or the project is in frozen state. - // PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably // behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not // allowed for an HA-VPN tunnel. // // Possible values: // "ALLOCATING_RESOURCES" - Cloud VPN is in the process of allocating all // required resources (specifically, a borg task). // "AUTHORIZATION_ERROR" - Auth error (e.g. bad shared secret). // "DEPROVISIONING" - Resources is being deallocated for the VPN tunnel. // "ESTABLISHED" - Secure session is successfully established with peer VPN. // "FAILED" - Tunnel creation has failed and the tunnel is not ready to be // used. // "FIRST_HANDSHAKE" - Successful first handshake with peer VPN. // "NEGOTIATION_FAILURE" - Handshake failed. // "NETWORK_ERROR" - Deprecated, replaced by NO_INCOMING_PACKETS // "NO_INCOMING_PACKETS" - No incoming packets from peer // "PROVISIONING" - Resource is being allocated for the VPN tunnel. // "REJECTED" - Tunnel configuration was rejected, can be result of being // denylisted. // "STOPPED" - Tunnel is stopped due to its Forwarding Rules being deleted. // "WAITING_FOR_FULL_CONFIG" - Waiting to receive all VPN-related configs // from user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule and Route // resources are needed to setup VPN tunnel. Status string `json:"status,omitempty"` // TargetVpnGateway: URL of the Target VPN gateway with which this VPN tunnel // is associated. Provided by the client when the VPN tunnel is created. This // field can be set only for Classic VPN tunnels. TargetVpnGateway string `json:"targetVpnGateway,omitempty"` // VpnGateway: URL of the VPN gateway with which this VPN tunnel is associated. // Provided by the client when the VPN tunnel is created. This must be used // (instead of target_vpn_gateway) if a High Availability VPN gateway resource // is created. VpnGateway string `json:"vpnGateway,omitempty"` // VpnGatewayInterface: The interface ID of the VPN gateway with which this VPN // tunnel is associated. Possible values are: `0`, `1`. VpnGatewayInterface int64 `json:"vpnGatewayInterface,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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:"-"` }
VpnTunnel: Represents a Cloud VPN Tunnel resource. For more information about VPN, read the the Cloud VPN Overview.
func (VpnTunnel) MarshalJSON ¶
type VpnTunnelAggregatedList ¶
type VpnTunnelAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of VpnTunnelsScopedList resources. Items map[string]VpnTunnelsScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#vpnTunnel for VPN // tunnels. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Unreachables: [Output Only] Unreachable resources. Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. Warning *VpnTunnelAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (VpnTunnelAggregatedList) MarshalJSON ¶
func (s VpnTunnelAggregatedList) MarshalJSON() ([]byte, error)
type VpnTunnelAggregatedListWarning ¶
type VpnTunnelAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*VpnTunnelAggregatedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
VpnTunnelAggregatedListWarning: [Output Only] Informational warning message.
func (VpnTunnelAggregatedListWarning) MarshalJSON ¶
func (s VpnTunnelAggregatedListWarning) MarshalJSON() ([]byte, error)
type VpnTunnelAggregatedListWarningData ¶
type VpnTunnelAggregatedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (VpnTunnelAggregatedListWarningData) MarshalJSON ¶
func (s VpnTunnelAggregatedListWarningData) MarshalJSON() ([]byte, error)
type VpnTunnelList ¶
type VpnTunnelList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of VpnTunnel resources. Items []*VpnTunnel `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#vpnTunnel for VPN // tunnels. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *VpnTunnelListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
VpnTunnelList: Contains a list of VpnTunnel resources.
func (VpnTunnelList) MarshalJSON ¶
func (s VpnTunnelList) MarshalJSON() ([]byte, error)
type VpnTunnelListWarning ¶
type VpnTunnelListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*VpnTunnelListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
VpnTunnelListWarning: [Output Only] Informational warning message.
func (VpnTunnelListWarning) MarshalJSON ¶
func (s VpnTunnelListWarning) MarshalJSON() ([]byte, error)
type VpnTunnelListWarningData ¶
type VpnTunnelListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (VpnTunnelListWarningData) MarshalJSON ¶
func (s VpnTunnelListWarningData) MarshalJSON() ([]byte, error)
type VpnTunnelsAggregatedListCall ¶
type VpnTunnelsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*VpnTunnelsAggregatedListCall) Context ¶
func (c *VpnTunnelsAggregatedListCall) Context(ctx context.Context) *VpnTunnelsAggregatedListCall
Context sets the context to be used in this call's Do method.
func (*VpnTunnelsAggregatedListCall) Do ¶
func (c *VpnTunnelsAggregatedListCall) Do(opts ...googleapi.CallOption) (*VpnTunnelAggregatedList, error)
Do executes the "compute.vpnTunnels.aggregatedList" call. Any non-2xx status code is an error. Response headers are in either *VpnTunnelAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*VpnTunnelsAggregatedListCall) Fields ¶
func (c *VpnTunnelsAggregatedListCall) Fields(s ...googleapi.Field) *VpnTunnelsAggregatedListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*VpnTunnelsAggregatedListCall) Filter ¶
func (c *VpnTunnelsAggregatedListCall) Filter(filter string) *VpnTunnelsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*VpnTunnelsAggregatedListCall) Header ¶
func (c *VpnTunnelsAggregatedListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*VpnTunnelsAggregatedListCall) IfNoneMatch ¶
func (c *VpnTunnelsAggregatedListCall) IfNoneMatch(entityTag string) *VpnTunnelsAggregatedListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*VpnTunnelsAggregatedListCall) IncludeAllScopes ¶ added in v0.21.0
func (c *VpnTunnelsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *VpnTunnelsAggregatedListCall
IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
func (*VpnTunnelsAggregatedListCall) MaxResults ¶
func (c *VpnTunnelsAggregatedListCall) MaxResults(maxResults int64) *VpnTunnelsAggregatedListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*VpnTunnelsAggregatedListCall) OrderBy ¶
func (c *VpnTunnelsAggregatedListCall) OrderBy(orderBy string) *VpnTunnelsAggregatedListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*VpnTunnelsAggregatedListCall) PageToken ¶
func (c *VpnTunnelsAggregatedListCall) PageToken(pageToken string) *VpnTunnelsAggregatedListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*VpnTunnelsAggregatedListCall) Pages ¶
func (c *VpnTunnelsAggregatedListCall) Pages(ctx context.Context, f func(*VpnTunnelAggregatedList) 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 (*VpnTunnelsAggregatedListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *VpnTunnelsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *VpnTunnelsAggregatedListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
func (*VpnTunnelsAggregatedListCall) ServiceProjectNumber ¶ added in v0.144.0
func (c *VpnTunnelsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *VpnTunnelsAggregatedListCall
ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
type VpnTunnelsDeleteCall ¶
type VpnTunnelsDeleteCall struct {
// contains filtered or unexported fields
}
func (*VpnTunnelsDeleteCall) Context ¶
func (c *VpnTunnelsDeleteCall) Context(ctx context.Context) *VpnTunnelsDeleteCall
Context sets the context to be used in this call's Do method.
func (*VpnTunnelsDeleteCall) Do ¶
func (c *VpnTunnelsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.vpnTunnels.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*VpnTunnelsDeleteCall) Fields ¶
func (c *VpnTunnelsDeleteCall) Fields(s ...googleapi.Field) *VpnTunnelsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*VpnTunnelsDeleteCall) Header ¶
func (c *VpnTunnelsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*VpnTunnelsDeleteCall) RequestId ¶
func (c *VpnTunnelsDeleteCall) RequestId(requestId string) *VpnTunnelsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type VpnTunnelsGetCall ¶
type VpnTunnelsGetCall struct {
// contains filtered or unexported fields
}
func (*VpnTunnelsGetCall) Context ¶
func (c *VpnTunnelsGetCall) Context(ctx context.Context) *VpnTunnelsGetCall
Context sets the context to be used in this call's Do method.
func (*VpnTunnelsGetCall) Do ¶
func (c *VpnTunnelsGetCall) Do(opts ...googleapi.CallOption) (*VpnTunnel, error)
Do executes the "compute.vpnTunnels.get" call. Any non-2xx status code is an error. Response headers are in either *VpnTunnel.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*VpnTunnelsGetCall) Fields ¶
func (c *VpnTunnelsGetCall) Fields(s ...googleapi.Field) *VpnTunnelsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*VpnTunnelsGetCall) Header ¶
func (c *VpnTunnelsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*VpnTunnelsGetCall) IfNoneMatch ¶
func (c *VpnTunnelsGetCall) IfNoneMatch(entityTag string) *VpnTunnelsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type VpnTunnelsInsertCall ¶
type VpnTunnelsInsertCall struct {
// contains filtered or unexported fields
}
func (*VpnTunnelsInsertCall) Context ¶
func (c *VpnTunnelsInsertCall) Context(ctx context.Context) *VpnTunnelsInsertCall
Context sets the context to be used in this call's Do method.
func (*VpnTunnelsInsertCall) Do ¶
func (c *VpnTunnelsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.vpnTunnels.insert" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*VpnTunnelsInsertCall) Fields ¶
func (c *VpnTunnelsInsertCall) Fields(s ...googleapi.Field) *VpnTunnelsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*VpnTunnelsInsertCall) Header ¶
func (c *VpnTunnelsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*VpnTunnelsInsertCall) RequestId ¶
func (c *VpnTunnelsInsertCall) RequestId(requestId string) *VpnTunnelsInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type VpnTunnelsListCall ¶
type VpnTunnelsListCall struct {
// contains filtered or unexported fields
}
func (*VpnTunnelsListCall) Context ¶
func (c *VpnTunnelsListCall) Context(ctx context.Context) *VpnTunnelsListCall
Context sets the context to be used in this call's Do method.
func (*VpnTunnelsListCall) Do ¶
func (c *VpnTunnelsListCall) Do(opts ...googleapi.CallOption) (*VpnTunnelList, error)
Do executes the "compute.vpnTunnels.list" call. Any non-2xx status code is an error. Response headers are in either *VpnTunnelList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*VpnTunnelsListCall) Fields ¶
func (c *VpnTunnelsListCall) Fields(s ...googleapi.Field) *VpnTunnelsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*VpnTunnelsListCall) Filter ¶
func (c *VpnTunnelsListCall) Filter(filter string) *VpnTunnelsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*VpnTunnelsListCall) Header ¶
func (c *VpnTunnelsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*VpnTunnelsListCall) IfNoneMatch ¶
func (c *VpnTunnelsListCall) IfNoneMatch(entityTag string) *VpnTunnelsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*VpnTunnelsListCall) MaxResults ¶
func (c *VpnTunnelsListCall) MaxResults(maxResults int64) *VpnTunnelsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*VpnTunnelsListCall) OrderBy ¶
func (c *VpnTunnelsListCall) OrderBy(orderBy string) *VpnTunnelsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*VpnTunnelsListCall) PageToken ¶
func (c *VpnTunnelsListCall) PageToken(pageToken string) *VpnTunnelsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*VpnTunnelsListCall) Pages ¶
func (c *VpnTunnelsListCall) Pages(ctx context.Context, f func(*VpnTunnelList) 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 (*VpnTunnelsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *VpnTunnelsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *VpnTunnelsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type VpnTunnelsScopedList ¶
type VpnTunnelsScopedList struct { // VpnTunnels: A list of VPN tunnels contained in this scope. VpnTunnels []*VpnTunnel `json:"vpnTunnels,omitempty"` // Warning: Informational warning which replaces the list of addresses when the // list is empty. Warning *VpnTunnelsScopedListWarning `json:"warning,omitempty"` // ForceSendFields is a list of field names (e.g. "VpnTunnels") 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. "VpnTunnels") 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:"-"` }
func (VpnTunnelsScopedList) MarshalJSON ¶
func (s VpnTunnelsScopedList) MarshalJSON() ([]byte, error)
type VpnTunnelsScopedListWarning ¶
type VpnTunnelsScopedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*VpnTunnelsScopedListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
VpnTunnelsScopedListWarning: Informational warning which replaces the list of addresses when the list is empty.
func (VpnTunnelsScopedListWarning) MarshalJSON ¶
func (s VpnTunnelsScopedListWarning) MarshalJSON() ([]byte, error)
type VpnTunnelsScopedListWarningData ¶
type VpnTunnelsScopedListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (VpnTunnelsScopedListWarningData) MarshalJSON ¶
func (s VpnTunnelsScopedListWarningData) MarshalJSON() ([]byte, error)
type VpnTunnelsService ¶
type VpnTunnelsService struct {
// contains filtered or unexported fields
}
func NewVpnTunnelsService ¶
func NewVpnTunnelsService(s *Service) *VpnTunnelsService
func (*VpnTunnelsService) AggregatedList ¶
func (r *VpnTunnelsService) AggregatedList(project string) *VpnTunnelsAggregatedListCall
AggregatedList: Retrieves an aggregated list of VPN tunnels. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
- project: Project ID for this request.
func (*VpnTunnelsService) Delete ¶
func (r *VpnTunnelsService) Delete(project string, region string, vpnTunnel string) *VpnTunnelsDeleteCall
Delete: Deletes the specified VpnTunnel resource.
- project: Project ID for this request. - region: Name of the region for this request. - vpnTunnel: Name of the VpnTunnel resource to delete.
func (*VpnTunnelsService) Get ¶
func (r *VpnTunnelsService) Get(project string, region string, vpnTunnel string) *VpnTunnelsGetCall
Get: Returns the specified VpnTunnel resource.
- project: Project ID for this request. - region: Name of the region for this request. - vpnTunnel: Name of the VpnTunnel resource to return.
func (*VpnTunnelsService) Insert ¶
func (r *VpnTunnelsService) Insert(project string, region string, vpntunnel *VpnTunnel) *VpnTunnelsInsertCall
Insert: Creates a VpnTunnel resource in the specified project and region using the data included in the request.
- project: Project ID for this request. - region: Name of the region for this request.
func (*VpnTunnelsService) List ¶
func (r *VpnTunnelsService) List(project string, region string) *VpnTunnelsListCall
List: Retrieves a list of VpnTunnel resources contained in the specified project and region.
- project: Project ID for this request. - region: Name of the region for this request.
func (*VpnTunnelsService) SetLabels ¶ added in v0.96.0
func (r *VpnTunnelsService) SetLabels(project string, region string, resource string, regionsetlabelsrequest *RegionSetLabelsRequest) *VpnTunnelsSetLabelsCall
SetLabels: Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling Resources documentation.
- project: Project ID for this request. - region: The region for this request. - resource: Name or id of the resource for this request.
type VpnTunnelsSetLabelsCall ¶ added in v0.96.0
type VpnTunnelsSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*VpnTunnelsSetLabelsCall) Context ¶ added in v0.96.0
func (c *VpnTunnelsSetLabelsCall) Context(ctx context.Context) *VpnTunnelsSetLabelsCall
Context sets the context to be used in this call's Do method.
func (*VpnTunnelsSetLabelsCall) Do ¶ added in v0.96.0
func (c *VpnTunnelsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.vpnTunnels.setLabels" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*VpnTunnelsSetLabelsCall) Fields ¶ added in v0.96.0
func (c *VpnTunnelsSetLabelsCall) Fields(s ...googleapi.Field) *VpnTunnelsSetLabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*VpnTunnelsSetLabelsCall) Header ¶ added in v0.96.0
func (c *VpnTunnelsSetLabelsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*VpnTunnelsSetLabelsCall) RequestId ¶ added in v0.96.0
func (c *VpnTunnelsSetLabelsCall) RequestId(requestId string) *VpnTunnelsSetLabelsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
type WafExpressionSet ¶ added in v0.22.0
type WafExpressionSet struct { // Aliases: A list of alternate IDs. The format should be: - E.g. XSS-stable // Generic suffix like "stable" is particularly useful if a policy likes to // avail newer set of expressions without having to change the policy. A given // alias name can't be used for more than one entity set. Aliases []string `json:"aliases,omitempty"` // Expressions: List of available expressions. Expressions []*WafExpressionSetExpression `json:"expressions,omitempty"` // Id: Google specified expression set ID. The format should be: - E.g. // XSS-20170329 required Id string `json:"id,omitempty"` // ForceSendFields is a list of field names (e.g. "Aliases") 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. "Aliases") 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:"-"` }
func (WafExpressionSet) MarshalJSON ¶ added in v0.22.0
func (s WafExpressionSet) MarshalJSON() ([]byte, error)
type WafExpressionSetExpression ¶ added in v0.22.0
type WafExpressionSetExpression struct { // Id: Expression ID should uniquely identify the origin of the expression. // E.g. owasp-crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 // rule id 973337. The ID could be used to determine the individual attack // definition that has been detected. It could also be used to exclude it from // the policy in case of false positive. required Id string `json:"id,omitempty"` // Sensitivity: The sensitivity value associated with the WAF rule ID. This // corresponds to the ModSecurity paranoia level, ranging from 1 to 4. 0 is // reserved for opt-in only rules. Sensitivity int64 `json:"sensitivity,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:"-"` }
func (WafExpressionSetExpression) MarshalJSON ¶ added in v0.22.0
func (s WafExpressionSetExpression) MarshalJSON() ([]byte, error)
type WeightedBackendService ¶ added in v0.11.0
type WeightedBackendService struct { // BackendService: The full or partial URL to the default BackendService // resource. Before forwarding the request to backendService, the load balancer // applies any relevant headerActions specified as part of this // backendServiceWeight. BackendService string `json:"backendService,omitempty"` // HeaderAction: Specifies changes to request and response headers that need to // take effect for the selected backendService. headerAction specified here // take effect before headerAction in the enclosing HttpRouteRule, PathMatcher // and UrlMap. headerAction is not supported for load balancers that have their // loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound // to a target gRPC proxy that has validateForProxyless field set to true. HeaderAction *HttpHeaderAction `json:"headerAction,omitempty"` // Weight: Specifies the fraction of traffic sent to a backend service, // computed as weight / (sum of all weightedBackendService weights in // routeAction) . The selection of a backend service is determined only for new // traffic. Once a user's request has been directed to a backend service, // subsequent requests are sent to the same backend service as determined by // the backend service's session affinity policy. Don't configure session // affinity if you're using weighted traffic splitting. If you do, the weighted // traffic splitting configuration takes precedence. The value must be from 0 // to 1000. Weight int64 `json:"weight,omitempty"` // ForceSendFields is a list of field names (e.g. "BackendService") 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. "BackendService") 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:"-"` }
WeightedBackendService: In contrast to a single BackendService in HttpRouteAction to which all matching traffic is directed to, WeightedBackendService allows traffic to be split across multiple backend services. The volume of traffic for each backend service is proportional to the weight specified in each WeightedBackendService
func (WeightedBackendService) MarshalJSON ¶ added in v0.11.0
func (s WeightedBackendService) MarshalJSON() ([]byte, error)
type XpnHostList ¶
type XpnHostList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: [Output Only] A list of shared VPC host project URLs. Items []*Project `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#xpnHostList for lists // of shared VPC hosts. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *XpnHostListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
func (XpnHostList) MarshalJSON ¶
func (s XpnHostList) MarshalJSON() ([]byte, error)
type XpnHostListWarning ¶
type XpnHostListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*XpnHostListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
XpnHostListWarning: [Output Only] Informational warning message.
func (XpnHostListWarning) MarshalJSON ¶
func (s XpnHostListWarning) MarshalJSON() ([]byte, error)
type XpnHostListWarningData ¶
type XpnHostListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (XpnHostListWarningData) MarshalJSON ¶
func (s XpnHostListWarningData) MarshalJSON() ([]byte, error)
type XpnResourceId ¶
type XpnResourceId struct { // Id: The ID of the service resource. In the case of projects, this field // supports project id (e.g., my-project-123) and project number (e.g. // 12345678). Id string `json:"id,omitempty"` // Type: The type of the service resource. // // Possible values: // "PROJECT" // "XPN_RESOURCE_TYPE_UNSPECIFIED" Type string `json:"type,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:"-"` }
XpnResourceId: Service resource (a.k.a service project) ID.
func (XpnResourceId) MarshalJSON ¶
func (s XpnResourceId) MarshalJSON() ([]byte, error)
type Zone ¶
type Zone struct { // AvailableCpuPlatforms: [Output Only] Available cpu/platform selections for // the zone. AvailableCpuPlatforms []string `json:"availableCpuPlatforms,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Deprecated -- [Output Only] The deprecation status associated with this // zone. Deprecated *DeprecationStatus `json:"deprecated,omitempty"` // Description: [Output Only] Textual description of the resource. Description string `json:"description,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#zone for zones. Kind string `json:"kind,omitempty"` // Name: [Output Only] Name of the resource. Name string `json:"name,omitempty"` // Region: [Output Only] Full URL reference to the region which hosts the zone. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Status: [Output Only] Status of the zone, either UP or DOWN. // // Possible values: // "DOWN" // "UP" Status string `json:"status,omitempty"` // SupportsPzs: [Output Only] Reserved for future use. SupportsPzs bool `json:"supportsPzs,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AvailableCpuPlatforms") 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. "AvailableCpuPlatforms") 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:"-"` }
Zone: Represents a Zone resource. A zone is a deployment area. These deployment areas are subsets of a region. For example the zone us-east1-b is located in the us-east1 region. For more information, read Regions and Zones.
func (Zone) MarshalJSON ¶
type ZoneList ¶
type ZoneList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` // Items: A list of Zone resources. Items []*Zone `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next page of // results for list requests. If the number of results is larger than // maxResults, use the nextPageToken as a value for the query parameter // pageToken in the next list request. Subsequent list requests will have their // own nextPageToken to continue paging through the results. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // Warning: [Output Only] Informational warning message. Warning *ZoneListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
ZoneList: Contains a list of zone resources.
func (ZoneList) MarshalJSON ¶
type ZoneListWarning ¶
type ZoneListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, Compute // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. // // Possible values: // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made // by a failed operation. // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources // has a type marked as deprecated // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is // larger than image size. // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the // resources has a type marked as experimental // "EXTERNAL_API_WARNING" - Warning that is present in an external api call // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been // overridden. Deprecated unused field. // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected // kernel, which is deprecated. // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend // service is associated with a health check that is not of type // HTTP/HTTPS/HTTP2. // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a // exceedingly large number of resources // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list // overhead quota exceed which captures the amount of resources filtered out by // user-defined list filter. // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not // assigned to an instance on the network. // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip // forward. // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance // URL refers to an instance that does not have an ipv6 interface on the same // network as the route. // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to // an instance that does not exist. // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL // refers to an instance that is not on the same network as the route. // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a // status of RUNNING. // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue // the process despite the mentioned error. // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing // due to errors // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that // requires a TOS they have not accepted. // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is // in use. // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete // could not be deleted because they were in use. // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is // ignored. // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance // group manager is valid as such, but its application does not make a lot of // sense, because it allows only single instance in instance group. // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are // present // "UNREACHABLE" - A given scope cannot be reached. Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } Data []*ZoneListWarningData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning code. Message string `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:"-"` }
ZoneListWarning: [Output Only] Informational warning message.
func (ZoneListWarning) MarshalJSON ¶
func (s ZoneListWarning) MarshalJSON() ([]byte, error)
type ZoneListWarningData ¶
type ZoneListWarningData struct { // Key: [Output Only] A key that provides more detail on the warning being // returned. For example, for warnings where there are no results in a list // request for a particular zone, this key might be scope and the key value // might be the zone name. Other examples might be a key indicating a // deprecated resource and a suggested replacement, or a warning about invalid // network settings (for example, if an instance attempts to perform IP // forwarding but is not enabled for IP forwarding). Key string `json:"key,omitempty"` // Value: [Output Only] A warning data value corresponding to the key. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"` }
func (ZoneListWarningData) MarshalJSON ¶
func (s ZoneListWarningData) MarshalJSON() ([]byte, error)
type ZoneOperationsDeleteCall ¶
type ZoneOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ZoneOperationsDeleteCall) Context ¶
func (c *ZoneOperationsDeleteCall) Context(ctx context.Context) *ZoneOperationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ZoneOperationsDeleteCall) Do ¶
func (c *ZoneOperationsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "compute.zoneOperations.delete" call.
func (*ZoneOperationsDeleteCall) Fields ¶
func (c *ZoneOperationsDeleteCall) Fields(s ...googleapi.Field) *ZoneOperationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ZoneOperationsDeleteCall) Header ¶
func (c *ZoneOperationsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ZoneOperationsGetCall ¶
type ZoneOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ZoneOperationsGetCall) Context ¶
func (c *ZoneOperationsGetCall) Context(ctx context.Context) *ZoneOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*ZoneOperationsGetCall) Do ¶
func (c *ZoneOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.zoneOperations.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ZoneOperationsGetCall) Fields ¶
func (c *ZoneOperationsGetCall) Fields(s ...googleapi.Field) *ZoneOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ZoneOperationsGetCall) Header ¶
func (c *ZoneOperationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ZoneOperationsGetCall) IfNoneMatch ¶
func (c *ZoneOperationsGetCall) IfNoneMatch(entityTag string) *ZoneOperationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ZoneOperationsListCall ¶
type ZoneOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ZoneOperationsListCall) Context ¶
func (c *ZoneOperationsListCall) Context(ctx context.Context) *ZoneOperationsListCall
Context sets the context to be used in this call's Do method.
func (*ZoneOperationsListCall) Do ¶
func (c *ZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList, error)
Do executes the "compute.zoneOperations.list" call. Any non-2xx status code is an error. Response headers are in either *OperationList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ZoneOperationsListCall) Fields ¶
func (c *ZoneOperationsListCall) Fields(s ...googleapi.Field) *ZoneOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ZoneOperationsListCall) Filter ¶
func (c *ZoneOperationsListCall) Filter(filter string) *ZoneOperationsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*ZoneOperationsListCall) Header ¶
func (c *ZoneOperationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ZoneOperationsListCall) IfNoneMatch ¶
func (c *ZoneOperationsListCall) IfNoneMatch(entityTag string) *ZoneOperationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ZoneOperationsListCall) MaxResults ¶
func (c *ZoneOperationsListCall) MaxResults(maxResults int64) *ZoneOperationsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*ZoneOperationsListCall) OrderBy ¶
func (c *ZoneOperationsListCall) OrderBy(orderBy string) *ZoneOperationsListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*ZoneOperationsListCall) PageToken ¶
func (c *ZoneOperationsListCall) PageToken(pageToken string) *ZoneOperationsListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*ZoneOperationsListCall) Pages ¶
func (c *ZoneOperationsListCall) Pages(ctx context.Context, f func(*OperationList) 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 (*ZoneOperationsListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *ZoneOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ZoneOperationsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type ZoneOperationsService ¶
type ZoneOperationsService struct {
// contains filtered or unexported fields
}
func NewZoneOperationsService ¶
func NewZoneOperationsService(s *Service) *ZoneOperationsService
func (*ZoneOperationsService) Delete ¶
func (r *ZoneOperationsService) Delete(project string, zone string, operationid string) *ZoneOperationsDeleteCall
Delete: Deletes the specified zone-specific Operations resource.
- operation: Name of the Operations resource to delete, or its unique numeric identifier.
- project: Project ID for this request.
- zone: Name of the zone for this request.
func (*ZoneOperationsService) Get ¶
func (r *ZoneOperationsService) Get(project string, zone string, operationid string) *ZoneOperationsGetCall
Get: Retrieves the specified zone-specific Operations resource.
- operation: Name of the Operations resource to return, or its unique numeric identifier.
- project: Project ID for this request.
- zone: Name of the zone for this request.
func (*ZoneOperationsService) List ¶
func (r *ZoneOperationsService) List(project string, zone string) *ZoneOperationsListCall
List: Retrieves a list of Operation resources contained within the specified zone.
- project: Project ID for this request. - zone: Name of the zone for request.
func (*ZoneOperationsService) Wait ¶ added in v0.16.0
func (r *ZoneOperationsService) Wait(project string, zone string, operationid string) *ZoneOperationsWaitCall
Wait: Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more than the 2 minutes and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.
- operation: Name of the Operations resource to return, or its unique numeric identifier.
- project: Project ID for this request.
- zone: Name of the zone for this request.
type ZoneOperationsWaitCall ¶ added in v0.16.0
type ZoneOperationsWaitCall struct {
// contains filtered or unexported fields
}
func (*ZoneOperationsWaitCall) Context ¶ added in v0.16.0
func (c *ZoneOperationsWaitCall) Context(ctx context.Context) *ZoneOperationsWaitCall
Context sets the context to be used in this call's Do method.
func (*ZoneOperationsWaitCall) Do ¶ added in v0.16.0
func (c *ZoneOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.zoneOperations.wait" 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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ZoneOperationsWaitCall) Fields ¶ added in v0.16.0
func (c *ZoneOperationsWaitCall) Fields(s ...googleapi.Field) *ZoneOperationsWaitCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ZoneOperationsWaitCall) Header ¶ added in v0.16.0
func (c *ZoneOperationsWaitCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ZoneSetLabelsRequest ¶
type ZoneSetLabelsRequest struct { // LabelFingerprint: The fingerprint of the previous set of labels for this // resource, used to detect conflicts. The fingerprint is initially generated // by Compute Engine and changes after every request to modify or update // labels. You must always provide an up-to-date fingerprint hash in order to // update or change labels. Make a get() request to the resource to get the // latest fingerprint. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: The labels to set for this resource. Labels map[string]string `json:"labels,omitempty"` // ForceSendFields is a list of field names (e.g. "LabelFingerprint") 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. "LabelFingerprint") 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:"-"` }
func (ZoneSetLabelsRequest) MarshalJSON ¶
func (s ZoneSetLabelsRequest) MarshalJSON() ([]byte, error)
type ZoneSetPolicyRequest ¶
type ZoneSetPolicyRequest struct { // Bindings: Flatten Policy to create a backwacd compatible wire-format. // Deprecated. Use 'policy' to specify bindings. Bindings []*Binding `json:"bindings,omitempty"` // Etag: Flatten Policy to create a backward compatible wire-format. // Deprecated. Use 'policy' to specify the etag. Etag string `json:"etag,omitempty"` // Policy: REQUIRED: The complete policy to be applied to the 'resource'. The // size of the policy is limited to a few 10s of KB. An empty policy is in // general a valid policy but certain services (like Projects) might reject // them. Policy *Policy `json:"policy,omitempty"` // ForceSendFields is a list of field names (e.g. "Bindings") 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. "Bindings") 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:"-"` }
func (ZoneSetPolicyRequest) MarshalJSON ¶
func (s ZoneSetPolicyRequest) MarshalJSON() ([]byte, error)
type ZonesGetCall ¶
type ZonesGetCall struct {
// contains filtered or unexported fields
}
func (*ZonesGetCall) Context ¶
func (c *ZonesGetCall) Context(ctx context.Context) *ZonesGetCall
Context sets the context to be used in this call's Do method.
func (*ZonesGetCall) Do ¶
func (c *ZonesGetCall) Do(opts ...googleapi.CallOption) (*Zone, error)
Do executes the "compute.zones.get" call. Any non-2xx status code is an error. Response headers are in either *Zone.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ZonesGetCall) Fields ¶
func (c *ZonesGetCall) Fields(s ...googleapi.Field) *ZonesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ZonesGetCall) Header ¶
func (c *ZonesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ZonesGetCall) IfNoneMatch ¶
func (c *ZonesGetCall) IfNoneMatch(entityTag string) *ZonesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ZonesListCall ¶
type ZonesListCall struct {
// contains filtered or unexported fields
}
func (*ZonesListCall) Context ¶
func (c *ZonesListCall) Context(ctx context.Context) *ZonesListCall
Context sets the context to be used in this call's Do method.
func (*ZonesListCall) Do ¶
func (c *ZonesListCall) Do(opts ...googleapi.CallOption) (*ZoneList, error)
Do executes the "compute.zones.list" call. Any non-2xx status code is an error. Response headers are in either *ZoneList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ZonesListCall) Fields ¶
func (c *ZonesListCall) Fields(s ...googleapi.Field) *ZonesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ZonesListCall) Filter ¶
func (c *ZonesListCall) Filter(filter string) *ZonesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
func (*ZonesListCall) Header ¶
func (c *ZonesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ZonesListCall) IfNoneMatch ¶
func (c *ZonesListCall) IfNoneMatch(entityTag string) *ZonesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ZonesListCall) MaxResults ¶
func (c *ZonesListCall) MaxResults(maxResults int64) *ZonesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
func (*ZonesListCall) OrderBy ¶
func (c *ZonesListCall) OrderBy(orderBy string) *ZonesListCall
OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc". This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
func (*ZonesListCall) PageToken ¶
func (c *ZonesListCall) PageToken(pageToken string) *ZonesListCall
PageToken sets the optional parameter "pageToken": Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
func (*ZonesListCall) Pages ¶
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 (*ZonesListCall) ReturnPartialSuccess ¶ added in v0.33.0
func (c *ZonesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ZonesListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
type ZonesService ¶
type ZonesService struct {
// contains filtered or unexported fields
}
func NewZonesService ¶
func NewZonesService(s *Service) *ZonesService
func (*ZonesService) Get ¶
func (r *ZonesService) Get(project string, zone string) *ZonesGetCall
Get: Returns the specified Zone resource.
- project: Project ID for this request. - zone: Name of the zone resource to return.
func (*ZonesService) List ¶
func (r *ZonesService) List(project string) *ZonesListCall
List: Retrieves the list of Zone resources available to the specified project.
- project: Project ID for this request.