Documentation
¶
Overview ¶
Package compute provides access to the Compute Engine API.
For product documentation, see: https://developers.google.com/compute/docs/reference/latest/
Creating a client ¶
Usage example:
import "google.golang.org/api/compute/v0.alpha" ... 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 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 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 option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) computeService, err := compute.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- Constants
- 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) 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
- 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
- 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) 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
- 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
- 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) SetLabels(project string, region string, resource string, ...) *AddressesSetLabelsCall
- func (r *AddressesService) TestIamPermissions(project string, region string, resource string, ...) *AddressesTestIamPermissionsCall
- 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 AddressesTestIamPermissionsCall
- func (c *AddressesTestIamPermissionsCall) Context(ctx context.Context) *AddressesTestIamPermissionsCall
- func (c *AddressesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *AddressesTestIamPermissionsCall) Fields(s ...googleapi.Field) *AddressesTestIamPermissionsCall
- func (c *AddressesTestIamPermissionsCall) Header() http.Header
- type AliasIpRange
- type AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
- type AllocationSpecificSKUAllocationReservedInstanceProperties
- type AllocationSpecificSKUReservation
- type AttachedDisk
- type AttachedDiskInitializeParams
- type AuditConfig
- type AuditLogConfig
- type AuthenticationPolicy
- type AuthorizationConfig
- type AuthorizationLoggingOptions
- 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) 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
- 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
- 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) TestIamPermissions(project string, zone string, resource string, ...) *AutoscalersTestIamPermissionsCall
- func (r *AutoscalersService) Update(project string, zone string, autoscaler *Autoscaler) *AutoscalersUpdateCall
- type AutoscalersTestIamPermissionsCall
- func (c *AutoscalersTestIamPermissionsCall) Context(ctx context.Context) *AutoscalersTestIamPermissionsCall
- func (c *AutoscalersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *AutoscalersTestIamPermissionsCall) Fields(s ...googleapi.Field) *AutoscalersTestIamPermissionsCall
- func (c *AutoscalersTestIamPermissionsCall) Header() http.Header
- 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 AutoscalingPolicyQueueBasedScaling
- type AutoscalingPolicyQueueBasedScalingCloudPubSub
- type AutoscalingPolicyScaleDownControl
- type Backend
- type BackendBucket
- type BackendBucketCdnPolicy
- type BackendBucketList
- type BackendBucketListWarning
- type BackendBucketListWarningData
- 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
- 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) 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 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 BackendServiceFailoverPolicy
- type BackendServiceGroupHealth
- type BackendServiceIAP
- type BackendServiceIAPOAuth2ClientInfo
- type BackendServiceList
- type BackendServiceListWarning
- type BackendServiceListWarningData
- type BackendServiceLogConfig
- type BackendServiceReference
- 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) 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
- 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 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
- 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) Insert(project string, backendservice *BackendService) *BackendServicesInsertCall
- func (r *BackendServicesService) List(project string) *BackendServicesListCall
- func (r *BackendServicesService) Patch(project string, backendService string, backendservice *BackendService) *BackendServicesPatchCall
- 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 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 CacheInvalidationRule
- type CacheKeyPolicy
- type CallCredentials
- type ChannelCredentials
- type CircuitBreakers
- type ClientTlsSettings
- 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 CustomerEncryptionKey
- type CustomerEncryptionKeyProtectedDisk
- type DeprecationStatus
- type Disk
- type DiskAggregatedList
- type DiskAggregatedListWarning
- type DiskAggregatedListWarningData
- type DiskInstantiationConfig
- type DiskList
- type DiskListWarning
- type DiskListWarningData
- type DiskMoveRequest
- 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) 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
- 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
- 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) 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
- 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
- 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) 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) TestIamPermissions(project string, zone string, resource string, ...) *DisksTestIamPermissionsCall
- 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 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 DisplayDevice
- type DistributionPolicy
- type DistributionPolicyZoneConfiguration
- type Duration
- 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
- 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 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
- 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) TestIamPermissions(project string, resource string, ...) *FirewallsTestIamPermissionsCall
- func (r *FirewallsService) Update(project string, firewall string, firewall2 *Firewall) *FirewallsUpdateCall
- type FirewallsTestIamPermissionsCall
- func (c *FirewallsTestIamPermissionsCall) Context(ctx context.Context) *FirewallsTestIamPermissionsCall
- func (c *FirewallsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *FirewallsTestIamPermissionsCall) Fields(s ...googleapi.Field) *FirewallsTestIamPermissionsCall
- func (c *FirewallsTestIamPermissionsCall) Header() http.Header
- 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 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) 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
- 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
- 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
- func (r *ForwardingRulesService) TestIamPermissions(project string, region string, resource string, ...) *ForwardingRulesTestIamPermissionsCall
- 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 ForwardingRulesTestIamPermissionsCall
- func (c *ForwardingRulesTestIamPermissionsCall) Context(ctx context.Context) *ForwardingRulesTestIamPermissionsCall
- func (c *ForwardingRulesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *ForwardingRulesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ForwardingRulesTestIamPermissionsCall
- func (c *ForwardingRulesTestIamPermissionsCall) Header() http.Header
- 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
- 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) SetLabels(project string, resource string, ...) *GlobalAddressesSetLabelsCall
- func (r *GlobalAddressesService) TestIamPermissions(project string, resource string, ...) *GlobalAddressesTestIamPermissionsCall
- 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 GlobalAddressesTestIamPermissionsCall
- func (c *GlobalAddressesTestIamPermissionsCall) Context(ctx context.Context) *GlobalAddressesTestIamPermissionsCall
- func (c *GlobalAddressesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *GlobalAddressesTestIamPermissionsCall) Fields(s ...googleapi.Field) *GlobalAddressesTestIamPermissionsCall
- func (c *GlobalAddressesTestIamPermissionsCall) 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
- 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
- func (r *GlobalForwardingRulesService) TestIamPermissions(project string, resource string, ...) *GlobalForwardingRulesTestIamPermissionsCall
- 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 GlobalForwardingRulesTestIamPermissionsCall
- func (c *GlobalForwardingRulesTestIamPermissionsCall) Context(ctx context.Context) *GlobalForwardingRulesTestIamPermissionsCall
- func (c *GlobalForwardingRulesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *GlobalForwardingRulesTestIamPermissionsCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesTestIamPermissionsCall
- func (c *GlobalForwardingRulesTestIamPermissionsCall) Header() http.Header
- 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
- 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
- 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) 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
- 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
- type GlobalOperationsService
- func (r *GlobalOperationsService) AggregatedList(project string) *GlobalOperationsAggregatedListCall
- func (r *GlobalOperationsService) Delete(project string, operation string) *GlobalOperationsDeleteCall
- func (r *GlobalOperationsService) Get(project string, operation string) *GlobalOperationsGetCall
- func (r *GlobalOperationsService) List(project string) *GlobalOperationsListCall
- func (r *GlobalOperationsService) Wait(project string, operation 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
- type GlobalOrganizationOperationsService
- func (r *GlobalOrganizationOperationsService) Delete(operation string) *GlobalOrganizationOperationsDeleteCall
- func (r *GlobalOrganizationOperationsService) Get(operation string) *GlobalOrganizationOperationsGetCall
- func (r *GlobalOrganizationOperationsService) List() *GlobalOrganizationOperationsListCall
- func (r *GlobalOrganizationOperationsService) Wait(operation string) *GlobalOrganizationOperationsWaitCall
- type GlobalOrganizationOperationsWaitCall
- func (c *GlobalOrganizationOperationsWaitCall) Context(ctx context.Context) *GlobalOrganizationOperationsWaitCall
- func (c *GlobalOrganizationOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GlobalOrganizationOperationsWaitCall) Fields(s ...googleapi.Field) *GlobalOrganizationOperationsWaitCall
- func (c *GlobalOrganizationOperationsWaitCall) Header() http.Header
- func (c *GlobalOrganizationOperationsWaitCall) ParentId(parentId string) *GlobalOrganizationOperationsWaitCall
- 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
- 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 GrpcServiceConfig
- 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) 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
- 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
- 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) TestIamPermissions(project string, resource string, ...) *HealthChecksTestIamPermissionsCall
- func (r *HealthChecksService) Update(project string, healthCheck string, healthcheck *HealthCheck) *HealthChecksUpdateCall
- type HealthChecksTestIamPermissionsCall
- func (c *HealthChecksTestIamPermissionsCall) Context(ctx context.Context) *HealthChecksTestIamPermissionsCall
- func (c *HealthChecksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *HealthChecksTestIamPermissionsCall) Fields(s ...googleapi.Field) *HealthChecksTestIamPermissionsCall
- func (c *HealthChecksTestIamPermissionsCall) Header() http.Header
- 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 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
- 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) TestIamPermissions(project string, resource string, ...) *HttpHealthChecksTestIamPermissionsCall
- func (r *HttpHealthChecksService) Update(project string, httpHealthCheck string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksUpdateCall
- type HttpHealthChecksTestIamPermissionsCall
- func (c *HttpHealthChecksTestIamPermissionsCall) Context(ctx context.Context) *HttpHealthChecksTestIamPermissionsCall
- func (c *HttpHealthChecksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *HttpHealthChecksTestIamPermissionsCall) Fields(s ...googleapi.Field) *HttpHealthChecksTestIamPermissionsCall
- func (c *HttpHealthChecksTestIamPermissionsCall) Header() http.Header
- 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
- 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) TestIamPermissions(project string, resource string, ...) *HttpsHealthChecksTestIamPermissionsCall
- func (r *HttpsHealthChecksService) Update(project string, httpsHealthCheck string, httpshealthcheck *HttpsHealthCheck) *HttpsHealthChecksUpdateCall
- type HttpsHealthChecksTestIamPermissionsCall
- func (c *HttpsHealthChecksTestIamPermissionsCall) Context(ctx context.Context) *HttpsHealthChecksTestIamPermissionsCall
- func (c *HttpsHealthChecksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *HttpsHealthChecksTestIamPermissionsCall) Fields(s ...googleapi.Field) *HttpsHealthChecksTestIamPermissionsCall
- func (c *HttpsHealthChecksTestIamPermissionsCall) Header() http.Header
- 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 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
- 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) 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 InstanceGroup
- type InstanceGroupAggregatedList
- type InstanceGroupAggregatedListWarning
- type InstanceGroupAggregatedListWarningData
- type InstanceGroupList
- type InstanceGroupListWarning
- type InstanceGroupListWarningData
- type InstanceGroupManager
- type InstanceGroupManagerActionsSummary
- type InstanceGroupManagerAggregatedList
- type InstanceGroupManagerAggregatedListWarning
- type InstanceGroupManagerAggregatedListWarningData
- type InstanceGroupManagerAutoHealingPolicy
- type InstanceGroupManagerList
- type InstanceGroupManagerListWarning
- type InstanceGroupManagerListWarningData
- type InstanceGroupManagerPendingActionsSummary
- type InstanceGroupManagerStatus
- type InstanceGroupManagerStatusStateful
- 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) 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
- 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
- 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
- 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
- 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
- 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 InstanceGroupManagersResizeAdvancedCall
- func (c *InstanceGroupManagersResizeAdvancedCall) Context(ctx context.Context) *InstanceGroupManagersResizeAdvancedCall
- func (c *InstanceGroupManagersResizeAdvancedCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersResizeAdvancedCall) Fields(s ...googleapi.Field) *InstanceGroupManagersResizeAdvancedCall
- func (c *InstanceGroupManagersResizeAdvancedCall) Header() http.Header
- func (c *InstanceGroupManagersResizeAdvancedCall) RequestId(requestId string) *InstanceGroupManagersResizeAdvancedCall
- type InstanceGroupManagersResizeAdvancedRequest
- 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) ResizeAdvanced(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersResizeAdvancedCall
- func (r *InstanceGroupManagersService) SetAutoHealingPolicies(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersSetAutoHealingPoliciesCall
- 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) TestIamPermissions(project string, zone string, resource string, ...) *InstanceGroupManagersTestIamPermissionsCall
- func (r *InstanceGroupManagersService) Update(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersUpdateCall
- func (r *InstanceGroupManagersService) UpdatePerInstanceConfigs(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersUpdatePerInstanceConfigsCall
- type InstanceGroupManagersSetAutoHealingPoliciesCall
- func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) Context(ctx context.Context) *InstanceGroupManagersSetAutoHealingPoliciesCall
- func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersSetAutoHealingPoliciesCall
- func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) Header() http.Header
- func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) RequestId(requestId string) *InstanceGroupManagersSetAutoHealingPoliciesCall
- type InstanceGroupManagersSetAutoHealingRequest
- 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 InstanceGroupManagersTestIamPermissionsCall
- func (c *InstanceGroupManagersTestIamPermissionsCall) Context(ctx context.Context) *InstanceGroupManagersTestIamPermissionsCall
- func (c *InstanceGroupManagersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *InstanceGroupManagersTestIamPermissionsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersTestIamPermissionsCall
- func (c *InstanceGroupManagersTestIamPermissionsCall) Header() http.Header
- type InstanceGroupManagersUpdateCall
- func (c *InstanceGroupManagersUpdateCall) Context(ctx context.Context) *InstanceGroupManagersUpdateCall
- func (c *InstanceGroupManagersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersUpdateCall) Fields(s ...googleapi.Field) *InstanceGroupManagersUpdateCall
- func (c *InstanceGroupManagersUpdateCall) Header() http.Header
- func (c *InstanceGroupManagersUpdateCall) RequestId(requestId string) *InstanceGroupManagersUpdateCall
- 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) 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
- 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
- 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
- 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
- func (r *InstanceGroupsService) TestIamPermissions(project string, zone string, resource string, ...) *InstanceGroupsTestIamPermissionsCall
- 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 InstanceGroupsTestIamPermissionsCall
- func (c *InstanceGroupsTestIamPermissionsCall) Context(ctx context.Context) *InstanceGroupsTestIamPermissionsCall
- func (c *InstanceGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *InstanceGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *InstanceGroupsTestIamPermissionsCall
- func (c *InstanceGroupsTestIamPermissionsCall) Header() http.Header
- type InstanceList
- type InstanceListReferrers
- type InstanceListReferrersWarning
- type InstanceListReferrersWarningData
- type InstanceListWarning
- type InstanceListWarningData
- type InstanceManagedByIgmError
- type InstanceManagedByIgmErrorInstanceActionDetails
- type InstanceManagedByIgmErrorManagedInstanceError
- type InstanceMoveRequest
- type InstanceProperties
- type InstanceReference
- type InstanceTemplate
- type InstanceTemplateList
- type InstanceTemplateListWarning
- type InstanceTemplateListWarningData
- 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
- type InstanceTemplatesService
- 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) 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
- 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 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 InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy
- 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 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 InstancesGetShieldedVmIdentityCall
- func (c *InstancesGetShieldedVmIdentityCall) Context(ctx context.Context) *InstancesGetShieldedVmIdentityCall
- func (c *InstancesGetShieldedVmIdentityCall) Do(opts ...googleapi.CallOption) (*ShieldedVmIdentity, error)
- func (c *InstancesGetShieldedVmIdentityCall) Fields(s ...googleapi.Field) *InstancesGetShieldedVmIdentityCall
- func (c *InstancesGetShieldedVmIdentityCall) Header() http.Header
- func (c *InstancesGetShieldedVmIdentityCall) IfNoneMatch(entityTag string) *InstancesGetShieldedVmIdentityCall
- 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
- 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
- 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 InstancesResumeRequest
- type InstancesScopedList
- type InstancesScopedListWarning
- type InstancesScopedListWarningData
- 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) 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) GetSerialPortOutput(project string, zone string, instance string) *InstancesGetSerialPortOutputCall
- func (r *InstancesService) GetShieldedInstanceIdentity(project string, zone string, instance string) *InstancesGetShieldedInstanceIdentityCall
- func (r *InstancesService) GetShieldedVmIdentity(project string, zone string, instance string) *InstancesGetShieldedVmIdentityCall
- 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) 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) 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) SetServiceAccount(project string, zone string, instance string, ...) *InstancesSetServiceAccountCall
- func (r *InstancesService) SetShieldedInstanceIntegrityPolicy(project string, zone string, instance string, ...) *InstancesSetShieldedInstanceIntegrityPolicyCall
- func (r *InstancesService) SetShieldedVmIntegrityPolicy(project string, zone string, instance string, ...) *InstancesSetShieldedVmIntegrityPolicyCall
- 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) 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
- func (r *InstancesService) UpdateShieldedVmConfig(project string, zone string, instance string, ...) *InstancesUpdateShieldedVmConfigCall
- 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 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 InstancesSetShieldedVmIntegrityPolicyCall
- func (c *InstancesSetShieldedVmIntegrityPolicyCall) Context(ctx context.Context) *InstancesSetShieldedVmIntegrityPolicyCall
- func (c *InstancesSetShieldedVmIntegrityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesSetShieldedVmIntegrityPolicyCall) Fields(s ...googleapi.Field) *InstancesSetShieldedVmIntegrityPolicyCall
- func (c *InstancesSetShieldedVmIntegrityPolicyCall) Header() http.Header
- func (c *InstancesSetShieldedVmIntegrityPolicyCall) RequestId(requestId string) *InstancesSetShieldedVmIntegrityPolicyCall
- 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
- 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 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 InstancesUpdateShieldedVmConfigCall
- func (c *InstancesUpdateShieldedVmConfigCall) Context(ctx context.Context) *InstancesUpdateShieldedVmConfigCall
- func (c *InstancesUpdateShieldedVmConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstancesUpdateShieldedVmConfigCall) Fields(s ...googleapi.Field) *InstancesUpdateShieldedVmConfigCall
- func (c *InstancesUpdateShieldedVmConfigCall) Header() http.Header
- func (c *InstancesUpdateShieldedVmConfigCall) RequestId(requestId string) *InstancesUpdateShieldedVmConfigCall
- type Int64RangeMatch
- type Interconnect
- type InterconnectAttachment
- type InterconnectAttachmentAggregatedList
- type InterconnectAttachmentAggregatedListWarning
- type InterconnectAttachmentAggregatedListWarningData
- 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) 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
- 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 InterconnectAttachmentsGetIamPolicyCall
- func (c *InterconnectAttachmentsGetIamPolicyCall) Context(ctx context.Context) *InterconnectAttachmentsGetIamPolicyCall
- func (c *InterconnectAttachmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *InterconnectAttachmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsGetIamPolicyCall
- func (c *InterconnectAttachmentsGetIamPolicyCall) Header() http.Header
- func (c *InterconnectAttachmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *InterconnectAttachmentsGetIamPolicyCall
- func (c *InterconnectAttachmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *InterconnectAttachmentsGetIamPolicyCall
- 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
- 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) GetIamPolicy(project string, region string, resource string) *InterconnectAttachmentsGetIamPolicyCall
- 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) SetIamPolicy(project string, region string, resource string, ...) *InterconnectAttachmentsSetIamPolicyCall
- func (r *InterconnectAttachmentsService) SetLabels(project string, region string, resource string, ...) *InterconnectAttachmentsSetLabelsCall
- func (r *InterconnectAttachmentsService) TestIamPermissions(project string, region string, resource string, ...) *InterconnectAttachmentsTestIamPermissionsCall
- type InterconnectAttachmentsSetIamPolicyCall
- func (c *InterconnectAttachmentsSetIamPolicyCall) Context(ctx context.Context) *InterconnectAttachmentsSetIamPolicyCall
- func (c *InterconnectAttachmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *InterconnectAttachmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsSetIamPolicyCall
- func (c *InterconnectAttachmentsSetIamPolicyCall) Header() http.Header
- 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 InterconnectAttachmentsTestIamPermissionsCall
- func (c *InterconnectAttachmentsTestIamPermissionsCall) Context(ctx context.Context) *InterconnectAttachmentsTestIamPermissionsCall
- func (c *InterconnectAttachmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *InterconnectAttachmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsTestIamPermissionsCall
- func (c *InterconnectAttachmentsTestIamPermissionsCall) Header() http.Header
- type InterconnectCircuitInfo
- type InterconnectDiagnostics
- type InterconnectDiagnosticsARPEntry
- type InterconnectDiagnosticsLinkLACPStatus
- type InterconnectDiagnosticsLinkOpticalPower
- type InterconnectDiagnosticsLinkStatus
- 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
- type InterconnectLocationsService
- func (r *InterconnectLocationsService) Get(project string, interconnectLocation string) *InterconnectLocationsGetCall
- func (r *InterconnectLocationsService) List(project string) *InterconnectLocationsListCall
- func (r *InterconnectLocationsService) TestIamPermissions(project string, resource string, ...) *InterconnectLocationsTestIamPermissionsCall
- type InterconnectLocationsTestIamPermissionsCall
- func (c *InterconnectLocationsTestIamPermissionsCall) Context(ctx context.Context) *InterconnectLocationsTestIamPermissionsCall
- func (c *InterconnectLocationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *InterconnectLocationsTestIamPermissionsCall) Fields(s ...googleapi.Field) *InterconnectLocationsTestIamPermissionsCall
- func (c *InterconnectLocationsTestIamPermissionsCall) Header() http.Header
- type InterconnectOutageNotification
- 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 InterconnectsGetIamPolicyCall
- func (c *InterconnectsGetIamPolicyCall) Context(ctx context.Context) *InterconnectsGetIamPolicyCall
- func (c *InterconnectsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *InterconnectsGetIamPolicyCall) Fields(s ...googleapi.Field) *InterconnectsGetIamPolicyCall
- func (c *InterconnectsGetIamPolicyCall) Header() http.Header
- func (c *InterconnectsGetIamPolicyCall) IfNoneMatch(entityTag string) *InterconnectsGetIamPolicyCall
- func (c *InterconnectsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *InterconnectsGetIamPolicyCall
- 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
- 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) GetIamPolicy(project string, resource string) *InterconnectsGetIamPolicyCall
- 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) SetIamPolicy(project string, resource string, ...) *InterconnectsSetIamPolicyCall
- func (r *InterconnectsService) SetLabels(project string, resource string, ...) *InterconnectsSetLabelsCall
- func (r *InterconnectsService) TestIamPermissions(project string, resource string, ...) *InterconnectsTestIamPermissionsCall
- type InterconnectsSetIamPolicyCall
- func (c *InterconnectsSetIamPolicyCall) Context(ctx context.Context) *InterconnectsSetIamPolicyCall
- func (c *InterconnectsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *InterconnectsSetIamPolicyCall) Fields(s ...googleapi.Field) *InterconnectsSetIamPolicyCall
- func (c *InterconnectsSetIamPolicyCall) Header() http.Header
- 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 InterconnectsTestIamPermissionsCall
- func (c *InterconnectsTestIamPermissionsCall) Context(ctx context.Context) *InterconnectsTestIamPermissionsCall
- func (c *InterconnectsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *InterconnectsTestIamPermissionsCall) Fields(s ...googleapi.Field) *InterconnectsTestIamPermissionsCall
- func (c *InterconnectsTestIamPermissionsCall) Header() http.Header
- type InternalIpAddress
- type InternalIpOwner
- type IpAddressesList
- type IpAddressesListWarning
- type IpAddressesListWarningData
- type IpOwnerList
- type IpOwnerListWarning
- type IpOwnerListWarningData
- type Jwt
- type JwtHeader
- 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 LicenseCodesGetIamPolicyCall
- func (c *LicenseCodesGetIamPolicyCall) Context(ctx context.Context) *LicenseCodesGetIamPolicyCall
- func (c *LicenseCodesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *LicenseCodesGetIamPolicyCall) Fields(s ...googleapi.Field) *LicenseCodesGetIamPolicyCall
- func (c *LicenseCodesGetIamPolicyCall) Header() http.Header
- func (c *LicenseCodesGetIamPolicyCall) IfNoneMatch(entityTag string) *LicenseCodesGetIamPolicyCall
- func (c *LicenseCodesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *LicenseCodesGetIamPolicyCall
- type LicenseCodesService
- func (r *LicenseCodesService) Get(project string, licenseCode string) *LicenseCodesGetCall
- func (r *LicenseCodesService) GetIamPolicy(project string, resource string) *LicenseCodesGetIamPolicyCall
- func (r *LicenseCodesService) SetIamPolicy(project string, resource string, ...) *LicenseCodesSetIamPolicyCall
- func (r *LicenseCodesService) TestIamPermissions(project string, resource string, ...) *LicenseCodesTestIamPermissionsCall
- type LicenseCodesSetIamPolicyCall
- func (c *LicenseCodesSetIamPolicyCall) Context(ctx context.Context) *LicenseCodesSetIamPolicyCall
- func (c *LicenseCodesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *LicenseCodesSetIamPolicyCall) Fields(s ...googleapi.Field) *LicenseCodesSetIamPolicyCall
- func (c *LicenseCodesSetIamPolicyCall) Header() http.Header
- 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
- 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 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
- 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 MachineTypeAggregatedList
- type MachineTypeAggregatedListWarning
- type MachineTypeAggregatedListWarningData
- type MachineTypeList
- type MachineTypeListWarning
- type MachineTypeListWarningData
- 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) 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
- 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
- type MachineTypesScopedList
- type MachineTypesScopedListWarning
- type MachineTypesScopedListWarningData
- type MachineTypesService
- type ManagedInstance
- type ManagedInstanceInstanceHealth
- type ManagedInstanceLastAttempt
- type ManagedInstanceLastAttemptErrors
- type ManagedInstanceLastAttemptErrorsErrors
- type ManagedInstanceVersion
- type Metadata
- type MetadataCredentialsFromPlugin
- type MetadataFilter
- type MetadataFilterLabelMatch
- type MetadataItems
- type MutualTls
- type NamedPort
- type Network
- type NetworkEndpoint
- type NetworkEndpointGroup
- type NetworkEndpointGroupAggregatedList
- type NetworkEndpointGroupAggregatedListWarning
- type NetworkEndpointGroupAggregatedListWarningData
- type NetworkEndpointGroupAppEngine
- type NetworkEndpointGroupCloudFunction
- type NetworkEndpointGroupCloudRun
- type NetworkEndpointGroupLbNetworkEndpointGroup
- type NetworkEndpointGroupList
- type NetworkEndpointGroupListWarning
- type NetworkEndpointGroupListWarningData
- 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) 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
- 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
- type NetworkEndpointGroupsListEndpointsRequest
- type NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter
- 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
- 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 NetworkInterface
- type NetworkList
- type NetworkListWarning
- type NetworkListWarningData
- type NetworkPeering
- 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 NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy
- 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
- type NetworksListIpAddressesCall
- func (c *NetworksListIpAddressesCall) Context(ctx context.Context) *NetworksListIpAddressesCall
- func (c *NetworksListIpAddressesCall) Do(opts ...googleapi.CallOption) (*IpAddressesList, error)
- func (c *NetworksListIpAddressesCall) Fields(s ...googleapi.Field) *NetworksListIpAddressesCall
- func (c *NetworksListIpAddressesCall) Filter(filter string) *NetworksListIpAddressesCall
- func (c *NetworksListIpAddressesCall) Header() http.Header
- func (c *NetworksListIpAddressesCall) IfNoneMatch(entityTag string) *NetworksListIpAddressesCall
- func (c *NetworksListIpAddressesCall) MaxResults(maxResults int64) *NetworksListIpAddressesCall
- func (c *NetworksListIpAddressesCall) OrderBy(orderBy string) *NetworksListIpAddressesCall
- func (c *NetworksListIpAddressesCall) PageToken(pageToken string) *NetworksListIpAddressesCall
- func (c *NetworksListIpAddressesCall) Pages(ctx context.Context, f func(*IpAddressesList) error) error
- func (c *NetworksListIpAddressesCall) Types(types string) *NetworksListIpAddressesCall
- type NetworksListIpOwnersCall
- func (c *NetworksListIpOwnersCall) Context(ctx context.Context) *NetworksListIpOwnersCall
- func (c *NetworksListIpOwnersCall) Do(opts ...googleapi.CallOption) (*IpOwnerList, error)
- func (c *NetworksListIpOwnersCall) Fields(s ...googleapi.Field) *NetworksListIpOwnersCall
- func (c *NetworksListIpOwnersCall) Filter(filter string) *NetworksListIpOwnersCall
- func (c *NetworksListIpOwnersCall) Header() http.Header
- func (c *NetworksListIpOwnersCall) IfNoneMatch(entityTag string) *NetworksListIpOwnersCall
- func (c *NetworksListIpOwnersCall) IpCidrRange(ipCidrRange string) *NetworksListIpOwnersCall
- func (c *NetworksListIpOwnersCall) MaxResults(maxResults int64) *NetworksListIpOwnersCall
- func (c *NetworksListIpOwnersCall) OrderBy(orderBy string) *NetworksListIpOwnersCall
- func (c *NetworksListIpOwnersCall) OwnerProjects(ownerProjects string) *NetworksListIpOwnersCall
- func (c *NetworksListIpOwnersCall) OwnerTypes(ownerTypes string) *NetworksListIpOwnersCall
- func (c *NetworksListIpOwnersCall) PageToken(pageToken string) *NetworksListIpOwnersCall
- func (c *NetworksListIpOwnersCall) Pages(ctx context.Context, f func(*IpOwnerList) error) error
- func (c *NetworksListIpOwnersCall) SubnetName(subnetName string) *NetworksListIpOwnersCall
- func (c *NetworksListIpOwnersCall) SubnetRegion(subnetRegion string) *NetworksListIpOwnersCall
- 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
- 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) ListIpAddresses(project string, network string) *NetworksListIpAddressesCall
- func (r *NetworksService) ListIpOwners(project string, network string) *NetworksListIpOwnersCall
- 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) TestIamPermissions(project string, resource string, ...) *NetworksTestIamPermissionsCall
- 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 NetworksTestIamPermissionsCall
- func (c *NetworksTestIamPermissionsCall) Context(ctx context.Context) *NetworksTestIamPermissionsCall
- func (c *NetworksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *NetworksTestIamPermissionsCall) Fields(s ...googleapi.Field) *NetworksTestIamPermissionsCall
- func (c *NetworksTestIamPermissionsCall) Header() http.Header
- 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 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) 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
- 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
- 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
- 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 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) SetAutoscalingPolicy(project string, zone string, nodeGroup string, ...) *NodeGroupsSetAutoscalingPolicyCall
- 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) TestIamPermissions(project string, zone string, resource string, ...) *NodeGroupsTestIamPermissionsCall
- type NodeGroupsSetAutoscalingPolicyCall
- func (c *NodeGroupsSetAutoscalingPolicyCall) Context(ctx context.Context) *NodeGroupsSetAutoscalingPolicyCall
- func (c *NodeGroupsSetAutoscalingPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *NodeGroupsSetAutoscalingPolicyCall) Fields(s ...googleapi.Field) *NodeGroupsSetAutoscalingPolicyCall
- func (c *NodeGroupsSetAutoscalingPolicyCall) Header() http.Header
- func (c *NodeGroupsSetAutoscalingPolicyCall) RequestId(requestId string) *NodeGroupsSetAutoscalingPolicyCall
- type NodeGroupsSetAutoscalingPolicyRequest
- 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 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) 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
- 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
- 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) 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
- 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
- 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 OperationList
- type OperationListWarning
- type OperationListWarningData
- type OperationWarnings
- type OperationWarningsData
- type OperationsScopedList
- type OperationsScopedListWarning
- type OperationsScopedListWarningData
- type OrganizationSecurityPoliciesAddAssociationCall
- func (c *OrganizationSecurityPoliciesAddAssociationCall) Context(ctx context.Context) *OrganizationSecurityPoliciesAddAssociationCall
- func (c *OrganizationSecurityPoliciesAddAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *OrganizationSecurityPoliciesAddAssociationCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesAddAssociationCall
- func (c *OrganizationSecurityPoliciesAddAssociationCall) Header() http.Header
- func (c *OrganizationSecurityPoliciesAddAssociationCall) ReplaceExistingAssociation(replaceExistingAssociation bool) *OrganizationSecurityPoliciesAddAssociationCall
- func (c *OrganizationSecurityPoliciesAddAssociationCall) RequestId(requestId string) *OrganizationSecurityPoliciesAddAssociationCall
- type OrganizationSecurityPoliciesAddRuleCall
- func (c *OrganizationSecurityPoliciesAddRuleCall) Context(ctx context.Context) *OrganizationSecurityPoliciesAddRuleCall
- func (c *OrganizationSecurityPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *OrganizationSecurityPoliciesAddRuleCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesAddRuleCall
- func (c *OrganizationSecurityPoliciesAddRuleCall) Header() http.Header
- func (c *OrganizationSecurityPoliciesAddRuleCall) RequestId(requestId string) *OrganizationSecurityPoliciesAddRuleCall
- type OrganizationSecurityPoliciesCopyRulesCall
- func (c *OrganizationSecurityPoliciesCopyRulesCall) Context(ctx context.Context) *OrganizationSecurityPoliciesCopyRulesCall
- func (c *OrganizationSecurityPoliciesCopyRulesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *OrganizationSecurityPoliciesCopyRulesCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesCopyRulesCall
- func (c *OrganizationSecurityPoliciesCopyRulesCall) Header() http.Header
- func (c *OrganizationSecurityPoliciesCopyRulesCall) RequestId(requestId string) *OrganizationSecurityPoliciesCopyRulesCall
- func (c *OrganizationSecurityPoliciesCopyRulesCall) SourceSecurityPolicy(sourceSecurityPolicy string) *OrganizationSecurityPoliciesCopyRulesCall
- type OrganizationSecurityPoliciesDeleteCall
- func (c *OrganizationSecurityPoliciesDeleteCall) Context(ctx context.Context) *OrganizationSecurityPoliciesDeleteCall
- func (c *OrganizationSecurityPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *OrganizationSecurityPoliciesDeleteCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesDeleteCall
- func (c *OrganizationSecurityPoliciesDeleteCall) Header() http.Header
- func (c *OrganizationSecurityPoliciesDeleteCall) RequestId(requestId string) *OrganizationSecurityPoliciesDeleteCall
- type OrganizationSecurityPoliciesGetAssociationCall
- func (c *OrganizationSecurityPoliciesGetAssociationCall) Context(ctx context.Context) *OrganizationSecurityPoliciesGetAssociationCall
- func (c *OrganizationSecurityPoliciesGetAssociationCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyAssociation, error)
- func (c *OrganizationSecurityPoliciesGetAssociationCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesGetAssociationCall
- func (c *OrganizationSecurityPoliciesGetAssociationCall) Header() http.Header
- func (c *OrganizationSecurityPoliciesGetAssociationCall) IfNoneMatch(entityTag string) *OrganizationSecurityPoliciesGetAssociationCall
- func (c *OrganizationSecurityPoliciesGetAssociationCall) Name(name string) *OrganizationSecurityPoliciesGetAssociationCall
- type OrganizationSecurityPoliciesGetCall
- func (c *OrganizationSecurityPoliciesGetCall) Context(ctx context.Context) *OrganizationSecurityPoliciesGetCall
- func (c *OrganizationSecurityPoliciesGetCall) Do(opts ...googleapi.CallOption) (*SecurityPolicy, error)
- func (c *OrganizationSecurityPoliciesGetCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesGetCall
- func (c *OrganizationSecurityPoliciesGetCall) Header() http.Header
- func (c *OrganizationSecurityPoliciesGetCall) IfNoneMatch(entityTag string) *OrganizationSecurityPoliciesGetCall
- type OrganizationSecurityPoliciesGetRuleCall
- func (c *OrganizationSecurityPoliciesGetRuleCall) Context(ctx context.Context) *OrganizationSecurityPoliciesGetRuleCall
- func (c *OrganizationSecurityPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyRule, error)
- func (c *OrganizationSecurityPoliciesGetRuleCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesGetRuleCall
- func (c *OrganizationSecurityPoliciesGetRuleCall) Header() http.Header
- func (c *OrganizationSecurityPoliciesGetRuleCall) IfNoneMatch(entityTag string) *OrganizationSecurityPoliciesGetRuleCall
- func (c *OrganizationSecurityPoliciesGetRuleCall) Priority(priority int64) *OrganizationSecurityPoliciesGetRuleCall
- type OrganizationSecurityPoliciesInsertCall
- func (c *OrganizationSecurityPoliciesInsertCall) Context(ctx context.Context) *OrganizationSecurityPoliciesInsertCall
- func (c *OrganizationSecurityPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *OrganizationSecurityPoliciesInsertCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesInsertCall
- func (c *OrganizationSecurityPoliciesInsertCall) Header() http.Header
- func (c *OrganizationSecurityPoliciesInsertCall) ParentId(parentId string) *OrganizationSecurityPoliciesInsertCall
- func (c *OrganizationSecurityPoliciesInsertCall) RequestId(requestId string) *OrganizationSecurityPoliciesInsertCall
- type OrganizationSecurityPoliciesListAssociationsCall
- func (c *OrganizationSecurityPoliciesListAssociationsCall) Context(ctx context.Context) *OrganizationSecurityPoliciesListAssociationsCall
- func (c *OrganizationSecurityPoliciesListAssociationsCall) Do(opts ...googleapi.CallOption) (*OrganizationSecurityPoliciesListAssociationsResponse, error)
- func (c *OrganizationSecurityPoliciesListAssociationsCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesListAssociationsCall
- func (c *OrganizationSecurityPoliciesListAssociationsCall) Header() http.Header
- func (c *OrganizationSecurityPoliciesListAssociationsCall) IfNoneMatch(entityTag string) *OrganizationSecurityPoliciesListAssociationsCall
- func (c *OrganizationSecurityPoliciesListAssociationsCall) TargetResource(targetResource string) *OrganizationSecurityPoliciesListAssociationsCall
- type OrganizationSecurityPoliciesListAssociationsResponse
- type OrganizationSecurityPoliciesListCall
- func (c *OrganizationSecurityPoliciesListCall) Context(ctx context.Context) *OrganizationSecurityPoliciesListCall
- func (c *OrganizationSecurityPoliciesListCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyList, error)
- func (c *OrganizationSecurityPoliciesListCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesListCall
- func (c *OrganizationSecurityPoliciesListCall) Filter(filter string) *OrganizationSecurityPoliciesListCall
- func (c *OrganizationSecurityPoliciesListCall) Header() http.Header
- func (c *OrganizationSecurityPoliciesListCall) IfNoneMatch(entityTag string) *OrganizationSecurityPoliciesListCall
- func (c *OrganizationSecurityPoliciesListCall) MaxResults(maxResults int64) *OrganizationSecurityPoliciesListCall
- func (c *OrganizationSecurityPoliciesListCall) OrderBy(orderBy string) *OrganizationSecurityPoliciesListCall
- func (c *OrganizationSecurityPoliciesListCall) PageToken(pageToken string) *OrganizationSecurityPoliciesListCall
- func (c *OrganizationSecurityPoliciesListCall) Pages(ctx context.Context, f func(*SecurityPolicyList) error) error
- func (c *OrganizationSecurityPoliciesListCall) ParentId(parentId string) *OrganizationSecurityPoliciesListCall
- type OrganizationSecurityPoliciesMoveCall
- func (c *OrganizationSecurityPoliciesMoveCall) Context(ctx context.Context) *OrganizationSecurityPoliciesMoveCall
- func (c *OrganizationSecurityPoliciesMoveCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *OrganizationSecurityPoliciesMoveCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesMoveCall
- func (c *OrganizationSecurityPoliciesMoveCall) Header() http.Header
- func (c *OrganizationSecurityPoliciesMoveCall) ParentId(parentId string) *OrganizationSecurityPoliciesMoveCall
- func (c *OrganizationSecurityPoliciesMoveCall) RequestId(requestId string) *OrganizationSecurityPoliciesMoveCall
- type OrganizationSecurityPoliciesPatchCall
- func (c *OrganizationSecurityPoliciesPatchCall) Context(ctx context.Context) *OrganizationSecurityPoliciesPatchCall
- func (c *OrganizationSecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *OrganizationSecurityPoliciesPatchCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesPatchCall
- func (c *OrganizationSecurityPoliciesPatchCall) Header() http.Header
- func (c *OrganizationSecurityPoliciesPatchCall) RequestId(requestId string) *OrganizationSecurityPoliciesPatchCall
- type OrganizationSecurityPoliciesPatchRuleCall
- func (c *OrganizationSecurityPoliciesPatchRuleCall) Context(ctx context.Context) *OrganizationSecurityPoliciesPatchRuleCall
- func (c *OrganizationSecurityPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *OrganizationSecurityPoliciesPatchRuleCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesPatchRuleCall
- func (c *OrganizationSecurityPoliciesPatchRuleCall) Header() http.Header
- func (c *OrganizationSecurityPoliciesPatchRuleCall) Priority(priority int64) *OrganizationSecurityPoliciesPatchRuleCall
- func (c *OrganizationSecurityPoliciesPatchRuleCall) RequestId(requestId string) *OrganizationSecurityPoliciesPatchRuleCall
- type OrganizationSecurityPoliciesRemoveAssociationCall
- func (c *OrganizationSecurityPoliciesRemoveAssociationCall) Context(ctx context.Context) *OrganizationSecurityPoliciesRemoveAssociationCall
- func (c *OrganizationSecurityPoliciesRemoveAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *OrganizationSecurityPoliciesRemoveAssociationCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesRemoveAssociationCall
- func (c *OrganizationSecurityPoliciesRemoveAssociationCall) Header() http.Header
- func (c *OrganizationSecurityPoliciesRemoveAssociationCall) Name(name string) *OrganizationSecurityPoliciesRemoveAssociationCall
- func (c *OrganizationSecurityPoliciesRemoveAssociationCall) RequestId(requestId string) *OrganizationSecurityPoliciesRemoveAssociationCall
- type OrganizationSecurityPoliciesRemoveRuleCall
- func (c *OrganizationSecurityPoliciesRemoveRuleCall) Context(ctx context.Context) *OrganizationSecurityPoliciesRemoveRuleCall
- func (c *OrganizationSecurityPoliciesRemoveRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *OrganizationSecurityPoliciesRemoveRuleCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesRemoveRuleCall
- func (c *OrganizationSecurityPoliciesRemoveRuleCall) Header() http.Header
- func (c *OrganizationSecurityPoliciesRemoveRuleCall) Priority(priority int64) *OrganizationSecurityPoliciesRemoveRuleCall
- func (c *OrganizationSecurityPoliciesRemoveRuleCall) RequestId(requestId string) *OrganizationSecurityPoliciesRemoveRuleCall
- type OrganizationSecurityPoliciesService
- func (r *OrganizationSecurityPoliciesService) AddAssociation(securityPolicy string, securitypolicyassociation *SecurityPolicyAssociation) *OrganizationSecurityPoliciesAddAssociationCall
- func (r *OrganizationSecurityPoliciesService) AddRule(securityPolicy string, securitypolicyrule *SecurityPolicyRule) *OrganizationSecurityPoliciesAddRuleCall
- func (r *OrganizationSecurityPoliciesService) CopyRules(securityPolicy string) *OrganizationSecurityPoliciesCopyRulesCall
- func (r *OrganizationSecurityPoliciesService) Delete(securityPolicy string) *OrganizationSecurityPoliciesDeleteCall
- func (r *OrganizationSecurityPoliciesService) Get(securityPolicy string) *OrganizationSecurityPoliciesGetCall
- func (r *OrganizationSecurityPoliciesService) GetAssociation(securityPolicy string) *OrganizationSecurityPoliciesGetAssociationCall
- func (r *OrganizationSecurityPoliciesService) GetRule(securityPolicy string) *OrganizationSecurityPoliciesGetRuleCall
- func (r *OrganizationSecurityPoliciesService) Insert(securitypolicy *SecurityPolicy) *OrganizationSecurityPoliciesInsertCall
- func (r *OrganizationSecurityPoliciesService) List() *OrganizationSecurityPoliciesListCall
- func (r *OrganizationSecurityPoliciesService) ListAssociations() *OrganizationSecurityPoliciesListAssociationsCall
- func (r *OrganizationSecurityPoliciesService) Move(securityPolicy string) *OrganizationSecurityPoliciesMoveCall
- func (r *OrganizationSecurityPoliciesService) Patch(securityPolicy string, securitypolicy *SecurityPolicy) *OrganizationSecurityPoliciesPatchCall
- func (r *OrganizationSecurityPoliciesService) PatchRule(securityPolicy string, securitypolicyrule *SecurityPolicyRule) *OrganizationSecurityPoliciesPatchRuleCall
- func (r *OrganizationSecurityPoliciesService) RemoveAssociation(securityPolicy string) *OrganizationSecurityPoliciesRemoveAssociationCall
- func (r *OrganizationSecurityPoliciesService) RemoveRule(securityPolicy string) *OrganizationSecurityPoliciesRemoveRuleCall
- type OriginAuthenticationMethod
- type OutlierDetection
- type PacketIntervals
- type PacketMirroring
- type PacketMirroringAggregatedList
- type PacketMirroringAggregatedListWarning
- type PacketMirroringAggregatedListWarningData
- type PacketMirroringCollectorInfo
- type PacketMirroringCollectorInfoInstanceInfo
- type PacketMirroringFilter
- type PacketMirroringForwardingRuleInfo
- type PacketMirroringList
- type PacketMirroringListWarning
- type PacketMirroringListWarningData
- type PacketMirroringMirroredResourceInfo
- type PacketMirroringMirroredResourceInfoInstanceInfo
- type PacketMirroringMirroredResourceInfoSubnetInfo
- type PacketMirroringNetworkInfo
- type PacketMirroringPacketMatcher
- 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) 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
- 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
- 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 PeerAuthenticationMethod
- type PerInstanceConfig
- type Permission
- type PermissionConstraint
- type Policy
- type PreconfiguredWafSet
- type PreservedState
- type PreservedStatePreservedDisk
- type Principal
- 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
- 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
- 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) SetCommonInstanceMetadata(project string, metadata *Metadata) *ProjectsSetCommonInstanceMetadataCall
- func (r *ProjectsService) SetDefaultNetworkTier(project string, ...) *ProjectsSetDefaultNetworkTierCall
- func (r *ProjectsService) SetDefaultServiceAccount(project string, ...) *ProjectsSetDefaultServiceAccountCall
- func (r *ProjectsService) SetUsageExportBucket(project string, usageexportlocation *UsageExportLocation) *ProjectsSetUsageExportBucketCall
- 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 ProjectsSetDefaultServiceAccountCall
- func (c *ProjectsSetDefaultServiceAccountCall) Context(ctx context.Context) *ProjectsSetDefaultServiceAccountCall
- func (c *ProjectsSetDefaultServiceAccountCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsSetDefaultServiceAccountCall) Fields(s ...googleapi.Field) *ProjectsSetDefaultServiceAccountCall
- func (c *ProjectsSetDefaultServiceAccountCall) Header() http.Header
- func (c *ProjectsSetDefaultServiceAccountCall) RequestId(requestId string) *ProjectsSetDefaultServiceAccountCall
- type ProjectsSetDefaultServiceAccountRequest
- 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 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
- 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) 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
- 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) 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
- 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
- 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) 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
- type Quota
- type RbacPolicy
- type Reference
- type Region
- 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
- 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) TestIamPermissions(project string, region string, resource string, ...) *RegionAutoscalersTestIamPermissionsCall
- func (r *RegionAutoscalersService) Update(project string, region string, autoscaler *Autoscaler) *RegionAutoscalersUpdateCall
- type RegionAutoscalersTestIamPermissionsCall
- func (c *RegionAutoscalersTestIamPermissionsCall) Context(ctx context.Context) *RegionAutoscalersTestIamPermissionsCall
- func (c *RegionAutoscalersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RegionAutoscalersTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionAutoscalersTestIamPermissionsCall
- func (c *RegionAutoscalersTestIamPermissionsCall) Header() http.Header
- 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 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
- 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) Insert(project string, region string, backendservice *BackendService) *RegionBackendServicesInsertCall
- func (r *RegionBackendServicesService) List(project string, region string) *RegionBackendServicesListCall
- func (r *RegionBackendServicesService) Patch(project string, region string, backendService string, ...) *RegionBackendServicesPatchCall
- func (r *RegionBackendServicesService) TestIamPermissions(project string, region string, resource string, ...) *RegionBackendServicesTestIamPermissionsCall
- func (r *RegionBackendServicesService) Update(project string, region string, backendService string, ...) *RegionBackendServicesUpdateCall
- 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) 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
- 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
- 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) TestIamPermissions(project string, region string, resource string, ...) *RegionCommitmentsTestIamPermissionsCall
- func (r *RegionCommitmentsService) UpdateReservations(project string, region string, commitment string, ...) *RegionCommitmentsUpdateReservationsCall
- type RegionCommitmentsTestIamPermissionsCall
- func (c *RegionCommitmentsTestIamPermissionsCall) Context(ctx context.Context) *RegionCommitmentsTestIamPermissionsCall
- func (c *RegionCommitmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RegionCommitmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionCommitmentsTestIamPermissionsCall
- func (c *RegionCommitmentsTestIamPermissionsCall) Header() http.Header
- type RegionCommitmentsUpdateReservationsCall
- func (c *RegionCommitmentsUpdateReservationsCall) Context(ctx context.Context) *RegionCommitmentsUpdateReservationsCall
- func (c *RegionCommitmentsUpdateReservationsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionCommitmentsUpdateReservationsCall) Fields(s ...googleapi.Field) *RegionCommitmentsUpdateReservationsCall
- func (c *RegionCommitmentsUpdateReservationsCall) Header() http.Header
- func (c *RegionCommitmentsUpdateReservationsCall) RequestId(requestId string) *RegionCommitmentsUpdateReservationsCall
- type RegionCommitmentsUpdateReservationsRequest
- 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
- 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 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) GuestFlush(guestFlush bool) *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
- 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) 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) TestIamPermissions(project string, region string, resource string, ...) *RegionDisksTestIamPermissionsCall
- 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 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 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
- 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) TestIamPermissions(project string, region string, resource string, ...) *RegionHealthCheckServicesTestIamPermissionsCall
- type RegionHealthCheckServicesTestIamPermissionsCall
- func (c *RegionHealthCheckServicesTestIamPermissionsCall) Context(ctx context.Context) *RegionHealthCheckServicesTestIamPermissionsCall
- func (c *RegionHealthCheckServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RegionHealthCheckServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesTestIamPermissionsCall
- func (c *RegionHealthCheckServicesTestIamPermissionsCall) Header() http.Header
- 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
- 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) TestIamPermissions(project string, region string, resource string, ...) *RegionHealthChecksTestIamPermissionsCall
- func (r *RegionHealthChecksService) Update(project string, region string, healthCheck string, healthcheck *HealthCheck) *RegionHealthChecksUpdateCall
- type RegionHealthChecksTestIamPermissionsCall
- func (c *RegionHealthChecksTestIamPermissionsCall) Context(ctx context.Context) *RegionHealthChecksTestIamPermissionsCall
- func (c *RegionHealthChecksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RegionHealthChecksTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionHealthChecksTestIamPermissionsCall
- func (c *RegionHealthChecksTestIamPermissionsCall) Header() http.Header
- 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
- 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
- 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
- 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
- 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) SetAutoHealingPolicies(project string, region string, instanceGroupManager string, ...) *RegionInstanceGroupManagersSetAutoHealingPoliciesCall
- 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) TestIamPermissions(project string, region string, resource string, ...) *RegionInstanceGroupManagersTestIamPermissionsCall
- func (r *RegionInstanceGroupManagersService) Update(project string, region string, instanceGroupManager string, ...) *RegionInstanceGroupManagersUpdateCall
- func (r *RegionInstanceGroupManagersService) UpdatePerInstanceConfigs(project string, region string, instanceGroupManager string, ...) *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall
- type RegionInstanceGroupManagersSetAutoHealingPoliciesCall
- func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) Context(ctx context.Context) *RegionInstanceGroupManagersSetAutoHealingPoliciesCall
- func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersSetAutoHealingPoliciesCall
- func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) Header() http.Header
- func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) RequestId(requestId string) *RegionInstanceGroupManagersSetAutoHealingPoliciesCall
- type RegionInstanceGroupManagersSetAutoHealingRequest
- 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 RegionInstanceGroupManagersTestIamPermissionsCall
- func (c *RegionInstanceGroupManagersTestIamPermissionsCall) Context(ctx context.Context) *RegionInstanceGroupManagersTestIamPermissionsCall
- func (c *RegionInstanceGroupManagersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RegionInstanceGroupManagersTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersTestIamPermissionsCall
- func (c *RegionInstanceGroupManagersTestIamPermissionsCall) Header() http.Header
- type RegionInstanceGroupManagersUpdateCall
- func (c *RegionInstanceGroupManagersUpdateCall) Context(ctx context.Context) *RegionInstanceGroupManagersUpdateCall
- func (c *RegionInstanceGroupManagersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionInstanceGroupManagersUpdateCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersUpdateCall
- func (c *RegionInstanceGroupManagersUpdateCall) Header() http.Header
- func (c *RegionInstanceGroupManagersUpdateCall) RequestId(requestId string) *RegionInstanceGroupManagersUpdateCall
- 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
- 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
- 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
- func (r *RegionInstanceGroupsService) TestIamPermissions(project string, region string, resource string, ...) *RegionInstanceGroupsTestIamPermissionsCall
- 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 RegionInstanceGroupsTestIamPermissionsCall
- func (c *RegionInstanceGroupsTestIamPermissionsCall) Context(ctx context.Context) *RegionInstanceGroupsTestIamPermissionsCall
- func (c *RegionInstanceGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RegionInstanceGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupsTestIamPermissionsCall
- func (c *RegionInstanceGroupsTestIamPermissionsCall) Header() http.Header
- type RegionList
- type RegionListWarning
- type RegionListWarningData
- 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
- 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
- func (r *RegionNotificationEndpointsService) TestIamPermissions(project string, region string, resource string, ...) *RegionNotificationEndpointsTestIamPermissionsCall
- type RegionNotificationEndpointsTestIamPermissionsCall
- func (c *RegionNotificationEndpointsTestIamPermissionsCall) Context(ctx context.Context) *RegionNotificationEndpointsTestIamPermissionsCall
- func (c *RegionNotificationEndpointsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RegionNotificationEndpointsTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionNotificationEndpointsTestIamPermissionsCall
- func (c *RegionNotificationEndpointsTestIamPermissionsCall) Header() http.Header
- 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
- type RegionOperationsService
- func (r *RegionOperationsService) Delete(project string, region string, operation string) *RegionOperationsDeleteCall
- func (r *RegionOperationsService) Get(project string, region string, operation string) *RegionOperationsGetCall
- func (r *RegionOperationsService) List(project string, region string) *RegionOperationsListCall
- func (r *RegionOperationsService) Wait(project string, region string, operation 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 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
- 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
- func (r *RegionSslCertificatesService) TestIamPermissions(project string, region string, resource string, ...) *RegionSslCertificatesTestIamPermissionsCall
- type RegionSslCertificatesTestIamPermissionsCall
- func (c *RegionSslCertificatesTestIamPermissionsCall) Context(ctx context.Context) *RegionSslCertificatesTestIamPermissionsCall
- func (c *RegionSslCertificatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RegionSslCertificatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionSslCertificatesTestIamPermissionsCall
- func (c *RegionSslCertificatesTestIamPermissionsCall) Header() http.Header
- 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
- 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
- func (r *RegionTargetHttpProxiesService) TestIamPermissions(project string, region string, resource string, ...) *RegionTargetHttpProxiesTestIamPermissionsCall
- 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 RegionTargetHttpProxiesTestIamPermissionsCall
- func (c *RegionTargetHttpProxiesTestIamPermissionsCall) Context(ctx context.Context) *RegionTargetHttpProxiesTestIamPermissionsCall
- func (c *RegionTargetHttpProxiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RegionTargetHttpProxiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionTargetHttpProxiesTestIamPermissionsCall
- func (c *RegionTargetHttpProxiesTestIamPermissionsCall) Header() http.Header
- 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
- 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) SetSslCertificates(project string, region string, targetHttpsProxy string, ...) *RegionTargetHttpsProxiesSetSslCertificatesCall
- func (r *RegionTargetHttpsProxiesService) SetUrlMap(project string, region string, targetHttpsProxy string, ...) *RegionTargetHttpsProxiesSetUrlMapCall
- func (r *RegionTargetHttpsProxiesService) TestIamPermissions(project string, region string, resource string, ...) *RegionTargetHttpsProxiesTestIamPermissionsCall
- 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 RegionTargetHttpsProxiesTestIamPermissionsCall
- func (c *RegionTargetHttpsProxiesTestIamPermissionsCall) Context(ctx context.Context) *RegionTargetHttpsProxiesTestIamPermissionsCall
- func (c *RegionTargetHttpsProxiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RegionTargetHttpsProxiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesTestIamPermissionsCall
- func (c *RegionTargetHttpsProxiesTestIamPermissionsCall) Header() http.Header
- 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 RegionUrlMapsInvalidateCacheCall
- func (c *RegionUrlMapsInvalidateCacheCall) Context(ctx context.Context) *RegionUrlMapsInvalidateCacheCall
- func (c *RegionUrlMapsInvalidateCacheCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *RegionUrlMapsInvalidateCacheCall) Fields(s ...googleapi.Field) *RegionUrlMapsInvalidateCacheCall
- func (c *RegionUrlMapsInvalidateCacheCall) Header() http.Header
- func (c *RegionUrlMapsInvalidateCacheCall) RequestId(requestId string) *RegionUrlMapsInvalidateCacheCall
- 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
- 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) InvalidateCache(project string, region string, urlMap string, ...) *RegionUrlMapsInvalidateCacheCall
- 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) TestIamPermissions(project string, region string, resource string, ...) *RegionUrlMapsTestIamPermissionsCall
- 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 RegionUrlMapsTestIamPermissionsCall
- func (c *RegionUrlMapsTestIamPermissionsCall) Context(ctx context.Context) *RegionUrlMapsTestIamPermissionsCall
- func (c *RegionUrlMapsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RegionUrlMapsTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionUrlMapsTestIamPermissionsCall
- func (c *RegionUrlMapsTestIamPermissionsCall) Header() http.Header
- 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 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
- 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) 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
- 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
- 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
- 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 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) 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
- 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
- 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) 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 ResourcePolicyGroupPlacementPolicy
- type ResourcePolicyHourlyCycle
- type ResourcePolicyList
- type ResourcePolicyListWarning
- type ResourcePolicyListWarningData
- type ResourcePolicySnapshotSchedulePolicy
- type ResourcePolicySnapshotSchedulePolicyRetentionPolicy
- type ResourcePolicySnapshotSchedulePolicySchedule
- type ResourcePolicySnapshotSchedulePolicySnapshotProperties
- type ResourcePolicyVmMaintenancePolicy
- type ResourcePolicyVmMaintenancePolicyConcurrencyControl
- type ResourcePolicyVmMaintenancePolicyMaintenanceWindow
- type ResourcePolicyWeeklyCycle
- type ResourcePolicyWeeklyCycleDayOfWeek
- type Route
- 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 RouterInterface
- type RouterList
- type RouterListWarning
- type RouterListWarningData
- type RouterNat
- type RouterNatLogConfig
- type RouterNatSubnetworkToNat
- type RouterStatus
- type RouterStatusBgpPeerStatus
- type RouterStatusNatStatus
- 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) 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
- 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 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
- 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
- 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) 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) TestIamPermissions(project string, region string, resource string, ...) *RoutersTestIamPermissionsCall
- func (r *RoutersService) Update(project string, region string, router string, router2 *Router) *RoutersUpdateCall
- type RoutersTestIamPermissionsCall
- func (c *RoutersTestIamPermissionsCall) Context(ctx context.Context) *RoutersTestIamPermissionsCall
- func (c *RoutersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RoutersTestIamPermissionsCall) Fields(s ...googleapi.Field) *RoutersTestIamPermissionsCall
- func (c *RoutersTestIamPermissionsCall) Header() http.Header
- 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
- type RoutesService
- func (r *RoutesService) Delete(project string, route string) *RoutesDeleteCall
- func (r *RoutesService) Get(project string, route string) *RoutesGetCall
- func (r *RoutesService) Insert(project string, route *Route) *RoutesInsertCall
- func (r *RoutesService) List(project string) *RoutesListCall
- func (r *RoutesService) TestIamPermissions(project string, resource string, ...) *RoutesTestIamPermissionsCall
- type RoutesTestIamPermissionsCall
- func (c *RoutesTestIamPermissionsCall) Context(ctx context.Context) *RoutesTestIamPermissionsCall
- func (c *RoutesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *RoutesTestIamPermissionsCall) Fields(s ...googleapi.Field) *RoutesTestIamPermissionsCall
- func (c *RoutesTestIamPermissionsCall) Header() http.Header
- type Rule
- type SSLHealthCheck
- type SavedAttachedDisk
- type Scheduling
- type SchedulingNodeAffinity
- type SdsConfig
- 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 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
- 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
- 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
- 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) 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 SecurityPoliciesService
- func (r *SecurityPoliciesService) AddRule(project string, securityPolicy string, securitypolicyrule *SecurityPolicyRule) *SecurityPoliciesAddRuleCall
- 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
- func (r *SecurityPoliciesService) TestIamPermissions(project string, resource string, ...) *SecurityPoliciesTestIamPermissionsCall
- 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 SecurityPoliciesTestIamPermissionsCall
- func (c *SecurityPoliciesTestIamPermissionsCall) Context(ctx context.Context) *SecurityPoliciesTestIamPermissionsCall
- func (c *SecurityPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *SecurityPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *SecurityPoliciesTestIamPermissionsCall
- func (c *SecurityPoliciesTestIamPermissionsCall) Header() http.Header
- type SecurityPoliciesWafConfig
- type SecurityPolicy
- type SecurityPolicyAssociation
- type SecurityPolicyCloudArmorConfig
- type SecurityPolicyList
- type SecurityPolicyListWarning
- type SecurityPolicyListWarningData
- type SecurityPolicyReference
- type SecurityPolicyRule
- type SecurityPolicyRuleMatcher
- type SecurityPolicyRuleMatcherConfig
- type SecurityPolicyRuleMatcherConfigDestinationPort
- type SecurityPolicyRuleRateLimitOptions
- type SecuritySettings
- type SerialPortOutput
- type ServerBinding
- type ServerTlsSettings
- type Service
- type ServiceAccount
- type ShieldedInstanceConfig
- type ShieldedInstanceIdentity
- type ShieldedInstanceIdentityEntry
- type ShieldedInstanceIntegrityPolicy
- type ShieldedVmConfig
- type ShieldedVmIdentity
- type ShieldedVmIdentityEntry
- type ShieldedVmIntegrityPolicy
- type SignedUrlKey
- type Snapshot
- type SnapshotList
- type SnapshotListWarning
- type SnapshotListWarningData
- 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 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
- 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) 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) 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
- 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
- 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
- func (r *SslCertificatesService) TestIamPermissions(project string, resource string, ...) *SslCertificatesTestIamPermissionsCall
- type SslCertificatesTestIamPermissionsCall
- func (c *SslCertificatesTestIamPermissionsCall) Context(ctx context.Context) *SslCertificatesTestIamPermissionsCall
- func (c *SslCertificatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *SslCertificatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *SslCertificatesTestIamPermissionsCall
- func (c *SslCertificatesTestIamPermissionsCall) Header() http.Header
- 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
- 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
- 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 SslPoliciesService
- 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
- func (r *SslPoliciesService) TestIamPermissions(project string, resource string, ...) *SslPoliciesTestIamPermissionsCall
- type SslPoliciesTestIamPermissionsCall
- func (c *SslPoliciesTestIamPermissionsCall) Context(ctx context.Context) *SslPoliciesTestIamPermissionsCall
- func (c *SslPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *SslPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *SslPoliciesTestIamPermissionsCall
- func (c *SslPoliciesTestIamPermissionsCall) Header() http.Header
- type SslPolicy
- type SslPolicyReference
- type SslPolicyWarnings
- type SslPolicyWarningsData
- type StatefulPolicy
- type StatefulPolicyPreservedState
- type StatefulPolicyPreservedStateDiskDevice
- 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) 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
- 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
- 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
- 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 TCPHealthCheck
- type Tags
- 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) 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
- 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
- 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) SetUrlMap(project string, targetHttpProxy string, urlmapreference *UrlMapReference) *TargetHttpProxiesSetUrlMapCall
- func (r *TargetHttpProxiesService) TestIamPermissions(project string, resource string, ...) *TargetHttpProxiesTestIamPermissionsCall
- 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 TargetHttpProxiesTestIamPermissionsCall
- func (c *TargetHttpProxiesTestIamPermissionsCall) Context(ctx context.Context) *TargetHttpProxiesTestIamPermissionsCall
- func (c *TargetHttpProxiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *TargetHttpProxiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *TargetHttpProxiesTestIamPermissionsCall
- func (c *TargetHttpProxiesTestIamPermissionsCall) Header() http.Header
- type TargetHttpProxy
- type TargetHttpProxyAggregatedList
- type TargetHttpProxyAggregatedListWarning
- type TargetHttpProxyAggregatedListWarningData
- 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) 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
- 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
- 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) 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
- func (r *TargetHttpsProxiesService) TestIamPermissions(project string, resource string, ...) *TargetHttpsProxiesTestIamPermissionsCall
- 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 TargetHttpsProxiesTestIamPermissionsCall
- func (c *TargetHttpsProxiesTestIamPermissionsCall) Context(ctx context.Context) *TargetHttpsProxiesTestIamPermissionsCall
- func (c *TargetHttpsProxiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *TargetHttpsProxiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesTestIamPermissionsCall
- func (c *TargetHttpsProxiesTestIamPermissionsCall) Header() http.Header
- 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) 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
- 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
- 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) TestIamPermissions(project string, zone string, resource string, ...) *TargetInstancesTestIamPermissionsCall
- type TargetInstancesTestIamPermissionsCall
- func (c *TargetInstancesTestIamPermissionsCall) Context(ctx context.Context) *TargetInstancesTestIamPermissionsCall
- func (c *TargetInstancesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *TargetInstancesTestIamPermissionsCall) Fields(s ...googleapi.Field) *TargetInstancesTestIamPermissionsCall
- func (c *TargetInstancesTestIamPermissionsCall) Header() http.Header
- 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) 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
- 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
- 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) TestIamPermissions(project string, region string, resource string, ...) *TargetPoolsTestIamPermissionsCall
- 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 TargetPoolsTestIamPermissionsCall
- func (c *TargetPoolsTestIamPermissionsCall) Context(ctx context.Context) *TargetPoolsTestIamPermissionsCall
- func (c *TargetPoolsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *TargetPoolsTestIamPermissionsCall) Fields(s ...googleapi.Field) *TargetPoolsTestIamPermissionsCall
- func (c *TargetPoolsTestIamPermissionsCall) Header() http.Header
- 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
- 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) 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
- func (r *TargetSslProxiesService) TestIamPermissions(project string, resource string, ...) *TargetSslProxiesTestIamPermissionsCall
- 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 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 TargetSslProxiesTestIamPermissionsCall
- func (c *TargetSslProxiesTestIamPermissionsCall) Context(ctx context.Context) *TargetSslProxiesTestIamPermissionsCall
- func (c *TargetSslProxiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *TargetSslProxiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *TargetSslProxiesTestIamPermissionsCall
- func (c *TargetSslProxiesTestIamPermissionsCall) Header() http.Header
- type TargetSslProxy
- type TargetSslProxyList
- type TargetSslProxyListWarning
- type TargetSslProxyListWarningData
- 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
- type TargetTcpProxiesService
- 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
- func (r *TargetTcpProxiesService) TestIamPermissions(project string, resource string, ...) *TargetTcpProxiesTestIamPermissionsCall
- 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 TargetTcpProxiesTestIamPermissionsCall
- func (c *TargetTcpProxiesTestIamPermissionsCall) Context(ctx context.Context) *TargetTcpProxiesTestIamPermissionsCall
- func (c *TargetTcpProxiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *TargetTcpProxiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *TargetTcpProxiesTestIamPermissionsCall
- func (c *TargetTcpProxiesTestIamPermissionsCall) Header() http.Header
- type TargetTcpProxy
- 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) 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
- 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
- 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
- func (r *TargetVpnGatewaysService) TestIamPermissions(project string, region string, resource string, ...) *TargetVpnGatewaysTestIamPermissionsCall
- 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 TargetVpnGatewaysTestIamPermissionsCall
- func (c *TargetVpnGatewaysTestIamPermissionsCall) Context(ctx context.Context) *TargetVpnGatewaysTestIamPermissionsCall
- func (c *TargetVpnGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *TargetVpnGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *TargetVpnGatewaysTestIamPermissionsCall
- func (c *TargetVpnGatewaysTestIamPermissionsCall) Header() http.Header
- type TestFailure
- type TestPermissionsRequest
- type TestPermissionsResponse
- type TlsCertificateContext
- type TlsCertificatePaths
- type TlsContext
- type TlsValidationContext
- type UDPHealthCheck
- type UrlMap
- type UrlMapList
- type UrlMapListWarning
- type UrlMapListWarningData
- type UrlMapReference
- type UrlMapTest
- 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) 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
- 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
- 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) TestIamPermissions(project string, resource string, ...) *UrlMapsTestIamPermissionsCall
- func (r *UrlMapsService) Update(project string, urlMap string, urlmap *UrlMap) *UrlMapsUpdateCall
- func (r *UrlMapsService) Validate(project string, urlMap string, urlmapsvalidaterequest *UrlMapsValidateRequest) *UrlMapsValidateCall
- type UrlMapsTestIamPermissionsCall
- func (c *UrlMapsTestIamPermissionsCall) Context(ctx context.Context) *UrlMapsTestIamPermissionsCall
- func (c *UrlMapsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *UrlMapsTestIamPermissionsCall) Fields(s ...googleapi.Field) *UrlMapsTestIamPermissionsCall
- func (c *UrlMapsTestIamPermissionsCall) Header() http.Header
- 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 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) 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
- 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
- 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) 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
- 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
- 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
- func (r *VpnTunnelsService) TestIamPermissions(project string, region string, resource string, ...) *VpnTunnelsTestIamPermissionsCall
- 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 VpnTunnelsTestIamPermissionsCall
- func (c *VpnTunnelsTestIamPermissionsCall) Context(ctx context.Context) *VpnTunnelsTestIamPermissionsCall
- func (c *VpnTunnelsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
- func (c *VpnTunnelsTestIamPermissionsCall) Fields(s ...googleapi.Field) *VpnTunnelsTestIamPermissionsCall
- func (c *VpnTunnelsTestIamPermissionsCall) Header() http.Header
- 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
- type ZoneOperationsService
- func (r *ZoneOperationsService) Delete(project string, zone string, operation string) *ZoneOperationsDeleteCall
- func (r *ZoneOperationsService) Get(project string, zone string, operation string) *ZoneOperationsGetCall
- func (r *ZoneOperationsService) List(project string, zone string) *ZoneOperationsListCall
- func (r *ZoneOperationsService) Wait(project string, zone string, operation 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
- type ZonesService
Constants ¶
const ( // View and manage your data across Google Cloud Platform services 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 Google Cloud Storage 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 Google Cloud Storage 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 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource's // resource id. SelfLinkWithId string `json:"selfLinkWithId,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. (== resource_for beta.acceleratorTypes ==) (== resource_for v1.acceleratorTypes ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AcceleratorTypesAggregatedListCall) Do ¶
func (c *AcceleratorTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*AcceleratorTypeAggregatedList, error)
Do executes the "compute.acceleratorTypes.aggregatedList" call. Exactly one of *AcceleratorTypeAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*AcceleratorTypesAggregatedListCall) Header ¶
func (c *AcceleratorTypesAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AcceleratorTypesAggregatedListCall) IfNoneMatch ¶
func (c *AcceleratorTypesAggregatedListCall) IfNoneMatch(entityTag string) *AcceleratorTypesAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AcceleratorTypesGetCall) Do ¶
func (c *AcceleratorTypesGetCall) Do(opts ...googleapi.CallOption) (*AcceleratorType, error)
Do executes the "compute.acceleratorTypes.get" call. Exactly one of *AcceleratorType or error will be non-nil. 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 information.
func (*AcceleratorTypesGetCall) Header ¶
func (c *AcceleratorTypesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AcceleratorTypesGetCall) IfNoneMatch ¶
func (c *AcceleratorTypesGetCall) IfNoneMatch(entityTag string) *AcceleratorTypesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AcceleratorTypesListCall) Do ¶
func (c *AcceleratorTypesListCall) Do(opts ...googleapi.CallOption) (*AcceleratorTypeList, error)
Do executes the "compute.acceleratorTypes.list" call. Exactly one of *AcceleratorTypeList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*AcceleratorTypesListCall) Header ¶
func (c *AcceleratorTypesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AcceleratorTypesListCall) IfNoneMatch ¶
func (c *AcceleratorTypesListCall) IfNoneMatch(entityTag string) *AcceleratorTypesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
func (*AcceleratorTypesService) Get ¶
func (r *AcceleratorTypesService) Get(project string, zone string, acceleratorType string) *AcceleratorTypesGetCall
Get: Returns the specified accelerator type. (== suppress_warning http-rest-shadowed ==)
func (*AcceleratorTypesService) List ¶
func (r *AcceleratorTypesService) List(project string, zone string) *AcceleratorTypesListCall
List: Retrieves a list of accelerator types available to the specified project. (== suppress_warning http-rest-shadowed ==)
type AccessConfig ¶
type AccessConfig struct { // 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. The default and // recommended name is External NAT, but you can use any arbitrary // string, such as My external IP or Network Access. Name string `json:"name,omitempty"` // NatIP: 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: // "PREMIUM" // "SELECT" // "STANDARD" NetworkTier string `json:"networkTier,omitempty"` // PublicDnsName: [Output Only] The public DNS domain name for the // instance. PublicDnsName string `json:"publicDnsName,omitempty"` // PublicPtrDomainName: The DNS domain name for the public PTR record. // You can set this field only if the `setPublicPtr` field is enabled. PublicPtrDomainName string `json:"publicPtrDomainName,omitempty"` // SetPublicDns: Specifies whether a public DNS ?A? record should be // created for the external IP address of this access configuration. SetPublicDns bool `json:"setPublicDns,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. SetPublicPtr bool `json:"setPublicPtr,omitempty"` // Type: The type of configuration. The default and only option is // ONE_TO_ONE_NAT. // // Possible values: // "ONE_TO_ONE_NAT" (default) Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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: // "DNS_FORWARDING" // "EXTERNAL" // "INTERNAL" // "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. This can only be specified for a global // address. // // Possible values: // "IPV4" // "IPV6" // "UNSPECIFIED_VERSION" IpVersion string `json:"ipVersion,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 to apply to this Address resource. These can be later // modified by the setLabels method. Each label key/value 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. Global forwarding rules can only be Premium Tier. Regional // forwarding rules can be either Premium or Standard Tier. Standard // Tier addresses applied to regional forwarding rules can be used with // any external load balancer. Regional forwarding rules in Premium Tier // can only be used with a network load balancer. // // If this field is not specified, it is assumed to be PREMIUM. // // Possible values: // "PREMIUM" // "SELECT" // "STANDARD" NetworkTier string `json:"networkTier,omitempty"` // PrefixLength: The prefix length if the resource reprensents 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, internal load balancers, and similar resources. // - `DNS_RESOLVER` for a DNS resolver address in a subnetwork // - `VPC_PEERING` for addresses that are reserved for VPC peer // networks. // - `NAT_AUTO` for addresses that are external IP addresses // automatically reserved for Cloud NAT. // // Possible values: // "DNS_RESOLVER" // "GCE_ENDPOINT" // "NAT_AUTO" // "SHARED_LOADBALANCER_VIP" // "VPC_PEERING" Purpose string `json:"purpose,omitempty"` // Region: [Output Only] The URL of the region where the regional // address resides. This field is not applicable to global addresses. // You must specify this field as part of the HTTP request URL. 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 // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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" // "RESERVED" // "RESERVING" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Address: Represents an IP Address resource.
An address resource represents a regional internal IP address. Regional internal IP addresses are RFC 1918 addresses that come from either a primary or secondary IP range of a subnet in a VPC network. Regional external IP addresses can be assigned to GCP VM instances, Cloud VPN gateways, regional external forwarding rules for network load balancers (in either Standard or Premium Tier), and regional external forwarding rules for HTTP(S), SSL Proxy, and TCP Proxy load balancers in Standard Tier. For more information, read IP addresses.
A globalAddresses resource represent a global external IP address. Global external IP addresses are IPv4 or IPv6 addresses. They can only be assigned to global forwarding rules for HTTP(S), SSL Proxy, or TCP Proxy load balancers in Premium Tier. For more information, read Global resources. (== resource_for beta.addresses ==) (== resource_for v1.addresses ==) (== resource_for beta.globalAddresses ==) (== resource_for v1.globalAddresses ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AddressesAggregatedListCall) Do ¶
func (c *AddressesAggregatedListCall) Do(opts ...googleapi.CallOption) (*AddressAggregatedList, error)
Do executes the "compute.addresses.aggregatedList" call. Exactly one of *AddressAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*AddressesAggregatedListCall) Header ¶
func (c *AddressesAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AddressesAggregatedListCall) IfNoneMatch ¶
func (c *AddressesAggregatedListCall) IfNoneMatch(entityTag string) *AddressesAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AddressesDeleteCall) Do ¶
func (c *AddressesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.addresses.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*AddressesDeleteCall) Header ¶
func (c *AddressesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AddressesGetCall) Do ¶
func (c *AddressesGetCall) Do(opts ...googleapi.CallOption) (*Address, error)
Do executes the "compute.addresses.get" call. Exactly one of *Address or error will be non-nil. 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 information.
func (*AddressesGetCall) Header ¶
func (c *AddressesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AddressesGetCall) IfNoneMatch ¶
func (c *AddressesGetCall) IfNoneMatch(entityTag string) *AddressesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AddressesInsertCall) Do ¶
func (c *AddressesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.addresses.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*AddressesInsertCall) Header ¶
func (c *AddressesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AddressesListCall) Do ¶
func (c *AddressesListCall) Do(opts ...googleapi.CallOption) (*AddressList, error)
Do executes the "compute.addresses.list" call. Exactly one of *AddressList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*AddressesListCall) Header ¶
func (c *AddressesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AddressesListCall) IfNoneMatch ¶
func (c *AddressesListCall) IfNoneMatch(entityTag string) *AddressesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/addresses/aggregatedList
func (*AddressesService) Delete ¶
func (r *AddressesService) Delete(project string, region string, address string) *AddressesDeleteCall
Delete: Deletes the specified address resource. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/addresses/delete
func (*AddressesService) Get ¶
func (r *AddressesService) Get(project string, region string, address string) *AddressesGetCall
Get: Returns the specified address resource. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/addresses/get
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/addresses/insert
func (*AddressesService) List ¶
func (r *AddressesService) List(project string, region string) *AddressesListCall
List: Retrieves a list of addresses contained within the specified region. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/addresses/list
func (*AddressesService) SetLabels ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*AddressesService) TestIamPermissions ¶
func (r *AddressesService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *AddressesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type AddressesSetLabelsCall ¶
type AddressesSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*AddressesSetLabelsCall) Context ¶
func (c *AddressesSetLabelsCall) Context(ctx context.Context) *AddressesSetLabelsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AddressesSetLabelsCall) Do ¶
func (c *AddressesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.addresses.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*AddressesSetLabelsCall) Header ¶
func (c *AddressesSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AddressesSetLabelsCall) RequestId ¶
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 AddressesTestIamPermissionsCall ¶
type AddressesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*AddressesTestIamPermissionsCall) Context ¶
func (c *AddressesTestIamPermissionsCall) Context(ctx context.Context) *AddressesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AddressesTestIamPermissionsCall) Do ¶
func (c *AddressesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.addresses.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*AddressesTestIamPermissionsCall) Fields ¶
func (c *AddressesTestIamPermissionsCall) Fields(s ...googleapi.Field) *AddressesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AddressesTestIamPermissionsCall) Header ¶
func (c *AddressesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk ¶ added in v0.3.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: // "NVDIMM" // "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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk) MarshalJSON ¶ added in v0.3.0
func (s *AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk) MarshalJSON() ([]byte, error)
type AllocationSpecificSKUAllocationReservedInstanceProperties ¶ added in v0.3.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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
AllocationSpecificSKUAllocationReservedInstanceProperties: Properties of the SKU instances being reserved.
func (*AllocationSpecificSKUAllocationReservedInstanceProperties) MarshalJSON ¶ added in v0.3.0
func (s *AllocationSpecificSKUAllocationReservedInstanceProperties) MarshalJSON() ([]byte, error)
type AllocationSpecificSKUReservation ¶ added in v0.3.0
type AllocationSpecificSKUReservation struct { // 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"` // ForceSendFields is a list of field names (e.g. "Count") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AllocationSpecificSKUReservation: This reservation type allows to pre allocate specific instance configuration.
func (*AllocationSpecificSKUReservation) MarshalJSON ¶ added in v0.3.0
func (s *AllocationSpecificSKUReservation) MarshalJSON() ([]byte, error)
type AttachedDisk ¶
type AttachedDisk 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 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. // // Instance templates do not store customer-supplied encryption keys, so // you cannot use your own keys to encrypt disks in a managed instance // group. DiskEncryptionKey *CustomerEncryptionKey `json:"diskEncryptionKey,omitempty"` // DiskSizeGb: The size of the disk in base-2 GB. This supersedes // disk_size_gb in InitializeParams. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` // 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. The default is SCSI. Persistent // disks must always use SCSI and the request will fail if you attempt // to attach a persistent disk in any other format than SCSI. Local SSDs // can use either NVME or SCSI. For performance characteristics of SCSI // over NVMe, see Local SSD performance. TODO(b/131765817): Update // documentation when NVME is supported. // // Possible values: // "NVDIMM" // "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" // "READ_WRITE" 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" // "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, one of // initializeParams.sourceImage or initializeParams.sourceSnapshot or // disks.source is required except for local SSD. // // 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, not the URL // for the 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. "AutoDelete") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AttachedDisk: An instance-attached disk resource.
func (*AttachedDisk) MarshalJSON ¶
func (s *AttachedDisk) MarshalJSON() ([]byte, error)
type AttachedDiskInitializeParams ¶
type AttachedDiskInitializeParams struct { // 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 the disk with the instance name // exists already in the given zone/region, a new name will be // automatically generated. DiskName string `json:"diskName,omitempty"` // DiskSizeGb: Specifies the size of the disk in base-2 GB. If not // specified, the disk will be the same size as the image (usually // 10GB). If specified, the size must be equal to or larger than 10GB. 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 // // // Other values include pd-ssd and local-ssd. If you define this field, // you can provide either the full or partial URL. For example, the // following are valid values: // - // https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType // - projects/project/zones/zone/diskTypes/diskType // - zones/zone/diskTypes/diskType Note that for InstanceTemplate, this // is the name of the disk type, not URL. 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. // // Guest OS features are applied by merging // initializeParams.guestOsFeatures and disks.guestOsFeatures GuestOsFeatures []*GuestOsFeature `json:"guestOsFeatures,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"` // OnUpdateAction: Specifies which action to take on instance update // with this disk. Default is to use the existing disk. // // Possible values: // "RECREATE_DISK" // "RECREATE_DISK_IF_SOURCE_CHANGED" // "USE_EXISTING_DISK" OnUpdateAction string `json:"onUpdateAction,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. 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, one of initializeParams.sourceImage or // initializeParams.sourceSnapshot or disks.source is required except // for local SSD. // // 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 // // // Alternati // vely, 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. // // Instance templates 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, one of initializeParams.sourceSnapshot or // initializeParams.sourceImage or disks.source is required except for // local SSD. // // 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"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 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 []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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 bool `json:"ignoreChildExemptions,omitempty"` // LogType: The log type that this config enables. // // Possible values: // "ADMIN_READ" // "DATA_READ" // "DATA_WRITE" // "LOG_TYPE_UNSPECIFIED" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 AuthenticationPolicy ¶ added in v0.2.0
type AuthenticationPolicy struct { // Origins: List of authentication methods that can be used for origin // authentication. Similar to peers, these will be evaluated in order // the first valid one will be used to set origin identity. If none of // these methods pass, the request will be rejected with authentication // failed error (401). Leave the list empty if origin authentication is // not required. Origins []*OriginAuthenticationMethod `json:"origins,omitempty"` // Peers: List of authentication methods that can be used for peer // authentication. They will be evaluated in order the first valid one // will be used to set peer identity. If none of these methods pass, the // request will be rejected with authentication failed error (401). // Leave the list empty if peer authentication is not required. Peers []*PeerAuthenticationMethod `json:"peers,omitempty"` // PrincipalBinding: Define whether peer or origin identity should be // used for principal. Default value is USE_PEER. If peer (or origin) // identity is not available, either because peer/origin authentication // is not defined, or failed, principal will be left unset. In other // words, binding rule does not affect the decision to accept or reject // request. This field can be set to one of the following: USE_PEER: // Principal will be set to the identity from peer authentication. // USE_ORIGIN: Principal will be set to the identity from origin // authentication. // // Possible values: // "INVALID" // "USE_ORIGIN" // "USE_PEER" PrincipalBinding string `json:"principalBinding,omitempty"` // ServerTlsContext: Configures the mechanism to obtain server-side // security certificates and identity information. ServerTlsContext *TlsContext `json:"serverTlsContext,omitempty"` // ForceSendFields is a list of field names (e.g. "Origins") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Origins") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AuthenticationPolicy: The authentication settings for the backend service.
func (*AuthenticationPolicy) MarshalJSON ¶ added in v0.2.0
func (s *AuthenticationPolicy) MarshalJSON() ([]byte, error)
type AuthorizationConfig ¶ added in v0.2.0
type AuthorizationConfig struct { // Policies: List of RbacPolicies. Policies []*RbacPolicy `json:"policies,omitempty"` // ForceSendFields is a list of field names (e.g. "Policies") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Policies") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AuthorizationConfig: Authorization configuration provides service-level and method-level access control for a service.
func (*AuthorizationConfig) MarshalJSON ¶ added in v0.2.0
func (s *AuthorizationConfig) MarshalJSON() ([]byte, error)
type AuthorizationLoggingOptions ¶
type AuthorizationLoggingOptions struct { // PermissionType: The type of the permission that was checked. // // Possible values: // "ADMIN_READ" // "ADMIN_WRITE" // "DATA_READ" // "DATA_WRITE" // "PERMISSION_TYPE_UNSPECIFIED" PermissionType string `json:"permissionType,omitempty"` // ForceSendFields is a list of field names (e.g. "PermissionType") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PermissionType") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
AuthorizationLoggingOptions: Authorization-related information used by Cloud Audit Logging.
func (*AuthorizationLoggingOptions) MarshalJSON ¶
func (s *AuthorizationLoggingOptions) MarshalJSON() ([]byte, error)
type Autoscaler ¶
type Autoscaler struct { // AutoscalingPolicy: The configuration parameters for the autoscaling // algorithm. You can define one or more of the policies 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 recommended // MIG size even when autoscaling policy mode is different from ON. This // field is empty when autoscaler is not connected to the 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"` // 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"` // 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" // "DELETING" // "ERROR" // "PENDING" 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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
Autoscaler: Represents an Autoscaler resource.
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. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 up" // 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" // "BACKEND_SERVICE_DOES_NOT_EXIST" // "CAPPED_AT_MAX_NUM_REPLICAS" // "CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE" // "CUSTOM_METRIC_INVALID" // "MIN_EQUALS_MAX" // "MISSING_CUSTOM_METRIC_DATA_POINTS" // "MISSING_LOAD_BALANCING_DATA_POINTS" // "MODE_OFF" // "MODE_ONLY_UP" // "MORE_THAN_ONE_BACKEND_SERVICE" // "NOT_ENOUGH_QUOTA_AVAILABLE" // "REGION_RESOURCE_STOCKOUT" // "SCALING_TARGET_DOES_NOT_EXIST" // "UNKNOWN" // "UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION" // "ZONE_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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AutoscalersAggregatedListCall) Do ¶
func (c *AutoscalersAggregatedListCall) Do(opts ...googleapi.CallOption) (*AutoscalerAggregatedList, error)
Do executes the "compute.autoscalers.aggregatedList" call. Exactly one of *AutoscalerAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*AutoscalersAggregatedListCall) Header ¶
func (c *AutoscalersAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AutoscalersAggregatedListCall) IfNoneMatch ¶
func (c *AutoscalersAggregatedListCall) IfNoneMatch(entityTag string) *AutoscalersAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AutoscalersDeleteCall) Do ¶
func (c *AutoscalersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.autoscalers.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*AutoscalersDeleteCall) Header ¶
func (c *AutoscalersDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AutoscalersGetCall) Do ¶
func (c *AutoscalersGetCall) Do(opts ...googleapi.CallOption) (*Autoscaler, error)
Do executes the "compute.autoscalers.get" call. Exactly one of *Autoscaler or error will be non-nil. 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 information.
func (*AutoscalersGetCall) Header ¶
func (c *AutoscalersGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AutoscalersGetCall) IfNoneMatch ¶
func (c *AutoscalersGetCall) IfNoneMatch(entityTag string) *AutoscalersGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AutoscalersInsertCall) Do ¶
func (c *AutoscalersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.autoscalers.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*AutoscalersInsertCall) Header ¶
func (c *AutoscalersInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AutoscalersListCall) Do ¶
func (c *AutoscalersListCall) Do(opts ...googleapi.CallOption) (*AutoscalerList, error)
Do executes the "compute.autoscalers.list" call. Exactly one of *AutoscalerList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*AutoscalersListCall) Header ¶
func (c *AutoscalersListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AutoscalersListCall) IfNoneMatch ¶
func (c *AutoscalersListCall) IfNoneMatch(entityTag string) *AutoscalersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AutoscalersPatchCall) Do ¶
func (c *AutoscalersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.autoscalers.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*AutoscalersPatchCall) Header ¶
func (c *AutoscalersPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
func (*AutoscalersService) Delete ¶
func (r *AutoscalersService) Delete(project string, zone string, autoscaler string) *AutoscalersDeleteCall
Delete: Deletes the specified autoscaler. (== suppress_warning http-rest-shadowed ==)
func (*AutoscalersService) Get ¶
func (r *AutoscalersService) Get(project string, zone string, autoscaler string) *AutoscalersGetCall
Get: Returns the specified autoscaler resource. Gets a list of available autoscalers by making a list() request. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*AutoscalersService) List ¶
func (r *AutoscalersService) List(project string, zone string) *AutoscalersListCall
List: Retrieves a list of autoscalers contained within the specified zone. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*AutoscalersService) TestIamPermissions ¶
func (r *AutoscalersService) TestIamPermissions(project string, zone string, resource string, testpermissionsrequest *TestPermissionsRequest) *AutoscalersTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
type AutoscalersTestIamPermissionsCall ¶
type AutoscalersTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*AutoscalersTestIamPermissionsCall) Context ¶
func (c *AutoscalersTestIamPermissionsCall) Context(ctx context.Context) *AutoscalersTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AutoscalersTestIamPermissionsCall) Do ¶
func (c *AutoscalersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.autoscalers.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*AutoscalersTestIamPermissionsCall) Fields ¶
func (c *AutoscalersTestIamPermissionsCall) Fields(s ...googleapi.Field) *AutoscalersTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AutoscalersTestIamPermissionsCall) Header ¶
func (c *AutoscalersTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AutoscalersUpdateCall) Do ¶
func (c *AutoscalersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.autoscalers.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*AutoscalersUpdateCall) Header ¶
func (c *AutoscalersUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 the autoscaler should // wait before it starts collecting information from a new instance. // This prevents the autoscaler from collecting information when the // instance is initializing, during which the collected usage would not // be reliable. The default time autoscaler waits is 60 // seconds. // // Virtual machine initialization times might vary because of numerous // factors. We recommend that you test how long an instance may take to // initialize. To do this, create an instance and time the 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 up to. This is required when creating or updating an // autoscaler. The maximum number of replicas should not be lower than // minimal number of replicas. MaxNumReplicas int64 `json:"maxNumReplicas,omitempty"` // MinNumReplicas: The minimum number of replicas that the autoscaler // can scale down to. This cannot be less than 0. If not provided, // autoscaler will choose a default value depending on maximum number of // instances allowed. MinNumReplicas int64 `json:"minNumReplicas,omitempty"` // Mode: Defines operating mode for this policy. // // Possible values: // "OFF" // "ON" // "ONLY_UP" Mode string `json:"mode,omitempty"` // QueueBasedScaling: Configuration parameters of autoscaling based on // queuing system. QueueBasedScaling *AutoscalingPolicyQueueBasedScaling `json:"queueBasedScaling,omitempty"` ScaleDownControl *AutoscalingPolicyScaleDownControl `json:"scaleDownControl,omitempty"` // ForceSendFields is a list of field names (e.g. "CoolDownPeriodSec") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
AutoscalingPolicy: Cloud Autoscaler policy.
func (*AutoscalingPolicy) MarshalJSON ¶
func (s *AutoscalingPolicy) MarshalJSON() ([]byte, error)
type AutoscalingPolicyCpuUtilization ¶
type AutoscalingPolicyCpuUtilization struct { // UtilizationTarget: The target CPU utilization that the autoscaler // should maintain. 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 down 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 up 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. "UtilizationTarget") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. // // You should 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 will keep the number of instances // proportional to the value of this metric, the metric itself should // 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 // should maintain. 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 // compute.googleapis.com/instance/network/received_bytes_count. The // autoscaler will work 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" // "DELTA_PER_SECOND" // "GAUGE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 autoscaler should // maintain. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 AutoscalingPolicyQueueBasedScaling ¶
type AutoscalingPolicyQueueBasedScaling struct { // AcceptableBacklogPerInstance: Scaling based on the average number of // tasks in the queue per each active instance. The autoscaler keeps the // average number of tasks per instance below this number, based on data // collected in the last couple of minutes. The autoscaler will also // take into account incoming tasks when calculating when to scale. AcceptableBacklogPerInstance float64 `json:"acceptableBacklogPerInstance,omitempty"` // CloudPubSub: Configuration for Cloud Pub/Sub subscription queue. CloudPubSub *AutoscalingPolicyQueueBasedScalingCloudPubSub `json:"cloudPubSub,omitempty"` // SingleWorkerThroughputPerSec: The scaling algorithm will also // calculate throughput estimates on its own; if you explicitly provide // this value, the autoscaler will take into account your value as well // as automatic estimates when deciding how to scale. SingleWorkerThroughputPerSec float64 `json:"singleWorkerThroughputPerSec,omitempty"` // ForceSendFields is a list of field names (e.g. // "AcceptableBacklogPerInstance") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "AcceptableBacklogPerInstance") to include in API requests with the // JSON null value. By default, fields with empty values are omitted // from API requests. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
AutoscalingPolicyQueueBasedScaling: Configuration parameters of autoscaling based on queuing system.
func (*AutoscalingPolicyQueueBasedScaling) MarshalJSON ¶
func (s *AutoscalingPolicyQueueBasedScaling) MarshalJSON() ([]byte, error)
func (*AutoscalingPolicyQueueBasedScaling) UnmarshalJSON ¶
func (s *AutoscalingPolicyQueueBasedScaling) UnmarshalJSON(data []byte) error
type AutoscalingPolicyQueueBasedScalingCloudPubSub ¶
type AutoscalingPolicyQueueBasedScalingCloudPubSub struct { // Subscription: Cloud Pub/Sub subscription used for scaling. Provide // the partial URL (starting with projects/) or just the subscription // name. The subscription must be assigned to the topic specified in // topicName and must be in a pull configuration. The subscription must // belong to the same project as the Autoscaler. Subscription string `json:"subscription,omitempty"` // Topic: Cloud Pub/Sub topic used for scaling. Provide the partial URL // or partial URL (starting with projects/) or just the topic name. The // topic must belong to the same project as the Autoscaler resource. Topic string `json:"topic,omitempty"` // ForceSendFields is a list of field names (e.g. "Subscription") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Subscription") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AutoscalingPolicyQueueBasedScalingCloudPubSub: Configuration parameters for scaling based on Cloud Pub/Sub subscription queue.
func (*AutoscalingPolicyQueueBasedScalingCloudPubSub) MarshalJSON ¶
func (s *AutoscalingPolicyQueueBasedScalingCloudPubSub) MarshalJSON() ([]byte, error)
type AutoscalingPolicyScaleDownControl ¶ added in v0.7.0
type AutoscalingPolicyScaleDownControl struct { // MaxScaledDownReplicas: 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. MaxScaledDownReplicas *FixedOrPercent `json:"maxScaledDownReplicas,omitempty"` // TimeWindowSec: How long back autoscaling should look when computing // recommendations to include directives regarding slower scale down, as // described above. TimeWindowSec int64 `json:"timeWindowSec,omitempty"` // ForceSendFields is a list of field names (e.g. // "MaxScaledDownReplicas") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MaxScaledDownReplicas") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
AutoscalingPolicyScaleDownControl: Configuration that allows for slower scale down so that even if Autoscaler recommends an abrupt scale down of a MIG, it will be throttled as specified by the parameters below.
func (*AutoscalingPolicyScaleDownControl) MarshalJSON ¶ added in v0.7.0
func (s *AutoscalingPolicyScaleDownControl) MarshalJSON() ([]byte, error)
type Backend ¶
type Backend struct { // BalancingMode: Specifies the balancing mode for the backend. // // When choosing a balancing mode, you need to consider the // loadBalancingScheme, and protocol for the backend service, as well as // the type of backend (instance group or NEG). // // // - If the load balancing mode is CONNECTION, then the load is spread // based on how many concurrent connections the backend can handle. // You can use the CONNECTION balancing mode if the protocol for the // backend service is SSL, TCP, or UDP. // // If the loadBalancingScheme for the backend service is EXTERNAL (SSL // Proxy and TCP Proxy load balancers), you must also specify exactly // one of the following parameters: maxConnections, // maxConnectionsPerInstance, or maxConnectionsPerEndpoint. // // If the loadBalancingScheme for the backend service is INTERNAL // (internal TCP/UDP load balancers), you cannot specify any additional // parameters. // // - If the load balancing mode is RATE, the load is spread based on the // rate of HTTP requests per second (RPS). // You can use the RATE balancing mode if the protocol for the backend // service is HTTP or HTTPS. You must specify exactly one of the // following parameters: maxRate, maxRatePerInstance, or // maxRatePerEndpoint. // // - If the load balancing mode is UTILIZATION, the load is spread based // on the CPU utilization of instances in an instance group. // You can use the UTILIZATION balancing mode if the loadBalancingScheme // of the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or // INTERNAL_MANAGED and the backends are instance groups. There are no // restrictions on the backend service protocol. // // Possible values: // "CONNECTION" // "RATE" // "UTILIZATION" BalancingMode string `json:"balancingMode,omitempty"` // CapacityScaler: A multiplier applied to the group's maximum servicing // capacity (based on UTILIZATION, RATE or CONNECTION). Default value is // 1, which means the group will serve 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. Valid // range is [0.0,1.0]. // // This cannot be used for internal load balancing. 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. The type of backend that a backend // service supports depends on the backend service's // loadBalancingScheme. // // // - When the loadBalancingScheme for the backend service is EXTERNAL, // INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED, the backend can be either // an instance group or a NEG. The backends on the backend service must // be either all instance groups or all NEGs. You cannot mix instance // group and NEG backends on the same backend service. // // // - When the loadBalancingScheme for the backend service is INTERNAL, // the backend must be an instance group in the same region as the // backend service. NEGs are not supported. // // 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 maximum target for simultaneous connections // for the entire backend (instance group or NEG). If the backend's // balancingMode is UTILIZATION, this is an optional parameter. If the // backend's balancingMode is CONNECTION, and backend is attached to a // backend service whose loadBalancingScheme is EXTERNAL, you must // specify either this parameter, maxConnectionsPerInstance, or // maxConnectionsPerEndpoint. // // Not available if the backend's balancingMode is RATE. If the // loadBalancingScheme is INTERNAL, then maxConnections is not // supported, even though the backend requires a balancing mode of // CONNECTION. MaxConnections int64 `json:"maxConnections,omitempty"` // MaxConnectionsPerEndpoint: Defines a maximum target for simultaneous // connections for an endpoint of a NEG. This is multiplied by the // number of endpoints in the NEG to implicitly calculate a maximum // number of target maximum simultaneous connections for the NEG. If the // backend's balancingMode is CONNECTION, and the backend is attached to // a backend service whose loadBalancingScheme is EXTERNAL, you must // specify either this parameter, maxConnections, or // maxConnectionsPerInstance. // // Not available if the backend's balancingMode is RATE. Internal // TCP/UDP load balancing does not support setting // maxConnectionsPerEndpoint even though its backends require a // balancing mode of CONNECTION. MaxConnectionsPerEndpoint int64 `json:"maxConnectionsPerEndpoint,omitempty"` // MaxConnectionsPerInstance: Defines a maximum target for simultaneous // connections for a single VM in a backend instance group. This is // multiplied by the number of instances in the instance group to // implicitly calculate a target maximum number of simultaneous // connections for the whole instance group. If the backend's // balancingMode is UTILIZATION, this is an optional parameter. If the // backend's balancingMode is CONNECTION, and backend is attached to a // backend service whose loadBalancingScheme is EXTERNAL, you must // specify either this parameter, maxConnections, or // maxConnectionsPerEndpoint. // // Not available if the backend's balancingMode is RATE. Internal // TCP/UDP load balancing does not support setting // maxConnectionsPerInstance even though its backends require a // balancing mode of CONNECTION. MaxConnectionsPerInstance int64 `json:"maxConnectionsPerInstance,omitempty"` // MaxRate: The max requests per second (RPS) of the group. Can be used // with either RATE or UTILIZATION balancing modes, but required if RATE // mode. For RATE mode, either maxRate or maxRatePerInstance must be // set. // // This cannot be used for internal load balancing. MaxRate int64 `json:"maxRate,omitempty"` // MaxRatePerEndpoint: Defines a maximum target for requests per second // (RPS) for an endpoint of a NEG. This is multiplied by the number of // endpoints in the NEG to implicitly calculate a target maximum rate // for the NEG. // // If the backend's balancingMode is RATE, you must specify either this // parameter, maxRate, or maxRatePerInstance. // // 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 a single VM in a backend instance group. This is multiplied // by the number of instances in the instance group to implicitly // calculate a target maximum rate for the whole instance group. // // If the backend's balancingMode is UTILIZATION, this is an optional // parameter. If the backend's balancingMode is RATE, you must specify // either this parameter, maxRate, or maxRatePerEndpoint. // // Not available if the backend's balancingMode is CONNECTION. MaxRatePerInstance float64 `json:"maxRatePerInstance,omitempty"` // MaxUtilization: Defines the maximum average CPU utilization of a // backend VM in an instance group. The valid range is [0.0, 1.0]. This // is an optional parameter if the backend's balancingMode is // UTILIZATION. // // This parameter can be used in conjunction with maxRate, // maxRatePerInstance, maxConnections, or maxConnectionsPerInstance. MaxUtilization float64 `json:"maxUtilization,omitempty"` // ForceSendFields is a list of field names (e.g. "BalancingMode") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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"` // 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"` // 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. "BucketName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 { // 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. // "SignedUrlCacheMaxAgeSec") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "SignedUrlCacheMaxAgeSec") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
BackendBucketCdnPolicy: Message containing Cloud CDN configuration for a backend bucket.
func (*BackendBucketCdnPolicy) MarshalJSON ¶
func (s *BackendBucketCdnPolicy) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*BackendBucketListWarningData) MarshalJSON ¶
func (s *BackendBucketListWarningData) 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendBucketsAddSignedUrlKeyCall) Do ¶
func (c *BackendBucketsAddSignedUrlKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendBuckets.addSignedUrlKey" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*BackendBucketsAddSignedUrlKeyCall) Header ¶
func (c *BackendBucketsAddSignedUrlKeyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendBucketsDeleteCall) Do ¶
func (c *BackendBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendBuckets.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*BackendBucketsDeleteCall) Header ¶
func (c *BackendBucketsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendBucketsDeleteSignedUrlKeyCall) Do ¶
func (c *BackendBucketsDeleteSignedUrlKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendBuckets.deleteSignedUrlKey" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*BackendBucketsDeleteSignedUrlKeyCall) Header ¶
func (c *BackendBucketsDeleteSignedUrlKeyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendBucketsGetCall) Do ¶
func (c *BackendBucketsGetCall) Do(opts ...googleapi.CallOption) (*BackendBucket, error)
Do executes the "compute.backendBuckets.get" call. Exactly one of *BackendBucket or error will be non-nil. 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 information.
func (*BackendBucketsGetCall) Header ¶
func (c *BackendBucketsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BackendBucketsGetCall) IfNoneMatch ¶
func (c *BackendBucketsGetCall) IfNoneMatch(entityTag string) *BackendBucketsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type BackendBucketsGetIamPolicyCall ¶
type BackendBucketsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*BackendBucketsGetIamPolicyCall) Context ¶
func (c *BackendBucketsGetIamPolicyCall) Context(ctx context.Context) *BackendBucketsGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendBucketsGetIamPolicyCall) Do ¶
func (c *BackendBucketsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.backendBuckets.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 ¶
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 information.
func (*BackendBucketsGetIamPolicyCall) Header ¶
func (c *BackendBucketsGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BackendBucketsGetIamPolicyCall) IfNoneMatch ¶
func (c *BackendBucketsGetIamPolicyCall) IfNoneMatch(entityTag string) *BackendBucketsGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*BackendBucketsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendBucketsInsertCall) Do ¶
func (c *BackendBucketsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendBuckets.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*BackendBucketsInsertCall) Header ¶
func (c *BackendBucketsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendBucketsListCall) Do ¶
func (c *BackendBucketsListCall) Do(opts ...googleapi.CallOption) (*BackendBucketList, error)
Do executes the "compute.backendBuckets.list" call. Exactly one of *BackendBucketList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*BackendBucketsListCall) Header ¶
func (c *BackendBucketsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BackendBucketsListCall) IfNoneMatch ¶
func (c *BackendBucketsListCall) IfNoneMatch(entityTag string) *BackendBucketsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendBucketsPatchCall) Do ¶
func (c *BackendBucketsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendBuckets.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*BackendBucketsPatchCall) Header ¶
func (c *BackendBucketsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. (== suppress_warning http-rest-shadowed ==)
func (*BackendBucketsService) Delete ¶
func (r *BackendBucketsService) Delete(project string, backendBucket string) *BackendBucketsDeleteCall
Delete: Deletes the specified BackendBucket resource. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*BackendBucketsService) Get ¶
func (r *BackendBucketsService) Get(project string, backendBucket string) *BackendBucketsGetCall
Get: Returns the specified BackendBucket resource. Gets a list of available backend buckets by making a list() request. (== suppress_warning http-rest-shadowed ==)
func (*BackendBucketsService) GetIamPolicy ¶
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*BackendBucketsService) List ¶
func (r *BackendBucketsService) List(project string) *BackendBucketsListCall
List: Retrieves the list of BackendBucket resources available to the specified project. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*BackendBucketsService) SetIamPolicy ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*BackendBucketsService) TestIamPermissions ¶
func (r *BackendBucketsService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *BackendBucketsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
type BackendBucketsSetIamPolicyCall ¶
type BackendBucketsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*BackendBucketsSetIamPolicyCall) Context ¶
func (c *BackendBucketsSetIamPolicyCall) Context(ctx context.Context) *BackendBucketsSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendBucketsSetIamPolicyCall) Do ¶
func (c *BackendBucketsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.backendBuckets.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 ¶
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 information.
func (*BackendBucketsSetIamPolicyCall) Header ¶
func (c *BackendBucketsSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type BackendBucketsTestIamPermissionsCall ¶
type BackendBucketsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*BackendBucketsTestIamPermissionsCall) Context ¶
func (c *BackendBucketsTestIamPermissionsCall) Context(ctx context.Context) *BackendBucketsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendBucketsTestIamPermissionsCall) Do ¶
func (c *BackendBucketsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.backendBuckets.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 ¶
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 information.
func (*BackendBucketsTestIamPermissionsCall) Header ¶
func (c *BackendBucketsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendBucketsUpdateCall) Do ¶
func (c *BackendBucketsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendBuckets.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*BackendBucketsUpdateCall) Header ¶
func (c *BackendBucketsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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: 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 one day (86,400). 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. CdnPolicy *BackendServiceCdnPolicy `json:"cdnPolicy,omitempty"` // CircuitBreakers: Settings controlling the volume of connections to a // backend service. If not set, this feature is considered // disabled. // // 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. CircuitBreakers *CircuitBreakers `json:"circuitBreakers,omitempty"` ConnectionDraining *ConnectionDraining `json:"connectionDraining,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 HTTP/S load balancer should // add to proxied requests. CustomRequestHeaders []string `json:"customRequestHeaders,omitempty"` // Description: An optional description of this resource. Provide this // property when you create the resource. Description string `json:"description,omitempty"` // EnableCDN: If true, enables Cloud CDN for the backend service. Only // applicable if the loadBalancingScheme is EXTERNAL and the protocol is // HTTP or HTTPS. EnableCDN bool `json:"enableCDN,omitempty"` // FailoverPolicy: Applicable only to Failover for Internal TCP/UDP Load // Balancing. Requires at least one backend instance group to be defined // as a backup (failover) backend. 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 HttpHealthCheck or // HttpsHealthCheck resource for health checking this BackendService. // Currently at most one health check can be specified, and a health // check is required for Compute Engine backend services. A health check // must not be specified for App Engine backend and Cloud Function // backend. // // For internal load balancing, a URL to a HealthCheck resource must be // specified instead. HealthChecks []string `json:"healthChecks,omitempty"` 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. Choose // EXTERNAL for load balancers that receive traffic from external // clients. Choose INTERNAL for Internal TCP/UDP Load Balancing. Choose // INTERNAL_MANAGED for Internal HTTP(S) Load Balancing. Choose // INTERNAL_SELF_MANAGED for Traffic Director. A backend service created // for one type of load balancing cannot be used with another. For more // information, refer to Choosing a load balancer. // // Possible values: // "EXTERNAL" // "INTERNAL" // "INTERNAL_MANAGED" // "INTERNAL_SELF_MANAGED" // "INVALID_LOAD_BALANCING_SCHEME" LoadBalancingScheme string `json:"loadBalancingScheme,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, refer to 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. // // Possible values: // "INVALID_LB_POLICY" // "LEAST_REQUEST" // "MAGLEV" // "ORIGINAL_DESTINATION" // "RANDOM" // "RING_HASH" // "ROUND_ROBIN" 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"` // 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 spcified when the load balancing // scheme is set to INTERNAL. Network string `json:"network,omitempty"` // OutlierDetection: Settings controlling the eviction of unhealthy // hosts from the load balancing pool for the backend service. If not // set, this feature is considered disabled. // // 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. OutlierDetection *OutlierDetection `json:"outlierDetection,omitempty"` // Port: Deprecated in favor of portName. The TCP port to connect on the // backend. The default value is 80. // // This cannot be used if the loadBalancingScheme is INTERNAL (Internal // TCP/UDP Load Balancing). 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. Required // when the loadBalancingScheme is EXTERNAL and the backends are // instance groups. The named port must be defined on each backend // instance group. This parameter has no meaning if the backends are // NEGs. // // // // Must be omitted when the loadBalancingScheme is INTERNAL (Internal // TCP/UDP Load Blaancing). PortName string `json:"portName,omitempty"` // Protocol: The protocol this BackendService uses to communicate with // backends. // // Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, or UDP, depending // on the chosen load balancer or Traffic Director configuration. Refer // to the documentation for the load balancer or for Traffic Director // for more information. // // Possible values: // "HTTP" // "HTTP2" // "HTTPS" // "SSL" // "TCP" // "UDP" 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 policy that // applies to this backend service. 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. SecuritySettings *SecuritySettings `json:"securitySettings,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"` // SessionAffinity: Type of session affinity to use. The default is // NONE. Session affinity is not applicable if the --protocol is // UDP. // // When the loadBalancingScheme is EXTERNAL, possible values are NONE, // CLIENT_IP, or GENERATED_COOKIE. You can use GENERATED_COOKIE if the // protocol is HTTP or HTTPS. // // When the loadBalancingScheme is INTERNAL, possible values are NONE, // CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. // // When the loadBalancingScheme is INTERNAL_SELF_MANAGED, possible // values are NONE, CLIENT_IP, GENERATED_COOKIE, HEADER_FIELD, or // HTTP_COOKIE. // // Possible values: // "CLIENT_IP" // "CLIENT_IP_PORT_PROTO" // "CLIENT_IP_PROTO" // "GENERATED_COOKIE" // "HEADER_FIELD" // "HTTP_COOKIE" // "NONE" SessionAffinity string `json:"sessionAffinity,omitempty"` // TimeoutSec: The backend service timeout has a different meaning // depending on the type of load balancer. For more information read, // Backend service settings The default is 30 seconds. TimeoutSec int64 `json:"timeoutSec,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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
BackendService: Represents a Backend Service resource.
A backend service contains configuration values for Google Cloud Platform load balancing services.
For more information, read Backend Services.
(== resource_for v1.backendService ==) (== resource_for beta.backendService ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*BackendServiceAggregatedListWarningData) MarshalJSON ¶
func (s *BackendServiceAggregatedListWarningData) MarshalJSON() ([]byte, error)
type BackendServiceCdnPolicy ¶
type BackendServiceCdnPolicy struct { // CacheKeyPolicy: The CacheKeyPolicy for this CdnPolicy. CacheKeyPolicy *CacheKeyPolicy `json:"cacheKeyPolicy,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. "CacheKeyPolicy") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CacheKeyPolicy") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
BackendServiceCdnPolicy: Message containing Cloud CDN configuration for a backend service.
func (*BackendServiceCdnPolicy) MarshalJSON ¶
func (s *BackendServiceCdnPolicy) MarshalJSON() ([]byte, error)
type BackendServiceFailoverPolicy ¶
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: Applicable only to Failover for Internal // TCP/UDP Load Balancing. 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. // // The default is false. DropTrafficIfUnhealthy bool `json:"dropTrafficIfUnhealthy,omitempty"` // FailoverRatio: Applicable only to Failover for Internal TCP/UDP Load // Balancing. 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. 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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
func (*BackendServiceFailoverPolicy) MarshalJSON ¶
func (s *BackendServiceFailoverPolicy) MarshalJSON() ([]byte, error)
func (*BackendServiceFailoverPolicy) UnmarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*BackendServiceGroupHealth) MarshalJSON ¶
func (s *BackendServiceGroupHealth) MarshalJSON() ([]byte, error)
type BackendServiceIAP ¶
type BackendServiceIAP struct { Enabled bool `json:"enabled,omitempty"` Oauth2ClientId string `json:"oauth2ClientId,omitempty"` // Oauth2ClientInfo: [Input Only] OAuth client info required to generate // client id to be used for IAP. Oauth2ClientInfo *BackendServiceIAPOAuth2ClientInfo `json:"oauth2ClientInfo,omitempty"` 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
BackendServiceIAP: Identity-Aware Proxy
func (*BackendServiceIAP) MarshalJSON ¶
func (s *BackendServiceIAP) MarshalJSON() ([]byte, error)
type BackendServiceIAPOAuth2ClientInfo ¶
type BackendServiceIAPOAuth2ClientInfo struct { // ApplicationName: Application name to be used in OAuth consent screen. ApplicationName string `json:"applicationName,omitempty"` // ClientName: Name of the client to be generated. Optional - If not // provided, the name will be autogenerated by the backend. ClientName string `json:"clientName,omitempty"` // DeveloperEmailAddress: Developer's information to be used in OAuth // consent screen. DeveloperEmailAddress string `json:"developerEmailAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "ApplicationName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApplicationName") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*BackendServiceIAPOAuth2ClientInfo) MarshalJSON ¶
func (s *BackendServiceIAPOAuth2ClientInfo) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
BackendServiceList: Contains a list of BackendService resources.
func (*BackendServiceList) MarshalJSON ¶
func (s *BackendServiceList) 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*BackendServiceListWarningData) MarshalJSON ¶
func (s *BackendServiceListWarningData) MarshalJSON() ([]byte, error)
type BackendServiceLogConfig ¶
type BackendServiceLogConfig struct { // Enable: This field denotes whether to enable logging for the load // balancer traffic served by this backend service. Enable bool `json:"enable,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
BackendServiceLogConfig: The available logging options for the load balancer traffic served by this backend service.
func (*BackendServiceLogConfig) MarshalJSON ¶
func (s *BackendServiceLogConfig) MarshalJSON() ([]byte, error)
func (*BackendServiceLogConfig) UnmarshalJSON ¶
func (s *BackendServiceLogConfig) UnmarshalJSON(data []byte) error
type BackendServiceReference ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*BackendServiceReference) MarshalJSON ¶
func (s *BackendServiceReference) 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendServicesAddSignedUrlKeyCall) Do ¶
func (c *BackendServicesAddSignedUrlKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendServices.addSignedUrlKey" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*BackendServicesAddSignedUrlKeyCall) Header ¶
func (c *BackendServicesAddSignedUrlKeyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendServicesAggregatedListCall) Do ¶
func (c *BackendServicesAggregatedListCall) Do(opts ...googleapi.CallOption) (*BackendServiceAggregatedList, error)
Do executes the "compute.backendServices.aggregatedList" call. Exactly one of *BackendServiceAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*BackendServicesAggregatedListCall) Header ¶
func (c *BackendServicesAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BackendServicesAggregatedListCall) IfNoneMatch ¶
func (c *BackendServicesAggregatedListCall) IfNoneMatch(entityTag string) *BackendServicesAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendServicesDeleteCall) Do ¶
func (c *BackendServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendServices.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*BackendServicesDeleteCall) Header ¶
func (c *BackendServicesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendServicesDeleteSignedUrlKeyCall) Do ¶
func (c *BackendServicesDeleteSignedUrlKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendServices.deleteSignedUrlKey" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*BackendServicesDeleteSignedUrlKeyCall) Header ¶
func (c *BackendServicesDeleteSignedUrlKeyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendServicesGetCall) Do ¶
func (c *BackendServicesGetCall) Do(opts ...googleapi.CallOption) (*BackendService, error)
Do executes the "compute.backendServices.get" call. Exactly one of *BackendService or error will be non-nil. 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 information.
func (*BackendServicesGetCall) Header ¶
func (c *BackendServicesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BackendServicesGetCall) IfNoneMatch ¶
func (c *BackendServicesGetCall) IfNoneMatch(entityTag string) *BackendServicesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendServicesGetHealthCall) Do ¶
func (c *BackendServicesGetHealthCall) Do(opts ...googleapi.CallOption) (*BackendServiceGroupHealth, error)
Do executes the "compute.backendServices.getHealth" call. Exactly one of *BackendServiceGroupHealth or error will be non-nil. 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 information.
func (*BackendServicesGetHealthCall) Header ¶
func (c *BackendServicesGetHealthCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendServicesInsertCall) Do ¶
func (c *BackendServicesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendServices.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*BackendServicesInsertCall) Header ¶
func (c *BackendServicesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendServicesListCall) Do ¶
func (c *BackendServicesListCall) Do(opts ...googleapi.CallOption) (*BackendServiceList, error)
Do executes the "compute.backendServices.list" call. Exactly one of *BackendServiceList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*BackendServicesListCall) Header ¶
func (c *BackendServicesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BackendServicesListCall) IfNoneMatch ¶
func (c *BackendServicesListCall) IfNoneMatch(entityTag string) *BackendServicesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendServicesPatchCall) Do ¶
func (c *BackendServicesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendServices.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*BackendServicesPatchCall) Header ¶
func (c *BackendServicesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*BackendServicesService) Delete ¶
func (r *BackendServicesService) Delete(project string, backendService string) *BackendServicesDeleteCall
Delete: Deletes the specified BackendService resource. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/delete
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. (== suppress_warning http-rest-shadowed ==)
func (*BackendServicesService) Get ¶
func (r *BackendServicesService) Get(project string, backendService string) *BackendServicesGetCall
Get: Returns the specified BackendService resource. Gets a list of available backend services. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/get
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/getHealth
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. There are several restrictions and guidelines to keep in mind when creating a backend service. Read Restrictions and Guidelines for more information. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/insert
func (*BackendServicesService) List ¶
func (r *BackendServicesService) List(project string) *BackendServicesListCall
List: Retrieves the list of BackendService resources available to the specified project. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/list
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. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/patch
func (*BackendServicesService) SetSecurityPolicy ¶
func (r *BackendServicesService) SetSecurityPolicy(project string, backendService string, securitypolicyreference *SecurityPolicyReference) *BackendServicesSetSecurityPolicyCall
SetSecurityPolicy: Sets the security policy for the specified backend service. (== suppress_warning http-rest-shadowed ==)
func (*BackendServicesService) TestIamPermissions ¶
func (r *BackendServicesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *BackendServicesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/update
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendServicesSetSecurityPolicyCall) Do ¶
func (c *BackendServicesSetSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendServices.setSecurityPolicy" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*BackendServicesSetSecurityPolicyCall) Header ¶
func (c *BackendServicesSetSecurityPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 ¶
type BackendServicesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesTestIamPermissionsCall) Context ¶
func (c *BackendServicesTestIamPermissionsCall) Context(ctx context.Context) *BackendServicesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendServicesTestIamPermissionsCall) Do ¶
func (c *BackendServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.backendServices.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 ¶
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 information.
func (*BackendServicesTestIamPermissionsCall) Header ¶
func (c *BackendServicesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BackendServicesUpdateCall) Do ¶
func (c *BackendServicesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.backendServices.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*BackendServicesUpdateCall) Header ¶
func (c *BackendServicesUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.7.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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*BfdPacket) MarshalJSON ¶ added in v0.7.0
type BfdStatus ¶ added in v0.7.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"` // EchoPacketCounts: Echo packet counts for the current BFD session. EchoPacketCounts *BfdStatusPacketCounts `json:"echoPacketCounts,omitempty"` // EchoPacketIntervals: Inter-packet time interval statistics for echo // packets. EchoPacketIntervals []*PacketIntervals `json:"echoPacketIntervals,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"` // NegotiatedLocalEchoTxIntervalMs: Negotiated transmit interval for // echo packets. NegotiatedLocalEchoTxIntervalMs int64 `json:"negotiatedLocalEchoTxIntervalMs,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"` // UsingEchoMode: Indicates if echo mode is currently being used. UsingEchoMode bool `json:"usingEchoMode,omitempty"` // ForceSendFields is a list of field names (e.g. // "BfdSessionInitializationMode") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
BfdStatus: Next free: 15
func (*BfdStatus) MarshalJSON ¶ added in v0.7.0
type BfdStatusPacketCounts ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*BfdStatusPacketCounts) MarshalJSON ¶ added in v0.7.0
func (s *BfdStatusPacketCounts) MarshalJSON() ([]byte, error)
type Binding ¶
type Binding struct { // Condition: The condition that is associated with this binding. NOTE: // An unsatisfied condition will not allow user access via current // binding. Different bindings, including their conditions, are examined // independently. Condition *Expr `json:"condition,omitempty"` // Members: Specifies the identities requesting access for a Cloud // Platform 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. // // * `user:{emailid}`: An email address that represents a specific // Google account. For example, `alice@example.com` . // // // // * `serviceAccount:{emailid}`: An email address that represents a // service account. For example, // `my-other-app@appspot.gserviceaccount.com`. // // * `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`. Members []string `json:"members,omitempty"` // Role: Role that is assigned to `members`. For example, // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Binding: Associates `members` with a `role`.
func (*Binding) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 CallCredentials ¶ added in v0.2.0
type CallCredentials struct { // CallCredentialType: The type of call credentials to use for GRPC // requests to the SDS server. This field can be set to one of the // following: // - GCE_VM: The local GCE VM service account credentials are used to // access the SDS server. // - FROM_PLUGIN: Custom authenticator credentials are used to access // the SDS server. // // Possible values: // "FROM_PLUGIN" // "GCE_VM" // "INVALID" CallCredentialType string `json:"callCredentialType,omitempty"` // FromPlugin: Custom authenticator credentials. Valid if // callCredentialType is FROM_PLUGIN. FromPlugin *MetadataCredentialsFromPlugin `json:"fromPlugin,omitempty"` // ForceSendFields is a list of field names (e.g. "CallCredentialType") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CallCredentialType") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
CallCredentials: gRPC call credentials to access the SDS server.
func (*CallCredentials) MarshalJSON ¶ added in v0.2.0
func (s *CallCredentials) MarshalJSON() ([]byte, error)
type ChannelCredentials ¶ added in v0.2.0
type ChannelCredentials struct { // Certificates: The call credentials to access the SDS server. Certificates *TlsCertificatePaths `json:"certificates,omitempty"` // ChannelCredentialType: The channel credentials to access the SDS // server. This field can be set to one of the following: CERTIFICATES: // Use TLS certificates to access the SDS server. GCE_VM: Use local GCE // VM credentials to access the SDS server. // // Possible values: // "CERTIFICATES" // "GCE_VM" // "INVALID" ChannelCredentialType string `json:"channelCredentialType,omitempty"` // ForceSendFields is a list of field names (e.g. "Certificates") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Certificates") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ChannelCredentials: gRPC channel credentials to access the SDS server.
func (*ChannelCredentials) MarshalJSON ¶ added in v0.2.0
func (s *ChannelCredentials) MarshalJSON() ([]byte, error)
type CircuitBreakers ¶ added in v0.2.0
type CircuitBreakers struct { // ConnectTimeout: The timeout for new network connections to hosts. ConnectTimeout *Duration `json:"connectTimeout,omitempty"` // MaxConnections: The maximum number of connections to the backend // service. If not specified, there is no limit. MaxConnections int64 `json:"maxConnections,omitempty"` // MaxPendingRequests: The maximum number of pending requests allowed to // the backend service. If not specified, there is no limit. 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. MaxRequestsPerConnection int64 `json:"maxRequestsPerConnection,omitempty"` // MaxRetries: The maximum number of parallel retries allowed to the // backend cluster. If not specified, the default is 1. MaxRetries int64 `json:"maxRetries,omitempty"` // ForceSendFields is a list of field names (e.g. "ConnectTimeout") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ConnectTimeout") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
CircuitBreakers: Settings controlling the volume of connections to a backend service.
func (*CircuitBreakers) MarshalJSON ¶ added in v0.2.0
func (s *CircuitBreakers) MarshalJSON() ([]byte, error)
type ClientTlsSettings ¶ added in v0.2.0
type ClientTlsSettings struct { // ClientTlsContext: Configures the mechanism to obtain client-side // security certificates and identity information. This field is only // applicable when mode is set to MUTUAL. ClientTlsContext *TlsContext `json:"clientTlsContext,omitempty"` // Mode: Indicates whether connections to this port should be secured // using TLS. The value of this field determines how TLS is enforced. // This can be set to one of the following values: DISABLE: Do not setup // a TLS connection to the backends. SIMPLE: Originate a TLS connection // to the backends. MUTUAL: Secure connections to the backends using // mutual TLS by presenting client certificates for authentication. // // Possible values: // "DISABLE" // "INVALID" // "MUTUAL" // "SIMPLE" Mode string `json:"mode,omitempty"` // Sni: SNI string to present to the server during TLS handshake. This // field is applicable only when mode is SIMPLE or MUTUAL. Sni string `json:"sni,omitempty"` // SubjectAltNames: A list of alternate names to verify the subject // identity in the certificate.If specified, the proxy will verify that // the server certificate's subject alt name matches one of the // specified values. This field is applicable only when mode is SIMPLE // or MUTUAL. SubjectAltNames []string `json:"subjectAltNames,omitempty"` // ForceSendFields is a list of field names (e.g. "ClientTlsContext") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClientTlsContext") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ClientTlsSettings: The client side authentication settings for connection originating from the backend service.
func (*ClientTlsSettings) MarshalJSON ¶ added in v0.2.0
func (s *ClientTlsSettings) MarshalJSON() ([]byte, error)
type Commitment ¶
type Commitment struct { // 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"` // 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"` // LicenseResources: A list of commitment amounts for particular // licenses. LicenseResources []*LicenseResourceCommitment `json:"licenseResources,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 reservations in 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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" // "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. // // Possible values: // "COMPUTE_OPTIMIZED" // "GENERAL_PURPOSE" // "GENERAL_PURPOSE_E2" // "GENERAL_PURPOSE_N2" // "GENERAL_PURPOSE_N2D" // "MEMORY_OPTIMIZED" // "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. "Category") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Category") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== resource_for beta.regionCommitments ==) (== resource_for v1.regionCommitments ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*CommitmentsScopedListWarningData) MarshalJSON ¶
func (s *CommitmentsScopedListWarningData) MarshalJSON() ([]byte, error)
type Condition ¶
type Condition struct { // Iam: Trusted attributes supplied by the IAM system. // // Possible values: // "APPROVER" // "ATTRIBUTION" // "AUTHORITY" // "CREDENTIALS_TYPE" // "JUSTIFICATION_TYPE" // "NO_ATTR" // "SECURITY_REALM" Iam string `json:"iam,omitempty"` // Op: An operator to apply the subject with. // // Possible values: // "DISCHARGED" // "EQUALS" // "IN" // "NOT_EQUALS" // "NOT_IN" // "NO_OP" Op string `json:"op,omitempty"` // Svc: Trusted attributes discharged by the service. Svc string `json:"svc,omitempty"` // Sys: Trusted attributes supplied by any service that owns resources // and uses the IAM system for access control. // // Possible values: // "IP" // "NAME" // "NO_ATTR" // "REGION" // "SERVICE" Sys string `json:"sys,omitempty"` // Values: The objects of the condition. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Condition: A condition to be met.
func (*Condition) MarshalJSON ¶
type ConfidentialInstanceConfig ¶ added in v0.12.0
type ConfidentialInstanceConfig struct { // EnableConfidentialCompute: Defines whether the instance should have // confidential compute enabled. EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"` // ForceSendFields is a list of field names (e.g. // "EnableConfidentialCompute") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "EnableConfidentialCompute") to include in API requests with the JSON // null value. By default, fields with empty values are omitted from API // requests. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
ConfidentialInstanceConfig: A set of Confidential Instance options.
func (*ConfidentialInstanceConfig) MarshalJSON ¶ added in v0.12.0
func (s *ConfidentialInstanceConfig) MarshalJSON() ([]byte, error)
type ConnectionDraining ¶
type ConnectionDraining struct { // DrainingTimeoutSec: The amount of time in seconds to allow existing // connections to persist while on unhealthy backend VMs. Only // applicable if the protocol is not UDP. The valid range is [0, 3600]. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ConnectionDraining: Message containing connection draining configuration.
func (*ConnectionDraining) MarshalJSON ¶
func (s *ConnectionDraining) MarshalJSON() ([]byte, error)
type ConsistentHashLoadBalancerSettings ¶ added in v0.2.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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ConsistentHashLoadBalancerSettings: This message defines settings for a consistent hash style load balancer.
func (*ConsistentHashLoadBalancerSettings) MarshalJSON ¶ added in v0.2.0
func (s *ConsistentHashLoadBalancerSettings) MarshalJSON() ([]byte, error)
type ConsistentHashLoadBalancerSettingsHttpCookie ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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.2.0
func (s *ConsistentHashLoadBalancerSettingsHttpCookie) MarshalJSON() ([]byte, error)
type CorsPolicy ¶ added in v0.2.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 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 the regualar expression patterns that // match allowed origins. For regular expression grammar please see // en.cppreference.com/w/cpp/regex/ecmascript // An origin is allowed if it matches either allow_origins or // allow_origin_regex. AllowOriginRegexes []string `json:"allowOriginRegexes,omitempty"` // AllowOrigins: Specifies the list of origins that will be allowed to // do CORS requests. // An origin is allowed if it matches either allow_origins or // allow_origin_regex. AllowOrigins []string `json:"allowOrigins,omitempty"` // Disabled: If true, specifies the CORS policy is disabled. The default // value of 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 the results of a preflight request can be // cached. This translates to the content for 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
CorsPolicy: The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing
func (*CorsPolicy) MarshalJSON ¶ added in v0.2.0
func (s *CorsPolicy) MarshalJSON() ([]byte, error)
type CustomerEncryptionKey ¶
type CustomerEncryptionKey struct { // KmsKeyName: The name of the encryption key that is stored in Google // Cloud KMS. 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. 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. 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. // // The key must meet the following requirements before you can provide // it to Compute Engine: // - The key is wrapped using a RSA public key certificate provided by // Google. // - 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-ingre // ss.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CustomerEncryptionKey: Represents a customer-supplied encryption key
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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DeprecationStatus: Deprecation status for a public resource.
func (*DeprecationStatus) MarshalJSON ¶
func (s *DeprecationStatus) MarshalJSON() ([]byte, error)
type Disk ¶
type Disk 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"` // DiskEncryptionKey: Encrypts the disk using a customer-supplied // encryption key. // // After you encrypt a disk with a customer-supplied key, you must // provide the same key if you use the disk later (e.g. to create a disk // snapshot, to create a disk image, to create a machine image, or to // attach the disk to a virtual machine). // // Customer-supplied encryption keys do not protect access to metadata // of the disk. // // If you do not provide an encryption key when creating the disk, 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. DiskEncryptionKey *CustomerEncryptionKey `json:"diskEncryptionKey,omitempty"` // EraseWindowsVssSignature: Specifies whether the disk restored from a // source snapshot should erase Windows specific VSS signature. EraseWindowsVssSignature bool `json:"eraseWindowsVssSignature,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"` // MultiWriter: Indicates whether or not the disk can be read/write // attached to more than one instance. MultiWriter bool `json:"multiWriter,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"` // PhysicalBlockSizeBytes: Physical block size of the persistent disk, // in bytes. If not present in a request, a default value is used. // Currently supported sizes are 4096 and 16384, 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"` // 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"` // 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"` // SizeGb: Size of the persistent disk, specified in GB. You can specify // this field when creating a persistent disk using the sourceImage or // sourceSnapshot parameter, or specify it alone to create an empty // persistent disk. // // If you specify this field along with sourceImage or sourceSnapshot, // the value of sizeGb must not be less than the size of the sourceImage // or the size of the snapshot. Acceptable values are 1 to 65536, // inclusive. SizeGb int64 `json:"sizeGb,omitempty,string"` // 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 // - projects/project/zones/zone/disks/disk // - zones/zone/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 // // // Alternati // vely, 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"` // 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"` // 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" // "DELETING" // "FAILED" // "READY" // "RESTORING" Status string `json:"status,omitempty"` // StorageType: [Deprecated] Storage type of the persistent disk. // // Possible values: // "HDD" // "SSD" StorageType string `json:"storageType,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-standard or pd-ssd 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. "CreationTimestamp") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
Disk: Represents a Persistent Disk resource.
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. (== resource_for beta.disks ==) (== resource_for v1.disks ==) (== resource_for v1.regionDisks ==) (== resource_for beta.regionDisks ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*DiskAggregatedListWarningData) MarshalJSON ¶
func (s *DiskAggregatedListWarningData) 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" // "BLANK" // "CUSTOM_IMAGE" // "DEFAULT" // "DO_NOT_INCLUDE" // "SOURCE_IMAGE" // "SOURCE_IMAGE_FAMILY" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*DiskMoveRequest) MarshalJSON ¶
func (s *DiskMoveRequest) 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
DiskType: Represents a Disk Type resource.
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. (== resource_for beta.diskTypes ==) (== resource_for v1.diskTypes ==) (== resource_for v1.regionDiskTypes ==) (== resource_for beta.regionDiskTypes ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DiskTypesAggregatedListCall) Do ¶
func (c *DiskTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*DiskTypeAggregatedList, error)
Do executes the "compute.diskTypes.aggregatedList" call. Exactly one of *DiskTypeAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*DiskTypesAggregatedListCall) Header ¶
func (c *DiskTypesAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*DiskTypesAggregatedListCall) IfNoneMatch ¶
func (c *DiskTypesAggregatedListCall) IfNoneMatch(entityTag string) *DiskTypesAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DiskTypesGetCall) Do ¶
func (c *DiskTypesGetCall) Do(opts ...googleapi.CallOption) (*DiskType, error)
Do executes the "compute.diskTypes.get" call. Exactly one of *DiskType or error will be non-nil. 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 information.
func (*DiskTypesGetCall) Header ¶
func (c *DiskTypesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*DiskTypesGetCall) IfNoneMatch ¶
func (c *DiskTypesGetCall) IfNoneMatch(entityTag string) *DiskTypesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DiskTypesListCall) Do ¶
func (c *DiskTypesListCall) Do(opts ...googleapi.CallOption) (*DiskTypeList, error)
Do executes the "compute.diskTypes.list" call. Exactly one of *DiskTypeList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*DiskTypesListCall) Header ¶
func (c *DiskTypesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*DiskTypesListCall) IfNoneMatch ¶
func (c *DiskTypesListCall) IfNoneMatch(entityTag string) *DiskTypesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/diskTypes/aggregatedList
func (*DiskTypesService) Get ¶
func (r *DiskTypesService) Get(project string, zone string, diskType string) *DiskTypesGetCall
Get: Returns the specified disk type. Gets a list of available disk types by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/diskTypes/get
func (*DiskTypesService) List ¶
func (r *DiskTypesService) List(project string, zone string) *DiskTypesListCall
List: Retrieves a list of disk types available to the specified project. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/diskTypes/list
type DisksAddResourcePoliciesCall ¶
type DisksAddResourcePoliciesCall struct {
// contains filtered or unexported fields
}
func (*DisksAddResourcePoliciesCall) Context ¶
func (c *DisksAddResourcePoliciesCall) Context(ctx context.Context) *DisksAddResourcePoliciesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DisksAddResourcePoliciesCall) Do ¶
func (c *DisksAddResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.addResourcePolicies" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*DisksAddResourcePoliciesCall) Header ¶
func (c *DisksAddResourcePoliciesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*DisksAddResourcePoliciesCall) RequestId ¶
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 ¶
type DisksAddResourcePoliciesRequest struct { // ResourcePolicies: Resource policies to be added to this disk. // Currently you can only specify one policy here. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*DisksAddResourcePoliciesRequest) MarshalJSON ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DisksAggregatedListCall) Do ¶
func (c *DisksAggregatedListCall) Do(opts ...googleapi.CallOption) (*DiskAggregatedList, error)
Do executes the "compute.disks.aggregatedList" call. Exactly one of *DiskAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*DisksAggregatedListCall) Header ¶
func (c *DisksAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*DisksAggregatedListCall) IfNoneMatch ¶
func (c *DisksAggregatedListCall) IfNoneMatch(entityTag string) *DisksAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DisksCreateSnapshotCall) Do ¶
func (c *DisksCreateSnapshotCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.createSnapshot" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*DisksCreateSnapshotCall) GuestFlush ¶
func (c *DisksCreateSnapshotCall) GuestFlush(guestFlush bool) *DisksCreateSnapshotCall
GuestFlush sets the optional parameter "guestFlush": [Input Only] Specifies to create an application consistent snapshot by informing the OS to prepare for the snapshot process. Currently only supported on Windows instances using the Volume Shadow Copy Service (VSS).
func (*DisksCreateSnapshotCall) Header ¶
func (c *DisksCreateSnapshotCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DisksDeleteCall) Do ¶
func (c *DisksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*DisksDeleteCall) Header ¶
func (c *DisksDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DisksGetCall) Do ¶
func (c *DisksGetCall) Do(opts ...googleapi.CallOption) (*Disk, error)
Do executes the "compute.disks.get" call. Exactly one of *Disk or error will be non-nil. 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 information.
func (*DisksGetCall) Header ¶
func (c *DisksGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*DisksGetCall) IfNoneMatch ¶
func (c *DisksGetCall) IfNoneMatch(entityTag string) *DisksGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DisksGetIamPolicyCall) Do ¶
func (c *DisksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.disks.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*DisksGetIamPolicyCall) Header ¶
func (c *DisksGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*DisksGetIamPolicyCall) IfNoneMatch ¶
func (c *DisksGetIamPolicyCall) IfNoneMatch(entityTag string) *DisksGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*DisksGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DisksInsertCall) Do ¶
func (c *DisksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*DisksInsertCall) Header ¶
func (c *DisksInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DisksListCall) Do ¶
func (c *DisksListCall) Do(opts ...googleapi.CallOption) (*DiskList, error)
Do executes the "compute.disks.list" call. Exactly one of *DiskList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*DisksListCall) Header ¶
func (c *DisksListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*DisksListCall) IfNoneMatch ¶
func (c *DisksListCall) IfNoneMatch(entityTag string) *DisksListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
type DisksRemoveResourcePoliciesCall ¶
type DisksRemoveResourcePoliciesCall struct {
// contains filtered or unexported fields
}
func (*DisksRemoveResourcePoliciesCall) Context ¶
func (c *DisksRemoveResourcePoliciesCall) Context(ctx context.Context) *DisksRemoveResourcePoliciesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DisksRemoveResourcePoliciesCall) Do ¶
func (c *DisksRemoveResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.removeResourcePolicies" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*DisksRemoveResourcePoliciesCall) Header ¶
func (c *DisksRemoveResourcePoliciesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*DisksRemoveResourcePoliciesCall) RequestId ¶
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 ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*DisksRemoveResourcePoliciesRequest) MarshalJSON ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DisksResizeCall) Do ¶
func (c *DisksResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.resize" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*DisksResizeCall) Header ¶
func (c *DisksResizeCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*DisksService) AggregatedList ¶
func (r *DisksService) AggregatedList(project string) *DisksAggregatedListCall
AggregatedList: Retrieves an aggregated list of persistent disks. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/disks/aggregatedList
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/disks/createSnapshot
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/disks/delete
func (*DisksService) Get ¶
func (r *DisksService) Get(project string, zone string, disk string) *DisksGetCall
Get: Returns a specified persistent disk. Gets a list of available persistent disks by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/disks/get
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. (== suppress_warning http-rest-shadowed ==)
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 with a sourceImage, a sourceSnapshot, 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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/disks/insert
func (*DisksService) List ¶
func (r *DisksService) List(project string, zone string) *DisksListCall
List: Retrieves a list of persistent disks contained within the specified zone. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/disks/list
func (*DisksService) RemoveResourcePolicies ¶
func (r *DisksService) RemoveResourcePolicies(project string, zone string, disk string, disksremoveresourcepoliciesrequest *DisksRemoveResourcePoliciesRequest) *DisksRemoveResourcePoliciesCall
RemoveResourcePolicies: Removes resource policies from a disk. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DisksSetIamPolicyCall) Do ¶
func (c *DisksSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.disks.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*DisksSetIamPolicyCall) Header ¶
func (c *DisksSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DisksSetLabelsCall) Do ¶
func (c *DisksSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.disks.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*DisksSetLabelsCall) Header ¶
func (c *DisksSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DisksTestIamPermissionsCall) Do ¶
func (c *DisksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.disks.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 information.
func (*DisksTestIamPermissionsCall) Header ¶
func (c *DisksTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type DisplayDevice ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DisplayDevice: A set of Display Device options
func (*DisplayDevice) MarshalJSON ¶
func (s *DisplayDevice) MarshalJSON() ([]byte, error)
type DistributionPolicy ¶
type DistributionPolicy struct { // TargetShape: The shape to which the group converges either // proactively or on resize events (depending on the value set in // updatePolicy.instanceRedistributionType). The possible values are // EVEN and ANY. For EVEN the group attempts to preserve a balanced // number of instances across zones. For ANY the group creates new // instances where resources are available to fulfill the request; as a // result, instances may be distributed unevenly across zones in this // mode. The default value is EVEN. // // Possible values: // "ANY" // "EVEN" TargetShape string `json:"targetShape,omitempty"` // Zones: Zones where the regional managed instance group will create // and manage 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*DistributionPolicyZoneConfiguration) MarshalJSON ¶
func (s *DistributionPolicyZoneConfiguration) MarshalJSON() ([]byte, error)
type Duration ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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.2.0
type ExchangedPeeringRoute ¶
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" // "STATIC_PEERING_ROUTE" // "SUBNET_PEERING_ROUTE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ExchangedPeeringRoute) MarshalJSON ¶
func (s *ExchangedPeeringRoute) MarshalJSON() ([]byte, error)
type ExchangedPeeringRoutesList ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ExchangedPeeringRoutesList) MarshalJSON ¶
func (s *ExchangedPeeringRoutesList) MarshalJSON() ([]byte, error)
type ExchangedPeeringRoutesListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ExchangedPeeringRoutesListWarning: [Output Only] Informational warning message.
func (*ExchangedPeeringRoutesListWarning) MarshalJSON ¶
func (s *ExchangedPeeringRoutesListWarning) MarshalJSON() ([]byte, error)
type ExchangedPeeringRoutesListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ExchangedPeeringRoutesListWarningData) MarshalJSON ¶
func (s *ExchangedPeeringRoutesListWarningData) MarshalJSON() ([]byte, error)
type Expr ¶
type Expr struct { // Description: An 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. // // The application context of the containing message determines which // well-known feature set of CEL is supported. Expression string `json:"expression,omitempty"` // Location: An 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: An 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Expr: Represents an expression text. Example:
title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
func (*Expr) MarshalJSON ¶
type ExternalVpnGateway ¶ added in v0.2.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: List of interfaces for this 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 to apply to this ExternalVpnGateway resource. These // can be later modified by the setLabels method. Each label key/value // 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" // "SINGLE_IP_INTERNALLY_REDUNDANT" // "TWO_IPS_REDUNDANCY" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ExternalVpnGateway: 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 to your on-premises side or another Cloud provider's VPN gateway, you must create a external VPN gateway resource in GCP, which provides the information to GCP about your external VPN gateway.
func (*ExternalVpnGateway) MarshalJSON ¶ added in v0.2.0
func (s *ExternalVpnGateway) MarshalJSON() ([]byte, error)
type ExternalVpnGatewayInterface ¶ added in v0.2.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"` // ForceSendFields is a list of field names (e.g. "Id") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ExternalVpnGatewayInterface: The interface for the external VPN gateway.
func (*ExternalVpnGatewayInterface) MarshalJSON ¶ added in v0.2.0
func (s *ExternalVpnGatewayInterface) MarshalJSON() ([]byte, error)
type ExternalVpnGatewayList ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ExternalVpnGatewayList: Response to the list request, and contains a list of externalVpnGateways.
func (*ExternalVpnGatewayList) MarshalJSON ¶ added in v0.2.0
func (s *ExternalVpnGatewayList) MarshalJSON() ([]byte, error)
type ExternalVpnGatewayListWarning ¶ added in v0.2.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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ExternalVpnGatewayListWarning: [Output Only] Informational warning message.
func (*ExternalVpnGatewayListWarning) MarshalJSON ¶ added in v0.2.0
func (s *ExternalVpnGatewayListWarning) MarshalJSON() ([]byte, error)
type ExternalVpnGatewayListWarningData ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ExternalVpnGatewayListWarningData) MarshalJSON ¶ added in v0.2.0
func (s *ExternalVpnGatewayListWarningData) MarshalJSON() ([]byte, error)
type ExternalVpnGatewaysDeleteCall ¶ added in v0.2.0
type ExternalVpnGatewaysDeleteCall struct {
// contains filtered or unexported fields
}
func (*ExternalVpnGatewaysDeleteCall) Context ¶ added in v0.2.0
func (c *ExternalVpnGatewaysDeleteCall) Context(ctx context.Context) *ExternalVpnGatewaysDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ExternalVpnGatewaysDeleteCall) Do ¶ added in v0.2.0
func (c *ExternalVpnGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.externalVpnGateways.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.2.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 information.
func (*ExternalVpnGatewaysDeleteCall) Header ¶ added in v0.2.0
func (c *ExternalVpnGatewaysDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ExternalVpnGatewaysDeleteCall) RequestId ¶ added in v0.2.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.2.0
type ExternalVpnGatewaysGetCall struct {
// contains filtered or unexported fields
}
func (*ExternalVpnGatewaysGetCall) Context ¶ added in v0.2.0
func (c *ExternalVpnGatewaysGetCall) Context(ctx context.Context) *ExternalVpnGatewaysGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ExternalVpnGatewaysGetCall) Do ¶ added in v0.2.0
func (c *ExternalVpnGatewaysGetCall) Do(opts ...googleapi.CallOption) (*ExternalVpnGateway, error)
Do executes the "compute.externalVpnGateways.get" call. Exactly one of *ExternalVpnGateway or error will be non-nil. 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.2.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 information.
func (*ExternalVpnGatewaysGetCall) Header ¶ added in v0.2.0
func (c *ExternalVpnGatewaysGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ExternalVpnGatewaysGetCall) IfNoneMatch ¶ added in v0.2.0
func (c *ExternalVpnGatewaysGetCall) IfNoneMatch(entityTag string) *ExternalVpnGatewaysGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ExternalVpnGatewaysInsertCall ¶ added in v0.2.0
type ExternalVpnGatewaysInsertCall struct {
// contains filtered or unexported fields
}
func (*ExternalVpnGatewaysInsertCall) Context ¶ added in v0.2.0
func (c *ExternalVpnGatewaysInsertCall) Context(ctx context.Context) *ExternalVpnGatewaysInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ExternalVpnGatewaysInsertCall) Do ¶ added in v0.2.0
func (c *ExternalVpnGatewaysInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.externalVpnGateways.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.2.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 information.
func (*ExternalVpnGatewaysInsertCall) Header ¶ added in v0.2.0
func (c *ExternalVpnGatewaysInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ExternalVpnGatewaysInsertCall) RequestId ¶ added in v0.2.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.2.0
type ExternalVpnGatewaysListCall struct {
// contains filtered or unexported fields
}
func (*ExternalVpnGatewaysListCall) Context ¶ added in v0.2.0
func (c *ExternalVpnGatewaysListCall) Context(ctx context.Context) *ExternalVpnGatewaysListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ExternalVpnGatewaysListCall) Do ¶ added in v0.2.0
func (c *ExternalVpnGatewaysListCall) Do(opts ...googleapi.CallOption) (*ExternalVpnGatewayList, error)
Do executes the "compute.externalVpnGateways.list" call. Exactly one of *ExternalVpnGatewayList or error will be non-nil. 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.2.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 information.
func (*ExternalVpnGatewaysListCall) Filter ¶ added in v0.2.0
func (c *ExternalVpnGatewaysListCall) Filter(filter string) *ExternalVpnGatewaysListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*ExternalVpnGatewaysListCall) Header ¶ added in v0.2.0
func (c *ExternalVpnGatewaysListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ExternalVpnGatewaysListCall) IfNoneMatch ¶ added in v0.2.0
func (c *ExternalVpnGatewaysListCall) IfNoneMatch(entityTag string) *ExternalVpnGatewaysListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ExternalVpnGatewaysListCall) MaxResults ¶ added in v0.2.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.2.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.2.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.2.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.
type ExternalVpnGatewaysService ¶ added in v0.2.0
type ExternalVpnGatewaysService struct {
// contains filtered or unexported fields
}
func NewExternalVpnGatewaysService ¶ added in v0.2.0
func NewExternalVpnGatewaysService(s *Service) *ExternalVpnGatewaysService
func (*ExternalVpnGatewaysService) Delete ¶ added in v0.2.0
func (r *ExternalVpnGatewaysService) Delete(project string, externalVpnGateway string) *ExternalVpnGatewaysDeleteCall
Delete: Deletes the specified externalVpnGateway. (== suppress_warning http-rest-shadowed ==)
func (*ExternalVpnGatewaysService) Get ¶ added in v0.2.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. (== suppress_warning http-rest-shadowed ==)
func (*ExternalVpnGatewaysService) Insert ¶ added in v0.2.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. (== suppress_warning http-rest-shadowed ==)
func (*ExternalVpnGatewaysService) List ¶ added in v0.2.0
func (r *ExternalVpnGatewaysService) List(project string) *ExternalVpnGatewaysListCall
List: Retrieves the list of ExternalVpnGateway available to the specified project. (== suppress_warning http-rest-shadowed ==)
func (*ExternalVpnGatewaysService) SetLabels ¶ added in v0.2.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. (== suppress_warning http-rest-shadowed ==)
func (*ExternalVpnGatewaysService) TestIamPermissions ¶ added in v0.2.0
func (r *ExternalVpnGatewaysService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *ExternalVpnGatewaysTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type ExternalVpnGatewaysSetLabelsCall ¶ added in v0.2.0
type ExternalVpnGatewaysSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*ExternalVpnGatewaysSetLabelsCall) Context ¶ added in v0.2.0
func (c *ExternalVpnGatewaysSetLabelsCall) Context(ctx context.Context) *ExternalVpnGatewaysSetLabelsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ExternalVpnGatewaysSetLabelsCall) Do ¶ added in v0.2.0
func (c *ExternalVpnGatewaysSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.externalVpnGateways.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.2.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 information.
func (*ExternalVpnGatewaysSetLabelsCall) Header ¶ added in v0.2.0
func (c *ExternalVpnGatewaysSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ExternalVpnGatewaysTestIamPermissionsCall ¶ added in v0.2.0
type ExternalVpnGatewaysTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ExternalVpnGatewaysTestIamPermissionsCall) Context ¶ added in v0.2.0
func (c *ExternalVpnGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ExternalVpnGatewaysTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ExternalVpnGatewaysTestIamPermissionsCall) Do ¶ added in v0.2.0
func (c *ExternalVpnGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.externalVpnGateways.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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.2.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 information.
func (*ExternalVpnGatewaysTestIamPermissionsCall) Header ¶ added in v0.2.0
func (c *ExternalVpnGatewaysTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type FileContentBuffer ¶ added in v0.3.0
type FileContentBuffer struct { // Content: The raw content in the secure keys file. Content string `json:"content,omitempty"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*FileContentBuffer) MarshalJSON ¶ added in v0.3.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. Only IPv4 is // supported. DestinationRanges []string `json:"destinationRanges,omitempty"` // Direction: Direction of traffic to which this firewall applies, // either `INGRESS` or `EGRESS`. The default is `INGRESS`. For `INGRESS` // traffic, you cannot specify the destinationRanges field, and for // `EGRESS` traffic, you cannot specify the sourceRanges or sourceTags // fields. // // Possible values: // "EGRESS" // "INGRESS" 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"` // EnableLogging: Deprecated in favor of enable in LogConfig. This field // denotes whether to enable logging for a particular firewall rule. If // logging is enabled, logs will be exported to Stackdriver. EnableLogging bool `json:"enableLogging,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 // Stackdriver. 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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. Only IPv4 is 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
FirewallLogConfig: The available logging options for a firewall rule.
func (*FirewallLogConfig) MarshalJSON ¶
func (s *FirewallLogConfig) 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FirewallsDeleteCall) Do ¶
func (c *FirewallsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewalls.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*FirewallsDeleteCall) Header ¶
func (c *FirewallsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FirewallsGetCall) Do ¶
func (c *FirewallsGetCall) Do(opts ...googleapi.CallOption) (*Firewall, error)
Do executes the "compute.firewalls.get" call. Exactly one of *Firewall or error will be non-nil. 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 information.
func (*FirewallsGetCall) Header ¶
func (c *FirewallsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*FirewallsGetCall) IfNoneMatch ¶
func (c *FirewallsGetCall) IfNoneMatch(entityTag string) *FirewallsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FirewallsInsertCall) Do ¶
func (c *FirewallsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewalls.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*FirewallsInsertCall) Header ¶
func (c *FirewallsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FirewallsListCall) Do ¶
func (c *FirewallsListCall) Do(opts ...googleapi.CallOption) (*FirewallList, error)
Do executes the "compute.firewalls.list" call. Exactly one of *FirewallList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*FirewallsListCall) Header ¶
func (c *FirewallsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*FirewallsListCall) IfNoneMatch ¶
func (c *FirewallsListCall) IfNoneMatch(entityTag string) *FirewallsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FirewallsPatchCall) Do ¶
func (c *FirewallsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewalls.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*FirewallsPatchCall) Header ¶
func (c *FirewallsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/delete
func (*FirewallsService) Get ¶
func (r *FirewallsService) Get(project string, firewall string) *FirewallsGetCall
Get: Returns the specified firewall. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/get
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/insert
func (*FirewallsService) List ¶
func (r *FirewallsService) List(project string) *FirewallsListCall
List: Retrieves the list of firewall rules available to the specified project. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/list
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/patch
func (*FirewallsService) TestIamPermissions ¶
func (r *FirewallsService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *FirewallsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/update
type FirewallsTestIamPermissionsCall ¶
type FirewallsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*FirewallsTestIamPermissionsCall) Context ¶
func (c *FirewallsTestIamPermissionsCall) Context(ctx context.Context) *FirewallsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FirewallsTestIamPermissionsCall) Do ¶
func (c *FirewallsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.firewalls.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*FirewallsTestIamPermissionsCall) Fields ¶
func (c *FirewallsTestIamPermissionsCall) Fields(s ...googleapi.Field) *FirewallsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FirewallsTestIamPermissionsCall) Header ¶
func (c *FirewallsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FirewallsUpdateCall) Do ¶
func (c *FirewallsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.firewalls.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*FirewallsUpdateCall) Header ¶
func (c *FirewallsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 ¶
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 up. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
FixedOrPercent: Encapsulates numeric value that can be either absolute or relative.
func (*FixedOrPercent) MarshalJSON ¶
func (s *FixedOrPercent) MarshalJSON() ([]byte, error)
type ForwardingRule ¶
type ForwardingRule struct { // IPAddress: IP address that this forwarding rule serves. When a client // sends traffic to this IP address, the forwarding rule directs the // traffic to the target that you specify in the forwarding rule. // // If you don't specify a reserved IP address, an ephemeral IP address // is assigned. Methods for specifying an IP address: // // * IPv4 dotted decimal, as in `100.1.2.3` * Full 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 loadBalancingScheme and the forwarding rule's target determine // the type of IP address that you can use. For detailed information, // refer to [IP address // specifications](/load-balancing/docs/forwarding-rule-concepts#ip_addre // ss_specifications). IPAddress string `json:"IPAddress,omitempty"` // IPProtocol: The IP protocol to which this rule applies. Valid options // are TCP, UDP, ESP, AH, SCTP or ICMP. // // For Internal TCP/UDP Load Balancing, the load balancing scheme is // INTERNAL, and one of TCP or UDP are valid. For Traffic Director, the // load balancing scheme is INTERNAL_SELF_MANAGED, and only TCPis valid. // For Internal HTTP(S) Load Balancing, the load balancing scheme is // INTERNAL_MANAGED, and only TCP is valid. For HTTP(S), SSL Proxy, and // TCP Proxy Load Balancing, the load balancing scheme is EXTERNAL and // only TCP is valid. For Network TCP/UDP Load Balancing, the load // balancing scheme is EXTERNAL, and one of TCP or UDP is valid. // // Possible values: // "AH" // "ESP" // "ICMP" // "SCTP" // "TCP" // "UDP" IPProtocol string `json:"IPProtocol,omitempty"` // AllPorts: This field is used along with the backend_service field for // internal load balancing or with the target field for internal // TargetInstance. This field cannot be used with port or portRange // fields. // // When the load balancing scheme is INTERNAL and protocol is TCP/UDP, // specify this field to allow packets addressed to any ports will be // forwarded to the backends configured with this forwarding rule. AllPorts bool `json:"allPorts,omitempty"` // AllowGlobalAccess: This field is used along with the backend_service // field for internal load balancing or with the target field for // internal TargetInstance. If the field is set to TRUE, clients can // access ILB from all regions. Otherwise only allows access from // clients in the same region as the internal load balancer. AllowGlobalAccess bool `json:"allowGlobalAccess,omitempty"` // BackendService: This field is only used for INTERNAL load // balancing. // // For internal load balancing, this field identifies the BackendService // resource to receive the matched traffic. BackendService string `json:"backendService,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"` // IpVersion: The IP Version that will be used by this forwarding rule. // Valid options are IPV4 or IPV6. This can only be specified for an // external global forwarding rule. // // 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 to apply to this resource. These can be later 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. EXTERNAL is // used for: - Classic Cloud VPN gateways - Protocol forwarding to VMs // from an external IP address - The following load balancers: HTTP(S), // SSL Proxy, TCP Proxy, and Network TCP/UDP. // // INTERNAL is used for: - Protocol forwarding to VMs from an internal // IP address - Internal TCP/UDP load balancers // // INTERNAL_MANAGED is used for: - Internal HTTP(S) load // balancers // // INTERNAL_SELF_MANAGED is used for: - Traffic Director // // For more information about forwarding rules, refer to Forwarding rule // concepts. // // Possible values: // "EXTERNAL" // "INTERNAL" // "INTERNAL_MANAGED" // "INTERNAL_SELF_MANAGED" // "INVALID" LoadBalancingScheme string `json:"loadBalancingScheme,omitempty"` // MetadataFilters: Opaque filter criteria used by Loadbalancer to // restrict routing configuration to a limited set xDS compliant // clients. In their xDS requests to Loadbalancer, xDS clients present // node metadata. If a match takes place, 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 in the provided // metadata. // metadataFilters specified here can be overridden by 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. Name string `json:"name,omitempty"` // Network: This field is not used for external load balancing. // // For INTERNAL and INTERNAL_SELF_MANAGED load balancing, this field // identifies the network that the load balanced IP should belong to for // this Forwarding Rule. If this field is not specified, the default // network will be used. 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: // "PREMIUM" // "SELECT" // "STANDARD" NetworkTier string `json:"networkTier,omitempty"` // PortRange: This field is deprecated. See the port // field. PortRange string `json:"portRange,omitempty"` // Ports: List of comma-separated ports. The forwarding rule forwards // packets with matching destination ports. If the forwarding rule's // loadBalancingScheme is EXTERNAL, and the forwarding rule references a // target pool, specifying ports is optional. You can specify an // unlimited number of ports, but they must be contiguous. If you omit // ports, GCP forwards traffic on any port of the forwarding rule's // protocol. // // If the forwarding rule's loadBalancingScheme is EXTERNAL, and the // forwarding rule references a target HTTP proxy, target HTTPS proxy, // target TCP proxy, target SSL proxy, or target VPN gateway, you must // specify ports using the following constraints: // // // - TargetHttpProxy: 80, 8080 // - TargetHttpsProxy: 443 // - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, // 995, 1688, 1883, 5222 // - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, // 995, 1688, 1883, 5222 // - TargetVpnGateway: 500, 4500 // // If the forwarding rule's loadBalancingScheme is INTERNAL, you must // specify ports in one of the following ways: // // * A list of up to five ports, which can be non-contiguous * Keyword // ALL, which causes the forwarding rule to forward traffic on any port // of the forwarding rule's protocol. // // The ports field is used along with the target field for // TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, // TargetVpnGateway, TargetPool, TargetInstance. // // Applicable only when IPProtocol is TCP, UDP, or SCTP. Forwarding // rules with the same [IPAddress, IPProtocol] pair must have disjoint // port ranges. Ports []string `json:"ports,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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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"` // Subnetwork: This field is only used for INTERNAL load balancing. // // For internal load balancing, this field identifies the subnetwork // that the load balanced IP should belong to for this Forwarding // Rule. // // If the network specified is in auto subnet mode, this field is // optional. However, if the network is in custom subnet mode, a // subnetwork must be specified. Subnetwork string `json:"subnetwork,omitempty"` // Target: The URL of the target resource to receive the matched // traffic. For regional forwarding rules, this target must live 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 // INTERNAL_SELF_MANAGED load balancing, only HTTP and HTTPS targets are // valid. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ForwardingRule: Represents a Forwarding Rule resource.
A forwarding rule and its corresponding IP address represent the frontend configuration of a Google Cloud Platform 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.
(== resource_for beta.forwardingRules ==) (== resource_for v1.forwardingRules ==) (== resource_for beta.globalForwardingRules ==) (== resource_for v1.globalForwardingRules ==) (== resource_for beta.regionForwardingRules ==) (== resource_for v1.regionForwardingRules ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ForwardingRuleListWarningData) MarshalJSON ¶
func (s *ForwardingRuleListWarningData) MarshalJSON() ([]byte, error)
type ForwardingRuleReference ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*ForwardingRuleReference) MarshalJSON ¶
func (s *ForwardingRuleReference) 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ForwardingRulesAggregatedListCall) Do ¶
func (c *ForwardingRulesAggregatedListCall) Do(opts ...googleapi.CallOption) (*ForwardingRuleAggregatedList, error)
Do executes the "compute.forwardingRules.aggregatedList" call. Exactly one of *ForwardingRuleAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*ForwardingRulesAggregatedListCall) Header ¶
func (c *ForwardingRulesAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ForwardingRulesAggregatedListCall) IfNoneMatch ¶
func (c *ForwardingRulesAggregatedListCall) IfNoneMatch(entityTag string) *ForwardingRulesAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ForwardingRulesDeleteCall) Do ¶
func (c *ForwardingRulesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.forwardingRules.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ForwardingRulesDeleteCall) Header ¶
func (c *ForwardingRulesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ForwardingRulesGetCall) Do ¶
func (c *ForwardingRulesGetCall) Do(opts ...googleapi.CallOption) (*ForwardingRule, error)
Do executes the "compute.forwardingRules.get" call. Exactly one of *ForwardingRule or error will be non-nil. 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 information.
func (*ForwardingRulesGetCall) Header ¶
func (c *ForwardingRulesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ForwardingRulesGetCall) IfNoneMatch ¶
func (c *ForwardingRulesGetCall) IfNoneMatch(entityTag string) *ForwardingRulesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ForwardingRulesInsertCall) Do ¶
func (c *ForwardingRulesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.forwardingRules.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ForwardingRulesInsertCall) Header ¶
func (c *ForwardingRulesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ForwardingRulesListCall) Do ¶
func (c *ForwardingRulesListCall) Do(opts ...googleapi.CallOption) (*ForwardingRuleList, error)
Do executes the "compute.forwardingRules.list" call. Exactly one of *ForwardingRuleList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*ForwardingRulesListCall) Header ¶
func (c *ForwardingRulesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ForwardingRulesListCall) IfNoneMatch ¶
func (c *ForwardingRulesListCall) IfNoneMatch(entityTag string) *ForwardingRulesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
type ForwardingRulesPatchCall ¶
type ForwardingRulesPatchCall struct {
// contains filtered or unexported fields
}
func (*ForwardingRulesPatchCall) Context ¶
func (c *ForwardingRulesPatchCall) Context(ctx context.Context) *ForwardingRulesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ForwardingRulesPatchCall) Do ¶
func (c *ForwardingRulesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.forwardingRules.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*ForwardingRulesPatchCall) Header ¶
func (c *ForwardingRulesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ForwardingRulesPatchCall) RequestId ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/aggregatedList
func (*ForwardingRulesService) Delete ¶
func (r *ForwardingRulesService) Delete(project string, region string, forwardingRule string) *ForwardingRulesDeleteCall
Delete: Deletes the specified ForwardingRule resource. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/delete
func (*ForwardingRulesService) Get ¶
func (r *ForwardingRulesService) Get(project string, region string, forwardingRule string) *ForwardingRulesGetCall
Get: Returns the specified ForwardingRule resource. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/get
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/insert
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/list
func (*ForwardingRulesService) Patch ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*ForwardingRulesService) SetLabels ¶
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/setTarget
func (*ForwardingRulesService) TestIamPermissions ¶
func (r *ForwardingRulesService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *ForwardingRulesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type ForwardingRulesSetLabelsCall ¶
type ForwardingRulesSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*ForwardingRulesSetLabelsCall) Context ¶
func (c *ForwardingRulesSetLabelsCall) Context(ctx context.Context) *ForwardingRulesSetLabelsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ForwardingRulesSetLabelsCall) Do ¶
func (c *ForwardingRulesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.forwardingRules.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*ForwardingRulesSetLabelsCall) Header ¶
func (c *ForwardingRulesSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ForwardingRulesSetLabelsCall) RequestId ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ForwardingRulesSetTargetCall) Do ¶
func (c *ForwardingRulesSetTargetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.forwardingRules.setTarget" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ForwardingRulesSetTargetCall) Header ¶
func (c *ForwardingRulesSetTargetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 ForwardingRulesTestIamPermissionsCall ¶
type ForwardingRulesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ForwardingRulesTestIamPermissionsCall) Context ¶
func (c *ForwardingRulesTestIamPermissionsCall) Context(ctx context.Context) *ForwardingRulesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ForwardingRulesTestIamPermissionsCall) Do ¶
func (c *ForwardingRulesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.forwardingRules.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*ForwardingRulesTestIamPermissionsCall) Fields ¶
func (c *ForwardingRulesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ForwardingRulesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ForwardingRulesTestIamPermissionsCall) Header ¶
func (c *ForwardingRulesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalAddressesDeleteCall) Do ¶
func (c *GlobalAddressesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalAddresses.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*GlobalAddressesDeleteCall) Header ¶
func (c *GlobalAddressesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalAddressesGetCall) Do ¶
func (c *GlobalAddressesGetCall) Do(opts ...googleapi.CallOption) (*Address, error)
Do executes the "compute.globalAddresses.get" call. Exactly one of *Address or error will be non-nil. 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 information.
func (*GlobalAddressesGetCall) Header ¶
func (c *GlobalAddressesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalAddressesGetCall) IfNoneMatch ¶
func (c *GlobalAddressesGetCall) IfNoneMatch(entityTag string) *GlobalAddressesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalAddressesInsertCall) Do ¶
func (c *GlobalAddressesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalAddresses.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*GlobalAddressesInsertCall) Header ¶
func (c *GlobalAddressesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalAddressesListCall) Do ¶
func (c *GlobalAddressesListCall) Do(opts ...googleapi.CallOption) (*AddressList, error)
Do executes the "compute.globalAddresses.list" call. Exactly one of *AddressList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*GlobalAddressesListCall) Header ¶
func (c *GlobalAddressesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalAddressesListCall) IfNoneMatch ¶
func (c *GlobalAddressesListCall) IfNoneMatch(entityTag string) *GlobalAddressesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/delete
func (*GlobalAddressesService) Get ¶
func (r *GlobalAddressesService) Get(project string, address string) *GlobalAddressesGetCall
Get: Returns the specified address resource. Gets a list of available addresses by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/get
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/insert
func (*GlobalAddressesService) List ¶
func (r *GlobalAddressesService) List(project string) *GlobalAddressesListCall
List: Retrieves a list of global addresses. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/list
func (*GlobalAddressesService) SetLabels ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*GlobalAddressesService) TestIamPermissions ¶
func (r *GlobalAddressesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *GlobalAddressesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type GlobalAddressesSetLabelsCall ¶
type GlobalAddressesSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*GlobalAddressesSetLabelsCall) Context ¶
func (c *GlobalAddressesSetLabelsCall) Context(ctx context.Context) *GlobalAddressesSetLabelsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalAddressesSetLabelsCall) Do ¶
func (c *GlobalAddressesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalAddresses.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*GlobalAddressesSetLabelsCall) Header ¶
func (c *GlobalAddressesSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type GlobalAddressesTestIamPermissionsCall ¶
type GlobalAddressesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*GlobalAddressesTestIamPermissionsCall) Context ¶
func (c *GlobalAddressesTestIamPermissionsCall) Context(ctx context.Context) *GlobalAddressesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalAddressesTestIamPermissionsCall) Do ¶
func (c *GlobalAddressesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.globalAddresses.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*GlobalAddressesTestIamPermissionsCall) Fields ¶
func (c *GlobalAddressesTestIamPermissionsCall) Fields(s ...googleapi.Field) *GlobalAddressesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GlobalAddressesTestIamPermissionsCall) Header ¶
func (c *GlobalAddressesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalForwardingRulesDeleteCall) Do ¶
func (c *GlobalForwardingRulesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalForwardingRules.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*GlobalForwardingRulesDeleteCall) Header ¶
func (c *GlobalForwardingRulesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalForwardingRulesGetCall) Do ¶
func (c *GlobalForwardingRulesGetCall) Do(opts ...googleapi.CallOption) (*ForwardingRule, error)
Do executes the "compute.globalForwardingRules.get" call. Exactly one of *ForwardingRule or error will be non-nil. 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 information.
func (*GlobalForwardingRulesGetCall) Header ¶
func (c *GlobalForwardingRulesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalForwardingRulesGetCall) IfNoneMatch ¶
func (c *GlobalForwardingRulesGetCall) IfNoneMatch(entityTag string) *GlobalForwardingRulesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalForwardingRulesInsertCall) Do ¶
func (c *GlobalForwardingRulesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalForwardingRules.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*GlobalForwardingRulesInsertCall) Header ¶
func (c *GlobalForwardingRulesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalForwardingRulesListCall) Do ¶
func (c *GlobalForwardingRulesListCall) Do(opts ...googleapi.CallOption) (*ForwardingRuleList, error)
Do executes the "compute.globalForwardingRules.list" call. Exactly one of *ForwardingRuleList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*GlobalForwardingRulesListCall) Header ¶
func (c *GlobalForwardingRulesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalForwardingRulesListCall) IfNoneMatch ¶
func (c *GlobalForwardingRulesListCall) IfNoneMatch(entityTag string) *GlobalForwardingRulesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
type GlobalForwardingRulesPatchCall ¶
type GlobalForwardingRulesPatchCall struct {
// contains filtered or unexported fields
}
func (*GlobalForwardingRulesPatchCall) Context ¶
func (c *GlobalForwardingRulesPatchCall) Context(ctx context.Context) *GlobalForwardingRulesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalForwardingRulesPatchCall) Do ¶
func (c *GlobalForwardingRulesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalForwardingRules.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*GlobalForwardingRulesPatchCall) Header ¶
func (c *GlobalForwardingRulesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalForwardingRulesPatchCall) RequestId ¶
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/delete
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/get
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/insert
func (*GlobalForwardingRulesService) List ¶
func (r *GlobalForwardingRulesService) List(project string) *GlobalForwardingRulesListCall
List: Retrieves a list of GlobalForwardingRule resources available to the specified project. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/list
func (*GlobalForwardingRulesService) Patch ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*GlobalForwardingRulesService) SetLabels ¶
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/setTarget
func (*GlobalForwardingRulesService) TestIamPermissions ¶
func (r *GlobalForwardingRulesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *GlobalForwardingRulesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type GlobalForwardingRulesSetLabelsCall ¶
type GlobalForwardingRulesSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*GlobalForwardingRulesSetLabelsCall) Context ¶
func (c *GlobalForwardingRulesSetLabelsCall) Context(ctx context.Context) *GlobalForwardingRulesSetLabelsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalForwardingRulesSetLabelsCall) Do ¶
func (c *GlobalForwardingRulesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalForwardingRules.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*GlobalForwardingRulesSetLabelsCall) Header ¶
func (c *GlobalForwardingRulesSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalForwardingRulesSetTargetCall) Do ¶
func (c *GlobalForwardingRulesSetTargetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalForwardingRules.setTarget" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*GlobalForwardingRulesSetTargetCall) Header ¶
func (c *GlobalForwardingRulesSetTargetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 GlobalForwardingRulesTestIamPermissionsCall ¶
type GlobalForwardingRulesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*GlobalForwardingRulesTestIamPermissionsCall) Context ¶
func (c *GlobalForwardingRulesTestIamPermissionsCall) Context(ctx context.Context) *GlobalForwardingRulesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalForwardingRulesTestIamPermissionsCall) Do ¶
func (c *GlobalForwardingRulesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.globalForwardingRules.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*GlobalForwardingRulesTestIamPermissionsCall) Fields ¶
func (c *GlobalForwardingRulesTestIamPermissionsCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GlobalForwardingRulesTestIamPermissionsCall) Header ¶
func (c *GlobalForwardingRulesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type GlobalNetworkEndpointGroupsAttachEndpointsRequest ¶ added in v0.4.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*GlobalNetworkEndpointGroupsAttachEndpointsRequest) MarshalJSON ¶ added in v0.4.0
func (s *GlobalNetworkEndpointGroupsAttachEndpointsRequest) MarshalJSON() ([]byte, error)
type GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall ¶ added in v0.4.0
type GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall struct {
// contains filtered or unexported fields
}
func (*GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Context ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Do ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalNetworkEndpointGroups.attachNetworkEndpoints" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.4.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 information.
func (*GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Header ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) RequestId ¶ added in v0.4.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.4.0
type GlobalNetworkEndpointGroupsDeleteCall struct {
// contains filtered or unexported fields
}
func (*GlobalNetworkEndpointGroupsDeleteCall) Context ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsDeleteCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalNetworkEndpointGroupsDeleteCall) Do ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalNetworkEndpointGroups.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.4.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 information.
func (*GlobalNetworkEndpointGroupsDeleteCall) Header ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalNetworkEndpointGroupsDeleteCall) RequestId ¶ added in v0.4.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.4.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*GlobalNetworkEndpointGroupsDetachEndpointsRequest) MarshalJSON ¶ added in v0.4.0
func (s *GlobalNetworkEndpointGroupsDetachEndpointsRequest) MarshalJSON() ([]byte, error)
type GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall ¶ added in v0.4.0
type GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall struct {
// contains filtered or unexported fields
}
func (*GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Context ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Do ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalNetworkEndpointGroups.detachNetworkEndpoints" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.4.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 information.
func (*GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Header ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) RequestId ¶ added in v0.4.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.4.0
type GlobalNetworkEndpointGroupsGetCall struct {
// contains filtered or unexported fields
}
func (*GlobalNetworkEndpointGroupsGetCall) Context ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsGetCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalNetworkEndpointGroupsGetCall) Do ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsGetCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroup, error)
Do executes the "compute.globalNetworkEndpointGroups.get" call. Exactly one of *NetworkEndpointGroup or error will be non-nil. 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.4.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 information.
func (*GlobalNetworkEndpointGroupsGetCall) Header ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalNetworkEndpointGroupsGetCall) IfNoneMatch ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsGetCall) IfNoneMatch(entityTag string) *GlobalNetworkEndpointGroupsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type GlobalNetworkEndpointGroupsInsertCall ¶ added in v0.4.0
type GlobalNetworkEndpointGroupsInsertCall struct {
// contains filtered or unexported fields
}
func (*GlobalNetworkEndpointGroupsInsertCall) Context ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsInsertCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalNetworkEndpointGroupsInsertCall) Do ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalNetworkEndpointGroups.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.4.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 information.
func (*GlobalNetworkEndpointGroupsInsertCall) Header ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalNetworkEndpointGroupsInsertCall) RequestId ¶ added in v0.4.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.4.0
type GlobalNetworkEndpointGroupsListCall struct {
// contains filtered or unexported fields
}
func (*GlobalNetworkEndpointGroupsListCall) Context ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsListCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalNetworkEndpointGroupsListCall) Do ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsListCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupList, error)
Do executes the "compute.globalNetworkEndpointGroups.list" call. Exactly one of *NetworkEndpointGroupList or error will be non-nil. 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.4.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 information.
func (*GlobalNetworkEndpointGroupsListCall) Filter ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsListCall) Filter(filter string) *GlobalNetworkEndpointGroupsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*GlobalNetworkEndpointGroupsListCall) Header ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalNetworkEndpointGroupsListCall) IfNoneMatch ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsListCall) IfNoneMatch(entityTag string) *GlobalNetworkEndpointGroupsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*GlobalNetworkEndpointGroupsListCall) MaxResults ¶ added in v0.4.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.4.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.4.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.4.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.
type GlobalNetworkEndpointGroupsListNetworkEndpointsCall ¶ added in v0.4.0
type GlobalNetworkEndpointGroupsListNetworkEndpointsCall struct {
// contains filtered or unexported fields
}
func (*GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Context ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Context(ctx context.Context) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Do ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupsListNetworkEndpoints, error)
Do executes the "compute.globalNetworkEndpointGroups.listNetworkEndpoints" call. Exactly one of *NetworkEndpointGroupsListNetworkEndpoints or error will be non-nil. 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.4.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 information.
func (*GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Filter ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Filter(filter string) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Header ¶ added in v0.4.0
func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalNetworkEndpointGroupsListNetworkEndpointsCall) MaxResults ¶ added in v0.4.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.4.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.4.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.4.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.
type GlobalNetworkEndpointGroupsService ¶ added in v0.4.0
type GlobalNetworkEndpointGroupsService struct {
// contains filtered or unexported fields
}
func NewGlobalNetworkEndpointGroupsService ¶ added in v0.4.0
func NewGlobalNetworkEndpointGroupsService(s *Service) *GlobalNetworkEndpointGroupsService
func (*GlobalNetworkEndpointGroupsService) AttachNetworkEndpoints ¶ added in v0.4.0
func (r *GlobalNetworkEndpointGroupsService) AttachNetworkEndpoints(project string, networkEndpointGroup string, globalnetworkendpointgroupsattachendpointsrequest *GlobalNetworkEndpointGroupsAttachEndpointsRequest) *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall
AttachNetworkEndpoints: Attach a network endpoint to the specified network endpoint group. (== suppress_warning http-rest-shadowed ==)
func (*GlobalNetworkEndpointGroupsService) Delete ¶ added in v0.4.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. (== suppress_warning http-rest-shadowed ==)
func (*GlobalNetworkEndpointGroupsService) DetachNetworkEndpoints ¶ added in v0.4.0
func (r *GlobalNetworkEndpointGroupsService) DetachNetworkEndpoints(project string, networkEndpointGroup string, globalnetworkendpointgroupsdetachendpointsrequest *GlobalNetworkEndpointGroupsDetachEndpointsRequest) *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall
DetachNetworkEndpoints: Detach the network endpoint from the specified network endpoint group. (== suppress_warning http-rest-shadowed ==)
func (*GlobalNetworkEndpointGroupsService) Get ¶ added in v0.4.0
func (r *GlobalNetworkEndpointGroupsService) Get(project string, networkEndpointGroup string) *GlobalNetworkEndpointGroupsGetCall
Get: Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request. (== suppress_warning http-rest-shadowed ==)
func (*GlobalNetworkEndpointGroupsService) Insert ¶ added in v0.4.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. (== suppress_warning http-rest-shadowed ==)
func (*GlobalNetworkEndpointGroupsService) List ¶ added in v0.4.0
func (r *GlobalNetworkEndpointGroupsService) List(project string) *GlobalNetworkEndpointGroupsListCall
List: Retrieves the list of network endpoint groups that are located in the specified project. (== suppress_warning http-rest-shadowed ==)
func (*GlobalNetworkEndpointGroupsService) ListNetworkEndpoints ¶ added in v0.4.0
func (r *GlobalNetworkEndpointGroupsService) ListNetworkEndpoints(project string, networkEndpointGroup string) *GlobalNetworkEndpointGroupsListNetworkEndpointsCall
ListNetworkEndpoints: Lists the network endpoints in the specified network endpoint group. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalOperationsAggregatedListCall) Do ¶
func (c *GlobalOperationsAggregatedListCall) Do(opts ...googleapi.CallOption) (*OperationAggregatedList, error)
Do executes the "compute.globalOperations.aggregatedList" call. Exactly one of *OperationAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*GlobalOperationsAggregatedListCall) Header ¶
func (c *GlobalOperationsAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalOperationsAggregatedListCall) IfNoneMatch ¶
func (c *GlobalOperationsAggregatedListCall) IfNoneMatch(entityTag string) *GlobalOperationsAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
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 information.
func (*GlobalOperationsDeleteCall) Header ¶
func (c *GlobalOperationsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalOperationsGetCall) Do ¶
func (c *GlobalOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalOperations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*GlobalOperationsGetCall) Header ¶
func (c *GlobalOperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalOperationsGetCall) IfNoneMatch ¶
func (c *GlobalOperationsGetCall) IfNoneMatch(entityTag string) *GlobalOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalOperationsListCall) Do ¶
func (c *GlobalOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList, error)
Do executes the "compute.globalOperations.list" call. Exactly one of *OperationList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*GlobalOperationsListCall) Header ¶
func (c *GlobalOperationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalOperationsListCall) IfNoneMatch ¶
func (c *GlobalOperationsListCall) IfNoneMatch(entityTag string) *GlobalOperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/aggregatedList
func (*GlobalOperationsService) Delete ¶
func (r *GlobalOperationsService) Delete(project string, operation string) *GlobalOperationsDeleteCall
Delete: Deletes the specified Operations resource. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/delete
func (*GlobalOperationsService) Get ¶
func (r *GlobalOperationsService) Get(project string, operation string) *GlobalOperationsGetCall
Get: Retrieves the specified Operations resource. Gets a list of operations by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/get
func (*GlobalOperationsService) List ¶
func (r *GlobalOperationsService) List(project string) *GlobalOperationsListCall
List: Retrieves a list of Operation resources contained within the specified project. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/list
func (*GlobalOperationsService) Wait ¶
func (r *GlobalOperationsService) Wait(project string, operation string) *GlobalOperationsWaitCall
Wait: Waits for the specified Operations resource until it is done or timeout, and retrieves the specified Operations resource. 1. Immediately returns when the operation is already done. 2. Waits for no more than the default deadline (2 minutes, subject to change) and then returns the current state of the operation, which may be DONE or still in progress. 3. Is best-effort: a. The server can wait less than the default deadline or zero seconds, in overload situations. b. There is no guarantee that the operation is actually done when returns. 4. User should be prepared to retry if the operation is not DONE. (== suppress_warning http-rest-shadowed ==)
type GlobalOperationsWaitCall ¶
type GlobalOperationsWaitCall struct {
// contains filtered or unexported fields
}
func (*GlobalOperationsWaitCall) Context ¶
func (c *GlobalOperationsWaitCall) Context(ctx context.Context) *GlobalOperationsWaitCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalOperationsWaitCall) Do ¶
func (c *GlobalOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalOperations.wait" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*GlobalOperationsWaitCall) Header ¶
func (c *GlobalOperationsWaitCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type GlobalOrganizationOperationsDeleteCall ¶
type GlobalOrganizationOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*GlobalOrganizationOperationsDeleteCall) Context ¶
func (c *GlobalOrganizationOperationsDeleteCall) Context(ctx context.Context) *GlobalOrganizationOperationsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalOrganizationOperationsDeleteCall) Do ¶
func (c *GlobalOrganizationOperationsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "compute.globalOrganizationOperations.delete" call.
func (*GlobalOrganizationOperationsDeleteCall) Fields ¶
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 information.
func (*GlobalOrganizationOperationsDeleteCall) Header ¶
func (c *GlobalOrganizationOperationsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalOrganizationOperationsDeleteCall) ParentId ¶
func (c *GlobalOrganizationOperationsDeleteCall) ParentId(parentId string) *GlobalOrganizationOperationsDeleteCall
ParentId sets the optional parameter "parentId": Parent ID for this request.
type GlobalOrganizationOperationsGetCall ¶
type GlobalOrganizationOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*GlobalOrganizationOperationsGetCall) Context ¶
func (c *GlobalOrganizationOperationsGetCall) Context(ctx context.Context) *GlobalOrganizationOperationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalOrganizationOperationsGetCall) Do ¶
func (c *GlobalOrganizationOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalOrganizationOperations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*GlobalOrganizationOperationsGetCall) Header ¶
func (c *GlobalOrganizationOperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalOrganizationOperationsGetCall) IfNoneMatch ¶
func (c *GlobalOrganizationOperationsGetCall) IfNoneMatch(entityTag string) *GlobalOrganizationOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*GlobalOrganizationOperationsGetCall) ParentId ¶
func (c *GlobalOrganizationOperationsGetCall) ParentId(parentId string) *GlobalOrganizationOperationsGetCall
ParentId sets the optional parameter "parentId": Parent ID for this request.
type GlobalOrganizationOperationsListCall ¶
type GlobalOrganizationOperationsListCall struct {
// contains filtered or unexported fields
}
func (*GlobalOrganizationOperationsListCall) Context ¶
func (c *GlobalOrganizationOperationsListCall) Context(ctx context.Context) *GlobalOrganizationOperationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalOrganizationOperationsListCall) Do ¶
func (c *GlobalOrganizationOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList, error)
Do executes the "compute.globalOrganizationOperations.list" call. Exactly one of *OperationList or error will be non-nil. 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 ¶
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 information.
func (*GlobalOrganizationOperationsListCall) Filter ¶
func (c *GlobalOrganizationOperationsListCall) Filter(filter string) *GlobalOrganizationOperationsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*GlobalOrganizationOperationsListCall) Header ¶
func (c *GlobalOrganizationOperationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalOrganizationOperationsListCall) IfNoneMatch ¶
func (c *GlobalOrganizationOperationsListCall) IfNoneMatch(entityTag string) *GlobalOrganizationOperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*GlobalOrganizationOperationsListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (c *GlobalOrganizationOperationsListCall) ParentId(parentId string) *GlobalOrganizationOperationsListCall
ParentId sets the optional parameter "parentId": Parent ID for this request.
type GlobalOrganizationOperationsService ¶
type GlobalOrganizationOperationsService struct {
// contains filtered or unexported fields
}
func NewGlobalOrganizationOperationsService ¶
func NewGlobalOrganizationOperationsService(s *Service) *GlobalOrganizationOperationsService
func (*GlobalOrganizationOperationsService) Delete ¶
func (r *GlobalOrganizationOperationsService) Delete(operation string) *GlobalOrganizationOperationsDeleteCall
Delete: Deletes the specified Operations resource. (== suppress_warning http-rest-shadowed ==)
func (*GlobalOrganizationOperationsService) Get ¶
func (r *GlobalOrganizationOperationsService) Get(operation string) *GlobalOrganizationOperationsGetCall
Get: Retrieves the specified Operations resource. Gets a list of operations by making a list() request. (== suppress_warning http-rest-shadowed ==)
func (*GlobalOrganizationOperationsService) List ¶
func (r *GlobalOrganizationOperationsService) List() *GlobalOrganizationOperationsListCall
List: Retrieves a list of Operation resources contained within the specified organization. (== suppress_warning http-rest-shadowed ==)
func (*GlobalOrganizationOperationsService) Wait ¶
func (r *GlobalOrganizationOperationsService) Wait(operation string) *GlobalOrganizationOperationsWaitCall
Wait: Waits for the specified Operations resource until it is done or timeout, and retrieves the specified Operations resource. 1. Immediately returns when the operation is already done. 2. Waits for no more than the default deadline (2 minutes, subject to change) and then returns the current state of the operation, which may be DONE or still in progress. 3. Is best-effort: a. The server can wait less than the default deadline or zero seconds, in overload situations. b. There is no guarantee that the operation is actually done when returns. 4. User should be prepared to retry if the operation is not DONE. (== suppress_warning http-rest-shadowed ==)
type GlobalOrganizationOperationsWaitCall ¶
type GlobalOrganizationOperationsWaitCall struct {
// contains filtered or unexported fields
}
func (*GlobalOrganizationOperationsWaitCall) Context ¶
func (c *GlobalOrganizationOperationsWaitCall) Context(ctx context.Context) *GlobalOrganizationOperationsWaitCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalOrganizationOperationsWaitCall) Do ¶
func (c *GlobalOrganizationOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalOrganizationOperations.wait" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GlobalOrganizationOperationsWaitCall) Fields ¶
func (c *GlobalOrganizationOperationsWaitCall) Fields(s ...googleapi.Field) *GlobalOrganizationOperationsWaitCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GlobalOrganizationOperationsWaitCall) Header ¶
func (c *GlobalOrganizationOperationsWaitCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalOrganizationOperationsWaitCall) ParentId ¶
func (c *GlobalOrganizationOperationsWaitCall) ParentId(parentId string) *GlobalOrganizationOperationsWaitCall
ParentId sets the optional parameter "parentId": Parent ID for this request.
type GlobalPublicDelegatedPrefixesDeleteCall ¶ added in v0.11.0
type GlobalPublicDelegatedPrefixesDeleteCall struct {
// contains filtered or unexported fields
}
func (*GlobalPublicDelegatedPrefixesDeleteCall) Context ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesDeleteCall) Context(ctx context.Context) *GlobalPublicDelegatedPrefixesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalPublicDelegatedPrefixesDeleteCall) Do ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalPublicDelegatedPrefixes.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.11.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 information.
func (*GlobalPublicDelegatedPrefixesDeleteCall) Header ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalPublicDelegatedPrefixesDeleteCall) RequestId ¶ added in v0.11.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.11.0
type GlobalPublicDelegatedPrefixesGetCall struct {
// contains filtered or unexported fields
}
func (*GlobalPublicDelegatedPrefixesGetCall) Context ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesGetCall) Context(ctx context.Context) *GlobalPublicDelegatedPrefixesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalPublicDelegatedPrefixesGetCall) Do ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefix, error)
Do executes the "compute.globalPublicDelegatedPrefixes.get" call. Exactly one of *PublicDelegatedPrefix or error will be non-nil. 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.11.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 information.
func (*GlobalPublicDelegatedPrefixesGetCall) Header ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalPublicDelegatedPrefixesGetCall) IfNoneMatch ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesGetCall) IfNoneMatch(entityTag string) *GlobalPublicDelegatedPrefixesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type GlobalPublicDelegatedPrefixesInsertCall ¶ added in v0.11.0
type GlobalPublicDelegatedPrefixesInsertCall struct {
// contains filtered or unexported fields
}
func (*GlobalPublicDelegatedPrefixesInsertCall) Context ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesInsertCall) Context(ctx context.Context) *GlobalPublicDelegatedPrefixesInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalPublicDelegatedPrefixesInsertCall) Do ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalPublicDelegatedPrefixes.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.11.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 information.
func (*GlobalPublicDelegatedPrefixesInsertCall) Header ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalPublicDelegatedPrefixesInsertCall) RequestId ¶ added in v0.11.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.11.0
type GlobalPublicDelegatedPrefixesListCall struct {
// contains filtered or unexported fields
}
func (*GlobalPublicDelegatedPrefixesListCall) Context ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesListCall) Context(ctx context.Context) *GlobalPublicDelegatedPrefixesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalPublicDelegatedPrefixesListCall) Do ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesListCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefixList, error)
Do executes the "compute.globalPublicDelegatedPrefixes.list" call. Exactly one of *PublicDelegatedPrefixList or error will be non-nil. 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.11.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 information.
func (*GlobalPublicDelegatedPrefixesListCall) Filter ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesListCall) Filter(filter string) *GlobalPublicDelegatedPrefixesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*GlobalPublicDelegatedPrefixesListCall) Header ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalPublicDelegatedPrefixesListCall) IfNoneMatch ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesListCall) IfNoneMatch(entityTag string) *GlobalPublicDelegatedPrefixesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*GlobalPublicDelegatedPrefixesListCall) MaxResults ¶ added in v0.11.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.11.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.11.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.11.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.
type GlobalPublicDelegatedPrefixesPatchCall ¶ added in v0.11.0
type GlobalPublicDelegatedPrefixesPatchCall struct {
// contains filtered or unexported fields
}
func (*GlobalPublicDelegatedPrefixesPatchCall) Context ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesPatchCall) Context(ctx context.Context) *GlobalPublicDelegatedPrefixesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GlobalPublicDelegatedPrefixesPatchCall) Do ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.globalPublicDelegatedPrefixes.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.11.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 information.
func (*GlobalPublicDelegatedPrefixesPatchCall) Header ¶ added in v0.11.0
func (c *GlobalPublicDelegatedPrefixesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GlobalPublicDelegatedPrefixesPatchCall) RequestId ¶ added in v0.11.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.11.0
type GlobalPublicDelegatedPrefixesService struct {
// contains filtered or unexported fields
}
func NewGlobalPublicDelegatedPrefixesService ¶ added in v0.11.0
func NewGlobalPublicDelegatedPrefixesService(s *Service) *GlobalPublicDelegatedPrefixesService
func (*GlobalPublicDelegatedPrefixesService) Delete ¶ added in v0.11.0
func (r *GlobalPublicDelegatedPrefixesService) Delete(project string, publicDelegatedPrefix string) *GlobalPublicDelegatedPrefixesDeleteCall
Delete: Deletes the specified global PublicDelegatedPrefix. (== suppress_warning http-rest-shadowed ==)
func (*GlobalPublicDelegatedPrefixesService) Get ¶ added in v0.11.0
func (r *GlobalPublicDelegatedPrefixesService) Get(project string, publicDelegatedPrefix string) *GlobalPublicDelegatedPrefixesGetCall
Get: Returns the specified global PublicDelegatedPrefix resource. (== suppress_warning http-rest-shadowed ==)
func (*GlobalPublicDelegatedPrefixesService) Insert ¶ added in v0.11.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. (== suppress_warning http-rest-shadowed ==)
func (*GlobalPublicDelegatedPrefixesService) List ¶ added in v0.11.0
func (r *GlobalPublicDelegatedPrefixesService) List(project string) *GlobalPublicDelegatedPrefixesListCall
List: Lists the global PublicDelegatedPrefixes for a project. (== suppress_warning http-rest-shadowed ==)
func (*GlobalPublicDelegatedPrefixesService) Patch ¶ added in v0.11.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. (== suppress_warning http-rest-shadowed ==)
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 key & // value must 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 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*GlobalSetPolicyRequest) MarshalJSON ¶
func (s *GlobalSetPolicyRequest) MarshalJSON() ([]byte, error)
type GrpcServiceConfig ¶ added in v0.2.0
type GrpcServiceConfig struct { // CallCredentials: The call credentials to access the SDS server. CallCredentials *CallCredentials `json:"callCredentials,omitempty"` // ChannelCredentials: The channel credentials to access the SDS server. ChannelCredentials *ChannelCredentials `json:"channelCredentials,omitempty"` // TargetUri: The target URI of the SDS server. TargetUri string `json:"targetUri,omitempty"` // ForceSendFields is a list of field names (e.g. "CallCredentials") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CallCredentials") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GrpcServiceConfig: gRPC config to access the SDS server.
func (*GrpcServiceConfig) MarshalJSON ¶ added in v0.2.0
func (s *GrpcServiceConfig) MarshalJSON() ([]byte, error)
type GuestAttributes ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GuestAttributes: A guest attributes entry.
func (*GuestAttributes) MarshalJSON ¶
func (s *GuestAttributes) MarshalJSON() ([]byte, error)
type GuestAttributesEntry ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GuestAttributesEntry: A guest attributes namespace/key/value entry.
func (*GuestAttributesEntry) MarshalJSON ¶
func (s *GuestAttributesEntry) MarshalJSON() ([]byte, error)
type GuestAttributesValue ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GuestAttributesValue: Array of guest attribute namespace/key/value tuples.
func (*GuestAttributesValue) MarshalJSON ¶
func (s *GuestAttributesValue) MarshalJSON() ([]byte, error)
type GuestOsFeature ¶
type GuestOsFeature struct { // Type: The ID of a supported feature. Read Enabling guest operating // system features to see a list of available options. // // Possible values: // "FEATURE_TYPE_UNSPECIFIED" // "GVNIC" // "MULTI_IP_SUBNET" // "SECURE_BOOT" // "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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GuestOsFeature: Guest OS features.
func (*GuestOsFeature) MarshalJSON ¶
func (s *GuestOsFeature) MarshalJSON() ([]byte, error)
type HTTP2HealthCheck ¶
type HTTP2HealthCheck struct { // Host: The value of the host header in the HTTP/2 health check // request. If left empty (default value), the IP on behalf of which // this health check is performed will be used. Host string `json:"host,omitempty"` // Port: The TCP port number for the health check request. The default // value is 443. Valid values are 1 through 65535. Port int64 `json:"port,omitempty"` // PortName: Port name as defined in InstanceGroup#NamedPort#name. If // both port and port_name are defined, port takes precedence. PortName string `json:"portName,omitempty"` // PortSpecification: Specifies how port is selected for health // checking, can be one of following values: // USE_FIXED_PORT: The port number in // port // is used for health checking. // USE_NAMED_PORT: The // portName // is used for health checking. // USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for // each network endpoint is used for health checking. For other // backends, the port or named port specified in the Backend Service is // used for health checking. // // // If not specified, HTTP2 health check follows behavior specified // in // port // and // portName // fields. // // Possible values: // "USE_FIXED_PORT" // "USE_NAMED_PORT" // "USE_SERVING_PORT" 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 /. RequestPath string `json:"requestPath,omitempty"` // Response: The string to match anywhere in the first 1024 bytes of the // response body. If left empty (the default value), the status code // determines health. The response data can only be ASCII. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*HTTP2HealthCheck) MarshalJSON ¶
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 IP on behalf of which this health // check is performed will be used. Host string `json:"host,omitempty"` // Port: The TCP port number for the health check request. The default // value is 80. Valid values are 1 through 65535. Port int64 `json:"port,omitempty"` // PortName: Port name as defined in InstanceGroup#NamedPort#name. If // both port and port_name are defined, port takes precedence. PortName string `json:"portName,omitempty"` // PortSpecification: Specifies how port is selected for health // checking, can be one of following values: // USE_FIXED_PORT: The port number in // port // is used for health checking. // USE_NAMED_PORT: The // portName // is used for health checking. // USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for // each network endpoint is used for health checking. For other // backends, the port or named port specified in the Backend Service is // used for health checking. // // // If not specified, HTTP health check follows behavior specified // in // port // and // portName // fields. // // Possible values: // "USE_FIXED_PORT" // "USE_NAMED_PORT" // "USE_SERVING_PORT" 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 /. RequestPath string `json:"requestPath,omitempty"` // Response: The string to match anywhere in the first 1024 bytes of the // response body. If left empty (the default value), the status code // determines health. The response data can only be ASCII. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 IP on behalf of which this health // check is performed will be used. Host string `json:"host,omitempty"` // Port: The TCP port number for the health check request. The default // value is 443. Valid values are 1 through 65535. Port int64 `json:"port,omitempty"` // PortName: Port name as defined in InstanceGroup#NamedPort#name. If // both port and port_name are defined, port takes precedence. PortName string `json:"portName,omitempty"` // PortSpecification: Specifies how port is selected for health // checking, can be one of following values: // USE_FIXED_PORT: The port number in // port // is used for health checking. // USE_NAMED_PORT: The // portName // is used for health checking. // USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for // each network endpoint is used for health checking. For other // backends, the port or named port specified in the Backend Service is // used for health checking. // // // If not specified, HTTPS health check follows behavior specified // in // port // and // portName // fields. // // Possible values: // "USE_FIXED_PORT" // "USE_NAMED_PORT" // "USE_SERVING_PORT" 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 /. RequestPath string `json:"requestPath,omitempty"` // Response: The string to match anywhere in the first 1024 bytes of the // response body. If left empty (the default value), the status code // determines health. The response data can only be ASCII. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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. 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] 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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 or HTTP2. If not specified, the default is TCP. Exactly one of // the protocol-specific health check field must be specified, which // must match type field. // // Possible values: // "HTTP" // "HTTP2" // "HTTPS" // "INVALID" // "SSL" // "TCP" // "UDP" Type string `json:"type,omitempty"` UdpHealthCheck *UDPHealthCheck `json:"udpHealthCheck,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
HealthCheck: Represents a Health Check resource.
Health checks are used for most GCP load balancers and managed instance group auto-healing. For more information, read Health Check Concepts.
To perform health checks on network load balancers, you must use either httpHealthChecks or httpsHealthChecks.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*HealthCheckListWarningData) MarshalJSON ¶
func (s *HealthCheckListWarningData) MarshalJSON() ([]byte, error)
type HealthCheckLogConfig ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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.2.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"` // HealthChecks: List of URLs to the HealthCheck resources. Must have at // least one HealthCheck, and not more than 10. HealthCheck resources // must have portSpecification=USE_SERVING_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</code? must belong to the same region as zones of NEGs. 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 // backend in the health check service. // - 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. . // // Possible values: // "AND" // "NO_AGGREGATION" HealthStatusAggregationPolicy string `json:"healthStatusAggregationPolicy,omitempty"` // HealthStatusAggregationStrategy: Policy for how the results from // multiple health checks for the same endpoint are aggregated. // - NO_AGGREGATION. An EndpointHealth message is returned for each // backend in the health check service. // - 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. . // // Possible values: // "AND" // "NO_AGGREGATION" HealthStatusAggregationStrategy string `json:"healthStatusAggregationStrategy,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: 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. NetworkEndpointGroups []string `json:"networkEndpointGroups,omitempty"` // NotificationEndpoints: 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"` // SelfLinkWithId: [Output Only] Server-defined URL with id for the // resource. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
HealthCheckService: A HealthCheckService defines a set of backends on which to perform periodic health checks and an endpoint to which to send notification of changes in the health status of the backends.
func (*HealthCheckService) MarshalJSON ¶ added in v0.2.0
func (s *HealthCheckService) MarshalJSON() ([]byte, error)
type HealthCheckServiceReference ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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.7.0
func (s *HealthCheckServiceReference) MarshalJSON() ([]byte, error)
type HealthCheckServicesList ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*HealthCheckServicesList) MarshalJSON ¶ added in v0.2.0
func (s *HealthCheckServicesList) MarshalJSON() ([]byte, error)
type HealthCheckServicesListWarning ¶ added in v0.2.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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HealthCheckServicesListWarning: [Output Only] Informational warning message.
func (*HealthCheckServicesListWarning) MarshalJSON ¶ added in v0.2.0
func (s *HealthCheckServicesListWarning) MarshalJSON() ([]byte, error)
type HealthCheckServicesListWarningData ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*HealthCheckServicesListWarningData) MarshalJSON ¶ added in v0.2.0
func (s *HealthCheckServicesListWarningData) MarshalJSON() ([]byte, error)
type HealthChecksAggregatedList ¶
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*HealthChecksAggregatedList) MarshalJSON ¶
func (s *HealthChecksAggregatedList) MarshalJSON() ([]byte, error)
type HealthChecksAggregatedListCall ¶
type HealthChecksAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*HealthChecksAggregatedListCall) Context ¶
func (c *HealthChecksAggregatedListCall) Context(ctx context.Context) *HealthChecksAggregatedListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HealthChecksAggregatedListCall) Do ¶
func (c *HealthChecksAggregatedListCall) Do(opts ...googleapi.CallOption) (*HealthChecksAggregatedList, error)
Do executes the "compute.healthChecks.aggregatedList" call. Exactly one of *HealthChecksAggregatedList or error will be non-nil. 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 ¶
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 information.
func (*HealthChecksAggregatedListCall) Filter ¶
func (c *HealthChecksAggregatedListCall) Filter(filter string) *HealthChecksAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*HealthChecksAggregatedListCall) Header ¶
func (c *HealthChecksAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*HealthChecksAggregatedListCall) IfNoneMatch ¶
func (c *HealthChecksAggregatedListCall) IfNoneMatch(entityTag string) *HealthChecksAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*HealthChecksAggregatedListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type HealthChecksAggregatedListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HealthChecksAggregatedListWarning: [Output Only] Informational warning message.
func (*HealthChecksAggregatedListWarning) MarshalJSON ¶
func (s *HealthChecksAggregatedListWarning) MarshalJSON() ([]byte, error)
type HealthChecksAggregatedListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*HealthChecksAggregatedListWarningData) MarshalJSON ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HealthChecksDeleteCall) Do ¶
func (c *HealthChecksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.healthChecks.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*HealthChecksDeleteCall) Header ¶
func (c *HealthChecksDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HealthChecksGetCall) Do ¶
func (c *HealthChecksGetCall) Do(opts ...googleapi.CallOption) (*HealthCheck, error)
Do executes the "compute.healthChecks.get" call. Exactly one of *HealthCheck or error will be non-nil. 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 information.
func (*HealthChecksGetCall) Header ¶
func (c *HealthChecksGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*HealthChecksGetCall) IfNoneMatch ¶
func (c *HealthChecksGetCall) IfNoneMatch(entityTag string) *HealthChecksGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HealthChecksInsertCall) Do ¶
func (c *HealthChecksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.healthChecks.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*HealthChecksInsertCall) Header ¶
func (c *HealthChecksInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HealthChecksListCall) Do ¶
func (c *HealthChecksListCall) Do(opts ...googleapi.CallOption) (*HealthCheckList, error)
Do executes the "compute.healthChecks.list" call. Exactly one of *HealthCheckList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*HealthChecksListCall) Header ¶
func (c *HealthChecksListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*HealthChecksListCall) IfNoneMatch ¶
func (c *HealthChecksListCall) IfNoneMatch(entityTag string) *HealthChecksListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HealthChecksPatchCall) Do ¶
func (c *HealthChecksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.healthChecks.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*HealthChecksPatchCall) Header ¶
func (c *HealthChecksPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*HealthChecksScopedList) MarshalJSON ¶
func (s *HealthChecksScopedList) MarshalJSON() ([]byte, error)
type HealthChecksScopedListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HealthChecksScopedListWarning: Informational warning which replaces the list of backend services when the list is empty.
func (*HealthChecksScopedListWarning) MarshalJSON ¶
func (s *HealthChecksScopedListWarning) MarshalJSON() ([]byte, error)
type HealthChecksScopedListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*HealthChecksScopedListWarningData) MarshalJSON ¶
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 ¶
func (r *HealthChecksService) AggregatedList(project string) *HealthChecksAggregatedListCall
AggregatedList: Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. (== suppress_warning http-rest-shadowed ==)
func (*HealthChecksService) Delete ¶
func (r *HealthChecksService) Delete(project string, healthCheck string) *HealthChecksDeleteCall
Delete: Deletes the specified HealthCheck resource. (== suppress_warning http-rest-shadowed ==)
func (*HealthChecksService) Get ¶
func (r *HealthChecksService) Get(project string, healthCheck string) *HealthChecksGetCall
Get: Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*HealthChecksService) List ¶
func (r *HealthChecksService) List(project string) *HealthChecksListCall
List: Retrieves the list of HealthCheck resources available to the specified project. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*HealthChecksService) TestIamPermissions ¶
func (r *HealthChecksService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *HealthChecksTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
type HealthChecksTestIamPermissionsCall ¶
type HealthChecksTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*HealthChecksTestIamPermissionsCall) Context ¶
func (c *HealthChecksTestIamPermissionsCall) Context(ctx context.Context) *HealthChecksTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HealthChecksTestIamPermissionsCall) Do ¶
func (c *HealthChecksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.healthChecks.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*HealthChecksTestIamPermissionsCall) Fields ¶
func (c *HealthChecksTestIamPermissionsCall) Fields(s ...googleapi.Field) *HealthChecksTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*HealthChecksTestIamPermissionsCall) Header ¶
func (c *HealthChecksTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HealthChecksUpdateCall) Do ¶
func (c *HealthChecksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.healthChecks.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*HealthChecksUpdateCall) Header ¶
func (c *HealthChecksUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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"` // HealthState: Health state of the instance. // // Possible values: // "HEALTHY" // "UNHEALTHY" HealthState string `json:"healthState,omitempty"` // Instance: URL of the instance resource. Instance string `json:"instance,omitempty"` // IpAddress: The IP address represented by this resource. IpAddress string `json:"ipAddress,omitempty"` // Port: The port on the instance. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*HealthStatus) MarshalJSON ¶
func (s *HealthStatus) MarshalJSON() ([]byte, error)
type HealthStatusForNetworkEndpoint ¶
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" // "HEALTHY" // "UNHEALTHY" // "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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*HealthStatusForNetworkEndpoint) MarshalJSON ¶
func (s *HealthStatusForNetworkEndpoint) MarshalJSON() ([]byte, error)
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, except * will match any string of ([a-z0-9-.]*). In that // case, * must be the first character and must be followed in the // pattern by either - or .. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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.2.0
type HttpFaultAbort struct { // HttpStatus: The HTTP status code used to abort the request. // The value must be between 200 and 599 inclusive. HttpStatus int64 `json:"httpStatus,omitempty"` // Percentage: The percentage of traffic // (connections/operations/requests) which will be aborted as part of // fault injection. // The value must be between 0.0 and 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpFaultAbort: Specification for how requests are aborted as part of fault injection.
func (*HttpFaultAbort) MarshalJSON ¶ added in v0.2.0
func (s *HttpFaultAbort) MarshalJSON() ([]byte, error)
func (*HttpFaultAbort) UnmarshalJSON ¶ added in v0.2.0
func (s *HttpFaultAbort) UnmarshalJSON(data []byte) error
type HttpFaultDelay ¶ added in v0.2.0
type HttpFaultDelay struct { // FixedDelay: Specifies the value of the fixed delay interval. FixedDelay *Duration `json:"fixedDelay,omitempty"` // Percentage: The percentage of traffic // (connections/operations/requests) on which delay will be introduced // as part of fault injection. // The value must be between 0.0 and 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpFaultDelay: Specifies the delay introduced by Loadbalancer before forwarding the request to the backend service as part of fault injection.
func (*HttpFaultDelay) MarshalJSON ¶ added in v0.2.0
func (s *HttpFaultDelay) MarshalJSON() ([]byte, error)
func (*HttpFaultDelay) UnmarshalJSON ¶ added in v0.2.0
func (s *HttpFaultDelay) UnmarshalJSON(data []byte) error
type HttpFaultInjection ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests.
func (*HttpFaultInjection) MarshalJSON ¶ added in v0.2.0
func (s *HttpFaultInjection) MarshalJSON() ([]byte, error)
type HttpHeaderAction ¶ added in v0.2.0
type HttpHeaderAction struct { // RequestHeadersToAdd: Headers to add to a matching request prior to // 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 prior to forwarding the request to the // backendService. RequestHeadersToRemove []string `json:"requestHeadersToRemove,omitempty"` // ResponseHeadersToAdd: Headers to add the response prior to 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 prior to 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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.2.0
func (s *HttpHeaderAction) MarshalJSON() ([]byte, error)
type HttpHeaderMatch ¶ added in v0.2.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". HeaderName string `json:"headerName,omitempty"` // InvertMatch: If set to false, the headerMatch is considered a match // if the match criteria above are met. If set to true, the headerMatch // is considered a match if the match criteria above 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 // or not. // 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 *Int64RangeMatch `json:"rangeMatch,omitempty"` // RegexMatch: The value of the header must match the regualar // expression specified in regexMatch. For regular expression grammar, // please see: en.cppreference.com/w/cpp/regex/ecmascript // 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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpHeaderMatch: matchRule criteria for request header matches.
func (*HttpHeaderMatch) MarshalJSON ¶ added in v0.2.0
func (s *HttpHeaderMatch) MarshalJSON() ([]byte, error)
type HttpHeaderOption ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpHeaderOption: Specification determining how headers are added to requests or responses.
func (*HttpHeaderOption) MarshalJSON ¶ added in v0.2.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. RequestPath string `json:"requestPath,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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
HttpHealthCheck: Represents a legacy HTTP Health Check resource.
Legacy health checks are required by network load balancers. For more information, read Health Check Concepts.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HttpHealthChecksDeleteCall) Do ¶
func (c *HttpHealthChecksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpHealthChecks.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*HttpHealthChecksDeleteCall) Header ¶
func (c *HttpHealthChecksDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HttpHealthChecksGetCall) Do ¶
func (c *HttpHealthChecksGetCall) Do(opts ...googleapi.CallOption) (*HttpHealthCheck, error)
Do executes the "compute.httpHealthChecks.get" call. Exactly one of *HttpHealthCheck or error will be non-nil. 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 information.
func (*HttpHealthChecksGetCall) Header ¶
func (c *HttpHealthChecksGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*HttpHealthChecksGetCall) IfNoneMatch ¶
func (c *HttpHealthChecksGetCall) IfNoneMatch(entityTag string) *HttpHealthChecksGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HttpHealthChecksInsertCall) Do ¶
func (c *HttpHealthChecksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpHealthChecks.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*HttpHealthChecksInsertCall) Header ¶
func (c *HttpHealthChecksInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HttpHealthChecksListCall) Do ¶
func (c *HttpHealthChecksListCall) Do(opts ...googleapi.CallOption) (*HttpHealthCheckList, error)
Do executes the "compute.httpHealthChecks.list" call. Exactly one of *HttpHealthCheckList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*HttpHealthChecksListCall) Header ¶
func (c *HttpHealthChecksListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*HttpHealthChecksListCall) IfNoneMatch ¶
func (c *HttpHealthChecksListCall) IfNoneMatch(entityTag string) *HttpHealthChecksListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HttpHealthChecksPatchCall) Do ¶
func (c *HttpHealthChecksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpHealthChecks.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*HttpHealthChecksPatchCall) Header ¶
func (c *HttpHealthChecksPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/delete
func (*HttpHealthChecksService) Get ¶
func (r *HttpHealthChecksService) Get(project string, httpHealthCheck string) *HttpHealthChecksGetCall
Get: Returns the specified HttpHealthCheck resource. Gets a list of available HTTP health checks by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/get
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/insert
func (*HttpHealthChecksService) List ¶
func (r *HttpHealthChecksService) List(project string) *HttpHealthChecksListCall
List: Retrieves the list of HttpHealthCheck resources available to the specified project. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/list
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/patch
func (*HttpHealthChecksService) TestIamPermissions ¶
func (r *HttpHealthChecksService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *HttpHealthChecksTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/update
type HttpHealthChecksTestIamPermissionsCall ¶
type HttpHealthChecksTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*HttpHealthChecksTestIamPermissionsCall) Context ¶
func (c *HttpHealthChecksTestIamPermissionsCall) Context(ctx context.Context) *HttpHealthChecksTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HttpHealthChecksTestIamPermissionsCall) Do ¶
func (c *HttpHealthChecksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.httpHealthChecks.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*HttpHealthChecksTestIamPermissionsCall) Fields ¶
func (c *HttpHealthChecksTestIamPermissionsCall) Fields(s ...googleapi.Field) *HttpHealthChecksTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*HttpHealthChecksTestIamPermissionsCall) Header ¶
func (c *HttpHealthChecksTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HttpHealthChecksUpdateCall) Do ¶
func (c *HttpHealthChecksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpHealthChecks.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*HttpHealthChecksUpdateCall) Header ¶
func (c *HttpHealthChecksUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.2.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 and 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 and 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 // the regular expression grammar, please see // en.cppreference.com/w/cpp/regex/ecmascript // Only one of presentMatch, exactMatch and regexMatch must be set. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpQueryParameterMatch: HttpRouteRuleMatch criteria for a request's query parameter.
func (*HttpQueryParameterMatch) MarshalJSON ¶ added in v0.2.0
func (s *HttpQueryParameterMatch) MarshalJSON() ([]byte, error)
type HttpRedirectAction ¶ added in v0.2.0
type HttpRedirectAction struct { // HostRedirect: The host that will be used in the redirect response // instead of the one that was supplied in the request. // The value must be between 1 and 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 will remain the same as that of the request. // This must only be set for UrlMaps 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 will be used in the redirect response // instead of the one that was supplied in the request. // Only one of pathRedirect or prefixRedirect must be specified. // The value must be between 1 and 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 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 will be retained. // - PERMANENT_REDIRECT, which corresponds to 308. In this case, the // request method will be retained. // // Possible values: // "FOUND" // "MOVED_PERMANENTLY_DEFAULT" // "PERMANENT_REDIRECT" // "SEE_OTHER" // "TEMPORARY_REDIRECT" RedirectResponseCode string `json:"redirectResponseCode,omitempty"` // StripQuery: If set to true, any accompanying query portion of the // original URL is removed prior to 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRedirectAction: Specifies settings for an HTTP redirect.
func (*HttpRedirectAction) MarshalJSON ¶ added in v0.2.0
func (s *HttpRedirectAction) MarshalJSON() ([]byte, error)
type HttpRetryPolicy ¶ added in v0.2.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 HttpRouteAction. If // timeout in HttpRouteAction is not set, will use the largest timeout // among all backend services associated with the route. PerTryTimeout *Duration `json:"perTryTimeout,omitempty"` // RetryConditions: Specfies one or more conditions when this retry rule // applies. Valid values are: // - 5xx: Loadbalancer will attempt a retry if the backend service // responds with any 5xx response code, or if the backend service does // not respond at all, 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: Loadbalancer will retry on failures connecting to // backend services, for example due to connection timeouts. // - retriable-4xx: Loadbalancer will retry for retriable 4xx response // codes. Currently the only retriable error supported is 409. // - refused-stream:Loadbalancer will retry if the backend service // resets the stream with a REFUSED_STREAM error code. This reset type // indicates that it is safe to retry. // - cancelledLoadbalancer will retry if the gRPC status code in the // response header is set to cancelled // - deadline-exceeded: Loadbalancer will retry if the gRPC status code // in the response header is set to deadline-exceeded // - resource-exhausted: Loadbalancer will retry if the gRPC status code // in the response header is set to resource-exhausted // - unavailable: Loadbalancer will retry if the gRPC status code in the // response header is set to 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRetryPolicy: The retry policy associates with HttpRouteRule
func (*HttpRetryPolicy) MarshalJSON ¶ added in v0.2.0
func (s *HttpRetryPolicy) MarshalJSON() ([]byte, error)
type HttpRouteAction ¶ added in v0.2.0
type HttpRouteAction struct { // CorsPolicy: The specification for allowing client side cross-origin // requests. Please see W3C Recommendation for Cross Origin Resource // Sharing 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 // Loadbalancer on a percentage of requests before sending those request // to the backend service. Similarly requests from clients can be // aborted by the Loadbalancer for a percentage of requests. // timeout and retry_policy will be ignored by clients that are // configured with a fault_injection_policy. FaultInjectionPolicy *HttpFaultInjection `json:"faultInjectionPolicy,omitempty"` // RequestMirrorPolicy: Specifies the policy on how requests intended // for the route's backends are shadowed to a separate mirrored backend // service. Loadbalancer does not wait for responses from the shadow // service. Prior to sending traffic to the shadow service, the host / // authority header is suffixed with -shadow. 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 (i.e. // end-of-stream) up until the response has been completely processed. // Timeout includes all retries. // If not specified, will use the largest timeout among all backend // services associated with the route. Timeout *Duration `json:"timeout,omitempty"` // UrlRewrite: The spec to modify the URL of the request, prior to // forwarding the request to the matched service 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 0 // number. // Once a backendService is identified and before forwarding the request // to the backend service, advanced routing actions like 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*HttpRouteAction) MarshalJSON ¶ added in v0.2.0
func (s *HttpRouteAction) MarshalJSON() ([]byte, error)
type HttpRouteRule ¶ added in v0.2.0
type HttpRouteRule struct { // 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 specified here are applied before the matching // pathMatchers[].headerAction and after // pathMatchers[].routeRules[].routeAction.weightedBackendService.backend // ServiceWeightAction[].headerAction HeaderAction *HttpHeaderAction `json:"headerAction,omitempty"` MatchRules []*HttpRouteRuleMatch `json:"matchRules,omitempty"` // Priority: For routeRules within a given pathMatcher, priority // determines the order in which load balancer will interpret // 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 between 0 and // 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 like URL rewrites, header // transformations, etc. prior to 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. 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 // additionally specified, advanced routing actions like URL Rewrites, // etc. take effect prior to sending the request to the backend. // However, if service is specified, routeAction cannot contain any // weightedBackendService s. 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. UrlRedirect *HttpRedirectAction `json:"urlRedirect,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteRule: An HttpRouteRule specifies how to match an HTTP request and the corresponding routing action that load balancing proxies will perform.
func (*HttpRouteRule) MarshalJSON ¶ added in v0.2.0
func (s *HttpRouteRule) MarshalJSON() ([]byte, error)
type HttpRouteRuleMatch ¶ added in v0.2.0
type HttpRouteRuleMatch struct { // FullPathMatch: For satifying 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 between 1 and 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. // caseSensitive must not be used with regexMatch. IgnoreCase bool `json:"ignoreCase,omitempty"` // MetadataFilters: Opaque filter criteria used by Loadbalancer to // restrict routing configuration to a limited set xDS compliant // clients. In their xDS requests to Loadbalancer, xDS clients present // node metadata. If a match takes place, 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 in the provided // metadata. // metadataFilters specified here can be overrides those specified in // ForwardingRule that refers to this UrlMap. // metadataFilters only applies to Loadbalancers that have their // loadBalancingScheme set to INTERNAL_SELF_MANAGED. MetadataFilters []*MetadataFilter `json:"metadataFilters,omitempty"` // PrefixMatch: For satifying the matchRule condition, the request's // path must begin with the specified prefixMatch. prefixMatch must // begin with a /. // The value must be between 1 and 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. QueryParameterMatches []*HttpQueryParameterMatch `json:"queryParameterMatches,omitempty"` // RegexMatch: For satifying 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 regular expression grammar please see // en.cppreference.com/w/cpp/regex/ecmascript // Only one of prefixMatch, fullPathMatch or regexMatch must be // specified. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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.2.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 "/". RequestPath string `json:"requestPath,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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
HttpsHealthCheck: Represents a legacy HTTPS Health Check resource.
Legacy health checks are required by network load balancers. For more information, read Health Check Concepts.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HttpsHealthChecksDeleteCall) Do ¶
func (c *HttpsHealthChecksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpsHealthChecks.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*HttpsHealthChecksDeleteCall) Header ¶
func (c *HttpsHealthChecksDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HttpsHealthChecksGetCall) Do ¶
func (c *HttpsHealthChecksGetCall) Do(opts ...googleapi.CallOption) (*HttpsHealthCheck, error)
Do executes the "compute.httpsHealthChecks.get" call. Exactly one of *HttpsHealthCheck or error will be non-nil. 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 information.
func (*HttpsHealthChecksGetCall) Header ¶
func (c *HttpsHealthChecksGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*HttpsHealthChecksGetCall) IfNoneMatch ¶
func (c *HttpsHealthChecksGetCall) IfNoneMatch(entityTag string) *HttpsHealthChecksGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HttpsHealthChecksInsertCall) Do ¶
func (c *HttpsHealthChecksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpsHealthChecks.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*HttpsHealthChecksInsertCall) Header ¶
func (c *HttpsHealthChecksInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HttpsHealthChecksListCall) Do ¶
func (c *HttpsHealthChecksListCall) Do(opts ...googleapi.CallOption) (*HttpsHealthCheckList, error)
Do executes the "compute.httpsHealthChecks.list" call. Exactly one of *HttpsHealthCheckList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*HttpsHealthChecksListCall) Header ¶
func (c *HttpsHealthChecksListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*HttpsHealthChecksListCall) IfNoneMatch ¶
func (c *HttpsHealthChecksListCall) IfNoneMatch(entityTag string) *HttpsHealthChecksListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HttpsHealthChecksPatchCall) Do ¶
func (c *HttpsHealthChecksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpsHealthChecks.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*HttpsHealthChecksPatchCall) Header ¶
func (c *HttpsHealthChecksPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. (== suppress_warning http-rest-shadowed ==)
func (*HttpsHealthChecksService) Get ¶
func (r *HttpsHealthChecksService) Get(project string, httpsHealthCheck string) *HttpsHealthChecksGetCall
Get: Returns the specified HttpsHealthCheck resource. Gets a list of available HTTPS health checks by making a list() request. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*HttpsHealthChecksService) List ¶
func (r *HttpsHealthChecksService) List(project string) *HttpsHealthChecksListCall
List: Retrieves the list of HttpsHealthCheck resources available to the specified project. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*HttpsHealthChecksService) TestIamPermissions ¶
func (r *HttpsHealthChecksService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *HttpsHealthChecksTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
type HttpsHealthChecksTestIamPermissionsCall ¶
type HttpsHealthChecksTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*HttpsHealthChecksTestIamPermissionsCall) Context ¶
func (c *HttpsHealthChecksTestIamPermissionsCall) Context(ctx context.Context) *HttpsHealthChecksTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HttpsHealthChecksTestIamPermissionsCall) Do ¶
func (c *HttpsHealthChecksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.httpsHealthChecks.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*HttpsHealthChecksTestIamPermissionsCall) Fields ¶
func (c *HttpsHealthChecksTestIamPermissionsCall) Fields(s ...googleapi.Field) *HttpsHealthChecksTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*HttpsHealthChecksTestIamPermissionsCall) Header ¶
func (c *HttpsHealthChecksTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*HttpsHealthChecksUpdateCall) Do ¶
func (c *HttpsHealthChecksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.httpsHealthChecks.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*HttpsHealthChecksUpdateCall) Header ¶
func (c *HttpsHealthChecksUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 { // 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"` // Family: The name of the image family to which this image belongs. You // can create disks by specifying 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. 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"` // 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"` // 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"` // 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. This // can be a full or valid partial URL. You must provide either this // property or the rawDisk.source property but not both to create an // 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 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. This // can be a full or valid partial URL. You must provide exactly one of: // // - this property, or // - the rawDisk.source property, or // - the sourceDisk property in order to create an image. 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. // This can be a full or valid partial URL. You must provide exactly one // of: // - this property, or // - the sourceImage property, or // - the rawDisk.source property, or // - the sourceDisk property in order to create an image. 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 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" // "FAILED" // "PENDING" // "READY" 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. "ArchiveSizeBytes") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ArchiveSizeBytes") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. (== resource_for beta.images ==) (== resource_for v1.images ==)
func (*Image) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 disk image is // stored. You must provide either this property or the sourceDisk // property but not both. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ImagesDeleteCall) Do ¶
func (c *ImagesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.images.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ImagesDeleteCall) Header ¶
func (c *ImagesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ImagesDeprecateCall) Do ¶
func (c *ImagesDeprecateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.images.deprecate" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ImagesDeprecateCall) Header ¶
func (c *ImagesDeprecateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ImagesGetCall) Do ¶
func (c *ImagesGetCall) Do(opts ...googleapi.CallOption) (*Image, error)
Do executes the "compute.images.get" call. Exactly one of *Image or error will be non-nil. 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 information.
func (*ImagesGetCall) Header ¶
func (c *ImagesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ImagesGetCall) IfNoneMatch ¶
func (c *ImagesGetCall) IfNoneMatch(entityTag string) *ImagesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ImagesGetFromFamilyCall) Do ¶
func (c *ImagesGetFromFamilyCall) Do(opts ...googleapi.CallOption) (*Image, error)
Do executes the "compute.images.getFromFamily" call. Exactly one of *Image or error will be non-nil. 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 information.
func (*ImagesGetFromFamilyCall) Header ¶
func (c *ImagesGetFromFamilyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ImagesGetFromFamilyCall) IfNoneMatch ¶
func (c *ImagesGetFromFamilyCall) IfNoneMatch(entityTag string) *ImagesGetFromFamilyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ImagesGetIamPolicyCall) Do ¶
func (c *ImagesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.images.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*ImagesGetIamPolicyCall) Header ¶
func (c *ImagesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ImagesGetIamPolicyCall) IfNoneMatch ¶
func (c *ImagesGetIamPolicyCall) IfNoneMatch(entityTag string) *ImagesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ImagesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ImagesInsertCall) Do ¶
func (c *ImagesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.images.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
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 an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ImagesListCall) Do ¶
func (c *ImagesListCall) Do(opts ...googleapi.CallOption) (*ImageList, error)
Do executes the "compute.images.list" call. Exactly one of *ImageList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*ImagesListCall) Header ¶
func (c *ImagesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ImagesListCall) IfNoneMatch ¶
func (c *ImagesListCall) IfNoneMatch(entityTag string) *ImagesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/images/delete
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/images/deprecate
func (*ImagesService) Get ¶
func (r *ImagesService) Get(project string, image string) *ImagesGetCall
Get: Returns the specified image. Gets a list of available images by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/images/get
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/images/insert
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/images/list
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ImagesSetIamPolicyCall) Do ¶
func (c *ImagesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.images.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*ImagesSetIamPolicyCall) Header ¶
func (c *ImagesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ImagesSetLabelsCall) Do ¶
func (c *ImagesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.images.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ImagesSetLabelsCall) Header ¶
func (c *ImagesSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ImagesTestIamPermissionsCall) Do ¶
func (c *ImagesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.images.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 information.
func (*ImagesTestIamPermissionsCall) Header ¶
func (c *ImagesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type InitialStateConfig ¶ added in v0.3.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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.3.0
func (s *InitialStateConfig) MarshalJSON() ([]byte, error)
type Instance ¶
type Instance struct { // 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"` // EraseWindowsVssSignature: Specifies whether the disks restored from // source snapshots or source machine image should erase Windows // specific VSS signature. EraseWindowsVssSignature bool `json:"eraseWindowsVssSignature,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 or decrypts data for an instance with // a customer-supplied encryption key. // // If you are creating a new instance, this field encrypts the local SSD // and in-memory contents of the instance using a key that you // provide. // // If you are restarting an instance protected with a customer-supplied // encryption key, you must provide the correct key in order to // successfully restart the instance. // // 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 and you do not need to provide a key to // start the instance later. // // Instance templates do not store customer-supplied encryption keys, so // you cannot use your own keys to encrypt local SSDs and in-memory // content in a managed instance group. InstanceEncryptionKey *CustomerEncryptionKey `json:"instanceEncryptionKey,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"` // 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"` // PostKeyRevocationActionType: Specifies whether this instance will be // shut down on key revocation. // // Possible values: // "NOOP" // "SHUTDOWN" // "UNSPECIFIED" PostKeyRevocationActionType string `json:"postKeyRevocationActionType,omitempty"` // PreservedStateSizeGb: Total amount of preserved state for SUSPENDED // instances. Read-only in the api. PreservedStateSizeGb int64 `json:"preservedStateSizeGb,omitempty,string"` // 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"` // 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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"` ShieldedVmConfig *ShieldedVmConfig `json:"shieldedVmConfig,omitempty"` ShieldedVmIntegrityPolicy *ShieldedVmIntegrityPolicy `json:"shieldedVmIntegrityPolicy,omitempty"` // SourceMachineImage: Source machine image SourceMachineImage string `json:"sourceMachineImage,omitempty"` // SourceMachineImageEncryptionKey: Source GMI encryption key when // creating an instance from GMI. 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, STOPPED, // SUSPENDING, SUSPENDED, and TERMINATED. // // Possible values: // "PROVISIONING" // "REPAIRING" // "RUNNING" // "STAGING" // "STOPPED" // "STOPPING" // "SUSPENDED" // "SUSPENDING" // "TERMINATED" 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. "CanIpForward") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== resource_for beta.instances ==) (== resource_for v1.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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceAggregatedListWarningData) MarshalJSON ¶
func (s *InstanceAggregatedListWarningData) 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: "http", port: 80},{name: "http", port: // 8080}] // // Named ports apply to all instances in this instance group. NamedPorts []*NamedPort `json:"namedPorts,omitempty"` // Network: The URL of the network to which all instances in the // instance group belong. 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
InstanceGroup: Represents an unmanaged Instance Group resource.
Use unmanaged instance groups if you need to apply load balancing to groups of heterogeneous instances or if you need to manage the instances yourself. For more information, read Instance groups.
For zonal unmanaged Instance Group, use instanceGroups resource.
For regional unmanaged Instance Group, use regionInstanceGroups resource. (== resource_for beta.instanceGroups ==) (== resource_for v1.instanceGroups ==) (== resource_for beta.regionInstanceGroups ==) (== resource_for v1.regionInstanceGroups ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupListWarningData) MarshalJSON ¶
func (s *InstanceGroupListWarningData) MarshalJSON() ([]byte, error)
type InstanceGroupManager ¶
type InstanceGroupManager struct { // 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 to use for instances in this // group. The value must be 1-58 characters long. Instances are named by // appending a hyphen and a random four-character string to the base // instance name. The base instance name must comply with RFC1035. 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. Provide this // property when you create the resource. Description string `json:"description,omitempty"` // DistributionPolicy: Policy specifying intended distribution of // instances in regional managed instance group. DistributionPolicy *DistributionPolicy `json:"distributionPolicy,omitempty"` // FailoverAction: The action to perform in case of zone failure. Only // one value is supported, NO_FAILOVER. The default is NO_FAILOVER. // // Possible values: // "NO_FAILOVER" // "UNKNOWN" FailoverAction string `json:"failoverAction,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"` // 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. 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"` // 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"` // PendingActions: [Deprecated] This field is deprecated and will be // removed. Prefer using the status field instead. Please contact // cloud-updater-feedback@google.com to leave feedback if your workload // relies on this field. [Output Only] The list of instance actions and // the number of instances in this managed instance group that are // pending for each of those actions. PendingActions *InstanceGroupManagerPendingActionsSummary `json:"pendingActions,omitempty"` // Region: [Output Only] The URL of the region where the managed // instance group resides (for regional resources). Region string `json:"region,omitempty"` // SelfLink: [Output Only] The URL for this managed instance group. 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"` // ServiceAccount: The service account to be used as credentials for all // operations performed by the managed instance group on instances. The // service accounts needs all permissions required to create and delete // instances. By default, the service account // {projectNumber}@cloudservices.gserviceaccount.com is used. ServiceAccount string `json:"serviceAccount,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. Deleting or abandoning instances reduces this number. // Resizing the group 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 the 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. "AutoHealingPolicies") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AutoHealingPolicies") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. (== resource_for beta.instanceGroupManagers ==) (== resource_for v1.instanceGroupManagers ==) (== resource_for beta.regionInstanceGroupManagers ==) (== resource_for v1.regionInstanceGroupManagers ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagerAggregatedListWarningData) MarshalJSON ¶
func (s *InstanceGroupManagerAggregatedListWarningData) MarshalJSON() ([]byte, error)
type InstanceGroupManagerAutoHealingPolicy ¶
type InstanceGroupManagerAutoHealingPolicy struct { // HealthCheck: The URL for the health check that signals autohealing. HealthCheck string `json:"healthCheck,omitempty"` // InitialDelaySec: The number of seconds that the managed instance // group waits before it applies autohealing policies to new instances // or recently recreated instances. This initial delay allows instances // to initialize and run their startup scripts before the instance group // determines that they are UNHEALTHY. This prevents the managed // instance group from recreating its instances prematurely. This value // must be from range [0, 3600]. InitialDelaySec int64 `json:"initialDelaySec,omitempty"` // when autohealing. When 'percent' is used, the value is rounded UP. // The instance is considered available if all of the following // conditions are satisfied: 1. Instance's status is RUNNING. 2. // Instance's currentAction is NONE (in particular its liveness health // check result was observed to be HEALTHY at least once as it passed // VERIFYING). 3. There is no outgoing action on an instance triggered // by IGM. // // By default, number of concurrently autohealed instances is smaller // than the managed instance group target size. However, if a zonal // managed instance group has only one instance, or a regional managed // instance group has only one instance per zone, autohealing will // recreate these instances when they become unhealthy. MaxUnavailable *FixedOrPercent `json:"maxUnavailable,omitempty"` // ForceSendFields is a list of field names (e.g. "HealthCheck") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagerAutoHealingPolicy) MarshalJSON ¶
func (s *InstanceGroupManagerAutoHealingPolicy) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagerListWarningData) MarshalJSON ¶
func (s *InstanceGroupManagerListWarningData) MarshalJSON() ([]byte, error)
type InstanceGroupManagerPendingActionsSummary ¶
type InstanceGroupManagerPendingActionsSummary struct { // Creating: [Deprecated] This field is deprecated and will be removed. // Prefer using the status field instead. Please contact // cloud-updater-feedback@google.com to leave feedback if your workload // relies on this field. [Output Only] The number of instances in the // managed instance group that are pending to be created. Creating int64 `json:"creating,omitempty"` // Deleting: [Deprecated] This field is deprecated and will be removed. // Prefer using the status field instead. Please contact // cloud-updater-feedback@google.com to leave feedback if your workload // relies on this field. [Output Only] The number of instances in the // managed instance group that are pending to be deleted. Deleting int64 `json:"deleting,omitempty"` // Recreating: [Deprecated] This field is deprecated and will be // removed. Prefer using the status field instead. Please contact // cloud-updater-feedback@google.com to leave feedback if your workload // relies on this field. [Output Only] The number of instances in the // managed instance group that are pending to be recreated. Recreating int64 `json:"recreating,omitempty"` // Restarting: [Deprecated] This field is deprecated and will be // removed. Prefer using the status field instead. Please contact // cloud-updater-feedback@google.com to leave feedback if your workload // relies on this field. [Output Only] The number of instances in the // managed instance group that are pending to be restarted. Restarting int64 `json:"restarting,omitempty"` // ForceSendFields is a list of field names (e.g. "Creating") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Creating") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagerPendingActionsSummary) MarshalJSON ¶
func (s *InstanceGroupManagerPendingActionsSummary) MarshalJSON() ([]byte, error)
type InstanceGroupManagerStatus ¶
type InstanceGroupManagerStatus struct { // 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. "Autoscaler") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Autoscaler") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagerStatus) MarshalJSON ¶
func (s *InstanceGroupManagerStatus) MarshalJSON() ([]byte, error)
type InstanceGroupManagerStatusStateful ¶ added in v0.6.0
type InstanceGroupManagerStatusStateful struct { // IsStateful: [Output Only] A bit indicating whether the managed // instance group is stateful, i.e. has any disks in Stateful Policy or // at least one per-instance config. This is determined based on the // user intent, the group may be reported as not stateful even when // there is still some preserved state on managed instances. IsStateful bool `json:"isStateful,omitempty"` // ForceSendFields is a list of field names (e.g. "IsStateful") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "IsStateful") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagerStatusStateful) MarshalJSON ¶ added in v0.6.0
func (s *InstanceGroupManagerStatusStateful) MarshalJSON() ([]byte, error)
type InstanceGroupManagerStatusVersionTarget ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagerStatusVersionTarget) MarshalJSON ¶
func (s *InstanceGroupManagerStatusVersionTarget) MarshalJSON() ([]byte, error)
type InstanceGroupManagerUpdatePolicy ¶
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" // "PROACTIVE" InstanceRedistributionType string `json:"instanceRedistributionType,omitempty"` // MaxSurge: The maximum number of instances that can be created above // the specified targetSize during the update process. By default, a // fixed value of 1 is used. This value can be either a fixed number or // a percentage if the instance group has 10 or more instances. If you // set a percentage, the number of instances will be rounded up if // necessary. // // At least one of either maxSurge or maxUnavailable must be greater // than 0. Learn more about maxSurge. MaxSurge *FixedOrPercent `json:"maxSurge,omitempty"` // unavailable 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 // liveness health check result 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. By default, a fixed // value of 1 is used. This value can be either a fixed number or a // percentage if the instance group has 10 or more instances. If you set // a percentage, the number of instances will be rounded up if // necessary. // // At least one of either maxSurge or maxUnavailable must be greater // than 0. Learn more about maxUnavailable. MaxUnavailable *FixedOrPercent `json:"maxUnavailable,omitempty"` // MinReadySec: Minimum number of seconds to wait for after a newly // created instance becomes available. This value must be from range [0, // 3600]. MinReadySec int64 `json:"minReadySec,omitempty"` // MinimalAction: Minimal action to be taken on an instance. You can // specify either RESTART to restart existing instances or REPLACE to // delete and create new instances from the target template. If you // specify a RESTART, the Updater will attempt to perform that action // only. However, if the Updater determines that the minimal action you // specify is not enough to perform the update, it might perform a more // disruptive action. // // Possible values: // "NONE" // "REFRESH" // "REPLACE" // "RESTART" MinimalAction string `json:"minimalAction,omitempty"` // ReplacementMethod: What action should be used to replace instances. // See minimal_action.REPLACE // // Possible values: // "RECREATE" // "SUBSTITUTE" ReplacementMethod string `json:"replacementMethod,omitempty"` // Type: The type of update process. You can specify either PROACTIVE so // that the instance group manager proactively executes actions in order // to bring instances to their target versions or OPPORTUNISTIC so that // no action is proactively executed but the update will be performed as // part of other actions (for example, resizes or recreateInstances // calls). // // Possible values: // "OPPORTUNISTIC" // "PROACTIVE" 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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagerUpdatePolicy) MarshalJSON ¶
func (s *InstanceGroupManagerUpdatePolicy) MarshalJSON() ([]byte, error)
type InstanceGroupManagerVersion ¶
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. 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"` // Tag: Tag describing the version. Used to trigger rollout of a target // version even if instance_template remains unchanged. Deprecated in // favor of 'name'. Tag string `json:"tag,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 up. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagerVersion) MarshalJSON ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersAbandonInstancesCall) Do ¶
func (c *InstanceGroupManagersAbandonInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.abandonInstances" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceGroupManagersAbandonInstancesCall) Header ¶
func (c *InstanceGroupManagersAbandonInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersAggregatedListCall) Do ¶
func (c *InstanceGroupManagersAggregatedListCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagerAggregatedList, error)
Do executes the "compute.instanceGroupManagers.aggregatedList" call. Exactly one of *InstanceGroupManagerAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InstanceGroupManagersAggregatedListCall) Header ¶
func (c *InstanceGroupManagersAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceGroupManagersAggregatedListCall) IfNoneMatch ¶
func (c *InstanceGroupManagersAggregatedListCall) IfNoneMatch(entityTag string) *InstanceGroupManagersAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
type InstanceGroupManagersApplyUpdatesRequest ¶
type InstanceGroupManagersApplyUpdatesRequest struct { // 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"` // MaximalAction: The maximal action that should be performed on the // instances. By default REPLACE. This field is deprecated, please use // most_disruptive_allowed_action. // // Possible values: // "NONE" // "REFRESH" // "REPLACE" // "RESTART" MaximalAction string `json:"maximalAction,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. // - 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" // "REFRESH" // "REPLACE" // "RESTART" 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. // - 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" // "REFRESH" // "REPLACE" // "RESTART" MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
InstanceGroupManagersApplyUpdatesRequest: InstanceGroupManagers.applyUpdatesToInstances
func (*InstanceGroupManagersApplyUpdatesRequest) MarshalJSON ¶
func (s *InstanceGroupManagersApplyUpdatesRequest) MarshalJSON() ([]byte, error)
type InstanceGroupManagersApplyUpdatesToInstancesCall ¶
type InstanceGroupManagersApplyUpdatesToInstancesCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersApplyUpdatesToInstancesCall) Context ¶
func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) Context(ctx context.Context) *InstanceGroupManagersApplyUpdatesToInstancesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersApplyUpdatesToInstancesCall) Do ¶
func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.applyUpdatesToInstances" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*InstanceGroupManagersApplyUpdatesToInstancesCall) Header ¶
func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type InstanceGroupManagersCreateInstancesCall ¶
type InstanceGroupManagersCreateInstancesCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersCreateInstancesCall) Context ¶
func (c *InstanceGroupManagersCreateInstancesCall) Context(ctx context.Context) *InstanceGroupManagersCreateInstancesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersCreateInstancesCall) Do ¶
func (c *InstanceGroupManagersCreateInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.createInstances" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*InstanceGroupManagersCreateInstancesCall) Header ¶
func (c *InstanceGroupManagersCreateInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceGroupManagersCreateInstancesCall) RequestId ¶
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 ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
InstanceGroupManagersCreateInstancesRequest: InstanceGroupManagers.createInstances
func (*InstanceGroupManagersCreateInstancesRequest) MarshalJSON ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersDeleteCall) Do ¶
func (c *InstanceGroupManagersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceGroupManagersDeleteCall) Header ¶
func (c *InstanceGroupManagersDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersDeleteInstancesCall) Do ¶
func (c *InstanceGroupManagersDeleteInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.deleteInstances" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceGroupManagersDeleteInstancesCall) Header ¶
func (c *InstanceGroupManagersDeleteInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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]. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagersDeleteInstancesRequest) MarshalJSON ¶
func (s *InstanceGroupManagersDeleteInstancesRequest) MarshalJSON() ([]byte, error)
type InstanceGroupManagersDeletePerInstanceConfigsCall ¶
type InstanceGroupManagersDeletePerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersDeletePerInstanceConfigsCall) Context ¶
func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) Context(ctx context.Context) *InstanceGroupManagersDeletePerInstanceConfigsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersDeletePerInstanceConfigsCall) Do ¶
func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.deletePerInstanceConfigs" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*InstanceGroupManagersDeletePerInstanceConfigsCall) Header ¶
func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type InstanceGroupManagersDeletePerInstanceConfigsReq ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
InstanceGroupManagersDeletePerInstanceConfigsReq: InstanceGroupManagers.deletePerInstanceConfigs
func (*InstanceGroupManagersDeletePerInstanceConfigsReq) MarshalJSON ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersGetCall) Do ¶
func (c *InstanceGroupManagersGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManager, error)
Do executes the "compute.instanceGroupManagers.get" call. Exactly one of *InstanceGroupManager or error will be non-nil. 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 information.
func (*InstanceGroupManagersGetCall) Header ¶
func (c *InstanceGroupManagersGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceGroupManagersGetCall) IfNoneMatch ¶
func (c *InstanceGroupManagersGetCall) IfNoneMatch(entityTag string) *InstanceGroupManagersGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersInsertCall) Do ¶
func (c *InstanceGroupManagersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceGroupManagersInsertCall) Header ¶
func (c *InstanceGroupManagersInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersListCall) Do ¶
func (c *InstanceGroupManagersListCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagerList, error)
Do executes the "compute.instanceGroupManagers.list" call. Exactly one of *InstanceGroupManagerList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InstanceGroupManagersListCall) Header ¶
func (c *InstanceGroupManagersListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceGroupManagersListCall) IfNoneMatch ¶
func (c *InstanceGroupManagersListCall) IfNoneMatch(entityTag string) *InstanceGroupManagersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
type InstanceGroupManagersListErrorsCall ¶ added in v0.7.0
type InstanceGroupManagersListErrorsCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersListErrorsCall) Context ¶ added in v0.7.0
func (c *InstanceGroupManagersListErrorsCall) Context(ctx context.Context) *InstanceGroupManagersListErrorsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersListErrorsCall) Do ¶ added in v0.7.0
func (c *InstanceGroupManagersListErrorsCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagersListErrorsResponse, error)
Do executes the "compute.instanceGroupManagers.listErrors" call. Exactly one of *InstanceGroupManagersListErrorsResponse or error will be non-nil. 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.7.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 information.
func (*InstanceGroupManagersListErrorsCall) Filter ¶ added in v0.7.0
func (c *InstanceGroupManagersListErrorsCall) Filter(filter string) *InstanceGroupManagersListErrorsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InstanceGroupManagersListErrorsCall) Header ¶ added in v0.7.0
func (c *InstanceGroupManagersListErrorsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceGroupManagersListErrorsCall) IfNoneMatch ¶ added in v0.7.0
func (c *InstanceGroupManagersListErrorsCall) IfNoneMatch(entityTag string) *InstanceGroupManagersListErrorsCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*InstanceGroupManagersListErrorsCall) MaxResults ¶ added in v0.7.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.7.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.7.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.7.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.
type InstanceGroupManagersListErrorsResponse ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagersListErrorsResponse) MarshalJSON ¶ added in v0.7.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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersListManagedInstancesCall) Do ¶
func (c *InstanceGroupManagersListManagedInstancesCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagersListManagedInstancesResponse, error)
Do executes the "compute.instanceGroupManagers.listManagedInstances" call. Exactly one of *InstanceGroupManagersListManagedInstancesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *InstanceGroupManagersListManagedInstancesResponse.ServerResponse.Head er or (if a response was 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InstanceGroupManagersListManagedInstancesCall) Header ¶
func (c *InstanceGroupManagersListManagedInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 "order_by": 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 ¶
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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagersListManagedInstancesResponse) MarshalJSON ¶
func (s *InstanceGroupManagersListManagedInstancesResponse) MarshalJSON() ([]byte, error)
type InstanceGroupManagersListPerInstanceConfigsCall ¶
type InstanceGroupManagersListPerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersListPerInstanceConfigsCall) Context ¶
func (c *InstanceGroupManagersListPerInstanceConfigsCall) Context(ctx context.Context) *InstanceGroupManagersListPerInstanceConfigsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersListPerInstanceConfigsCall) Do ¶
func (c *InstanceGroupManagersListPerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagersListPerInstanceConfigsResp, error)
Do executes the "compute.instanceGroupManagers.listPerInstanceConfigs" call. Exactly one of *InstanceGroupManagersListPerInstanceConfigsResp or error will be non-nil. 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 ¶
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 information.
func (*InstanceGroupManagersListPerInstanceConfigsCall) Filter ¶
func (c *InstanceGroupManagersListPerInstanceConfigsCall) Filter(filter string) *InstanceGroupManagersListPerInstanceConfigsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InstanceGroupManagersListPerInstanceConfigsCall) Header ¶
func (c *InstanceGroupManagersListPerInstanceConfigsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceGroupManagersListPerInstanceConfigsCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type InstanceGroupManagersListPerInstanceConfigsResp ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagersListPerInstanceConfigsResp) MarshalJSON ¶
func (s *InstanceGroupManagersListPerInstanceConfigsResp) MarshalJSON() ([]byte, error)
type InstanceGroupManagersListPerInstanceConfigsRespWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
InstanceGroupManagersListPerInstanceConfigsRespWarning: [Output Only] Informational warning message.
func (*InstanceGroupManagersListPerInstanceConfigsRespWarning) MarshalJSON ¶
func (s *InstanceGroupManagersListPerInstanceConfigsRespWarning) MarshalJSON() ([]byte, error)
type InstanceGroupManagersListPerInstanceConfigsRespWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagersListPerInstanceConfigsRespWarningData) MarshalJSON ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersPatchCall) Do ¶
func (c *InstanceGroupManagersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceGroupManagersPatchCall) Header ¶
func (c *InstanceGroupManagersPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.3.0
type InstanceGroupManagersPatchPerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersPatchPerInstanceConfigsCall) Context ¶ added in v0.3.0
func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) Context(ctx context.Context) *InstanceGroupManagersPatchPerInstanceConfigsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersPatchPerInstanceConfigsCall) Do ¶ added in v0.3.0
func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.patchPerInstanceConfigs" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.3.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 information.
func (*InstanceGroupManagersPatchPerInstanceConfigsCall) Header ¶ added in v0.3.0
func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceGroupManagersPatchPerInstanceConfigsCall) RequestId ¶ added in v0.3.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.3.0
type InstanceGroupManagersPatchPerInstanceConfigsReq struct { // PerInstanceConfigs: The list of per-instance configs 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
InstanceGroupManagersPatchPerInstanceConfigsReq: InstanceGroupManagers.patchPerInstanceConfigs
func (*InstanceGroupManagersPatchPerInstanceConfigsReq) MarshalJSON ¶ added in v0.3.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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersRecreateInstancesCall) Do ¶
func (c *InstanceGroupManagersRecreateInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.recreateInstances" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceGroupManagersRecreateInstancesCall) Header ¶
func (c *InstanceGroupManagersRecreateInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagersRecreateInstancesRequest) MarshalJSON ¶
func (s *InstanceGroupManagersRecreateInstancesRequest) MarshalJSON() ([]byte, error)
type InstanceGroupManagersResizeAdvancedCall ¶
type InstanceGroupManagersResizeAdvancedCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersResizeAdvancedCall) Context ¶
func (c *InstanceGroupManagersResizeAdvancedCall) Context(ctx context.Context) *InstanceGroupManagersResizeAdvancedCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersResizeAdvancedCall) Do ¶
func (c *InstanceGroupManagersResizeAdvancedCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.resizeAdvanced" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersResizeAdvancedCall) Fields ¶
func (c *InstanceGroupManagersResizeAdvancedCall) Fields(s ...googleapi.Field) *InstanceGroupManagersResizeAdvancedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InstanceGroupManagersResizeAdvancedCall) Header ¶
func (c *InstanceGroupManagersResizeAdvancedCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceGroupManagersResizeAdvancedCall) RequestId ¶
func (c *InstanceGroupManagersResizeAdvancedCall) RequestId(requestId string) *InstanceGroupManagersResizeAdvancedCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type InstanceGroupManagersResizeAdvancedRequest ¶
type InstanceGroupManagersResizeAdvancedRequest struct { // NoCreationRetries: If this flag is true, the managed instance group // attempts to create all instances initiated by this resize request // only once. If there is an error during creation, the managed instance // group does not retry create this instance, and we will decrease the // targetSize of the request instead. If the flag is false, the group // attempts to recreate each instance continuously until it // succeeds. // // This flag matters only in the first attempt of creation of an // instance. After an instance is successfully created while this flag // is enabled, the instance behaves the same way as all the other // instances created with a regular resize request. In particular, if a // running instance dies unexpectedly at a later time and needs to be // recreated, this mode does not affect the recreation behavior in that // scenario. // // This flag is applicable only to the current resize request. It does // not influence other resize requests in any way. // // You can see which instances is being creating in which mode by // calling the get or listManagedInstances API. NoCreationRetries bool `json:"noCreationRetries,omitempty"` // TargetSize: 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. TargetSize int64 `json:"targetSize,omitempty"` // ForceSendFields is a list of field names (e.g. "NoCreationRetries") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NoCreationRetries") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagersResizeAdvancedRequest) MarshalJSON ¶
func (s *InstanceGroupManagersResizeAdvancedRequest) 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersResizeCall) Do ¶
func (c *InstanceGroupManagersResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.resize" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceGroupManagersResizeCall) Header ¶
func (c *InstanceGroupManagersResizeCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupManagersService) AggregatedList ¶
func (r *InstanceGroupManagersService) AggregatedList(project string) *InstanceGroupManagersAggregatedListCall
AggregatedList: Retrieves the list of managed instance groups and groups them by zone. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupManagersService) ApplyUpdatesToInstances ¶
func (r *InstanceGroupManagersService) ApplyUpdatesToInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersapplyupdatesrequest *InstanceGroupManagersApplyUpdatesRequest) *InstanceGroupManagersApplyUpdatesToInstancesCall
ApplyUpdatesToInstances: Apply changes to selected instances on the managed instance group. This method can be used to apply new overrides and/or new versions. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupManagersService) CreateInstances ¶
func (r *InstanceGroupManagersService) CreateInstances(project string, zone string, instanceGroupManager string, instancegroupmanagerscreateinstancesrequest *InstanceGroupManagersCreateInstancesRequest) *InstanceGroupManagersCreateInstancesCall
CreateInstances: Creates instances with per-instance configs 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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupManagersService) DeletePerInstanceConfigs ¶
func (r *InstanceGroupManagersService) DeletePerInstanceConfigs(project string, zone string, instanceGroupManager string, instancegroupmanagersdeleteperinstanceconfigsreq *InstanceGroupManagersDeletePerInstanceConfigsReq) *InstanceGroupManagersDeletePerInstanceConfigsCall
DeletePerInstanceConfigs: Deletes selected per-instance configs for the managed instance group. (== suppress_warning http-rest-shadowed ==)
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. Gets a list of available managed instance groups by making a list() request. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupManagersService) ListErrors ¶ added in v0.7.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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupManagersService) ListPerInstanceConfigs ¶
func (r *InstanceGroupManagersService) ListPerInstanceConfigs(project string, zone string, instanceGroupManager string) *InstanceGroupManagersListPerInstanceConfigsCall
ListPerInstanceConfigs: Lists all of the per-instance configs defined for the managed instance group. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupManagersService) PatchPerInstanceConfigs ¶ added in v0.3.0
func (r *InstanceGroupManagersService) PatchPerInstanceConfigs(project string, zone string, instanceGroupManager string, instancegroupmanagerspatchperinstanceconfigsreq *InstanceGroupManagersPatchPerInstanceConfigsReq) *InstanceGroupManagersPatchPerInstanceConfigsCall
PatchPerInstanceConfigs: Insert or patch (for the ones that already exist) per-instance configs for the managed instance group. perInstanceConfig.instance serves as a key used to distinguish whether to perform insert or patch. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupManagersService) RecreateInstances ¶
func (r *InstanceGroupManagersService) RecreateInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersrecreateinstancesrequest *InstanceGroupManagersRecreateInstancesRequest) *InstanceGroupManagersRecreateInstancesCall
RecreateInstances: Flags the specified instances in the managed instance group to be immediately recreated. The instances are deleted and recreated using the current instance template for the managed instance group. 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 the recreating 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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupManagersService) ResizeAdvanced ¶
func (r *InstanceGroupManagersService) ResizeAdvanced(project string, zone string, instanceGroupManager string, instancegroupmanagersresizeadvancedrequest *InstanceGroupManagersResizeAdvancedRequest) *InstanceGroupManagersResizeAdvancedCall
ResizeAdvanced: Resizes the managed instance group with advanced configuration options like disabling creation retries. This is an extended version of the resize method.
If you increase the size of the instance group, 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, creatingWithoutRetries, or deleting actions with the get or 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. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupManagersService) SetAutoHealingPolicies ¶
func (r *InstanceGroupManagersService) SetAutoHealingPolicies(project string, zone string, instanceGroupManager string, instancegroupmanagerssetautohealingrequest *InstanceGroupManagersSetAutoHealingRequest) *InstanceGroupManagersSetAutoHealingPoliciesCall
SetAutoHealingPolicies: Modifies the autohealing policies. [Deprecated] This method is deprecated. Please use Patch instead. (== suppress_warning http-rest-shadowed ==)
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 recreate them. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupManagersService) TestIamPermissions ¶
func (r *InstanceGroupManagersService) TestIamPermissions(project string, zone string, resource string, testpermissionsrequest *TestPermissionsRequest) *InstanceGroupManagersTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupManagersService) Update ¶
func (r *InstanceGroupManagersService) Update(project string, zone string, instanceGroupManager string, instancegroupmanager *InstanceGroupManager) *InstanceGroupManagersUpdateCall
Update: Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is updated even if the instances in the group have not yet been updated. You must separately verify the status of the individual instances with the listManagedInstances method. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupManagersService) UpdatePerInstanceConfigs ¶
func (r *InstanceGroupManagersService) UpdatePerInstanceConfigs(project string, zone string, instanceGroupManager string, instancegroupmanagersupdateperinstanceconfigsreq *InstanceGroupManagersUpdatePerInstanceConfigsReq) *InstanceGroupManagersUpdatePerInstanceConfigsCall
UpdatePerInstanceConfigs: Insert or update (for the ones that already exist) per-instance configs for the managed instance group. perInstanceConfig.instance serves as a key used to distinguish whether to perform insert or patch. (== suppress_warning http-rest-shadowed ==)
type InstanceGroupManagersSetAutoHealingPoliciesCall ¶
type InstanceGroupManagersSetAutoHealingPoliciesCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersSetAutoHealingPoliciesCall) Context ¶
func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) Context(ctx context.Context) *InstanceGroupManagersSetAutoHealingPoliciesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersSetAutoHealingPoliciesCall) Do ¶
func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.setAutoHealingPolicies" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersSetAutoHealingPoliciesCall) Fields ¶
func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) Fields(s ...googleapi.Field) *InstanceGroupManagersSetAutoHealingPoliciesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InstanceGroupManagersSetAutoHealingPoliciesCall) Header ¶
func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceGroupManagersSetAutoHealingPoliciesCall) RequestId ¶
func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) RequestId(requestId string) *InstanceGroupManagersSetAutoHealingPoliciesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type InstanceGroupManagersSetAutoHealingRequest ¶
type InstanceGroupManagersSetAutoHealingRequest struct { AutoHealingPolicies []*InstanceGroupManagerAutoHealingPolicy `json:"autoHealingPolicies,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoHealingPolicies") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AutoHealingPolicies") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagersSetAutoHealingRequest) MarshalJSON ¶
func (s *InstanceGroupManagersSetAutoHealingRequest) MarshalJSON() ([]byte, error)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersSetInstanceTemplateCall) Do ¶
func (c *InstanceGroupManagersSetInstanceTemplateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.setInstanceTemplate" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceGroupManagersSetInstanceTemplateCall) Header ¶
func (c *InstanceGroupManagersSetInstanceTemplateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersSetTargetPoolsCall) Do ¶
func (c *InstanceGroupManagersSetTargetPoolsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.setTargetPools" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceGroupManagersSetTargetPoolsCall) Header ¶
func (c *InstanceGroupManagersSetTargetPoolsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupManagersSetTargetPoolsRequest) MarshalJSON ¶
func (s *InstanceGroupManagersSetTargetPoolsRequest) MarshalJSON() ([]byte, error)
type InstanceGroupManagersTestIamPermissionsCall ¶
type InstanceGroupManagersTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersTestIamPermissionsCall) Context ¶
func (c *InstanceGroupManagersTestIamPermissionsCall) Context(ctx context.Context) *InstanceGroupManagersTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersTestIamPermissionsCall) Do ¶
func (c *InstanceGroupManagersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.instanceGroupManagers.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*InstanceGroupManagersTestIamPermissionsCall) Fields ¶
func (c *InstanceGroupManagersTestIamPermissionsCall) Fields(s ...googleapi.Field) *InstanceGroupManagersTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InstanceGroupManagersTestIamPermissionsCall) Header ¶
func (c *InstanceGroupManagersTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type InstanceGroupManagersUpdateCall ¶
type InstanceGroupManagersUpdateCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersUpdateCall) Context ¶
func (c *InstanceGroupManagersUpdateCall) Context(ctx context.Context) *InstanceGroupManagersUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersUpdateCall) Do ¶
func (c *InstanceGroupManagersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstanceGroupManagersUpdateCall) Fields ¶
func (c *InstanceGroupManagersUpdateCall) Fields(s ...googleapi.Field) *InstanceGroupManagersUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InstanceGroupManagersUpdateCall) Header ¶
func (c *InstanceGroupManagersUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceGroupManagersUpdateCall) RequestId ¶
func (c *InstanceGroupManagersUpdateCall) RequestId(requestId string) *InstanceGroupManagersUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type InstanceGroupManagersUpdatePerInstanceConfigsCall ¶
type InstanceGroupManagersUpdatePerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersUpdatePerInstanceConfigsCall) Context ¶
func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) Context(ctx context.Context) *InstanceGroupManagersUpdatePerInstanceConfigsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupManagersUpdatePerInstanceConfigsCall) Do ¶
func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroupManagers.updatePerInstanceConfigs" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*InstanceGroupManagersUpdatePerInstanceConfigsCall) Header ¶
func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceGroupManagersUpdatePerInstanceConfigsCall) RequestId ¶
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 ¶
type InstanceGroupManagersUpdatePerInstanceConfigsReq struct { // PerInstanceConfigs: The list of per-instance configs 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
InstanceGroupManagersUpdatePerInstanceConfigsReq: InstanceGroupManagers.updatePerInstanceConfigs
func (*InstanceGroupManagersUpdatePerInstanceConfigsReq) MarshalJSON ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupsAddInstancesCall) Do ¶
func (c *InstanceGroupsAddInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroups.addInstances" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceGroupsAddInstancesCall) Header ¶
func (c *InstanceGroupsAddInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupsAggregatedListCall) Do ¶
func (c *InstanceGroupsAggregatedListCall) Do(opts ...googleapi.CallOption) (*InstanceGroupAggregatedList, error)
Do executes the "compute.instanceGroups.aggregatedList" call. Exactly one of *InstanceGroupAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InstanceGroupsAggregatedListCall) Header ¶
func (c *InstanceGroupsAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceGroupsAggregatedListCall) IfNoneMatch ¶
func (c *InstanceGroupsAggregatedListCall) IfNoneMatch(entityTag string) *InstanceGroupsAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupsDeleteCall) Do ¶
func (c *InstanceGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroups.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceGroupsDeleteCall) Header ¶
func (c *InstanceGroupsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupsGetCall) Do ¶
func (c *InstanceGroupsGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroup, error)
Do executes the "compute.instanceGroups.get" call. Exactly one of *InstanceGroup or error will be non-nil. 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 information.
func (*InstanceGroupsGetCall) Header ¶
func (c *InstanceGroupsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceGroupsGetCall) IfNoneMatch ¶
func (c *InstanceGroupsGetCall) IfNoneMatch(entityTag string) *InstanceGroupsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupsInsertCall) Do ¶
func (c *InstanceGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroups.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceGroupsInsertCall) Header ¶
func (c *InstanceGroupsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupsListCall) Do ¶
func (c *InstanceGroupsListCall) Do(opts ...googleapi.CallOption) (*InstanceGroupList, error)
Do executes the "compute.instanceGroups.list" call. Exactly one of *InstanceGroupList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InstanceGroupsListCall) Header ¶
func (c *InstanceGroupsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceGroupsListCall) IfNoneMatch ¶
func (c *InstanceGroupsListCall) IfNoneMatch(entityTag string) *InstanceGroupsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupsListInstancesCall) Do ¶
func (c *InstanceGroupsListInstancesCall) Do(opts ...googleapi.CallOption) (*InstanceGroupsListInstances, error)
Do executes the "compute.instanceGroups.listInstances" call. Exactly one of *InstanceGroupsListInstances or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InstanceGroupsListInstancesCall) Header ¶
func (c *InstanceGroupsListInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
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" // "RUNNING" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupsRemoveInstancesCall) Do ¶
func (c *InstanceGroupsRemoveInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroups.removeInstances" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceGroupsRemoveInstancesCall) Header ¶
func (c *InstanceGroupsRemoveInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupsService) AggregatedList ¶
func (r *InstanceGroupsService) AggregatedList(project string) *InstanceGroupsAggregatedListCall
AggregatedList: Retrieves the list of instance groups and sorts them by zone. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupsService) Get ¶
func (r *InstanceGroupsService) Get(project string, zone string, instanceGroup string) *InstanceGroupsGetCall
Get: Returns the specified instance group. Gets a list of available instance groups by making a list() request. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupsService) List ¶
func (r *InstanceGroupsService) List(project string, zone string) *InstanceGroupsListCall
List: Retrieves the list of instance groups that are located in the specified project and zone. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*InstanceGroupsService) TestIamPermissions ¶
func (r *InstanceGroupsService) TestIamPermissions(project string, zone string, resource string, testpermissionsrequest *TestPermissionsRequest) *InstanceGroupsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupsSetNamedPortsCall) Do ¶
func (c *InstanceGroupsSetNamedPortsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceGroups.setNamedPorts" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceGroupsSetNamedPortsCall) Header ¶
func (c *InstanceGroupsSetNamedPortsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceGroupsSetNamedPortsRequest) MarshalJSON ¶
func (s *InstanceGroupsSetNamedPortsRequest) MarshalJSON() ([]byte, error)
type InstanceGroupsTestIamPermissionsCall ¶
type InstanceGroupsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupsTestIamPermissionsCall) Context ¶
func (c *InstanceGroupsTestIamPermissionsCall) Context(ctx context.Context) *InstanceGroupsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceGroupsTestIamPermissionsCall) Do ¶
func (c *InstanceGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.instanceGroups.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*InstanceGroupsTestIamPermissionsCall) Fields ¶
func (c *InstanceGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *InstanceGroupsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InstanceGroupsTestIamPermissionsCall) Header ¶
func (c *InstanceGroupsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceListWarningData) MarshalJSON ¶
func (s *InstanceListWarningData) MarshalJSON() ([]byte, error)
type InstanceManagedByIgmError ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceManagedByIgmError) MarshalJSON ¶ added in v0.7.0
func (s *InstanceManagedByIgmError) MarshalJSON() ([]byte, error)
type InstanceManagedByIgmErrorInstanceActionDetails ¶ added in v0.7.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" // "CREATING" // "CREATING_WITHOUT_RETRIES" // "DELETING" // "NONE" // "RECREATING" // "REFRESHING" // "RESTARTING" // "VERIFYING" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceManagedByIgmErrorInstanceActionDetails) MarshalJSON ¶ added in v0.7.0
func (s *InstanceManagedByIgmErrorInstanceActionDetails) MarshalJSON() ([]byte, error)
type InstanceManagedByIgmErrorManagedInstanceError ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceManagedByIgmErrorManagedInstanceError) MarshalJSON ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*InstanceMoveRequest) MarshalJSON ¶
func (s *InstanceMoveRequest) MarshalJSON() ([]byte, error)
type InstanceProperties ¶
type InstanceProperties struct { // CanIpForward: Enables instances created based on this template 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. ConfidentialInstanceConfig *ConfidentialInstanceConfig `json:"confidentialInstanceConfig,omitempty"` // Description: An optional text description for the instances that are // created from this instance template. Description string `json:"description,omitempty"` // Disks: An array of disks that are associated with the instances that // are created from this template. Disks []*AttachedDisk `json:"disks,omitempty"` // DisplayDevice: Display Device properties to enable support for remote // display products like: Teradici, VNC and TeamViewer DisplayDevice *DisplayDevice `json:"displayDevice,omitempty"` // GuestAccelerators: A list of guest accelerator cards' type and count // to use for instances created from the instance template. GuestAccelerators []*AcceleratorConfig `json:"guestAccelerators,omitempty"` // Labels: Labels to apply to instances that are created from this // template. Labels map[string]string `json:"labels,omitempty"` // MachineType: The machine type to use for instances that are created // from this template. MachineType string `json:"machineType,omitempty"` // Metadata: The metadata key/value pairs to assign to instances that // are created from this template. 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 this instance. 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"` // PostKeyRevocationActionType: Specifies whether this instance will be // shut down on key revocation. // // Possible values: // "NOOP" // "SHUTDOWN" // "UNSPECIFIED" PostKeyRevocationActionType string `json:"postKeyRevocationActionType,omitempty"` // ReservationAffinity: Specifies the reservations that this instance // can consume from. ReservationAffinity *ReservationAffinity `json:"reservationAffinity,omitempty"` // Scheduling: Specifies the scheduling options for the instances that // are created from this template. 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 template. Use metadata queries // to obtain the access tokens for these instances. ServiceAccounts []*ServiceAccount `json:"serviceAccounts,omitempty"` ShieldedInstanceConfig *ShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"` // ShieldedVmConfig: Specifies the Shielded VM options for the instances // that are created from this template. ShieldedVmConfig *ShieldedVmConfig `json:"shieldedVmConfig,omitempty"` // Tags: A list of tags to apply to the instances that are created from // this template. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceProperties) MarshalJSON ¶
func (s *InstanceProperties) MarshalJSON() ([]byte, error)
type InstanceReference ¶
type InstanceReference struct { // Instance: The URL for a specific instance. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceReference) MarshalJSON ¶
func (s *InstanceReference) MarshalJSON() ([]byte, error)
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"` // SelfLink: [Output Only] The URL for this instance template. 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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
InstanceTemplate: Represents an Instance Template resource.
You can use instance templates to create VM instances and managed instance groups. For more information, read Instance Templates. (== resource_for beta.instanceTemplates ==) (== resource_for v1.instanceTemplates ==)
func (*InstanceTemplate) MarshalJSON ¶
func (s *InstanceTemplate) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstanceTemplateListWarningData) MarshalJSON ¶
func (s *InstanceTemplateListWarningData) MarshalJSON() ([]byte, error)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceTemplatesDeleteCall) Do ¶
func (c *InstanceTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceTemplates.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceTemplatesDeleteCall) Header ¶
func (c *InstanceTemplatesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceTemplatesGetCall) Do ¶
func (c *InstanceTemplatesGetCall) Do(opts ...googleapi.CallOption) (*InstanceTemplate, error)
Do executes the "compute.instanceTemplates.get" call. Exactly one of *InstanceTemplate or error will be non-nil. 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 information.
func (*InstanceTemplatesGetCall) Header ¶
func (c *InstanceTemplatesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceTemplatesGetCall) IfNoneMatch ¶
func (c *InstanceTemplatesGetCall) IfNoneMatch(entityTag string) *InstanceTemplatesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceTemplatesGetIamPolicyCall) Do ¶
func (c *InstanceTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.instanceTemplates.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*InstanceTemplatesGetIamPolicyCall) Header ¶
func (c *InstanceTemplatesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceTemplatesGetIamPolicyCall) IfNoneMatch ¶
func (c *InstanceTemplatesGetIamPolicyCall) IfNoneMatch(entityTag string) *InstanceTemplatesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*InstanceTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceTemplatesInsertCall) Do ¶
func (c *InstanceTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instanceTemplates.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstanceTemplatesInsertCall) Header ¶
func (c *InstanceTemplatesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceTemplatesListCall) Do ¶
func (c *InstanceTemplatesListCall) Do(opts ...googleapi.CallOption) (*InstanceTemplateList, error)
Do executes the "compute.instanceTemplates.list" call. Exactly one of *InstanceTemplateList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InstanceTemplatesListCall) Header ¶
func (c *InstanceTemplatesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstanceTemplatesListCall) IfNoneMatch ¶
func (c *InstanceTemplatesListCall) IfNoneMatch(entityTag string) *InstanceTemplatesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
type InstanceTemplatesService ¶
type InstanceTemplatesService struct {
// contains filtered or unexported fields
}
func NewInstanceTemplatesService ¶
func NewInstanceTemplatesService(s *Service) *InstanceTemplatesService
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instanceTemplates/delete
func (*InstanceTemplatesService) Get ¶
func (r *InstanceTemplatesService) Get(project string, instanceTemplate string) *InstanceTemplatesGetCall
Get: Returns the specified instance template. Gets a list of available instance templates by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instanceTemplates/get
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instanceTemplates/insert
func (*InstanceTemplatesService) List ¶
func (r *InstanceTemplatesService) List(project string) *InstanceTemplatesListCall
List: Retrieves a list of instance templates that are contained within the specified project. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instanceTemplates/list
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceTemplatesSetIamPolicyCall) Do ¶
func (c *InstanceTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.instanceTemplates.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*InstanceTemplatesSetIamPolicyCall) Header ¶
func (c *InstanceTemplatesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstanceTemplatesTestIamPermissionsCall) Do ¶
func (c *InstanceTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.instanceTemplates.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 information.
func (*InstanceTemplatesTestIamPermissionsCall) Header ¶
func (c *InstanceTemplatesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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: // "PROVISIONING" // "REPAIRING" // "RUNNING" // "STAGING" // "STOPPED" // "STOPPING" // "SUSPENDED" // "SUSPENDING" // "TERMINATED" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesAddAccessConfigCall) Do ¶
func (c *InstancesAddAccessConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.addAccessConfig" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesAddAccessConfigCall) Header ¶
func (c *InstancesAddAccessConfigCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 ¶
type InstancesAddResourcePoliciesCall struct {
// contains filtered or unexported fields
}
func (*InstancesAddResourcePoliciesCall) Context ¶
func (c *InstancesAddResourcePoliciesCall) Context(ctx context.Context) *InstancesAddResourcePoliciesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesAddResourcePoliciesCall) Do ¶
func (c *InstancesAddResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.addResourcePolicies" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*InstancesAddResourcePoliciesCall) Header ¶
func (c *InstancesAddResourcePoliciesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesAddResourcePoliciesCall) RequestId ¶
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 ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*InstancesAddResourcePoliciesRequest) MarshalJSON ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesAggregatedListCall) Do ¶
func (c *InstancesAggregatedListCall) Do(opts ...googleapi.CallOption) (*InstanceAggregatedList, error)
Do executes the "compute.instances.aggregatedList" call. Exactly one of *InstanceAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InstancesAggregatedListCall) Header ¶
func (c *InstancesAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesAggregatedListCall) IfNoneMatch ¶
func (c *InstancesAggregatedListCall) IfNoneMatch(entityTag string) *InstancesAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesAttachDiskCall) Do ¶
func (c *InstancesAttachDiskCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.attachDisk" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesAttachDiskCall) ForceAttach ¶
func (c *InstancesAttachDiskCall) ForceAttach(forceAttach bool) *InstancesAttachDiskCall
ForceAttach sets the optional parameter "forceAttach": Whether to force attach the disk even if it's currently attached to another instance.
func (*InstancesAttachDiskCall) Header ¶
func (c *InstancesAttachDiskCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesDeleteAccessConfigCall) Do ¶
func (c *InstancesDeleteAccessConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.deleteAccessConfig" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesDeleteAccessConfigCall) Header ¶
func (c *InstancesDeleteAccessConfigCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesDeleteCall) Do ¶
func (c *InstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesDeleteCall) Header ¶
func (c *InstancesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesDetachDiskCall) Do ¶
func (c *InstancesDetachDiskCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.detachDisk" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesDetachDiskCall) Header ¶
func (c *InstancesDetachDiskCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesGetCall) Do ¶
func (c *InstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error)
Do executes the "compute.instances.get" call. Exactly one of *Instance or error will be non-nil. 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 information.
func (*InstancesGetCall) Header ¶
func (c *InstancesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesGetCall) IfNoneMatch ¶
func (c *InstancesGetCall) IfNoneMatch(entityTag string) *InstancesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type InstancesGetEffectiveFirewallsCall ¶ added in v0.4.0
type InstancesGetEffectiveFirewallsCall struct {
// contains filtered or unexported fields
}
func (*InstancesGetEffectiveFirewallsCall) Context ¶ added in v0.4.0
func (c *InstancesGetEffectiveFirewallsCall) Context(ctx context.Context) *InstancesGetEffectiveFirewallsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesGetEffectiveFirewallsCall) Do ¶ added in v0.4.0
func (c *InstancesGetEffectiveFirewallsCall) Do(opts ...googleapi.CallOption) (*InstancesGetEffectiveFirewallsResponse, error)
Do executes the "compute.instances.getEffectiveFirewalls" call. Exactly one of *InstancesGetEffectiveFirewallsResponse or error will be non-nil. 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.4.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 information.
func (*InstancesGetEffectiveFirewallsCall) Header ¶ added in v0.4.0
func (c *InstancesGetEffectiveFirewallsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesGetEffectiveFirewallsCall) IfNoneMatch ¶ added in v0.4.0
func (c *InstancesGetEffectiveFirewallsCall) IfNoneMatch(entityTag string) *InstancesGetEffectiveFirewallsCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type InstancesGetEffectiveFirewallsResponse ¶ added in v0.4.0
type InstancesGetEffectiveFirewallsResponse struct { // Firewalls: Effective firewalls on the instance. Firewalls []*Firewall `json:"firewalls,omitempty"` // OrganizationFirewalls: Effective firewalls from organization // policies. OrganizationFirewalls []*InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy `json:"organizationFirewalls,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Firewalls") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Firewalls") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstancesGetEffectiveFirewallsResponse) MarshalJSON ¶ added in v0.4.0
func (s *InstancesGetEffectiveFirewallsResponse) MarshalJSON() ([]byte, error)
type InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy ¶ added in v0.4.0
type InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy struct { // Id: The unique identifier for the security policy. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` // Rules: The rules that apply to the network. Rules []*SecurityPolicyRule `json:"rules,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy: A pruned SecurityPolicy containing ID and any applicable firewall rules.
func (*InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy) MarshalJSON ¶ added in v0.4.0
func (s *InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy) MarshalJSON() ([]byte, error)
type InstancesGetGuestAttributesCall ¶
type InstancesGetGuestAttributesCall struct {
// contains filtered or unexported fields
}
func (*InstancesGetGuestAttributesCall) Context ¶
func (c *InstancesGetGuestAttributesCall) Context(ctx context.Context) *InstancesGetGuestAttributesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesGetGuestAttributesCall) Do ¶
func (c *InstancesGetGuestAttributesCall) Do(opts ...googleapi.CallOption) (*GuestAttributes, error)
Do executes the "compute.instances.getGuestAttributes" call. Exactly one of *GuestAttributes or error will be non-nil. 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 ¶
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 information.
func (*InstancesGetGuestAttributesCall) Header ¶
func (c *InstancesGetGuestAttributesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesGetGuestAttributesCall) IfNoneMatch ¶
func (c *InstancesGetGuestAttributesCall) IfNoneMatch(entityTag string) *InstancesGetGuestAttributesCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*InstancesGetGuestAttributesCall) QueryPath ¶
func (c *InstancesGetGuestAttributesCall) QueryPath(queryPath string) *InstancesGetGuestAttributesCall
QueryPath sets the optional parameter "queryPath": Specifies the guest attributes path to be queried.
func (*InstancesGetGuestAttributesCall) VariableKey ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesGetIamPolicyCall) Do ¶
func (c *InstancesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.instances.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*InstancesGetIamPolicyCall) Header ¶
func (c *InstancesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesGetIamPolicyCall) IfNoneMatch ¶
func (c *InstancesGetIamPolicyCall) IfNoneMatch(entityTag string) *InstancesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*InstancesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.0
func (c *InstancesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *InstancesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesGetSerialPortOutputCall) Do ¶
func (c *InstancesGetSerialPortOutputCall) Do(opts ...googleapi.CallOption) (*SerialPortOutput, error)
Do executes the "compute.instances.getSerialPortOutput" call. Exactly one of *SerialPortOutput or error will be non-nil. 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 information.
func (*InstancesGetSerialPortOutputCall) Header ¶
func (c *InstancesGetSerialPortOutputCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesGetSerialPortOutputCall) IfNoneMatch ¶
func (c *InstancesGetSerialPortOutputCall) IfNoneMatch(entityTag string) *InstancesGetSerialPortOutputCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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": Returns output starting from a specific byte position. Use this to page through output when the output is too large to return in a single request. For the initial request, leave this field unspecified. For subsequent calls, this field should be set to the next value returned in the previous call.
type InstancesGetShieldedInstanceIdentityCall ¶ added in v0.2.0
type InstancesGetShieldedInstanceIdentityCall struct {
// contains filtered or unexported fields
}
func (*InstancesGetShieldedInstanceIdentityCall) Context ¶ added in v0.2.0
func (c *InstancesGetShieldedInstanceIdentityCall) Context(ctx context.Context) *InstancesGetShieldedInstanceIdentityCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesGetShieldedInstanceIdentityCall) Do ¶ added in v0.2.0
func (c *InstancesGetShieldedInstanceIdentityCall) Do(opts ...googleapi.CallOption) (*ShieldedInstanceIdentity, error)
Do executes the "compute.instances.getShieldedInstanceIdentity" call. Exactly one of *ShieldedInstanceIdentity or error will be non-nil. 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.2.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 information.
func (*InstancesGetShieldedInstanceIdentityCall) Header ¶ added in v0.2.0
func (c *InstancesGetShieldedInstanceIdentityCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesGetShieldedInstanceIdentityCall) IfNoneMatch ¶ added in v0.2.0
func (c *InstancesGetShieldedInstanceIdentityCall) IfNoneMatch(entityTag string) *InstancesGetShieldedInstanceIdentityCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type InstancesGetShieldedVmIdentityCall ¶
type InstancesGetShieldedVmIdentityCall struct {
// contains filtered or unexported fields
}
func (*InstancesGetShieldedVmIdentityCall) Context ¶
func (c *InstancesGetShieldedVmIdentityCall) Context(ctx context.Context) *InstancesGetShieldedVmIdentityCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesGetShieldedVmIdentityCall) Do ¶
func (c *InstancesGetShieldedVmIdentityCall) Do(opts ...googleapi.CallOption) (*ShieldedVmIdentity, error)
Do executes the "compute.instances.getShieldedVmIdentity" call. Exactly one of *ShieldedVmIdentity or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ShieldedVmIdentity.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesGetShieldedVmIdentityCall) Fields ¶
func (c *InstancesGetShieldedVmIdentityCall) Fields(s ...googleapi.Field) *InstancesGetShieldedVmIdentityCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InstancesGetShieldedVmIdentityCall) Header ¶
func (c *InstancesGetShieldedVmIdentityCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesGetShieldedVmIdentityCall) IfNoneMatch ¶
func (c *InstancesGetShieldedVmIdentityCall) IfNoneMatch(entityTag string) *InstancesGetShieldedVmIdentityCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesInsertCall) Do ¶
func (c *InstancesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesInsertCall) Header ¶
func (c *InstancesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 ¶
func (c *InstancesInsertCall) SourceMachineImage(sourceMachineImage string) *InstancesInsertCall
SourceMachineImage sets the optional parameter "sourceMachineImage": Specifies instance machine 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/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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesListCall) Do ¶
func (c *InstancesListCall) Do(opts ...googleapi.CallOption) (*InstanceList, error)
Do executes the "compute.instances.list" call. Exactly one of *InstanceList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InstancesListCall) Header ¶
func (c *InstancesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesListCall) IfNoneMatch ¶
func (c *InstancesListCall) IfNoneMatch(entityTag string) *InstancesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesListReferrersCall) Do ¶
func (c *InstancesListReferrersCall) Do(opts ...googleapi.CallOption) (*InstanceListReferrers, error)
Do executes the "compute.instances.listReferrers" call. Exactly one of *InstanceListReferrers or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InstancesListReferrersCall) Header ¶
func (c *InstancesListReferrersCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesListReferrersCall) IfNoneMatch ¶
func (c *InstancesListReferrersCall) IfNoneMatch(entityTag string) *InstancesListReferrersCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
type InstancesRemoveResourcePoliciesCall ¶
type InstancesRemoveResourcePoliciesCall struct {
// contains filtered or unexported fields
}
func (*InstancesRemoveResourcePoliciesCall) Context ¶
func (c *InstancesRemoveResourcePoliciesCall) Context(ctx context.Context) *InstancesRemoveResourcePoliciesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesRemoveResourcePoliciesCall) Do ¶
func (c *InstancesRemoveResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.removeResourcePolicies" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*InstancesRemoveResourcePoliciesCall) Header ¶
func (c *InstancesRemoveResourcePoliciesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesRemoveResourcePoliciesCall) RequestId ¶
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 ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*InstancesRemoveResourcePoliciesRequest) MarshalJSON ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesResetCall) Do ¶
func (c *InstancesResetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.reset" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesResetCall) Header ¶
func (c *InstancesResetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 ¶
type InstancesResumeCall struct {
// contains filtered or unexported fields
}
func (*InstancesResumeCall) Context ¶
func (c *InstancesResumeCall) Context(ctx context.Context) *InstancesResumeCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesResumeCall) Do ¶
func (c *InstancesResumeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.resume" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*InstancesResumeCall) Header ¶
func (c *InstancesResumeCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesResumeCall) RequestId ¶
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 InstancesResumeRequest ¶
type InstancesResumeRequest struct { // Disks: Array of disks associated with this instance that are // protected with a customer-supplied encryption key. // // In order to resume 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"` // InstanceEncryptionKey: Decrypts data associated with an instance that // is protected with a customer-supplied encryption key. // // If the instance you are starting is protected with a // customer-supplied encryption key, the correct key must be provided // otherwise the instance resume will not succeed. InstanceEncryptionKey *CustomerEncryptionKey `json:"instanceEncryptionKey,omitempty"` // ForceSendFields is a list of field names (e.g. "Disks") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstancesResumeRequest) MarshalJSON ¶
func (s *InstancesResumeRequest) MarshalJSON() ([]byte, error)
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstancesScopedListWarningData) MarshalJSON ¶
func (s *InstancesScopedListWarningData) MarshalJSON() ([]byte, error)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/addAccessConfig
func (*InstancesService) AddResourcePolicies ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*InstancesService) AggregatedList ¶
func (r *InstancesService) AggregatedList(project string) *InstancesAggregatedListCall
AggregatedList: Retrieves aggregated list of all of the instances in your project across all regions and zones. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/aggregatedList
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/attachDisk
func (*InstancesService) Delete ¶
func (r *InstancesService) Delete(project string, zone string, instance string) *InstancesDeleteCall
Delete: Deletes the specified Instance resource. For more information, see Stopping or Deleting an Instance. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/delete
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/deleteAccessConfig
func (*InstancesService) DetachDisk ¶
func (r *InstancesService) DetachDisk(project string, zone string, instance string, deviceName string) *InstancesDetachDiskCall
DetachDisk: Detaches a disk from an instance. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/detachDisk
func (*InstancesService) Get ¶
func (r *InstancesService) Get(project string, zone string, instance string) *InstancesGetCall
Get: Returns the specified Instance resource. Gets a list of available instances by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/get
func (*InstancesService) GetEffectiveFirewalls ¶ added in v0.4.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. (== suppress_warning http-rest-shadowed ==)
func (*InstancesService) GetGuestAttributes ¶
func (r *InstancesService) GetGuestAttributes(project string, zone string, instance string) *InstancesGetGuestAttributesCall
GetGuestAttributes: Returns the specified guest attributes entry. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/getSerialPortOutput
func (*InstancesService) GetShieldedInstanceIdentity ¶ added in v0.2.0
func (r *InstancesService) GetShieldedInstanceIdentity(project string, zone string, instance string) *InstancesGetShieldedInstanceIdentityCall
GetShieldedInstanceIdentity: Returns the Shielded Instance Identity of an instance (== suppress_warning http-rest-shadowed ==)
func (*InstancesService) GetShieldedVmIdentity ¶
func (r *InstancesService) GetShieldedVmIdentity(project string, zone string, instance string) *InstancesGetShieldedVmIdentityCall
GetShieldedVmIdentity: Returns the Shielded VM Identity of an instance (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/insert
func (*InstancesService) List ¶
func (r *InstancesService) List(project string, zone string) *InstancesListCall
List: Retrieves the list of instances contained within the specified zone. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/list
func (*InstancesService) ListReferrers ¶
func (r *InstancesService) ListReferrers(project string, zone string, instance string) *InstancesListReferrersCall
ListReferrers: Retrieves the list of referrers to instances contained within the specified zone. For more information, read Viewing Referrers to VM Instances. (== suppress_warning http-rest-shadowed ==)
func (*InstancesService) RemoveResourcePolicies ¶
func (r *InstancesService) RemoveResourcePolicies(project string, zone string, instance string, instancesremoveresourcepoliciesrequest *InstancesRemoveResourcePoliciesRequest) *InstancesRemoveResourcePoliciesCall
RemoveResourcePolicies: Removes resource policies from an instance. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/reset
func (*InstancesService) Resume ¶
func (r *InstancesService) Resume(project string, zone string, instance string, instancesresumerequest *InstancesResumeRequest) *InstancesResumeCall
Resume: Resumes an instance that was suspended using the instances().suspend method. (== suppress_warning http-rest-shadowed ==)
func (*InstancesService) SetDeletionProtection ¶
func (r *InstancesService) SetDeletionProtection(project string, zone string, resource string) *InstancesSetDeletionProtectionCall
SetDeletionProtection: Sets deletion protection on the instance. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/setDiskAutoDelete
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/setMetadata
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. (== suppress_warning http-rest-shadowed ==)
func (*InstancesService) SetName ¶ added in v0.7.0
func (r *InstancesService) SetName(project string, zone string, instance string, instancessetnamerequest *InstancesSetNameRequest) *InstancesSetNameCall
SetName: Sets name of an instance. (== suppress_warning http-rest-shadowed ==)
func (*InstancesService) SetScheduling ¶
func (r *InstancesService) SetScheduling(project string, zone string, instance string, scheduling *Scheduling) *InstancesSetSchedulingCall
SetScheduling: Sets an instance's scheduling options. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/setScheduling
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. (== suppress_warning http-rest-shadowed ==)
func (*InstancesService) SetShieldedInstanceIntegrityPolicy ¶ added in v0.2.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. (== suppress_warning http-rest-shadowed ==)
func (*InstancesService) SetShieldedVmIntegrityPolicy ¶
func (r *InstancesService) SetShieldedVmIntegrityPolicy(project string, zone string, instance string, shieldedvmintegritypolicy *ShieldedVmIntegrityPolicy) *InstancesSetShieldedVmIntegrityPolicyCall
SetShieldedVmIntegrityPolicy: Sets the Shielded VM integrity policy for a VM instance. You can only use this method on a running VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/setTags
func (*InstancesService) SimulateMaintenanceEvent ¶
func (r *InstancesService) SimulateMaintenanceEvent(project string, zone string, instance string) *InstancesSimulateMaintenanceEventCall
SimulateMaintenanceEvent: Simulates a maintenance event on the instance. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/start
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/instances/stop
func (*InstancesService) Suspend ¶
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 incur reduced per-minute, virtual machine usage charges while they are suspended. Any resources the virtual machine is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*InstancesService) UpdateDisplayDevice ¶
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. (== suppress_warning http-rest-shadowed ==)
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 follows PATCH semantics. (== suppress_warning http-rest-shadowed ==)
func (*InstancesService) UpdateShieldedInstanceConfig ¶ added in v0.2.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. (== suppress_warning http-rest-shadowed ==)
func (*InstancesService) UpdateShieldedVmConfig ¶
func (r *InstancesService) UpdateShieldedVmConfig(project string, zone string, instance string, shieldedvmconfig *ShieldedVmConfig) *InstancesUpdateShieldedVmConfigCall
UpdateShieldedVmConfig: Updates the Shielded VM 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. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
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. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesSetDeletionProtectionCall) Header ¶
func (c *InstancesSetDeletionProtectionCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesSetDiskAutoDeleteCall) Do ¶
func (c *InstancesSetDiskAutoDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setDiskAutoDelete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesSetDiskAutoDeleteCall) Header ¶
func (c *InstancesSetDiskAutoDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesSetIamPolicyCall) Do ¶
func (c *InstancesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.instances.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*InstancesSetIamPolicyCall) Header ¶
func (c *InstancesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesSetLabelsCall) Do ¶
func (c *InstancesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesSetLabelsCall) Header ¶
func (c *InstancesSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesSetMachineResourcesCall) Do ¶
func (c *InstancesSetMachineResourcesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setMachineResources" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesSetMachineResourcesCall) Header ¶
func (c *InstancesSetMachineResourcesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesSetMachineTypeCall) Do ¶
func (c *InstancesSetMachineTypeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setMachineType" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesSetMachineTypeCall) Header ¶
func (c *InstancesSetMachineTypeCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesSetMetadataCall) Do ¶
func (c *InstancesSetMetadataCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setMetadata" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesSetMetadataCall) Header ¶
func (c *InstancesSetMetadataCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesSetMinCpuPlatformCall) Do ¶
func (c *InstancesSetMinCpuPlatformCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setMinCpuPlatform" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesSetMinCpuPlatformCall) Header ¶
func (c *InstancesSetMinCpuPlatformCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*InstancesSetMinCpuPlatformRequest) MarshalJSON ¶
func (s *InstancesSetMinCpuPlatformRequest) MarshalJSON() ([]byte, error)
type InstancesSetNameCall ¶ added in v0.7.0
type InstancesSetNameCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetNameCall) Context ¶ added in v0.7.0
func (c *InstancesSetNameCall) Context(ctx context.Context) *InstancesSetNameCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesSetNameCall) Do ¶ added in v0.7.0
func (c *InstancesSetNameCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setName" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.7.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 information.
func (*InstancesSetNameCall) Header ¶ added in v0.7.0
func (c *InstancesSetNameCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesSetNameCall) RequestId ¶ added in v0.7.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.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstancesSetNameRequest) MarshalJSON ¶ added in v0.7.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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesSetSchedulingCall) Do ¶
func (c *InstancesSetSchedulingCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setScheduling" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesSetSchedulingCall) Header ¶
func (c *InstancesSetSchedulingCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesSetServiceAccountCall) Do ¶
func (c *InstancesSetServiceAccountCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setServiceAccount" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesSetServiceAccountCall) Header ¶
func (c *InstancesSetServiceAccountCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InstancesSetServiceAccountRequest) MarshalJSON ¶
func (s *InstancesSetServiceAccountRequest) MarshalJSON() ([]byte, error)
type InstancesSetShieldedInstanceIntegrityPolicyCall ¶ added in v0.2.0
type InstancesSetShieldedInstanceIntegrityPolicyCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetShieldedInstanceIntegrityPolicyCall) Context ¶ added in v0.2.0
func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Context(ctx context.Context) *InstancesSetShieldedInstanceIntegrityPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesSetShieldedInstanceIntegrityPolicyCall) Do ¶ added in v0.2.0
func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setShieldedInstanceIntegrityPolicy" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.2.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 information.
func (*InstancesSetShieldedInstanceIntegrityPolicyCall) Header ¶ added in v0.2.0
func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesSetShieldedInstanceIntegrityPolicyCall) RequestId ¶ added in v0.2.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 InstancesSetShieldedVmIntegrityPolicyCall ¶
type InstancesSetShieldedVmIntegrityPolicyCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetShieldedVmIntegrityPolicyCall) Context ¶
func (c *InstancesSetShieldedVmIntegrityPolicyCall) Context(ctx context.Context) *InstancesSetShieldedVmIntegrityPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesSetShieldedVmIntegrityPolicyCall) Do ¶
func (c *InstancesSetShieldedVmIntegrityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setShieldedVmIntegrityPolicy" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesSetShieldedVmIntegrityPolicyCall) Fields ¶
func (c *InstancesSetShieldedVmIntegrityPolicyCall) Fields(s ...googleapi.Field) *InstancesSetShieldedVmIntegrityPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InstancesSetShieldedVmIntegrityPolicyCall) Header ¶
func (c *InstancesSetShieldedVmIntegrityPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesSetShieldedVmIntegrityPolicyCall) RequestId ¶
func (c *InstancesSetShieldedVmIntegrityPolicyCall) RequestId(requestId string) *InstancesSetShieldedVmIntegrityPolicyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesSetTagsCall) Do ¶
func (c *InstancesSetTagsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.setTags" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesSetTagsCall) Header ¶
func (c *InstancesSetTagsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesSimulateMaintenanceEventCall) Do ¶
func (c *InstancesSimulateMaintenanceEventCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.simulateMaintenanceEvent" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesSimulateMaintenanceEventCall) Header ¶
func (c *InstancesSimulateMaintenanceEventCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesStartCall) Do ¶
func (c *InstancesStartCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.start" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesStartCall) Header ¶
func (c *InstancesStartCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesStartWithEncryptionKeyCall) Do ¶
func (c *InstancesStartWithEncryptionKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.startWithEncryptionKey" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesStartWithEncryptionKeyCall) Header ¶
func (c *InstancesStartWithEncryptionKeyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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"` // InstanceEncryptionKey: Decrypts data associated with an instance that // is protected with a customer-supplied encryption key. // // If the instance you are starting is protected with a // customer-supplied encryption key, the correct key must be provided // otherwise the instance start will not succeed. InstanceEncryptionKey *CustomerEncryptionKey `json:"instanceEncryptionKey,omitempty"` // ForceSendFields is a list of field names (e.g. "Disks") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesStopCall) DiscardLocalSsd ¶
func (c *InstancesStopCall) DiscardLocalSsd(discardLocalSsd bool) *InstancesStopCall
DiscardLocalSsd sets the optional parameter "discardLocalSsd": If true, discard the contents of any attached localSSD partitions. Default value is false (== preserve localSSD data).
func (*InstancesStopCall) Do ¶
func (c *InstancesStopCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.stop" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesStopCall) Header ¶
func (c *InstancesStopCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 ¶
type InstancesSuspendCall struct {
// contains filtered or unexported fields
}
func (*InstancesSuspendCall) Context ¶
func (c *InstancesSuspendCall) Context(ctx context.Context) *InstancesSuspendCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesSuspendCall) DiscardLocalSsd ¶
func (c *InstancesSuspendCall) DiscardLocalSsd(discardLocalSsd bool) *InstancesSuspendCall
DiscardLocalSsd sets the optional parameter "discardLocalSsd": If true, discard the contents of any attached localSSD partitions. Default value is false (== preserve localSSD data).
func (*InstancesSuspendCall) Do ¶
func (c *InstancesSuspendCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.suspend" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*InstancesSuspendCall) Header ¶
func (c *InstancesSuspendCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesSuspendCall) RequestId ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesTestIamPermissionsCall) Do ¶
func (c *InstancesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.instances.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 information.
func (*InstancesTestIamPermissionsCall) Header ¶
func (c *InstancesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesUpdateAccessConfigCall) Do ¶
func (c *InstancesUpdateAccessConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.updateAccessConfig" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesUpdateAccessConfigCall) Header ¶
func (c *InstancesUpdateAccessConfigCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 InstancesUpdateDisplayDeviceCall ¶
type InstancesUpdateDisplayDeviceCall struct {
// contains filtered or unexported fields
}
func (*InstancesUpdateDisplayDeviceCall) Context ¶
func (c *InstancesUpdateDisplayDeviceCall) Context(ctx context.Context) *InstancesUpdateDisplayDeviceCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesUpdateDisplayDeviceCall) Do ¶
func (c *InstancesUpdateDisplayDeviceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.updateDisplayDevice" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*InstancesUpdateDisplayDeviceCall) Header ¶
func (c *InstancesUpdateDisplayDeviceCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesUpdateDisplayDeviceCall) RequestId ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesUpdateNetworkInterfaceCall) Do ¶
func (c *InstancesUpdateNetworkInterfaceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.updateNetworkInterface" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InstancesUpdateNetworkInterfaceCall) Header ¶
func (c *InstancesUpdateNetworkInterfaceCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.2.0
type InstancesUpdateShieldedInstanceConfigCall struct {
// contains filtered or unexported fields
}
func (*InstancesUpdateShieldedInstanceConfigCall) Context ¶ added in v0.2.0
func (c *InstancesUpdateShieldedInstanceConfigCall) Context(ctx context.Context) *InstancesUpdateShieldedInstanceConfigCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesUpdateShieldedInstanceConfigCall) Do ¶ added in v0.2.0
func (c *InstancesUpdateShieldedInstanceConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.updateShieldedInstanceConfig" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.2.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 information.
func (*InstancesUpdateShieldedInstanceConfigCall) Header ¶ added in v0.2.0
func (c *InstancesUpdateShieldedInstanceConfigCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesUpdateShieldedInstanceConfigCall) RequestId ¶ added in v0.2.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 InstancesUpdateShieldedVmConfigCall ¶
type InstancesUpdateShieldedVmConfigCall struct {
// contains filtered or unexported fields
}
func (*InstancesUpdateShieldedVmConfigCall) Context ¶
func (c *InstancesUpdateShieldedVmConfigCall) Context(ctx context.Context) *InstancesUpdateShieldedVmConfigCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstancesUpdateShieldedVmConfigCall) Do ¶
func (c *InstancesUpdateShieldedVmConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.instances.updateShieldedVmConfig" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstancesUpdateShieldedVmConfigCall) Fields ¶
func (c *InstancesUpdateShieldedVmConfigCall) Fields(s ...googleapi.Field) *InstancesUpdateShieldedVmConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InstancesUpdateShieldedVmConfigCall) Header ¶
func (c *InstancesUpdateShieldedVmConfigCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InstancesUpdateShieldedVmConfigCall) RequestId ¶
func (c *InstancesUpdateShieldedVmConfigCall) RequestId(requestId string) *InstancesUpdateShieldedVmConfigCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type Int64RangeMatch ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Int64RangeMatch: HttpRouteRuleMatch criteria for field values that must stay within the specified integer range.
func (*Int64RangeMatch) MarshalJSON ¶ added in v0.2.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"` // 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" // "IT_PRIVATE" // "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 to apply to this Interconnect resource. These can be // later modified by the setLabels method. Each label key/value 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" // "LINK_TYPE_ETHERNET_10G_LR" 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"` // 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 Stackdriver logs alerting and Cloud // Notifications. 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" // "OS_UNPROVISIONED" 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"` // RequestedLinkCount: Target number of physical links in the link // bundle, as requested by the customer. RequestedLinkCount int64 `json:"requestedLinkCount,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"` // 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" // "UNPROVISIONED" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Interconnect: Represents an Interconnect resource.
An Interconnect resource is a dedicated connection between the GCP network and your on-premises network. For more information, read the Dedicated Interconnect Overview. (== resource_for v1.interconnects ==) (== resource_for beta.interconnects ==)
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" // "BPS_10G" // "BPS_1G" // "BPS_200M" // "BPS_20G" // "BPS_2G" // "BPS_300M" // "BPS_400M" // "BPS_500M" // "BPS_50G" // "BPS_50M" // "BPS_5G" Bandwidth string `json:"bandwidth,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"` // 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"` // 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"` // 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"` // 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 to apply to this InterconnectAttachment resource. // These can be later modified by the setLabels method. Each label // key/value 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" // "OS_UNPROVISIONED" OperationalStatus string `json:"operationalStatus,omitempty"` // PairingKey: [Output only for type PARTNER. Input only for // PARTNER_PROVIDER. Not present for DEDICATED]. The opaque identifier // of an 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 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"` // 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"` // 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"` // 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" // "DEFUNCT" // "PARTNER_REQUEST_RECEIVED" // "PENDING_CUSTOMER" // "PENDING_PARTNER" // "STATE_UNSPECIFIED" // "UNPROVISIONED" State string `json:"state,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" // "PARTNER" // "PARTNER_PROVIDER" Type string `json:"type,omitempty"` // VlanTag8021q: The IEEE 802.1Q VLAN tag for this attachment, in the // range 2-4094. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== resource_for beta.interconnectAttachments ==) (== resource_for v1.interconnectAttachments ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InterconnectAttachmentAggregatedListWarningData) MarshalJSON ¶
func (s *InterconnectAttachmentAggregatedListWarningData) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectAttachmentsAggregatedListCall) Do ¶
func (c *InterconnectAttachmentsAggregatedListCall) Do(opts ...googleapi.CallOption) (*InterconnectAttachmentAggregatedList, error)
Do executes the "compute.interconnectAttachments.aggregatedList" call. Exactly one of *InterconnectAttachmentAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InterconnectAttachmentsAggregatedListCall) Header ¶
func (c *InterconnectAttachmentsAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InterconnectAttachmentsAggregatedListCall) IfNoneMatch ¶
func (c *InterconnectAttachmentsAggregatedListCall) IfNoneMatch(entityTag string) *InterconnectAttachmentsAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectAttachmentsDeleteCall) Do ¶
func (c *InterconnectAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnectAttachments.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InterconnectAttachmentsDeleteCall) Header ¶
func (c *InterconnectAttachmentsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectAttachmentsGetCall) Do ¶
func (c *InterconnectAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*InterconnectAttachment, error)
Do executes the "compute.interconnectAttachments.get" call. Exactly one of *InterconnectAttachment or error will be non-nil. 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 information.
func (*InterconnectAttachmentsGetCall) Header ¶
func (c *InterconnectAttachmentsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InterconnectAttachmentsGetCall) IfNoneMatch ¶
func (c *InterconnectAttachmentsGetCall) IfNoneMatch(entityTag string) *InterconnectAttachmentsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type InterconnectAttachmentsGetIamPolicyCall ¶
type InterconnectAttachmentsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*InterconnectAttachmentsGetIamPolicyCall) Context ¶
func (c *InterconnectAttachmentsGetIamPolicyCall) Context(ctx context.Context) *InterconnectAttachmentsGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectAttachmentsGetIamPolicyCall) Do ¶
func (c *InterconnectAttachmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.interconnectAttachments.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*InterconnectAttachmentsGetIamPolicyCall) Fields ¶
func (c *InterconnectAttachmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InterconnectAttachmentsGetIamPolicyCall) Header ¶
func (c *InterconnectAttachmentsGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InterconnectAttachmentsGetIamPolicyCall) IfNoneMatch ¶
func (c *InterconnectAttachmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *InterconnectAttachmentsGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*InterconnectAttachmentsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.0
func (c *InterconnectAttachmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *InterconnectAttachmentsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectAttachmentsInsertCall) Do ¶
func (c *InterconnectAttachmentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnectAttachments.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InterconnectAttachmentsInsertCall) Header ¶
func (c *InterconnectAttachmentsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.6.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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectAttachmentsListCall) Do ¶
func (c *InterconnectAttachmentsListCall) Do(opts ...googleapi.CallOption) (*InterconnectAttachmentList, error)
Do executes the "compute.interconnectAttachments.list" call. Exactly one of *InterconnectAttachmentList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InterconnectAttachmentsListCall) Header ¶
func (c *InterconnectAttachmentsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InterconnectAttachmentsListCall) IfNoneMatch ¶
func (c *InterconnectAttachmentsListCall) IfNoneMatch(entityTag string) *InterconnectAttachmentsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectAttachmentsPatchCall) Do ¶
func (c *InterconnectAttachmentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnectAttachments.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InterconnectAttachmentsPatchCall) Header ¶
func (c *InterconnectAttachmentsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectAttachmentsService) Delete ¶
func (r *InterconnectAttachmentsService) Delete(project string, region string, interconnectAttachment string) *InterconnectAttachmentsDeleteCall
Delete: Deletes the specified interconnect attachment. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectAttachmentsService) Get ¶
func (r *InterconnectAttachmentsService) Get(project string, region string, interconnectAttachment string) *InterconnectAttachmentsGetCall
Get: Returns the specified interconnect attachment. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectAttachmentsService) GetIamPolicy ¶
func (r *InterconnectAttachmentsService) GetIamPolicy(project string, region string, resource string) *InterconnectAttachmentsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectAttachmentsService) List ¶
func (r *InterconnectAttachmentsService) List(project string, region string) *InterconnectAttachmentsListCall
List: Retrieves the list of interconnect attachments contained within the specified region. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectAttachmentsService) SetIamPolicy ¶
func (r *InterconnectAttachmentsService) SetIamPolicy(project string, region string, resource string, regionsetpolicyrequest *RegionSetPolicyRequest) *InterconnectAttachmentsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectAttachmentsService) SetLabels ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectAttachmentsService) TestIamPermissions ¶
func (r *InterconnectAttachmentsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *InterconnectAttachmentsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type InterconnectAttachmentsSetIamPolicyCall ¶
type InterconnectAttachmentsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*InterconnectAttachmentsSetIamPolicyCall) Context ¶
func (c *InterconnectAttachmentsSetIamPolicyCall) Context(ctx context.Context) *InterconnectAttachmentsSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectAttachmentsSetIamPolicyCall) Do ¶
func (c *InterconnectAttachmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.interconnectAttachments.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*InterconnectAttachmentsSetIamPolicyCall) Fields ¶
func (c *InterconnectAttachmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InterconnectAttachmentsSetIamPolicyCall) Header ¶
func (c *InterconnectAttachmentsSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type InterconnectAttachmentsSetLabelsCall ¶
type InterconnectAttachmentsSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*InterconnectAttachmentsSetLabelsCall) Context ¶
func (c *InterconnectAttachmentsSetLabelsCall) Context(ctx context.Context) *InterconnectAttachmentsSetLabelsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectAttachmentsSetLabelsCall) Do ¶
func (c *InterconnectAttachmentsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnectAttachments.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*InterconnectAttachmentsSetLabelsCall) Header ¶
func (c *InterconnectAttachmentsSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InterconnectAttachmentsSetLabelsCall) RequestId ¶
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 InterconnectAttachmentsTestIamPermissionsCall ¶
type InterconnectAttachmentsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*InterconnectAttachmentsTestIamPermissionsCall) Context ¶
func (c *InterconnectAttachmentsTestIamPermissionsCall) Context(ctx context.Context) *InterconnectAttachmentsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectAttachmentsTestIamPermissionsCall) Do ¶
func (c *InterconnectAttachmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.interconnectAttachments.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*InterconnectAttachmentsTestIamPermissionsCall) Fields ¶
func (c *InterconnectAttachmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *InterconnectAttachmentsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InterconnectAttachmentsTestIamPermissionsCall) Header ¶
func (c *InterconnectAttachmentsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. Next id: 4
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
InterconnectDiagnostics: Diagnostics information about interconnect, 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DETACHED" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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" // "HIGH_WARNING" // "LOW_ALARM" // "LOW_WARNING" // "OK" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InterconnectDiagnosticsLinkStatus) MarshalJSON ¶
func (s *InterconnectDiagnosticsLinkStatus) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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" // "CLOSED" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "LOCAL_REGION" // "LP_GLOBAL" // "LP_LOCAL_REGION" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectLocationsGetCall) Do ¶
func (c *InterconnectLocationsGetCall) Do(opts ...googleapi.CallOption) (*InterconnectLocation, error)
Do executes the "compute.interconnectLocations.get" call. Exactly one of *InterconnectLocation or error will be non-nil. 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 information.
func (*InterconnectLocationsGetCall) Header ¶
func (c *InterconnectLocationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InterconnectLocationsGetCall) IfNoneMatch ¶
func (c *InterconnectLocationsGetCall) IfNoneMatch(entityTag string) *InterconnectLocationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectLocationsListCall) Do ¶
func (c *InterconnectLocationsListCall) Do(opts ...googleapi.CallOption) (*InterconnectLocationList, error)
Do executes the "compute.interconnectLocations.list" call. Exactly one of *InterconnectLocationList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InterconnectLocationsListCall) Header ¶
func (c *InterconnectLocationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InterconnectLocationsListCall) IfNoneMatch ¶
func (c *InterconnectLocationsListCall) IfNoneMatch(entityTag string) *InterconnectLocationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectLocationsService) List ¶
func (r *InterconnectLocationsService) List(project string) *InterconnectLocationsListCall
List: Retrieves the list of interconnect locations available to the specified project. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectLocationsService) TestIamPermissions ¶
func (r *InterconnectLocationsService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *InterconnectLocationsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type InterconnectLocationsTestIamPermissionsCall ¶
type InterconnectLocationsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*InterconnectLocationsTestIamPermissionsCall) Context ¶
func (c *InterconnectLocationsTestIamPermissionsCall) Context(ctx context.Context) *InterconnectLocationsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectLocationsTestIamPermissionsCall) Do ¶
func (c *InterconnectLocationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.interconnectLocations.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*InterconnectLocationsTestIamPermissionsCall) Fields ¶
func (c *InterconnectLocationsTestIamPermissionsCall) Fields(s ...googleapi.Field) *InterconnectLocationsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InterconnectLocationsTestIamPermissionsCall) Header ¶
func (c *InterconnectLocationsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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" // "IT_PARTIAL_OUTAGE" // "OUTAGE" // "PARTIAL_OUTAGE" 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" // "NSRC_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. Note that the versions // of this enum prefixed with "NS_" have been deprecated in favor of the // unprefixed values. // // Possible values: // "ACTIVE" // "CANCELLED" // "COMPLETED" // "NS_ACTIVE" // "NS_CANCELED" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
InterconnectOutageNotification: Description of a planned outage on this Interconnect. Next id: 9
func (*InterconnectOutageNotification) MarshalJSON ¶
func (s *InterconnectOutageNotification) MarshalJSON() ([]byte, error)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectsDeleteCall) Do ¶
func (c *InterconnectsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnects.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InterconnectsDeleteCall) Header ¶
func (c *InterconnectsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectsGetCall) Do ¶
func (c *InterconnectsGetCall) Do(opts ...googleapi.CallOption) (*Interconnect, error)
Do executes the "compute.interconnects.get" call. Exactly one of *Interconnect or error will be non-nil. 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 information.
func (*InterconnectsGetCall) Header ¶
func (c *InterconnectsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InterconnectsGetCall) IfNoneMatch ¶
func (c *InterconnectsGetCall) IfNoneMatch(entityTag string) *InterconnectsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectsGetDiagnosticsCall) Do ¶
func (c *InterconnectsGetDiagnosticsCall) Do(opts ...googleapi.CallOption) (*InterconnectsGetDiagnosticsResponse, error)
Do executes the "compute.interconnects.getDiagnostics" call. Exactly one of *InterconnectsGetDiagnosticsResponse or error will be non-nil. 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 information.
func (*InterconnectsGetDiagnosticsCall) Header ¶
func (c *InterconnectsGetDiagnosticsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InterconnectsGetDiagnosticsCall) IfNoneMatch ¶
func (c *InterconnectsGetDiagnosticsCall) IfNoneMatch(entityTag string) *InterconnectsGetDiagnosticsCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
InterconnectsGetDiagnosticsResponse: Response for the InterconnectsGetDiagnosticsRequest.
func (*InterconnectsGetDiagnosticsResponse) MarshalJSON ¶
func (s *InterconnectsGetDiagnosticsResponse) MarshalJSON() ([]byte, error)
type InterconnectsGetIamPolicyCall ¶
type InterconnectsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*InterconnectsGetIamPolicyCall) Context ¶
func (c *InterconnectsGetIamPolicyCall) Context(ctx context.Context) *InterconnectsGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectsGetIamPolicyCall) Do ¶
func (c *InterconnectsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.interconnects.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*InterconnectsGetIamPolicyCall) Fields ¶
func (c *InterconnectsGetIamPolicyCall) Fields(s ...googleapi.Field) *InterconnectsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InterconnectsGetIamPolicyCall) Header ¶
func (c *InterconnectsGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InterconnectsGetIamPolicyCall) IfNoneMatch ¶
func (c *InterconnectsGetIamPolicyCall) IfNoneMatch(entityTag string) *InterconnectsGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*InterconnectsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.0
func (c *InterconnectsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *InterconnectsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectsInsertCall) Do ¶
func (c *InterconnectsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnects.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InterconnectsInsertCall) Header ¶
func (c *InterconnectsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectsListCall) Do ¶
func (c *InterconnectsListCall) Do(opts ...googleapi.CallOption) (*InterconnectList, error)
Do executes the "compute.interconnects.list" call. Exactly one of *InterconnectList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*InterconnectsListCall) Header ¶
func (c *InterconnectsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*InterconnectsListCall) IfNoneMatch ¶
func (c *InterconnectsListCall) IfNoneMatch(entityTag string) *InterconnectsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectsPatchCall) Do ¶
func (c *InterconnectsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnects.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*InterconnectsPatchCall) Header ¶
func (c *InterconnectsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectsService) GetDiagnostics ¶
func (r *InterconnectsService) GetDiagnostics(project string, interconnect string) *InterconnectsGetDiagnosticsCall
GetDiagnostics: Returns the interconnectDiagnostics for the specified interconnect. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectsService) GetIamPolicy ¶
func (r *InterconnectsService) GetIamPolicy(project string, resource string) *InterconnectsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectsService) Insert ¶
func (r *InterconnectsService) Insert(project string, interconnect *Interconnect) *InterconnectsInsertCall
Insert: Creates a Interconnect in the specified project using the data included in the request. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectsService) List ¶
func (r *InterconnectsService) List(project string) *InterconnectsListCall
List: Retrieves the list of interconnect available to the specified project. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectsService) SetIamPolicy ¶
func (r *InterconnectsService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *InterconnectsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectsService) SetLabels ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*InterconnectsService) TestIamPermissions ¶
func (r *InterconnectsService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *InterconnectsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type InterconnectsSetIamPolicyCall ¶
type InterconnectsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*InterconnectsSetIamPolicyCall) Context ¶
func (c *InterconnectsSetIamPolicyCall) Context(ctx context.Context) *InterconnectsSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectsSetIamPolicyCall) Do ¶
func (c *InterconnectsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.interconnects.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*InterconnectsSetIamPolicyCall) Fields ¶
func (c *InterconnectsSetIamPolicyCall) Fields(s ...googleapi.Field) *InterconnectsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InterconnectsSetIamPolicyCall) Header ¶
func (c *InterconnectsSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type InterconnectsSetLabelsCall ¶
type InterconnectsSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*InterconnectsSetLabelsCall) Context ¶
func (c *InterconnectsSetLabelsCall) Context(ctx context.Context) *InterconnectsSetLabelsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectsSetLabelsCall) Do ¶
func (c *InterconnectsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.interconnects.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*InterconnectsSetLabelsCall) Header ¶
func (c *InterconnectsSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type InterconnectsTestIamPermissionsCall ¶
type InterconnectsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*InterconnectsTestIamPermissionsCall) Context ¶
func (c *InterconnectsTestIamPermissionsCall) Context(ctx context.Context) *InterconnectsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InterconnectsTestIamPermissionsCall) Do ¶
func (c *InterconnectsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.interconnects.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*InterconnectsTestIamPermissionsCall) Fields ¶
func (c *InterconnectsTestIamPermissionsCall) Fields(s ...googleapi.Field) *InterconnectsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InterconnectsTestIamPermissionsCall) Header ¶
func (c *InterconnectsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type InternalIpAddress ¶
type InternalIpAddress struct { // Cidr: IP CIDR address or range. Cidr string `json:"cidr,omitempty"` // Owner: The owner of the internal IP address. Owner string `json:"owner,omitempty"` // Purpose: The purpose of the internal IP address if applicable. Purpose string `json:"purpose,omitempty"` // Region: The region of the internal IP address if applicable. Region string `json:"region,omitempty"` // Type: The type of the internal IP address. // // Possible values: // "PEER_RESERVED" // "PEER_USED" // "REMOTE_RESERVED" // "REMOTE_USED" // "RESERVED" // "SUBNETWORK" // "TYPE_UNSPECIFIED" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Cidr") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Cidr") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InternalIpAddress) MarshalJSON ¶
func (s *InternalIpAddress) MarshalJSON() ([]byte, error)
type InternalIpOwner ¶
type InternalIpOwner struct { // IpCidrRange: IP CIDR range being owned. IpCidrRange string `json:"ipCidrRange,omitempty"` // Owners: URLs of the IP owners of the IP CIDR range. Owners []string `json:"owners,omitempty"` // SystemOwned: Whether this IP CIDR range is reserved for system use. SystemOwned bool `json:"systemOwned,omitempty"` // ForceSendFields is a list of field names (e.g. "IpCidrRange") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InternalIpOwner) MarshalJSON ¶
func (s *InternalIpOwner) MarshalJSON() ([]byte, error)
type IpAddressesList ¶
type IpAddressesList struct { // Id: [Output Only] Unique identifier for the resource; defined by the // server. Id string `json:"id,omitempty"` // Items: A list of InternalIpAddress resources. Items []*InternalIpAddress `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#ipAddressesList // for IP addresses 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 *IpAddressesListWarning `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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*IpAddressesList) MarshalJSON ¶
func (s *IpAddressesList) MarshalJSON() ([]byte, error)
type IpAddressesListWarning ¶
type IpAddressesListWarning 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 []*IpAddressesListWarningData `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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
IpAddressesListWarning: [Output Only] Informational warning message.
func (*IpAddressesListWarning) MarshalJSON ¶
func (s *IpAddressesListWarning) MarshalJSON() ([]byte, error)
type IpAddressesListWarningData ¶
type IpAddressesListWarningData 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*IpAddressesListWarningData) MarshalJSON ¶
func (s *IpAddressesListWarningData) MarshalJSON() ([]byte, error)
type IpOwnerList ¶
type IpOwnerList struct { // Id: [Output Only] Unique identifier for the resource; defined by the // server. Id string `json:"id,omitempty"` // Items: A list of InternalIpOwner resources. Items []*InternalIpOwner `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always compute#ipOwnerList for // lists of IP owners. 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 *IpOwnerListWarning `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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
IpOwnerList: Contains a list of IP owners.
func (*IpOwnerList) MarshalJSON ¶
func (s *IpOwnerList) MarshalJSON() ([]byte, error)
type IpOwnerListWarning ¶
type IpOwnerListWarning 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 []*IpOwnerListWarningData `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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
IpOwnerListWarning: [Output Only] Informational warning message.
func (*IpOwnerListWarning) MarshalJSON ¶
func (s *IpOwnerListWarning) MarshalJSON() ([]byte, error)
type IpOwnerListWarningData ¶
type IpOwnerListWarningData 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*IpOwnerListWarningData) MarshalJSON ¶
func (s *IpOwnerListWarningData) MarshalJSON() ([]byte, error)
type Jwt ¶ added in v0.2.0
type Jwt struct { // Audiences: A JWT containing any of these audiences will be accepted. // The service name will be accepted if audiences is empty. Examples: // bookstore_android.apps.googleusercontent.com, // bookstore_web.apps.googleusercontent.com Audiences []string `json:"audiences,omitempty"` // Issuer: Identifies the issuer that issued the JWT, which is usually a // URL or an email address. Examples: https://securetoken.google.com, // 1234567-compute@developer.gserviceaccount.com Issuer string `json:"issuer,omitempty"` // JwksPublicKeys: The provider?s public key set to validate the // signature of the JWT. JwksPublicKeys string `json:"jwksPublicKeys,omitempty"` // JwtHeaders: jwt_headers and jwt_params define where to extract the // JWT from an HTTP request. If no explicit location is specified, the // following default locations are tried in order: // // 1. The Authorization header using the Bearer schema. See `here `_. // Example: // // Authorization: Bearer . // // 2. `access_token` query parameter. See `this `_ // // Multiple JWTs can be verified for a request. Each JWT has to be // extracted from the locations its issuer specified or from the default // locations. // // This field is set if JWT is sent in a request header. This field // specifies the header name. For example, if // `header=x-goog-iap-jwt-assertion`, the header format will be // x-goog-iap-jwt-assertion: . JwtHeaders []*JwtHeader `json:"jwtHeaders,omitempty"` // JwtParams: This field is set if JWT is sent in a query parameter. // This field specifies the query parameter name. For example, if // jwt_params[0] is jwt_token, the JWT format in the query parameter is // /path?jwt_token=. JwtParams []string `json:"jwtParams,omitempty"` // ForceSendFields is a list of field names (e.g. "Audiences") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Audiences") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Jwt: JWT configuration for origin authentication.
func (*Jwt) MarshalJSON ¶ added in v0.2.0
type JwtHeader ¶ added in v0.2.0
type JwtHeader struct { // Name: The HTTP header name. Name string `json:"name,omitempty"` // ValuePrefix: The value prefix. The value format is "value_prefix" For // example, for "Authorization: Bearer ", value_prefix="Bearer " with a // space at the end. ValuePrefix string `json:"valuePrefix,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
JwtHeader: This message specifies a header location to extract JWT token.
func (*JwtHeader) MarshalJSON ¶ added in v0.2.0
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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
License: A license resource.
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" // "ENABLED" // "RESTRICTED" // "STATE_UNSPECIFIED" // "TERMINATED" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicenseCodesGetCall) Do ¶
func (c *LicenseCodesGetCall) Do(opts ...googleapi.CallOption) (*LicenseCode, error)
Do executes the "compute.licenseCodes.get" call. Exactly one of *LicenseCode or error will be non-nil. 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 information.
func (*LicenseCodesGetCall) Header ¶
func (c *LicenseCodesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LicenseCodesGetCall) IfNoneMatch ¶
func (c *LicenseCodesGetCall) IfNoneMatch(entityTag string) *LicenseCodesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type LicenseCodesGetIamPolicyCall ¶
type LicenseCodesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*LicenseCodesGetIamPolicyCall) Context ¶
func (c *LicenseCodesGetIamPolicyCall) Context(ctx context.Context) *LicenseCodesGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicenseCodesGetIamPolicyCall) Do ¶
func (c *LicenseCodesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.licenseCodes.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*LicenseCodesGetIamPolicyCall) Fields ¶
func (c *LicenseCodesGetIamPolicyCall) Fields(s ...googleapi.Field) *LicenseCodesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LicenseCodesGetIamPolicyCall) Header ¶
func (c *LicenseCodesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LicenseCodesGetIamPolicyCall) IfNoneMatch ¶
func (c *LicenseCodesGetIamPolicyCall) IfNoneMatch(entityTag string) *LicenseCodesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*LicenseCodesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.0
func (c *LicenseCodesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *LicenseCodesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
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. (== suppress_warning http-rest-shadowed ==)
func (*LicenseCodesService) GetIamPolicy ¶
func (r *LicenseCodesService) GetIamPolicy(project string, resource string) *LicenseCodesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. May be empty if no such policy or resource exists. (== suppress_warning http-rest-shadowed ==)
func (*LicenseCodesService) SetIamPolicy ¶
func (r *LicenseCodesService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *LicenseCodesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
type LicenseCodesSetIamPolicyCall ¶
type LicenseCodesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*LicenseCodesSetIamPolicyCall) Context ¶
func (c *LicenseCodesSetIamPolicyCall) Context(ctx context.Context) *LicenseCodesSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicenseCodesSetIamPolicyCall) Do ¶
func (c *LicenseCodesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.licenseCodes.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*LicenseCodesSetIamPolicyCall) Fields ¶
func (c *LicenseCodesSetIamPolicyCall) Fields(s ...googleapi.Field) *LicenseCodesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LicenseCodesSetIamPolicyCall) Header ¶
func (c *LicenseCodesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicenseCodesTestIamPermissionsCall) Do ¶
func (c *LicenseCodesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.licenseCodes.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 information.
func (*LicenseCodesTestIamPermissionsCall) Header ¶
func (c *LicenseCodesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type LicenseResourceCommitment ¶ added in v0.12.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
LicenseResourceCommitment: Commitment for a particular license resource (a License Commitment is composed of one or more of these).
func (*LicenseResourceCommitment) MarshalJSON ¶ added in v0.12.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicensesDeleteCall) Do ¶
func (c *LicensesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.licenses.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*LicensesDeleteCall) Header ¶
func (c *LicensesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicensesGetCall) Do ¶
func (c *LicensesGetCall) Do(opts ...googleapi.CallOption) (*License, error)
Do executes the "compute.licenses.get" call. Exactly one of *License or error will be non-nil. 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 information.
func (*LicensesGetCall) Header ¶
func (c *LicensesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LicensesGetCall) IfNoneMatch ¶
func (c *LicensesGetCall) IfNoneMatch(entityTag string) *LicensesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicensesGetIamPolicyCall) Do ¶
func (c *LicensesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.licenses.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*LicensesGetIamPolicyCall) Header ¶
func (c *LicensesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LicensesGetIamPolicyCall) IfNoneMatch ¶
func (c *LicensesGetIamPolicyCall) IfNoneMatch(entityTag string) *LicensesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*LicensesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicensesInsertCall) Do ¶
func (c *LicensesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.licenses.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*LicensesInsertCall) Header ¶
func (c *LicensesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicensesListCall) Do ¶
func (c *LicensesListCall) Do(opts ...googleapi.CallOption) (*LicensesListResponse, error)
Do executes the "compute.licenses.list" call. Exactly one of *LicensesListResponse or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*LicensesListCall) Header ¶
func (c *LicensesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LicensesListCall) IfNoneMatch ¶
func (c *LicensesListCall) IfNoneMatch(entityTag string) *LicensesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
func (*LicensesService) Get ¶
func (r *LicensesService) Get(project string, license string) *LicensesGetCall
Get: Returns the specified License resource. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/licenses/get
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. (== suppress_warning http-rest-shadowed ==)
func (*LicensesService) Insert ¶
func (r *LicensesService) Insert(project string, license *License) *LicensesInsertCall
Insert: Create a License resource in the specified project. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicensesSetIamPolicyCall) Do ¶
func (c *LicensesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.licenses.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*LicensesSetIamPolicyCall) Header ¶
func (c *LicensesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicensesTestIamPermissionsCall) Do ¶
func (c *LicensesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.licenses.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 information.
func (*LicensesTestIamPermissionsCall) Header ¶
func (c *LicensesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type LocalDisk ¶ added in v0.4.0
type LocalDisk struct { // DiskCount: Specifies the number of such disks. DiskCount string `json:"diskCount,omitempty"` // DiskSizeGb: Specifies the size of the disk in base-2 GB. DiskSizeGb string `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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LocalDisk) MarshalJSON ¶ added in v0.4.0
type LogConfig ¶
type LogConfig struct { // CloudAudit: Cloud audit options. CloudAudit *LogConfigCloudAuditOptions `json:"cloudAudit,omitempty"` // Counter: Counter options. Counter *LogConfigCounterOptions `json:"counter,omitempty"` // DataAccess: Data access options. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
LogConfig: Specifies what kind of log the caller must write
func (*LogConfig) MarshalJSON ¶
type LogConfigCloudAuditOptions ¶
type LogConfigCloudAuditOptions struct { // AuthorizationLoggingOptions: Information used by the Cloud Audit // Logging pipeline. AuthorizationLoggingOptions *AuthorizationLoggingOptions `json:"authorizationLoggingOptions,omitempty"` // LogName: The log_name to populate in the Cloud Audit Record. // // Possible values: // "ADMIN_ACTIVITY" // "DATA_ACCESS" // "UNSPECIFIED_LOG_NAME" LogName string `json:"logName,omitempty"` // ForceSendFields is a list of field names (e.g. // "AuthorizationLoggingOptions") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "AuthorizationLoggingOptions") to include in API requests with the // JSON null value. By default, fields with empty values are omitted // from API requests. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
LogConfigCloudAuditOptions: Write a Cloud Audit log
func (*LogConfigCloudAuditOptions) MarshalJSON ¶
func (s *LogConfigCloudAuditOptions) MarshalJSON() ([]byte, error)
type LogConfigCounterOptions ¶
type LogConfigCounterOptions struct { // CustomFields: Custom fields. CustomFields []*LogConfigCounterOptionsCustomField `json:"customFields,omitempty"` // Field: The field value to attribute. Field string `json:"field,omitempty"` // Metric: The metric to update. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
LogConfigCounterOptions: Increment a streamz counter with the specified metric and field names.
Metric names should start with a '/', generally be lowercase-only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended.
Field names correspond to IAM request parameters and field values are their respective values.
Supported field names: - "authority", which is "[token]" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - "iam_principal", a representation of IAMContext.principal even if a token or authority selector is present; or - "" (empty string), resulting in a counter with no fields.
Examples: counter { metric: "/debug_access_count" field: "iam_principal" } ==> increment counter /iam/policy/debug_access_count {iam_principal=[value of IAMContext.principal]}
TODO(b/141846426): Consider supporting "authority" and "iam_principal" fields in the same counter.
func (*LogConfigCounterOptions) MarshalJSON ¶
func (s *LogConfigCounterOptions) MarshalJSON() ([]byte, error)
type LogConfigCounterOptionsCustomField ¶ added in v0.12.0
type LogConfigCounterOptionsCustomField struct { // Name: Name is the field name. Name string `json:"name,omitempty"` // Value: Value is the field value. It is important that in contrast to // the CounterOptions.field, the value here is a constant that is not // derived from the IAMContext. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
LogConfigCounterOptionsCustomField: Custom fields. These can be used to create a counter with arbitrary field/value pairs. See: go/rpcsp-custom-fields.
func (*LogConfigCounterOptionsCustomField) MarshalJSON ¶ added in v0.12.0
func (s *LogConfigCounterOptionsCustomField) MarshalJSON() ([]byte, error)
type LogConfigDataAccessOptions ¶
type LogConfigDataAccessOptions struct { // LogMode: Whether Gin logging should happen in a fail-closed manner at // the caller. This is relevant only in the LocalIAM implementation, for // now. // // Possible values: // "LOG_FAIL_CLOSED" // "LOG_MODE_UNSPECIFIED" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
LogConfigDataAccessOptions: Write a Data Access (Gin) log
func (*LogConfigDataAccessOptions) MarshalJSON ¶
func (s *LogConfigDataAccessOptions) MarshalJSON() ([]byte, error)
type MachineImage ¶
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] Specifies to create an application // consistent machine image by informing the OS to prepare for the // snapshot process. Currently only supported on Windows instances using // the Volume Shadow Copy Service (VSS). 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"` // 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"` // SelfLink: [Output Only] The URL for this machine image. 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"` // 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] Properties of source // instance. 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: GCS bucket storage location of the machine image // (regional or multi-regional). 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
MachineImage: Machine image resource.
func (*MachineImage) MarshalJSON ¶
func (s *MachineImage) MarshalJSON() ([]byte, error)
type MachineImageList ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
MachineImageList: A list of machine images.
func (*MachineImageList) MarshalJSON ¶
func (s *MachineImageList) MarshalJSON() ([]byte, error)
type MachineImageListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
MachineImageListWarning: [Output Only] Informational warning message.
func (*MachineImageListWarning) MarshalJSON ¶
func (s *MachineImageListWarning) MarshalJSON() ([]byte, error)
type MachineImageListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*MachineImageListWarningData) MarshalJSON ¶
func (s *MachineImageListWarningData) MarshalJSON() ([]byte, error)
type MachineImagesDeleteCall ¶
type MachineImagesDeleteCall struct {
// contains filtered or unexported fields
}
func (*MachineImagesDeleteCall) Context ¶
func (c *MachineImagesDeleteCall) Context(ctx context.Context) *MachineImagesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*MachineImagesDeleteCall) Do ¶
func (c *MachineImagesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.machineImages.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*MachineImagesDeleteCall) Header ¶
func (c *MachineImagesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*MachineImagesDeleteCall) RequestId ¶
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 ¶
type MachineImagesGetCall struct {
// contains filtered or unexported fields
}
func (*MachineImagesGetCall) Context ¶
func (c *MachineImagesGetCall) Context(ctx context.Context) *MachineImagesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*MachineImagesGetCall) Do ¶
func (c *MachineImagesGetCall) Do(opts ...googleapi.CallOption) (*MachineImage, error)
Do executes the "compute.machineImages.get" call. Exactly one of *MachineImage or error will be non-nil. 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 ¶
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 information.
func (*MachineImagesGetCall) Header ¶
func (c *MachineImagesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*MachineImagesGetCall) IfNoneMatch ¶
func (c *MachineImagesGetCall) IfNoneMatch(entityTag string) *MachineImagesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type MachineImagesGetIamPolicyCall ¶
type MachineImagesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*MachineImagesGetIamPolicyCall) Context ¶
func (c *MachineImagesGetIamPolicyCall) Context(ctx context.Context) *MachineImagesGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*MachineImagesGetIamPolicyCall) Do ¶
func (c *MachineImagesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.machineImages.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 ¶
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 information.
func (*MachineImagesGetIamPolicyCall) Header ¶
func (c *MachineImagesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*MachineImagesGetIamPolicyCall) IfNoneMatch ¶
func (c *MachineImagesGetIamPolicyCall) IfNoneMatch(entityTag string) *MachineImagesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*MachineImagesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.0
func (c *MachineImagesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *MachineImagesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type MachineImagesInsertCall ¶
type MachineImagesInsertCall struct {
// contains filtered or unexported fields
}
func (*MachineImagesInsertCall) Context ¶
func (c *MachineImagesInsertCall) Context(ctx context.Context) *MachineImagesInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*MachineImagesInsertCall) Do ¶
func (c *MachineImagesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.machineImages.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*MachineImagesInsertCall) Header ¶
func (c *MachineImagesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*MachineImagesInsertCall) RequestId ¶
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 ¶
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 ¶
type MachineImagesListCall struct {
// contains filtered or unexported fields
}
func (*MachineImagesListCall) Context ¶
func (c *MachineImagesListCall) Context(ctx context.Context) *MachineImagesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*MachineImagesListCall) Do ¶
func (c *MachineImagesListCall) Do(opts ...googleapi.CallOption) (*MachineImageList, error)
Do executes the "compute.machineImages.list" call. Exactly one of *MachineImageList or error will be non-nil. 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 ¶
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 information.
func (*MachineImagesListCall) Filter ¶
func (c *MachineImagesListCall) Filter(filter string) *MachineImagesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*MachineImagesListCall) Header ¶
func (c *MachineImagesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*MachineImagesListCall) IfNoneMatch ¶
func (c *MachineImagesListCall) IfNoneMatch(entityTag string) *MachineImagesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*MachineImagesListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type MachineImagesService ¶
type MachineImagesService struct {
// contains filtered or unexported fields
}
func NewMachineImagesService ¶
func NewMachineImagesService(s *Service) *MachineImagesService
func (*MachineImagesService) Delete ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*MachineImagesService) Get ¶
func (r *MachineImagesService) Get(project string, machineImage string) *MachineImagesGetCall
Get: Returns the specified machine image. Gets a list of available machine images by making a list() request. (== suppress_warning http-rest-shadowed ==)
func (*MachineImagesService) GetIamPolicy ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*MachineImagesService) Insert ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*MachineImagesService) List ¶
func (r *MachineImagesService) List(project string) *MachineImagesListCall
List: Retrieves a list of machine images that are contained within the specified project. (== suppress_warning http-rest-shadowed ==)
func (*MachineImagesService) SetIamPolicy ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*MachineImagesService) TestIamPermissions ¶
func (r *MachineImagesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *MachineImagesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type MachineImagesSetIamPolicyCall ¶
type MachineImagesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*MachineImagesSetIamPolicyCall) Context ¶
func (c *MachineImagesSetIamPolicyCall) Context(ctx context.Context) *MachineImagesSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*MachineImagesSetIamPolicyCall) Do ¶
func (c *MachineImagesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.machineImages.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 ¶
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 information.
func (*MachineImagesSetIamPolicyCall) Header ¶
func (c *MachineImagesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type MachineImagesTestIamPermissionsCall ¶
type MachineImagesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*MachineImagesTestIamPermissionsCall) Context ¶
func (c *MachineImagesTestIamPermissionsCall) Context(ctx context.Context) *MachineImagesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*MachineImagesTestIamPermissionsCall) Do ¶
func (c *MachineImagesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.machineImages.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 ¶
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 information.
func (*MachineImagesTestIamPermissionsCall) Header ¶
func (c *MachineImagesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type MachineType ¶
type MachineType struct { // 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. 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"` // CPU. See 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"` // 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"` // 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. "CreationTimestamp") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. (== resource_for v1.machineTypes ==) (== resource_for beta.machineTypes ==)
func (*MachineType) MarshalJSON ¶
func (s *MachineType) 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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*MachineTypeListWarningData) MarshalJSON ¶
func (s *MachineTypeListWarningData) 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*MachineTypesAggregatedListCall) Do ¶
func (c *MachineTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*MachineTypeAggregatedList, error)
Do executes the "compute.machineTypes.aggregatedList" call. Exactly one of *MachineTypeAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*MachineTypesAggregatedListCall) Header ¶
func (c *MachineTypesAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*MachineTypesAggregatedListCall) IfNoneMatch ¶
func (c *MachineTypesAggregatedListCall) IfNoneMatch(entityTag string) *MachineTypesAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*MachineTypesGetCall) Do ¶
func (c *MachineTypesGetCall) Do(opts ...googleapi.CallOption) (*MachineType, error)
Do executes the "compute.machineTypes.get" call. Exactly one of *MachineType or error will be non-nil. 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 information.
func (*MachineTypesGetCall) Header ¶
func (c *MachineTypesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*MachineTypesGetCall) IfNoneMatch ¶
func (c *MachineTypesGetCall) IfNoneMatch(entityTag string) *MachineTypesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*MachineTypesListCall) Do ¶
func (c *MachineTypesListCall) Do(opts ...googleapi.CallOption) (*MachineTypeList, error)
Do executes the "compute.machineTypes.list" call. Exactly one of *MachineTypeList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*MachineTypesListCall) Header ¶
func (c *MachineTypesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*MachineTypesListCall) IfNoneMatch ¶
func (c *MachineTypesListCall) IfNoneMatch(entityTag string) *MachineTypesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/machineTypes/aggregatedList
func (*MachineTypesService) Get ¶
func (r *MachineTypesService) Get(project string, zone string, machineType string) *MachineTypesGetCall
Get: Returns the specified machine type. Gets a list of available machine types by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/machineTypes/get
func (*MachineTypesService) List ¶
func (r *MachineTypesService) List(project string, zone string) *MachineTypesListCall
List: Retrieves a list of machine types available to the specified project. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/machineTypes/list
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" // "CREATING" // "CREATING_WITHOUT_RETRIES" // "DELETING" // "NONE" // "RECREATING" // "REFRESHING" // "RESTARTING" // "VERIFYING" 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: // "PROVISIONING" // "REPAIRING" // "RUNNING" // "STAGING" // "STOPPED" // "STOPPING" // "SUSPENDED" // "SUSPENDING" // "TERMINATED" InstanceStatus string `json:"instanceStatus,omitempty"` // 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"` // LastAttempt: [Output Only] Information about the last attempt to // create or delete the instance. LastAttempt *ManagedInstanceLastAttempt `json:"lastAttempt,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"` // Tag: [Output Only] Tag describing the version. Tag string `json:"tag,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ManagedInstance: A Managed Instance resource.
func (*ManagedInstance) MarshalJSON ¶
func (s *ManagedInstance) MarshalJSON() ([]byte, error)
type ManagedInstanceInstanceHealth ¶
type ManagedInstanceInstanceHealth struct { // DetailedHealthState: [Output Only] The current detailed instance // health state. // // Possible values: // "DRAINING" // "HEALTHY" // "TIMEOUT" // "UNHEALTHY" // "UNKNOWN" 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"` // HealthState: [Output Only] The current instance health state. This // field will not get promoted to beta/GA and might be removed from // alpha APIs after 01/12/2019. Please use detailed_health_state field // instead. // // Possible values: // "HEALTHY" // "UNHEALTHY" HealthState string `json:"healthState,omitempty"` // ForceSendFields is a list of field names (e.g. "DetailedHealthState") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*ManagedInstanceInstanceHealth) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ManagedInstanceLastAttemptErrorsErrors) MarshalJSON ¶
func (s *ManagedInstanceLastAttemptErrorsErrors) MarshalJSON() ([]byte, error)
type ManagedInstanceVersion ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*ManagedInstanceVersion) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Metadata: A metadata key/value entry.
func (*Metadata) MarshalJSON ¶
type MetadataCredentialsFromPlugin ¶ added in v0.2.0
type MetadataCredentialsFromPlugin struct { // Name: Plugin name. Name string `json:"name,omitempty"` // StructConfig: A text proto that conforms to a Struct type definition // interpreted by the plugin. StructConfig string `json:"structConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
MetadataCredentialsFromPlugin: Custom authenticator credentials.
func (*MetadataCredentialsFromPlugin) MarshalJSON ¶ added in v0.2.0
func (s *MetadataCredentialsFromPlugin) MarshalJSON() ([]byte, error)
type MetadataFilter ¶ added in v0.2.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 filterLabel matches // within the list of filterLabels contribute towards 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" // "MATCH_ANY" // "NOT_SET" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
MetadataFilter: Opaque filter criteria used by loadbalancers to restrict routing configuration to a limited set of loadbalancing proxies. Proxies and sidecars involved in loadbalancing would typically present metadata to the loadbalancers which need to match criteria specified here. If a match takes place, 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 in the provided metadata. An example for using metadataFilters would be: if loadbalancing involves Envoys, they will only receive routing configuration when values in metadataFilters match values supplied in <a href="https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/core/b ase.proto#envoy-api-msg-core-node" Node metadata of their XDS requests to loadbalancers.
func (*MetadataFilter) MarshalJSON ¶ added in v0.2.0
func (s *MetadataFilter) MarshalJSON() ([]byte, error)
type MetadataFilterLabelMatch ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
MetadataFilterLabelMatch: MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the loadbalancer.
func (*MetadataFilterLabelMatch) MarshalJSON ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*MetadataItems) MarshalJSON ¶
func (s *MetadataItems) MarshalJSON() ([]byte, error)
type MutualTls ¶ added in v0.2.0
type MutualTls struct { // Mode: Specifies if the server TLS is configured to be strict or // permissive. This field can be set to one of the following: STRICT: // Client certificate must be presented, connection is in TLS. // PERMISSIVE: Client certificate can be omitted, connection can be // either plaintext or TLS. // // Possible values: // "INVALID" // "PERMISSIVE" // "STRICT" Mode string `json:"mode,omitempty"` // ForceSendFields is a list of field names (e.g. "Mode") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
MutualTls: Configuration for the mutual Tls mode for peer authentication.
func (*MutualTls) MarshalJSON ¶ added in v0.2.0
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NamedPort: The named port. For example: .
func (*NamedPort) MarshalJSON ¶
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: 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. AutoCreateSubnetworks bool `json:"autoCreateSubnetworks,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // CrossVmEncryption: [Output Only] Type of VM-to-VM traffic encryption // for this network. // // Possible values: // "ENCRYPTED" // "UNENCRYPTED" CrossVmEncryption string `json:"crossVmEncryption,omitempty"` // Description: An optional description of this resource. Provide this // field when you create the resource. Description string `json:"description,omitempty"` // GatewayIPv4: [Output Only] The gateway address for default routing // out of the network, selected by GCP. 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"` // Kind: [Output Only] Type of the resource. Always compute#network for // networks. Kind string `json:"kind,omitempty"` // LoadBalancerVmEncryption: [Output Only] Type of LB-to-VM traffic // encryption for this network. // // Possible values: // "ENCRYPTED" // "UNENCRYPTED" LoadBalancerVmEncryption string `json:"loadBalancerVmEncryption,omitempty"` // Mtu: Maximum Transmission Unit in bytes. The minimum value for this // field is 1460 and the maximum value is 1500 bytes. Mtu int64 `json:"mtu,omitempty"` // MulticastMode: The multicast mode for this network. If set to ZONAL, // multicast is allowed within a zone. If set to DISABLED, multicast is // disabled for this network. The default is DISABLED. // // Possible values: // "DISABLED" // "ZONAL" MulticastMode string `json:"multicastMode,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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== resource_for v1.networks ==) (== resource_for beta.networks ==)
func (*Network) MarshalJSON ¶
type NetworkEndpoint ¶
type NetworkEndpoint struct { // Annotations: Metadata defined as annotations on the network endpoint. Annotations map[string]string `json:"annotations,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 for a specific VM instance that the IP address // belongs to. This is required for network endpoints of type // GCE_VM_IP_PORT. The instance must be in the same zone of network // endpoint group. // // The name must be 1-63 characters long, and comply with RFC1035. 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. IpAddress string `json:"ipAddress,omitempty"` // Port: Optional port number of network endpoint. If not specified and // the NetworkEndpointGroup.network_endpoint_type is GCE_IP_PORT, the // defaultPort for the network endpoint group will be used. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NetworkEndpoint: The network endpoint.
func (*NetworkEndpoint) MarshalJSON ¶
func (s *NetworkEndpoint) MarshalJSON() ([]byte, error)
type NetworkEndpointGroup ¶
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. 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"` // LoadBalancer: This field is only valid when the network endpoint // group is used for load balancing. [Deprecated] This field is // deprecated. LoadBalancer *NetworkEndpointGroupLbNetworkEndpointGroup `json:"loadBalancer,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. Currently the only supported value is GCE_VM_IP_PORT. // // Possible values: // "GCE_VM_IP_PORT" // "GCE_VM_PRIMARY_IP" // "INTERNET_FQDN_PORT" // "INTERNET_IP_PORT" // "NON_GCP_PRIVATE_IP_PORT" // "SERVERLESS" NetworkEndpointType string `json:"networkEndpointType,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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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"` // Type: Specify the type of this network endpoint group. Only // LOAD_BALANCING is valid for now. // // Possible values: // "LOAD_BALANCING" Type string `json:"type,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NetworkEndpointGroup: Represents a collection of network endpoints.
For more information read Setting up network endpoint groups in load balancing. (== resource_for v1.networkEndpointGroups ==) (== resource_for beta.networkEndpointGroups ==)
func (*NetworkEndpointGroup) MarshalJSON ¶
func (s *NetworkEndpointGroup) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupAggregatedList ¶
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NetworkEndpointGroupAggregatedList) MarshalJSON ¶
func (s *NetworkEndpointGroupAggregatedList) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupAggregatedListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NetworkEndpointGroupAggregatedListWarning: [Output Only] Informational warning message.
func (*NetworkEndpointGroupAggregatedListWarning) MarshalJSON ¶
func (s *NetworkEndpointGroupAggregatedListWarning) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupAggregatedListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NetworkEndpointGroupAggregatedListWarningData) MarshalJSON ¶
func (s *NetworkEndpointGroupAggregatedListWarningData) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupAppEngine ¶ added in v0.12.0
type NetworkEndpointGroupAppEngine struct { // Service: Optional serving service. // // The service name must be 1-63 characters long, and comply with // RFC1035. // // Example value: "default", "my-service". Service string `json:"service,omitempty"` // UrlMask: 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 "-dot-appname.appspot.com/". 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 must be 1-63 characters long, and comply with // RFC1035. // // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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.12.0
func (s *NetworkEndpointGroupAppEngine) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupCloudFunction ¶ added in v0.12.0
type NetworkEndpointGroupCloudFunction struct { // Function: A user-defined name of the Cloud Function. // // The service name must be 1-63 characters long, and comply with // RFC1035. // // Example value: "func1". Function string `json:"function,omitempty"` // UrlMask: 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 "/". 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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.12.0
func (s *NetworkEndpointGroupCloudFunction) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupCloudRun ¶ added in v0.12.0
type NetworkEndpointGroupCloudRun struct { // Service: Cloud Run service is the main resource of Cloud Run. // // The tag 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: 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 ".domain.com/". 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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.12.0
func (s *NetworkEndpointGroupCloudRun) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupLbNetworkEndpointGroup ¶
type NetworkEndpointGroupLbNetworkEndpointGroup struct { // DefaultPort: The default port used if the port number is not // specified in the network endpoint. [Deprecated] This field is // deprecated. DefaultPort int64 `json:"defaultPort,omitempty"` // Network: The URL of the network to which all network endpoints in the // NEG belong. Uses "default" project network if unspecified. // [Deprecated] This field is deprecated. Network string `json:"network,omitempty"` // Subnetwork: Optional URL of the subnetwork to which all network // endpoints in the NEG belong. [Deprecated] This field is deprecated. Subnetwork string `json:"subnetwork,omitempty"` // Zone: [Output Only] The URL of the zone where the network endpoint // group is located. [Deprecated] This field is deprecated. Zone string `json:"zone,omitempty"` // ForceSendFields is a list of field names (e.g. "DefaultPort") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DefaultPort") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NetworkEndpointGroupLbNetworkEndpointGroup: Load balancing specific fields for network endpoint group.
func (*NetworkEndpointGroupLbNetworkEndpointGroup) MarshalJSON ¶
func (s *NetworkEndpointGroupLbNetworkEndpointGroup) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupList ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NetworkEndpointGroupList) MarshalJSON ¶
func (s *NetworkEndpointGroupList) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NetworkEndpointGroupListWarning: [Output Only] Informational warning message.
func (*NetworkEndpointGroupListWarning) MarshalJSON ¶
func (s *NetworkEndpointGroupListWarning) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NetworkEndpointGroupListWarningData) MarshalJSON ¶
func (s *NetworkEndpointGroupListWarningData) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsAggregatedListCall ¶
type NetworkEndpointGroupsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsAggregatedListCall) Context ¶
func (c *NetworkEndpointGroupsAggregatedListCall) Context(ctx context.Context) *NetworkEndpointGroupsAggregatedListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworkEndpointGroupsAggregatedListCall) Do ¶
func (c *NetworkEndpointGroupsAggregatedListCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupAggregatedList, error)
Do executes the "compute.networkEndpointGroups.aggregatedList" call. Exactly one of *NetworkEndpointGroupAggregatedList or error will be non-nil. 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 ¶
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 information.
func (*NetworkEndpointGroupsAggregatedListCall) Filter ¶
func (c *NetworkEndpointGroupsAggregatedListCall) Filter(filter string) *NetworkEndpointGroupsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*NetworkEndpointGroupsAggregatedListCall) Header ¶
func (c *NetworkEndpointGroupsAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NetworkEndpointGroupsAggregatedListCall) IfNoneMatch ¶
func (c *NetworkEndpointGroupsAggregatedListCall) IfNoneMatch(entityTag string) *NetworkEndpointGroupsAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*NetworkEndpointGroupsAggregatedListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type NetworkEndpointGroupsAttachEndpointsRequest ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*NetworkEndpointGroupsAttachEndpointsRequest) MarshalJSON ¶
func (s *NetworkEndpointGroupsAttachEndpointsRequest) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsAttachNetworkEndpointsCall ¶
type NetworkEndpointGroupsAttachNetworkEndpointsCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsAttachNetworkEndpointsCall) Context ¶
func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) Context(ctx context.Context) *NetworkEndpointGroupsAttachNetworkEndpointsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworkEndpointGroupsAttachNetworkEndpointsCall) Do ¶
func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkEndpointGroups.attachNetworkEndpoints" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*NetworkEndpointGroupsAttachNetworkEndpointsCall) Header ¶
func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NetworkEndpointGroupsAttachNetworkEndpointsCall) RequestId ¶
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 ¶
type NetworkEndpointGroupsDeleteCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsDeleteCall) Context ¶
func (c *NetworkEndpointGroupsDeleteCall) Context(ctx context.Context) *NetworkEndpointGroupsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworkEndpointGroupsDeleteCall) Do ¶
func (c *NetworkEndpointGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkEndpointGroups.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*NetworkEndpointGroupsDeleteCall) Header ¶
func (c *NetworkEndpointGroupsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NetworkEndpointGroupsDeleteCall) RequestId ¶
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 ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*NetworkEndpointGroupsDetachEndpointsRequest) MarshalJSON ¶
func (s *NetworkEndpointGroupsDetachEndpointsRequest) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsDetachNetworkEndpointsCall ¶
type NetworkEndpointGroupsDetachNetworkEndpointsCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsDetachNetworkEndpointsCall) Context ¶
func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) Context(ctx context.Context) *NetworkEndpointGroupsDetachNetworkEndpointsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworkEndpointGroupsDetachNetworkEndpointsCall) Do ¶
func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkEndpointGroups.detachNetworkEndpoints" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*NetworkEndpointGroupsDetachNetworkEndpointsCall) Header ¶
func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NetworkEndpointGroupsDetachNetworkEndpointsCall) RequestId ¶
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 ¶
type NetworkEndpointGroupsGetCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsGetCall) Context ¶
func (c *NetworkEndpointGroupsGetCall) Context(ctx context.Context) *NetworkEndpointGroupsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworkEndpointGroupsGetCall) Do ¶
func (c *NetworkEndpointGroupsGetCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroup, error)
Do executes the "compute.networkEndpointGroups.get" call. Exactly one of *NetworkEndpointGroup or error will be non-nil. 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 ¶
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 information.
func (*NetworkEndpointGroupsGetCall) Header ¶
func (c *NetworkEndpointGroupsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NetworkEndpointGroupsGetCall) IfNoneMatch ¶
func (c *NetworkEndpointGroupsGetCall) IfNoneMatch(entityTag string) *NetworkEndpointGroupsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type NetworkEndpointGroupsInsertCall ¶
type NetworkEndpointGroupsInsertCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsInsertCall) Context ¶
func (c *NetworkEndpointGroupsInsertCall) Context(ctx context.Context) *NetworkEndpointGroupsInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworkEndpointGroupsInsertCall) Do ¶
func (c *NetworkEndpointGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networkEndpointGroups.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*NetworkEndpointGroupsInsertCall) Header ¶
func (c *NetworkEndpointGroupsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NetworkEndpointGroupsInsertCall) RequestId ¶
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 ¶
type NetworkEndpointGroupsListCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsListCall) Context ¶
func (c *NetworkEndpointGroupsListCall) Context(ctx context.Context) *NetworkEndpointGroupsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworkEndpointGroupsListCall) Do ¶
func (c *NetworkEndpointGroupsListCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupList, error)
Do executes the "compute.networkEndpointGroups.list" call. Exactly one of *NetworkEndpointGroupList or error will be non-nil. 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 ¶
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 information.
func (*NetworkEndpointGroupsListCall) Filter ¶
func (c *NetworkEndpointGroupsListCall) Filter(filter string) *NetworkEndpointGroupsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*NetworkEndpointGroupsListCall) Header ¶
func (c *NetworkEndpointGroupsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NetworkEndpointGroupsListCall) IfNoneMatch ¶
func (c *NetworkEndpointGroupsListCall) IfNoneMatch(entityTag string) *NetworkEndpointGroupsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*NetworkEndpointGroupsListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type NetworkEndpointGroupsListEndpointsRequest ¶
type NetworkEndpointGroupsListEndpointsRequest struct { // EndpointFilters: Optional list of endpoints to query. This is a more // efficient but also limited version of filter parameter. Endpoints in // the filter must have ip_address and port fields populated, other // fields are not supported. EndpointFilters []*NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter `json:"endpointFilters,omitempty"` // HealthStatus: Optional query parameter for showing the health status // of each network endpoint. Valid options are SKIP or SHOW. If you // don't specifiy this parameter, the health status of network endpoints // will not be provided. // // Possible values: // "SHOW" // "SKIP" HealthStatus string `json:"healthStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "EndpointFilters") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EndpointFilters") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*NetworkEndpointGroupsListEndpointsRequest) MarshalJSON ¶
func (s *NetworkEndpointGroupsListEndpointsRequest) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter ¶ added in v0.4.0
type NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter struct { NetworkEndpoint *NetworkEndpoint `json:"networkEndpoint,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkEndpoint") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NetworkEndpoint") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter) MarshalJSON ¶ added in v0.4.0
func (s *NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsListNetworkEndpoints ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NetworkEndpointGroupsListNetworkEndpoints) MarshalJSON ¶
func (s *NetworkEndpointGroupsListNetworkEndpoints) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsListNetworkEndpointsCall ¶
type NetworkEndpointGroupsListNetworkEndpointsCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsListNetworkEndpointsCall) Context ¶
func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Context(ctx context.Context) *NetworkEndpointGroupsListNetworkEndpointsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworkEndpointGroupsListNetworkEndpointsCall) Do ¶
func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Do(opts ...googleapi.CallOption) (*NetworkEndpointGroupsListNetworkEndpoints, error)
Do executes the "compute.networkEndpointGroups.listNetworkEndpoints" call. Exactly one of *NetworkEndpointGroupsListNetworkEndpoints or error will be non-nil. 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 ¶
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 information.
func (*NetworkEndpointGroupsListNetworkEndpointsCall) Filter ¶
func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Filter(filter string) *NetworkEndpointGroupsListNetworkEndpointsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*NetworkEndpointGroupsListNetworkEndpointsCall) Header ¶
func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NetworkEndpointGroupsListNetworkEndpointsCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type NetworkEndpointGroupsListNetworkEndpointsWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NetworkEndpointGroupsListNetworkEndpointsWarning: [Output Only] Informational warning message.
func (*NetworkEndpointGroupsListNetworkEndpointsWarning) MarshalJSON ¶
func (s *NetworkEndpointGroupsListNetworkEndpointsWarning) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsListNetworkEndpointsWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NetworkEndpointGroupsListNetworkEndpointsWarningData) MarshalJSON ¶
func (s *NetworkEndpointGroupsListNetworkEndpointsWarningData) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsScopedList ¶
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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*NetworkEndpointGroupsScopedList) MarshalJSON ¶
func (s *NetworkEndpointGroupsScopedList) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsScopedListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 ¶
func (s *NetworkEndpointGroupsScopedListWarning) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsScopedListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NetworkEndpointGroupsScopedListWarningData) MarshalJSON ¶
func (s *NetworkEndpointGroupsScopedListWarningData) MarshalJSON() ([]byte, error)
type NetworkEndpointGroupsService ¶
type NetworkEndpointGroupsService struct {
// contains filtered or unexported fields
}
func NewNetworkEndpointGroupsService ¶
func NewNetworkEndpointGroupsService(s *Service) *NetworkEndpointGroupsService
func (*NetworkEndpointGroupsService) AggregatedList ¶
func (r *NetworkEndpointGroupsService) AggregatedList(project string) *NetworkEndpointGroupsAggregatedListCall
AggregatedList: Retrieves the list of network endpoint groups and sorts them by zone. (== suppress_warning http-rest-shadowed ==)
func (*NetworkEndpointGroupsService) AttachNetworkEndpoints ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*NetworkEndpointGroupsService) Delete ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*NetworkEndpointGroupsService) DetachNetworkEndpoints ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*NetworkEndpointGroupsService) Get ¶
func (r *NetworkEndpointGroupsService) Get(project string, zone string, networkEndpointGroup string) *NetworkEndpointGroupsGetCall
Get: Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request. (== suppress_warning http-rest-shadowed ==)
func (*NetworkEndpointGroupsService) Insert ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*NetworkEndpointGroupsService) List ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*NetworkEndpointGroupsService) ListNetworkEndpoints ¶
func (r *NetworkEndpointGroupsService) ListNetworkEndpoints(project string, zone string, networkEndpointGroup string, networkendpointgroupslistendpointsrequest *NetworkEndpointGroupsListEndpointsRequest) *NetworkEndpointGroupsListNetworkEndpointsCall
ListNetworkEndpoints: Lists the network endpoints in the specified network endpoint group. (== suppress_warning http-rest-shadowed ==)
func (*NetworkEndpointGroupsService) TestIamPermissions ¶
func (r *NetworkEndpointGroupsService) TestIamPermissions(project string, zone string, resource string, testpermissionsrequest *TestPermissionsRequest) *NetworkEndpointGroupsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type NetworkEndpointGroupsTestIamPermissionsCall ¶
type NetworkEndpointGroupsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointGroupsTestIamPermissionsCall) Context ¶
func (c *NetworkEndpointGroupsTestIamPermissionsCall) Context(ctx context.Context) *NetworkEndpointGroupsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworkEndpointGroupsTestIamPermissionsCall) Do ¶
func (c *NetworkEndpointGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.networkEndpointGroups.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 ¶
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 information.
func (*NetworkEndpointGroupsTestIamPermissionsCall) Header ¶
func (c *NetworkEndpointGroupsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type NetworkEndpointWithHealthStatus ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NetworkEndpointWithHealthStatus) MarshalJSON ¶
func (s *NetworkEndpointWithHealthStatus) MarshalJSON() ([]byte, error)
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, otherwise the request will // fail with error 412 conditionNotMet. Fingerprint string `json:"fingerprint,omitempty"` // Ipv6Address: [Output Only] An IPv6 internal network address for this // network interface. 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 network devices, these are eth0, eth1, // etc. Name string `json:"name,omitempty"` // Network: URL of the 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 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"` // 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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NetworkListWarningData) MarshalJSON ¶
func (s *NetworkListWarningData) MarshalJSON() ([]byte, error)
type NetworkPeering ¶
type NetworkPeering struct { // AdvertisePeerSubnetsViaRouters: Whether Cloud Routers in this network // can automatically advertise subnets from the peer network. AdvertisePeerSubnetsViaRouters bool `json:"advertisePeerSubnetsViaRouters,omitempty"` // 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. 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. The IPv4 special-use ranges // (https://en.wikipedia.org/wiki/IPv4#Special_addresses) 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. ImportCustomRoutes bool `json:"importCustomRoutes,omitempty"` // ImportSubnetRoutesWithPublicIp: Whether subnet routes with public IP // range are imported. The default value is false. The IPv4 special-use // ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) 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"` // 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" // "INACTIVE" 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. // "AdvertisePeerSubnetsViaRouters") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "AdvertisePeerSubnetsViaRouters") to include in API requests with the // JSON null value. By default, fields with empty values are omitted // from API requests. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. 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 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworksAddPeeringCall) Do ¶
func (c *NetworksAddPeeringCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networks.addPeering" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*NetworksAddPeeringCall) Header ¶
func (c *NetworksAddPeeringCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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"` // ExportCustomRoutes: This field will be deprecated soon. Use // export_custom_routes in network_peering instead. Whether to export // the custom routes to peer network. ExportCustomRoutes bool `json:"exportCustomRoutes,omitempty"` // ImportCustomRoutes: This field will be deprecated soon. Use // import_custom_routes in network_peering instead. Whether to import // the custom routes from peer network. ImportCustomRoutes bool `json:"importCustomRoutes,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworksDeleteCall) Do ¶
func (c *NetworksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networks.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*NetworksDeleteCall) Header ¶
func (c *NetworksDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworksGetCall) Do ¶
func (c *NetworksGetCall) Do(opts ...googleapi.CallOption) (*Network, error)
Do executes the "compute.networks.get" call. Exactly one of *Network or error will be non-nil. 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 information.
func (*NetworksGetCall) Header ¶
func (c *NetworksGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NetworksGetCall) IfNoneMatch ¶
func (c *NetworksGetCall) IfNoneMatch(entityTag string) *NetworksGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type NetworksGetEffectiveFirewallsCall ¶ added in v0.4.0
type NetworksGetEffectiveFirewallsCall struct {
// contains filtered or unexported fields
}
func (*NetworksGetEffectiveFirewallsCall) Context ¶ added in v0.4.0
func (c *NetworksGetEffectiveFirewallsCall) Context(ctx context.Context) *NetworksGetEffectiveFirewallsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworksGetEffectiveFirewallsCall) Do ¶ added in v0.4.0
func (c *NetworksGetEffectiveFirewallsCall) Do(opts ...googleapi.CallOption) (*NetworksGetEffectiveFirewallsResponse, error)
Do executes the "compute.networks.getEffectiveFirewalls" call. Exactly one of *NetworksGetEffectiveFirewallsResponse or error will be non-nil. 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.4.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 information.
func (*NetworksGetEffectiveFirewallsCall) Header ¶ added in v0.4.0
func (c *NetworksGetEffectiveFirewallsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NetworksGetEffectiveFirewallsCall) IfNoneMatch ¶ added in v0.4.0
func (c *NetworksGetEffectiveFirewallsCall) IfNoneMatch(entityTag string) *NetworksGetEffectiveFirewallsCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type NetworksGetEffectiveFirewallsResponse ¶ added in v0.4.0
type NetworksGetEffectiveFirewallsResponse struct { // Firewalls: Effective firewalls on the network. Firewalls []*Firewall `json:"firewalls,omitempty"` // OrganizationFirewalls: Effective firewalls from organization // policies. OrganizationFirewalls []*NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy `json:"organizationFirewalls,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Firewalls") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Firewalls") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NetworksGetEffectiveFirewallsResponse) MarshalJSON ¶ added in v0.4.0
func (s *NetworksGetEffectiveFirewallsResponse) MarshalJSON() ([]byte, error)
type NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy ¶ added in v0.4.0
type NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy struct { // Id: [Output Only] The unique identifier for the security policy. This // identifier is defined by the server. Id uint64 `json:"id,omitempty,string"` // Rules: The rules that apply to the network. Rules []*SecurityPolicyRule `json:"rules,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy: A pruned SecurityPolicy containing ID and any applicable firewall rules.
func (*NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy) MarshalJSON ¶ added in v0.4.0
func (s *NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy) 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworksInsertCall) Do ¶
func (c *NetworksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networks.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*NetworksInsertCall) Header ¶
func (c *NetworksInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworksListCall) Do ¶
func (c *NetworksListCall) Do(opts ...googleapi.CallOption) (*NetworkList, error)
Do executes the "compute.networks.list" call. Exactly one of *NetworkList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*NetworksListCall) Header ¶
func (c *NetworksListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NetworksListCall) IfNoneMatch ¶
func (c *NetworksListCall) IfNoneMatch(entityTag string) *NetworksListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
type NetworksListIpAddressesCall ¶
type NetworksListIpAddressesCall struct {
// contains filtered or unexported fields
}
func (*NetworksListIpAddressesCall) Context ¶
func (c *NetworksListIpAddressesCall) Context(ctx context.Context) *NetworksListIpAddressesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworksListIpAddressesCall) Do ¶
func (c *NetworksListIpAddressesCall) Do(opts ...googleapi.CallOption) (*IpAddressesList, error)
Do executes the "compute.networks.listIpAddresses" call. Exactly one of *IpAddressesList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *IpAddressesList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworksListIpAddressesCall) Fields ¶
func (c *NetworksListIpAddressesCall) Fields(s ...googleapi.Field) *NetworksListIpAddressesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*NetworksListIpAddressesCall) Filter ¶
func (c *NetworksListIpAddressesCall) Filter(filter string) *NetworksListIpAddressesCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*NetworksListIpAddressesCall) Header ¶
func (c *NetworksListIpAddressesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NetworksListIpAddressesCall) IfNoneMatch ¶
func (c *NetworksListIpAddressesCall) IfNoneMatch(entityTag string) *NetworksListIpAddressesCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*NetworksListIpAddressesCall) MaxResults ¶
func (c *NetworksListIpAddressesCall) MaxResults(maxResults int64) *NetworksListIpAddressesCall
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 (*NetworksListIpAddressesCall) OrderBy ¶
func (c *NetworksListIpAddressesCall) OrderBy(orderBy string) *NetworksListIpAddressesCall
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 (*NetworksListIpAddressesCall) PageToken ¶
func (c *NetworksListIpAddressesCall) PageToken(pageToken string) *NetworksListIpAddressesCall
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 (*NetworksListIpAddressesCall) Pages ¶
func (c *NetworksListIpAddressesCall) Pages(ctx context.Context, f func(*IpAddressesList) 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 (*NetworksListIpAddressesCall) Types ¶
func (c *NetworksListIpAddressesCall) Types(types string) *NetworksListIpAddressesCall
Types sets the optional parameter "types": (Optional) types filter separate by comma, valid values are: SUBNETWORK, RESERVED, PEER_USED, PEER_RESERVED, REMOTE_USED, REMOTE_RESERVED.
type NetworksListIpOwnersCall ¶
type NetworksListIpOwnersCall struct {
// contains filtered or unexported fields
}
func (*NetworksListIpOwnersCall) Context ¶
func (c *NetworksListIpOwnersCall) Context(ctx context.Context) *NetworksListIpOwnersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworksListIpOwnersCall) Do ¶
func (c *NetworksListIpOwnersCall) Do(opts ...googleapi.CallOption) (*IpOwnerList, error)
Do executes the "compute.networks.listIpOwners" call. Exactly one of *IpOwnerList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *IpOwnerList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NetworksListIpOwnersCall) Fields ¶
func (c *NetworksListIpOwnersCall) Fields(s ...googleapi.Field) *NetworksListIpOwnersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*NetworksListIpOwnersCall) Filter ¶
func (c *NetworksListIpOwnersCall) Filter(filter string) *NetworksListIpOwnersCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*NetworksListIpOwnersCall) Header ¶
func (c *NetworksListIpOwnersCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NetworksListIpOwnersCall) IfNoneMatch ¶
func (c *NetworksListIpOwnersCall) IfNoneMatch(entityTag string) *NetworksListIpOwnersCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*NetworksListIpOwnersCall) IpCidrRange ¶
func (c *NetworksListIpOwnersCall) IpCidrRange(ipCidrRange string) *NetworksListIpOwnersCall
IpCidrRange sets the optional parameter "ipCidrRange": (Optional) IP CIDR range filter, example: "10.128.10.0/30".
func (*NetworksListIpOwnersCall) MaxResults ¶
func (c *NetworksListIpOwnersCall) MaxResults(maxResults int64) *NetworksListIpOwnersCall
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 (*NetworksListIpOwnersCall) OrderBy ¶
func (c *NetworksListIpOwnersCall) OrderBy(orderBy string) *NetworksListIpOwnersCall
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 (*NetworksListIpOwnersCall) OwnerProjects ¶
func (c *NetworksListIpOwnersCall) OwnerProjects(ownerProjects string) *NetworksListIpOwnersCall
OwnerProjects sets the optional parameter "ownerProjects": (Optional) Project IDs filter, example: "project-1,project-2".
func (*NetworksListIpOwnersCall) OwnerTypes ¶
func (c *NetworksListIpOwnersCall) OwnerTypes(ownerTypes string) *NetworksListIpOwnersCall
OwnerTypes sets the optional parameter "ownerTypes": (Optional) Owner types filter, example: "instance,forwardingRule".
func (*NetworksListIpOwnersCall) PageToken ¶
func (c *NetworksListIpOwnersCall) PageToken(pageToken string) *NetworksListIpOwnersCall
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 (*NetworksListIpOwnersCall) Pages ¶
func (c *NetworksListIpOwnersCall) Pages(ctx context.Context, f func(*IpOwnerList) 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 (*NetworksListIpOwnersCall) SubnetName ¶
func (c *NetworksListIpOwnersCall) SubnetName(subnetName string) *NetworksListIpOwnersCall
SubnetName sets the optional parameter "subnetName": (Optional) Subnetwork name filter.
func (*NetworksListIpOwnersCall) SubnetRegion ¶
func (c *NetworksListIpOwnersCall) SubnetRegion(subnetRegion string) *NetworksListIpOwnersCall
SubnetRegion sets the optional parameter "subnetRegion": (Optional) Subnetwork region filter.
type NetworksListPeeringRoutesCall ¶
type NetworksListPeeringRoutesCall struct {
// contains filtered or unexported fields
}
func (*NetworksListPeeringRoutesCall) Context ¶
func (c *NetworksListPeeringRoutesCall) Context(ctx context.Context) *NetworksListPeeringRoutesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworksListPeeringRoutesCall) Direction ¶
func (c *NetworksListPeeringRoutesCall) Direction(direction string) *NetworksListPeeringRoutesCall
Direction sets the optional parameter "direction": The direction of the exchanged routes.
Possible values:
"INCOMING" "OUTGOING"
func (*NetworksListPeeringRoutesCall) Do ¶
func (c *NetworksListPeeringRoutesCall) Do(opts ...googleapi.CallOption) (*ExchangedPeeringRoutesList, error)
Do executes the "compute.networks.listPeeringRoutes" call. Exactly one of *ExchangedPeeringRoutesList or error will be non-nil. 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 ¶
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 information.
func (*NetworksListPeeringRoutesCall) Filter ¶
func (c *NetworksListPeeringRoutesCall) Filter(filter string) *NetworksListPeeringRoutesCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*NetworksListPeeringRoutesCall) Header ¶
func (c *NetworksListPeeringRoutesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NetworksListPeeringRoutesCall) IfNoneMatch ¶
func (c *NetworksListPeeringRoutesCall) IfNoneMatch(entityTag string) *NetworksListPeeringRoutesCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*NetworksListPeeringRoutesCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworksPatchCall) Do ¶
func (c *NetworksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networks.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*NetworksPatchCall) Header ¶
func (c *NetworksPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworksRemovePeeringCall) Do ¶
func (c *NetworksRemovePeeringCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networks.removePeering" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*NetworksRemovePeeringCall) Header ¶
func (c *NetworksRemovePeeringCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
func (*NetworksService) Delete ¶
func (r *NetworksService) Delete(project string, network string) *NetworksDeleteCall
Delete: Deletes the specified network. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/networks/delete
func (*NetworksService) Get ¶
func (r *NetworksService) Get(project string, network string) *NetworksGetCall
Get: Returns the specified network. Gets a list of available networks by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/networks/get
func (*NetworksService) GetEffectiveFirewalls ¶ added in v0.4.0
func (r *NetworksService) GetEffectiveFirewalls(project string, network string) *NetworksGetEffectiveFirewallsCall
GetEffectiveFirewalls: Returns the effective firewalls on a given network. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/networks/insert
func (*NetworksService) List ¶
func (r *NetworksService) List(project string) *NetworksListCall
List: Retrieves the list of networks available to the specified project. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/networks/list
func (*NetworksService) ListIpAddresses ¶
func (r *NetworksService) ListIpAddresses(project string, network string) *NetworksListIpAddressesCall
ListIpAddresses: Lists the internal IP addresses in the specified network. (== suppress_warning http-rest-shadowed ==)
func (*NetworksService) ListIpOwners ¶
func (r *NetworksService) ListIpOwners(project string, network string) *NetworksListIpOwnersCall
ListIpOwners: Lists the internal IP owners in the specified network. (== suppress_warning http-rest-shadowed ==)
func (*NetworksService) ListPeeringRoutes ¶
func (r *NetworksService) ListPeeringRoutes(project string, network string) *NetworksListPeeringRoutesCall
ListPeeringRoutes: Lists the peering routes exchanged over peering connection. (== suppress_warning http-rest-shadowed ==)
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 the following fields can be modified: routingConfig.routingMode. (== suppress_warning http-rest-shadowed ==)
func (*NetworksService) RemovePeering ¶
func (r *NetworksService) RemovePeering(project string, network string, networksremovepeeringrequest *NetworksRemovePeeringRequest) *NetworksRemovePeeringCall
RemovePeering: Removes a peering from the specified network. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*NetworksService) TestIamPermissions ¶
func (r *NetworksService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *NetworksTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
func (*NetworksService) UpdatePeering ¶
func (r *NetworksService) UpdatePeering(project string, network string, networksupdatepeeringrequest *NetworksUpdatePeeringRequest) *NetworksUpdatePeeringCall
UpdatePeering: Updates the specified network peering with the data included in the request Only the following fields can be modified: NetworkPeering.export_custom_routes, and NetworkPeering.import_custom_routes (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworksSwitchToCustomModeCall) Do ¶
func (c *NetworksSwitchToCustomModeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networks.switchToCustomMode" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*NetworksSwitchToCustomModeCall) Header ¶
func (c *NetworksSwitchToCustomModeCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 NetworksTestIamPermissionsCall ¶
type NetworksTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*NetworksTestIamPermissionsCall) Context ¶
func (c *NetworksTestIamPermissionsCall) Context(ctx context.Context) *NetworksTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworksTestIamPermissionsCall) Do ¶
func (c *NetworksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.networks.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*NetworksTestIamPermissionsCall) Fields ¶
func (c *NetworksTestIamPermissionsCall) Fields(s ...googleapi.Field) *NetworksTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*NetworksTestIamPermissionsCall) Header ¶
func (c *NetworksTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type NetworksUpdatePeeringCall ¶
type NetworksUpdatePeeringCall struct {
// contains filtered or unexported fields
}
func (*NetworksUpdatePeeringCall) Context ¶
func (c *NetworksUpdatePeeringCall) Context(ctx context.Context) *NetworksUpdatePeeringCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NetworksUpdatePeeringCall) Do ¶
func (c *NetworksUpdatePeeringCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.networks.updatePeering" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*NetworksUpdatePeeringCall) Header ¶
func (c *NetworksUpdatePeeringCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NetworksUpdatePeeringCall) RequestId ¶
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 ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*NetworksUpdatePeeringRequest) MarshalJSON ¶
func (s *NetworksUpdatePeeringRequest) MarshalJSON() ([]byte, error)
type NodeGroup ¶
type NodeGroup struct { 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"` // Possible values: // "DEFAULT" // "MAINTENANCE_POLICY_UNSPECIFIED" // "MIGRATE_WITHIN_NODE_GROUP" // "RESTART_IN_PLACE" MaintenancePolicy string `json:"maintenancePolicy,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: The URL of the node template to which this node group // belongs. NodeTemplate string `json:"nodeTemplate,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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
NodeGroup: Represent 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. (== resource_for beta.nodeGroups ==) (== resource_for v1.nodeGroups ==) NextID: 16
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NodeGroupAggregatedListWarningData) MarshalJSON ¶
func (s *NodeGroupAggregatedListWarningData) MarshalJSON() ([]byte, error)
type NodeGroupAutoscalingPolicy ¶
type NodeGroupAutoscalingPolicy struct { MaxSize int64 `json:"maxSize,omitempty"` MinSize int64 `json:"minSize,omitempty"` // Possible values: // "MODE_UNSPECIFIED" // "OFF" // "ON" Mode string `json:"mode,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxSize") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MaxSize") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NodeGroupAutoscalingPolicy) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NodeGroupListWarningData) MarshalJSON ¶
func (s *NodeGroupListWarningData) MarshalJSON() ([]byte, error)
type NodeGroupNode ¶
type NodeGroupNode struct { // Disks: Local disk configurations. Disks []*LocalDisk `json:"disks,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"` // 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"` // ForceSendFields is a list of field names (e.g. "Disks") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeGroupsAddNodesCall) Do ¶
func (c *NodeGroupsAddNodesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeGroups.addNodes" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*NodeGroupsAddNodesCall) Header ¶
func (c *NodeGroupsAddNodesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeGroupsAggregatedListCall) Do ¶
func (c *NodeGroupsAggregatedListCall) Do(opts ...googleapi.CallOption) (*NodeGroupAggregatedList, error)
Do executes the "compute.nodeGroups.aggregatedList" call. Exactly one of *NodeGroupAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*NodeGroupsAggregatedListCall) Header ¶
func (c *NodeGroupsAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NodeGroupsAggregatedListCall) IfNoneMatch ¶
func (c *NodeGroupsAggregatedListCall) IfNoneMatch(entityTag string) *NodeGroupsAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeGroupsDeleteCall) Do ¶
func (c *NodeGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeGroups.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*NodeGroupsDeleteCall) Header ¶
func (c *NodeGroupsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeGroupsDeleteNodesCall) Do ¶
func (c *NodeGroupsDeleteNodesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeGroups.deleteNodes" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*NodeGroupsDeleteNodesCall) Header ¶
func (c *NodeGroupsDeleteNodesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeGroupsGetCall) Do ¶
func (c *NodeGroupsGetCall) Do(opts ...googleapi.CallOption) (*NodeGroup, error)
Do executes the "compute.nodeGroups.get" call. Exactly one of *NodeGroup or error will be non-nil. 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 information.
func (*NodeGroupsGetCall) Header ¶
func (c *NodeGroupsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NodeGroupsGetCall) IfNoneMatch ¶
func (c *NodeGroupsGetCall) IfNoneMatch(entityTag string) *NodeGroupsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeGroupsGetIamPolicyCall) Do ¶
func (c *NodeGroupsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.nodeGroups.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*NodeGroupsGetIamPolicyCall) Header ¶
func (c *NodeGroupsGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NodeGroupsGetIamPolicyCall) IfNoneMatch ¶
func (c *NodeGroupsGetIamPolicyCall) IfNoneMatch(entityTag string) *NodeGroupsGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*NodeGroupsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeGroupsInsertCall) Do ¶
func (c *NodeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeGroups.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*NodeGroupsInsertCall) Header ¶
func (c *NodeGroupsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeGroupsListCall) Do ¶
func (c *NodeGroupsListCall) Do(opts ...googleapi.CallOption) (*NodeGroupList, error)
Do executes the "compute.nodeGroups.list" call. Exactly one of *NodeGroupList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*NodeGroupsListCall) Header ¶
func (c *NodeGroupsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NodeGroupsListCall) IfNoneMatch ¶
func (c *NodeGroupsListCall) IfNoneMatch(entityTag string) *NodeGroupsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeGroupsListNodesCall) Do ¶
func (c *NodeGroupsListNodesCall) Do(opts ...googleapi.CallOption) (*NodeGroupsListNodes, error)
Do executes the "compute.nodeGroups.listNodes" call. Exactly one of *NodeGroupsListNodes or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*NodeGroupsListNodesCall) Header ¶
func (c *NodeGroupsListNodesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NodeGroupsListNodesWarningData) MarshalJSON ¶
func (s *NodeGroupsListNodesWarningData) MarshalJSON() ([]byte, error)
type NodeGroupsPatchCall ¶ added in v0.15.0
type NodeGroupsPatchCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsPatchCall) Context ¶ added in v0.15.0
func (c *NodeGroupsPatchCall) Context(ctx context.Context) *NodeGroupsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeGroupsPatchCall) Do ¶ added in v0.15.0
func (c *NodeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeGroups.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.15.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 information.
func (*NodeGroupsPatchCall) Header ¶ added in v0.15.0
func (c *NodeGroupsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NodeGroupsPatchCall) RequestId ¶ added in v0.15.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 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*NodeGroupsService) Delete ¶
func (r *NodeGroupsService) Delete(project string, zone string, nodeGroup string) *NodeGroupsDeleteCall
Delete: Deletes the specified NodeGroup resource. (== suppress_warning http-rest-shadowed ==)
func (*NodeGroupsService) DeleteNodes ¶
func (r *NodeGroupsService) DeleteNodes(project string, zone string, nodeGroup string, nodegroupsdeletenodesrequest *NodeGroupsDeleteNodesRequest) *NodeGroupsDeleteNodesCall
DeleteNodes: Deletes specified nodes from the node group. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*NodeGroupsService) ListNodes ¶
func (r *NodeGroupsService) ListNodes(project string, zone string, nodeGroup string) *NodeGroupsListNodesCall
ListNodes: Lists nodes in the node group. (== suppress_warning http-rest-shadowed ==)
func (*NodeGroupsService) Patch ¶ added in v0.15.0
func (r *NodeGroupsService) Patch(project string, zone string, nodeGroup string, nodegroup *NodeGroup) *NodeGroupsPatchCall
Patch: Patch the node group. (== suppress_warning http-rest-shadowed ==)
func (*NodeGroupsService) SetAutoscalingPolicy ¶ added in v0.2.0
func (r *NodeGroupsService) SetAutoscalingPolicy(project string, zone string, nodeGroup string, nodegroupssetautoscalingpolicyrequest *NodeGroupsSetAutoscalingPolicyRequest) *NodeGroupsSetAutoscalingPolicyCall
SetAutoscalingPolicy: Sets the autoscaling policy of the node group. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
type NodeGroupsSetAutoscalingPolicyCall ¶ added in v0.2.0
type NodeGroupsSetAutoscalingPolicyCall struct {
// contains filtered or unexported fields
}
func (*NodeGroupsSetAutoscalingPolicyCall) Context ¶ added in v0.2.0
func (c *NodeGroupsSetAutoscalingPolicyCall) Context(ctx context.Context) *NodeGroupsSetAutoscalingPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeGroupsSetAutoscalingPolicyCall) Do ¶ added in v0.2.0
func (c *NodeGroupsSetAutoscalingPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeGroups.setAutoscalingPolicy" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*NodeGroupsSetAutoscalingPolicyCall) Fields ¶ added in v0.2.0
func (c *NodeGroupsSetAutoscalingPolicyCall) Fields(s ...googleapi.Field) *NodeGroupsSetAutoscalingPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*NodeGroupsSetAutoscalingPolicyCall) Header ¶ added in v0.2.0
func (c *NodeGroupsSetAutoscalingPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NodeGroupsSetAutoscalingPolicyCall) RequestId ¶ added in v0.2.0
func (c *NodeGroupsSetAutoscalingPolicyCall) RequestId(requestId string) *NodeGroupsSetAutoscalingPolicyCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type NodeGroupsSetAutoscalingPolicyRequest ¶ added in v0.2.0
type NodeGroupsSetAutoscalingPolicyRequest struct { AutoscalingPolicy *NodeGroupAutoscalingPolicy `json:"autoscalingPolicy,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoscalingPolicy") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*NodeGroupsSetAutoscalingPolicyRequest) MarshalJSON ¶ added in v0.2.0
func (s *NodeGroupsSetAutoscalingPolicyRequest) MarshalJSON() ([]byte, error)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeGroupsSetIamPolicyCall) Do ¶
func (c *NodeGroupsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.nodeGroups.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*NodeGroupsSetIamPolicyCall) Header ¶
func (c *NodeGroupsSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeGroupsSetNodeTemplateCall) Do ¶
func (c *NodeGroupsSetNodeTemplateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeGroups.setNodeTemplate" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*NodeGroupsSetNodeTemplateCall) Header ¶
func (c *NodeGroupsSetNodeTemplateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NodeGroupsSetNodeTemplateRequest) MarshalJSON ¶
func (s *NodeGroupsSetNodeTemplateRequest) 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeGroupsTestIamPermissionsCall) Do ¶
func (c *NodeGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.nodeGroups.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 information.
func (*NodeGroupsTestIamPermissionsCall) Header ¶
func (c *NodeGroupsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type NodeTemplate ¶
type NodeTemplate 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"` 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: The flexible properties of the desired node // type. Node groups that use this node template will create nodes of a // type that matches these properties. // // This field is mutually exclusive with the node_type property; you can // only define one or the other, but not both. 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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" // "DELETING" // "INVALID" // "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. "CreationTimestamp") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. (== resource_for beta.nodeTemplates ==) (== resource_for v1.nodeTemplates ==) (== NextID: 16 ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeTemplatesAggregatedListCall) Do ¶
func (c *NodeTemplatesAggregatedListCall) Do(opts ...googleapi.CallOption) (*NodeTemplateAggregatedList, error)
Do executes the "compute.nodeTemplates.aggregatedList" call. Exactly one of *NodeTemplateAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*NodeTemplatesAggregatedListCall) Header ¶
func (c *NodeTemplatesAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NodeTemplatesAggregatedListCall) IfNoneMatch ¶
func (c *NodeTemplatesAggregatedListCall) IfNoneMatch(entityTag string) *NodeTemplatesAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeTemplatesDeleteCall) Do ¶
func (c *NodeTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeTemplates.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*NodeTemplatesDeleteCall) Header ¶
func (c *NodeTemplatesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeTemplatesGetCall) Do ¶
func (c *NodeTemplatesGetCall) Do(opts ...googleapi.CallOption) (*NodeTemplate, error)
Do executes the "compute.nodeTemplates.get" call. Exactly one of *NodeTemplate or error will be non-nil. 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 information.
func (*NodeTemplatesGetCall) Header ¶
func (c *NodeTemplatesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NodeTemplatesGetCall) IfNoneMatch ¶
func (c *NodeTemplatesGetCall) IfNoneMatch(entityTag string) *NodeTemplatesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeTemplatesGetIamPolicyCall) Do ¶
func (c *NodeTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.nodeTemplates.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*NodeTemplatesGetIamPolicyCall) Header ¶
func (c *NodeTemplatesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NodeTemplatesGetIamPolicyCall) IfNoneMatch ¶
func (c *NodeTemplatesGetIamPolicyCall) IfNoneMatch(entityTag string) *NodeTemplatesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*NodeTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeTemplatesInsertCall) Do ¶
func (c *NodeTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.nodeTemplates.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*NodeTemplatesInsertCall) Header ¶
func (c *NodeTemplatesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeTemplatesListCall) Do ¶
func (c *NodeTemplatesListCall) Do(opts ...googleapi.CallOption) (*NodeTemplateList, error)
Do executes the "compute.nodeTemplates.list" call. Exactly one of *NodeTemplateList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*NodeTemplatesListCall) Header ¶
func (c *NodeTemplatesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NodeTemplatesListCall) IfNoneMatch ¶
func (c *NodeTemplatesListCall) IfNoneMatch(entityTag string) *NodeTemplatesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
func (*NodeTemplatesService) Delete ¶
func (r *NodeTemplatesService) Delete(project string, region string, nodeTemplate string) *NodeTemplatesDeleteCall
Delete: Deletes the specified NodeTemplate resource. (== suppress_warning http-rest-shadowed ==)
func (*NodeTemplatesService) Get ¶
func (r *NodeTemplatesService) Get(project string, region string, nodeTemplate string) *NodeTemplatesGetCall
Get: Returns the specified node template. Gets a list of available node templates by making a list() request. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*NodeTemplatesService) List ¶
func (r *NodeTemplatesService) List(project string, region string) *NodeTemplatesListCall
List: Retrieves a list of node templates available to the specified project. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeTemplatesSetIamPolicyCall) Do ¶
func (c *NodeTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.nodeTemplates.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*NodeTemplatesSetIamPolicyCall) Header ¶
func (c *NodeTemplatesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeTemplatesTestIamPermissionsCall) Do ¶
func (c *NodeTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.nodeTemplates.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 information.
func (*NodeTemplatesTestIamPermissionsCall) Header ¶
func (c *NodeTemplatesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== resource_for beta.nodeTypes ==) (== resource_for v1.nodeTypes ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeTypesAggregatedListCall) Do ¶
func (c *NodeTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*NodeTypeAggregatedList, error)
Do executes the "compute.nodeTypes.aggregatedList" call. Exactly one of *NodeTypeAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*NodeTypesAggregatedListCall) Header ¶
func (c *NodeTypesAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NodeTypesAggregatedListCall) IfNoneMatch ¶
func (c *NodeTypesAggregatedListCall) IfNoneMatch(entityTag string) *NodeTypesAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeTypesGetCall) Do ¶
func (c *NodeTypesGetCall) Do(opts ...googleapi.CallOption) (*NodeType, error)
Do executes the "compute.nodeTypes.get" call. Exactly one of *NodeType or error will be non-nil. 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 information.
func (*NodeTypesGetCall) Header ¶
func (c *NodeTypesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NodeTypesGetCall) IfNoneMatch ¶
func (c *NodeTypesGetCall) IfNoneMatch(entityTag string) *NodeTypesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NodeTypesListCall) Do ¶
func (c *NodeTypesListCall) Do(opts ...googleapi.CallOption) (*NodeTypeList, error)
Do executes the "compute.nodeTypes.list" call. Exactly one of *NodeTypeList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*NodeTypesListCall) Header ¶
func (c *NodeTypesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NodeTypesListCall) IfNoneMatch ¶
func (c *NodeTypesListCall) IfNoneMatch(entityTag string) *NodeTypesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
func (*NodeTypesService) Get ¶
func (r *NodeTypesService) Get(project string, zone string, nodeType string) *NodeTypesGetCall
Get: Returns the specified node type. Gets a list of available node types by making a list() request. (== suppress_warning http-rest-shadowed ==)
func (*NodeTypesService) List ¶
func (r *NodeTypesService) List(project string, zone string) *NodeTypesListCall
List: Retrieves a list of node types available to the specified project. (== suppress_warning http-rest-shadowed ==)
type NotificationEndpoint ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
NotificationEndpoint: A notification endpoint resource defines an endpoint to receive notifications when there are status changes detected by the associated health check service.
func (*NotificationEndpoint) MarshalJSON ¶ added in v0.2.0
func (s *NotificationEndpoint) MarshalJSON() ([]byte, error)
type NotificationEndpointGrpcSettings ¶ added in v0.2.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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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.2.0
func (s *NotificationEndpointGrpcSettings) MarshalJSON() ([]byte, error)
type NotificationEndpointList ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NotificationEndpointList) MarshalJSON ¶ added in v0.2.0
func (s *NotificationEndpointList) MarshalJSON() ([]byte, error)
type NotificationEndpointListWarning ¶ added in v0.2.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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NotificationEndpointListWarning: [Output Only] Informational warning message.
func (*NotificationEndpointListWarning) MarshalJSON ¶ added in v0.2.0
func (s *NotificationEndpointListWarning) MarshalJSON() ([]byte, error)
type NotificationEndpointListWarningData ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*NotificationEndpointListWarningData) MarshalJSON ¶ added in v0.2.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"` // 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"` // 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
Operation: Represents an Operation resource.
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 zonalOperations resource.
For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OperationErrorErrors) MarshalJSON ¶
func (s *OperationErrorErrors) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OperationsScopedListWarningData) MarshalJSON ¶
func (s *OperationsScopedListWarningData) MarshalJSON() ([]byte, error)
type OrganizationSecurityPoliciesAddAssociationCall ¶
type OrganizationSecurityPoliciesAddAssociationCall struct {
// contains filtered or unexported fields
}
func (*OrganizationSecurityPoliciesAddAssociationCall) Context ¶
func (c *OrganizationSecurityPoliciesAddAssociationCall) Context(ctx context.Context) *OrganizationSecurityPoliciesAddAssociationCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationSecurityPoliciesAddAssociationCall) Do ¶
func (c *OrganizationSecurityPoliciesAddAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.organizationSecurityPolicies.addAssociation" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationSecurityPoliciesAddAssociationCall) Fields ¶
func (c *OrganizationSecurityPoliciesAddAssociationCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesAddAssociationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationSecurityPoliciesAddAssociationCall) Header ¶
func (c *OrganizationSecurityPoliciesAddAssociationCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationSecurityPoliciesAddAssociationCall) ReplaceExistingAssociation ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesAddAssociationCall) ReplaceExistingAssociation(replaceExistingAssociation bool) *OrganizationSecurityPoliciesAddAssociationCall
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 assocation already exists.
func (*OrganizationSecurityPoliciesAddAssociationCall) RequestId ¶
func (c *OrganizationSecurityPoliciesAddAssociationCall) RequestId(requestId string) *OrganizationSecurityPoliciesAddAssociationCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type OrganizationSecurityPoliciesAddRuleCall ¶
type OrganizationSecurityPoliciesAddRuleCall struct {
// contains filtered or unexported fields
}
func (*OrganizationSecurityPoliciesAddRuleCall) Context ¶
func (c *OrganizationSecurityPoliciesAddRuleCall) Context(ctx context.Context) *OrganizationSecurityPoliciesAddRuleCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationSecurityPoliciesAddRuleCall) Do ¶
func (c *OrganizationSecurityPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.organizationSecurityPolicies.addRule" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationSecurityPoliciesAddRuleCall) Fields ¶
func (c *OrganizationSecurityPoliciesAddRuleCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesAddRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationSecurityPoliciesAddRuleCall) Header ¶
func (c *OrganizationSecurityPoliciesAddRuleCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationSecurityPoliciesAddRuleCall) RequestId ¶
func (c *OrganizationSecurityPoliciesAddRuleCall) RequestId(requestId string) *OrganizationSecurityPoliciesAddRuleCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type OrganizationSecurityPoliciesCopyRulesCall ¶ added in v0.2.0
type OrganizationSecurityPoliciesCopyRulesCall struct {
// contains filtered or unexported fields
}
func (*OrganizationSecurityPoliciesCopyRulesCall) Context ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesCopyRulesCall) Context(ctx context.Context) *OrganizationSecurityPoliciesCopyRulesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationSecurityPoliciesCopyRulesCall) Do ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesCopyRulesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.organizationSecurityPolicies.copyRules" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationSecurityPoliciesCopyRulesCall) Fields ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesCopyRulesCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesCopyRulesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationSecurityPoliciesCopyRulesCall) Header ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesCopyRulesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationSecurityPoliciesCopyRulesCall) RequestId ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesCopyRulesCall) RequestId(requestId string) *OrganizationSecurityPoliciesCopyRulesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating 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 (*OrganizationSecurityPoliciesCopyRulesCall) SourceSecurityPolicy ¶ added in v0.3.0
func (c *OrganizationSecurityPoliciesCopyRulesCall) SourceSecurityPolicy(sourceSecurityPolicy string) *OrganizationSecurityPoliciesCopyRulesCall
SourceSecurityPolicy sets the optional parameter "sourceSecurityPolicy": The security policy from which to copy rules.
type OrganizationSecurityPoliciesDeleteCall ¶
type OrganizationSecurityPoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*OrganizationSecurityPoliciesDeleteCall) Context ¶
func (c *OrganizationSecurityPoliciesDeleteCall) Context(ctx context.Context) *OrganizationSecurityPoliciesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationSecurityPoliciesDeleteCall) Do ¶
func (c *OrganizationSecurityPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.organizationSecurityPolicies.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationSecurityPoliciesDeleteCall) Fields ¶
func (c *OrganizationSecurityPoliciesDeleteCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationSecurityPoliciesDeleteCall) Header ¶
func (c *OrganizationSecurityPoliciesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationSecurityPoliciesDeleteCall) RequestId ¶
func (c *OrganizationSecurityPoliciesDeleteCall) RequestId(requestId string) *OrganizationSecurityPoliciesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type OrganizationSecurityPoliciesGetAssociationCall ¶
type OrganizationSecurityPoliciesGetAssociationCall struct {
// contains filtered or unexported fields
}
func (*OrganizationSecurityPoliciesGetAssociationCall) Context ¶
func (c *OrganizationSecurityPoliciesGetAssociationCall) Context(ctx context.Context) *OrganizationSecurityPoliciesGetAssociationCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationSecurityPoliciesGetAssociationCall) Do ¶
func (c *OrganizationSecurityPoliciesGetAssociationCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyAssociation, error)
Do executes the "compute.organizationSecurityPolicies.getAssociation" call. Exactly one of *SecurityPolicyAssociation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SecurityPolicyAssociation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationSecurityPoliciesGetAssociationCall) Fields ¶
func (c *OrganizationSecurityPoliciesGetAssociationCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesGetAssociationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationSecurityPoliciesGetAssociationCall) Header ¶
func (c *OrganizationSecurityPoliciesGetAssociationCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationSecurityPoliciesGetAssociationCall) IfNoneMatch ¶
func (c *OrganizationSecurityPoliciesGetAssociationCall) IfNoneMatch(entityTag string) *OrganizationSecurityPoliciesGetAssociationCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*OrganizationSecurityPoliciesGetAssociationCall) Name ¶
func (c *OrganizationSecurityPoliciesGetAssociationCall) Name(name string) *OrganizationSecurityPoliciesGetAssociationCall
Name sets the optional parameter "name": The name of the association to get from the security policy.
type OrganizationSecurityPoliciesGetCall ¶
type OrganizationSecurityPoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*OrganizationSecurityPoliciesGetCall) Context ¶
func (c *OrganizationSecurityPoliciesGetCall) Context(ctx context.Context) *OrganizationSecurityPoliciesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationSecurityPoliciesGetCall) Do ¶
func (c *OrganizationSecurityPoliciesGetCall) Do(opts ...googleapi.CallOption) (*SecurityPolicy, error)
Do executes the "compute.organizationSecurityPolicies.get" call. Exactly one of *SecurityPolicy or error will be non-nil. 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 (*OrganizationSecurityPoliciesGetCall) Fields ¶
func (c *OrganizationSecurityPoliciesGetCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationSecurityPoliciesGetCall) Header ¶
func (c *OrganizationSecurityPoliciesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationSecurityPoliciesGetCall) IfNoneMatch ¶
func (c *OrganizationSecurityPoliciesGetCall) IfNoneMatch(entityTag string) *OrganizationSecurityPoliciesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type OrganizationSecurityPoliciesGetRuleCall ¶
type OrganizationSecurityPoliciesGetRuleCall struct {
// contains filtered or unexported fields
}
func (*OrganizationSecurityPoliciesGetRuleCall) Context ¶
func (c *OrganizationSecurityPoliciesGetRuleCall) Context(ctx context.Context) *OrganizationSecurityPoliciesGetRuleCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationSecurityPoliciesGetRuleCall) Do ¶
func (c *OrganizationSecurityPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyRule, error)
Do executes the "compute.organizationSecurityPolicies.getRule" call. Exactly one of *SecurityPolicyRule or error will be non-nil. 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 (*OrganizationSecurityPoliciesGetRuleCall) Fields ¶
func (c *OrganizationSecurityPoliciesGetRuleCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesGetRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationSecurityPoliciesGetRuleCall) Header ¶
func (c *OrganizationSecurityPoliciesGetRuleCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationSecurityPoliciesGetRuleCall) IfNoneMatch ¶
func (c *OrganizationSecurityPoliciesGetRuleCall) IfNoneMatch(entityTag string) *OrganizationSecurityPoliciesGetRuleCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*OrganizationSecurityPoliciesGetRuleCall) Priority ¶
func (c *OrganizationSecurityPoliciesGetRuleCall) Priority(priority int64) *OrganizationSecurityPoliciesGetRuleCall
Priority sets the optional parameter "priority": The priority of the rule to get from the security policy.
type OrganizationSecurityPoliciesInsertCall ¶
type OrganizationSecurityPoliciesInsertCall struct {
// contains filtered or unexported fields
}
func (*OrganizationSecurityPoliciesInsertCall) Context ¶
func (c *OrganizationSecurityPoliciesInsertCall) Context(ctx context.Context) *OrganizationSecurityPoliciesInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationSecurityPoliciesInsertCall) Do ¶
func (c *OrganizationSecurityPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.organizationSecurityPolicies.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationSecurityPoliciesInsertCall) Fields ¶
func (c *OrganizationSecurityPoliciesInsertCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationSecurityPoliciesInsertCall) Header ¶
func (c *OrganizationSecurityPoliciesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationSecurityPoliciesInsertCall) ParentId ¶
func (c *OrganizationSecurityPoliciesInsertCall) ParentId(parentId string) *OrganizationSecurityPoliciesInsertCall
ParentId sets the optional parameter "parentId": Parent ID for this request.
func (*OrganizationSecurityPoliciesInsertCall) RequestId ¶
func (c *OrganizationSecurityPoliciesInsertCall) RequestId(requestId string) *OrganizationSecurityPoliciesInsertCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type OrganizationSecurityPoliciesListAssociationsCall ¶ added in v0.3.0
type OrganizationSecurityPoliciesListAssociationsCall struct {
// contains filtered or unexported fields
}
func (*OrganizationSecurityPoliciesListAssociationsCall) Context ¶ added in v0.3.0
func (c *OrganizationSecurityPoliciesListAssociationsCall) Context(ctx context.Context) *OrganizationSecurityPoliciesListAssociationsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationSecurityPoliciesListAssociationsCall) Do ¶ added in v0.3.0
func (c *OrganizationSecurityPoliciesListAssociationsCall) Do(opts ...googleapi.CallOption) (*OrganizationSecurityPoliciesListAssociationsResponse, error)
Do executes the "compute.organizationSecurityPolicies.listAssociations" call. Exactly one of *OrganizationSecurityPoliciesListAssociationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrganizationSecurityPoliciesListAssociationsResponse.ServerResponse.H eader or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationSecurityPoliciesListAssociationsCall) Fields ¶ added in v0.3.0
func (c *OrganizationSecurityPoliciesListAssociationsCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesListAssociationsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationSecurityPoliciesListAssociationsCall) Header ¶ added in v0.3.0
func (c *OrganizationSecurityPoliciesListAssociationsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationSecurityPoliciesListAssociationsCall) IfNoneMatch ¶ added in v0.3.0
func (c *OrganizationSecurityPoliciesListAssociationsCall) IfNoneMatch(entityTag string) *OrganizationSecurityPoliciesListAssociationsCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*OrganizationSecurityPoliciesListAssociationsCall) TargetResource ¶ added in v0.3.0
func (c *OrganizationSecurityPoliciesListAssociationsCall) TargetResource(targetResource string) *OrganizationSecurityPoliciesListAssociationsCall
TargetResource sets the optional parameter "targetResource": The target resource to list associations. It is an organization, or a folder.
type OrganizationSecurityPoliciesListAssociationsResponse ¶ added in v0.3.0
type OrganizationSecurityPoliciesListAssociationsResponse struct { // Associations: A list of associations. Associations []*SecurityPolicyAssociation `json:"associations,omitempty"` // Kind: [Output Only] Type of securityPolicy associations. Always // compute#organizationSecurityPoliciesListAssociations for lists of // securityPolicy 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrganizationSecurityPoliciesListAssociationsResponse) MarshalJSON ¶ added in v0.3.0
func (s *OrganizationSecurityPoliciesListAssociationsResponse) MarshalJSON() ([]byte, error)
type OrganizationSecurityPoliciesListCall ¶
type OrganizationSecurityPoliciesListCall struct {
// contains filtered or unexported fields
}
func (*OrganizationSecurityPoliciesListCall) Context ¶
func (c *OrganizationSecurityPoliciesListCall) Context(ctx context.Context) *OrganizationSecurityPoliciesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationSecurityPoliciesListCall) Do ¶
func (c *OrganizationSecurityPoliciesListCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyList, error)
Do executes the "compute.organizationSecurityPolicies.list" call. Exactly one of *SecurityPolicyList or error will be non-nil. 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 (*OrganizationSecurityPoliciesListCall) Fields ¶
func (c *OrganizationSecurityPoliciesListCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationSecurityPoliciesListCall) Filter ¶
func (c *OrganizationSecurityPoliciesListCall) Filter(filter string) *OrganizationSecurityPoliciesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*OrganizationSecurityPoliciesListCall) Header ¶
func (c *OrganizationSecurityPoliciesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationSecurityPoliciesListCall) IfNoneMatch ¶
func (c *OrganizationSecurityPoliciesListCall) IfNoneMatch(entityTag string) *OrganizationSecurityPoliciesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*OrganizationSecurityPoliciesListCall) MaxResults ¶
func (c *OrganizationSecurityPoliciesListCall) MaxResults(maxResults int64) *OrganizationSecurityPoliciesListCall
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 (*OrganizationSecurityPoliciesListCall) OrderBy ¶
func (c *OrganizationSecurityPoliciesListCall) OrderBy(orderBy string) *OrganizationSecurityPoliciesListCall
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 (*OrganizationSecurityPoliciesListCall) PageToken ¶
func (c *OrganizationSecurityPoliciesListCall) PageToken(pageToken string) *OrganizationSecurityPoliciesListCall
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 (*OrganizationSecurityPoliciesListCall) Pages ¶
func (c *OrganizationSecurityPoliciesListCall) 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 (*OrganizationSecurityPoliciesListCall) ParentId ¶
func (c *OrganizationSecurityPoliciesListCall) ParentId(parentId string) *OrganizationSecurityPoliciesListCall
ParentId sets the optional parameter "parentId": Parent ID for this request.
type OrganizationSecurityPoliciesMoveCall ¶ added in v0.2.0
type OrganizationSecurityPoliciesMoveCall struct {
// contains filtered or unexported fields
}
func (*OrganizationSecurityPoliciesMoveCall) Context ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesMoveCall) Context(ctx context.Context) *OrganizationSecurityPoliciesMoveCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationSecurityPoliciesMoveCall) Do ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesMoveCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.organizationSecurityPolicies.move" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationSecurityPoliciesMoveCall) Fields ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesMoveCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesMoveCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationSecurityPoliciesMoveCall) Header ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesMoveCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationSecurityPoliciesMoveCall) ParentId ¶ added in v0.3.0
func (c *OrganizationSecurityPoliciesMoveCall) ParentId(parentId string) *OrganizationSecurityPoliciesMoveCall
ParentId sets the optional parameter "parentId": The new parent of the security policy.
func (*OrganizationSecurityPoliciesMoveCall) RequestId ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesMoveCall) RequestId(requestId string) *OrganizationSecurityPoliciesMoveCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type OrganizationSecurityPoliciesPatchCall ¶ added in v0.2.0
type OrganizationSecurityPoliciesPatchCall struct {
// contains filtered or unexported fields
}
func (*OrganizationSecurityPoliciesPatchCall) Context ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesPatchCall) Context(ctx context.Context) *OrganizationSecurityPoliciesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationSecurityPoliciesPatchCall) Do ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.organizationSecurityPolicies.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationSecurityPoliciesPatchCall) Fields ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesPatchCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationSecurityPoliciesPatchCall) Header ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationSecurityPoliciesPatchCall) RequestId ¶ added in v0.2.0
func (c *OrganizationSecurityPoliciesPatchCall) RequestId(requestId string) *OrganizationSecurityPoliciesPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type OrganizationSecurityPoliciesPatchRuleCall ¶
type OrganizationSecurityPoliciesPatchRuleCall struct {
// contains filtered or unexported fields
}
func (*OrganizationSecurityPoliciesPatchRuleCall) Context ¶
func (c *OrganizationSecurityPoliciesPatchRuleCall) Context(ctx context.Context) *OrganizationSecurityPoliciesPatchRuleCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationSecurityPoliciesPatchRuleCall) Do ¶
func (c *OrganizationSecurityPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.organizationSecurityPolicies.patchRule" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationSecurityPoliciesPatchRuleCall) Fields ¶
func (c *OrganizationSecurityPoliciesPatchRuleCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesPatchRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationSecurityPoliciesPatchRuleCall) Header ¶
func (c *OrganizationSecurityPoliciesPatchRuleCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationSecurityPoliciesPatchRuleCall) Priority ¶
func (c *OrganizationSecurityPoliciesPatchRuleCall) Priority(priority int64) *OrganizationSecurityPoliciesPatchRuleCall
Priority sets the optional parameter "priority": The priority of the rule to patch.
func (*OrganizationSecurityPoliciesPatchRuleCall) RequestId ¶
func (c *OrganizationSecurityPoliciesPatchRuleCall) RequestId(requestId string) *OrganizationSecurityPoliciesPatchRuleCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type OrganizationSecurityPoliciesRemoveAssociationCall ¶
type OrganizationSecurityPoliciesRemoveAssociationCall struct {
// contains filtered or unexported fields
}
func (*OrganizationSecurityPoliciesRemoveAssociationCall) Context ¶
func (c *OrganizationSecurityPoliciesRemoveAssociationCall) Context(ctx context.Context) *OrganizationSecurityPoliciesRemoveAssociationCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationSecurityPoliciesRemoveAssociationCall) Do ¶
func (c *OrganizationSecurityPoliciesRemoveAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.organizationSecurityPolicies.removeAssociation" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationSecurityPoliciesRemoveAssociationCall) Fields ¶
func (c *OrganizationSecurityPoliciesRemoveAssociationCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesRemoveAssociationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationSecurityPoliciesRemoveAssociationCall) Header ¶
func (c *OrganizationSecurityPoliciesRemoveAssociationCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationSecurityPoliciesRemoveAssociationCall) Name ¶
func (c *OrganizationSecurityPoliciesRemoveAssociationCall) Name(name string) *OrganizationSecurityPoliciesRemoveAssociationCall
Name sets the optional parameter "name": Name for the attachment that will be removed.
func (*OrganizationSecurityPoliciesRemoveAssociationCall) RequestId ¶
func (c *OrganizationSecurityPoliciesRemoveAssociationCall) RequestId(requestId string) *OrganizationSecurityPoliciesRemoveAssociationCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type OrganizationSecurityPoliciesRemoveRuleCall ¶
type OrganizationSecurityPoliciesRemoveRuleCall struct {
// contains filtered or unexported fields
}
func (*OrganizationSecurityPoliciesRemoveRuleCall) Context ¶
func (c *OrganizationSecurityPoliciesRemoveRuleCall) Context(ctx context.Context) *OrganizationSecurityPoliciesRemoveRuleCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationSecurityPoliciesRemoveRuleCall) Do ¶
func (c *OrganizationSecurityPoliciesRemoveRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.organizationSecurityPolicies.removeRule" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationSecurityPoliciesRemoveRuleCall) Fields ¶
func (c *OrganizationSecurityPoliciesRemoveRuleCall) Fields(s ...googleapi.Field) *OrganizationSecurityPoliciesRemoveRuleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationSecurityPoliciesRemoveRuleCall) Header ¶
func (c *OrganizationSecurityPoliciesRemoveRuleCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationSecurityPoliciesRemoveRuleCall) Priority ¶
func (c *OrganizationSecurityPoliciesRemoveRuleCall) Priority(priority int64) *OrganizationSecurityPoliciesRemoveRuleCall
Priority sets the optional parameter "priority": The priority of the rule to remove from the security policy.
func (*OrganizationSecurityPoliciesRemoveRuleCall) RequestId ¶
func (c *OrganizationSecurityPoliciesRemoveRuleCall) RequestId(requestId string) *OrganizationSecurityPoliciesRemoveRuleCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type OrganizationSecurityPoliciesService ¶
type OrganizationSecurityPoliciesService struct {
// contains filtered or unexported fields
}
func NewOrganizationSecurityPoliciesService ¶
func NewOrganizationSecurityPoliciesService(s *Service) *OrganizationSecurityPoliciesService
func (*OrganizationSecurityPoliciesService) AddAssociation ¶
func (r *OrganizationSecurityPoliciesService) AddAssociation(securityPolicy string, securitypolicyassociation *SecurityPolicyAssociation) *OrganizationSecurityPoliciesAddAssociationCall
AddAssociation: Inserts an association for the specified security policy. (== suppress_warning http-rest-shadowed ==)
func (*OrganizationSecurityPoliciesService) AddRule ¶
func (r *OrganizationSecurityPoliciesService) AddRule(securityPolicy string, securitypolicyrule *SecurityPolicyRule) *OrganizationSecurityPoliciesAddRuleCall
AddRule: Inserts a rule into a security policy. (== suppress_warning http-rest-shadowed ==)
func (*OrganizationSecurityPoliciesService) CopyRules ¶ added in v0.2.0
func (r *OrganizationSecurityPoliciesService) CopyRules(securityPolicy string) *OrganizationSecurityPoliciesCopyRulesCall
CopyRules: Copies rules to the specified security policy. (== suppress_warning http-rest-shadowed ==)
func (*OrganizationSecurityPoliciesService) Delete ¶
func (r *OrganizationSecurityPoliciesService) Delete(securityPolicy string) *OrganizationSecurityPoliciesDeleteCall
Delete: Deletes the specified policy. (== suppress_warning http-rest-shadowed ==)
func (*OrganizationSecurityPoliciesService) Get ¶
func (r *OrganizationSecurityPoliciesService) Get(securityPolicy string) *OrganizationSecurityPoliciesGetCall
Get: List all of the ordered rules present in a single specified policy. (== suppress_warning http-rest-shadowed ==)
func (*OrganizationSecurityPoliciesService) GetAssociation ¶
func (r *OrganizationSecurityPoliciesService) GetAssociation(securityPolicy string) *OrganizationSecurityPoliciesGetAssociationCall
GetAssociation: Gets an association with the specified name. (== suppress_warning http-rest-shadowed ==)
func (*OrganizationSecurityPoliciesService) GetRule ¶
func (r *OrganizationSecurityPoliciesService) GetRule(securityPolicy string) *OrganizationSecurityPoliciesGetRuleCall
GetRule: Gets a rule at the specified priority. (== suppress_warning http-rest-shadowed ==)
func (*OrganizationSecurityPoliciesService) Insert ¶
func (r *OrganizationSecurityPoliciesService) Insert(securitypolicy *SecurityPolicy) *OrganizationSecurityPoliciesInsertCall
Insert: Creates a new policy in the specified project using the data included in the request. (== suppress_warning http-rest-shadowed ==)
func (*OrganizationSecurityPoliciesService) List ¶
func (r *OrganizationSecurityPoliciesService) List() *OrganizationSecurityPoliciesListCall
List: List all the policies that have been configured for the specified project. (== suppress_warning http-rest-shadowed ==)
func (*OrganizationSecurityPoliciesService) ListAssociations ¶ added in v0.3.0
func (r *OrganizationSecurityPoliciesService) ListAssociations() *OrganizationSecurityPoliciesListAssociationsCall
ListAssociations: Lists associations of a specified target, i.e., organization or folder. (== suppress_warning http-rest-shadowed ==)
func (*OrganizationSecurityPoliciesService) Move ¶ added in v0.2.0
func (r *OrganizationSecurityPoliciesService) Move(securityPolicy string) *OrganizationSecurityPoliciesMoveCall
Move: Moves the specified security policy. (== suppress_warning http-rest-shadowed ==)
func (*OrganizationSecurityPoliciesService) Patch ¶ added in v0.2.0
func (r *OrganizationSecurityPoliciesService) Patch(securityPolicy string, securitypolicy *SecurityPolicy) *OrganizationSecurityPoliciesPatchCall
Patch: Patches the specified policy with the data included in the request. (== suppress_warning http-rest-shadowed ==)
func (*OrganizationSecurityPoliciesService) PatchRule ¶
func (r *OrganizationSecurityPoliciesService) PatchRule(securityPolicy string, securitypolicyrule *SecurityPolicyRule) *OrganizationSecurityPoliciesPatchRuleCall
PatchRule: Patches a rule at the specified priority. (== suppress_warning http-rest-shadowed ==)
func (*OrganizationSecurityPoliciesService) RemoveAssociation ¶
func (r *OrganizationSecurityPoliciesService) RemoveAssociation(securityPolicy string) *OrganizationSecurityPoliciesRemoveAssociationCall
RemoveAssociation: Removes an association for the specified security policy. (== suppress_warning http-rest-shadowed ==)
func (*OrganizationSecurityPoliciesService) RemoveRule ¶
func (r *OrganizationSecurityPoliciesService) RemoveRule(securityPolicy string) *OrganizationSecurityPoliciesRemoveRuleCall
RemoveRule: Deletes a rule at the specified priority. (== suppress_warning http-rest-shadowed ==)
type OriginAuthenticationMethod ¶ added in v0.2.0
type OriginAuthenticationMethod struct { Jwt *Jwt `json:"jwt,omitempty"` // ForceSendFields is a list of field names (e.g. "Jwt") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Jwt") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
OriginAuthenticationMethod: Configuration for the origin authentication method.
func (*OriginAuthenticationMethod) MarshalJSON ¶ added in v0.2.0
func (s *OriginAuthenticationMethod) MarshalJSON() ([]byte, error)
type OutlierDetection ¶ added in v0.2.0
type OutlierDetection struct { // BaseEjectionTime: The base time that a host is ejected for. The real // ejection time is equal to the base ejection time multiplied by the // number of times the host has been ejected. Defaults to 30000ms or // 30s. BaseEjectionTime *Duration `json:"baseEjectionTime,omitempty"` // ConsecutiveErrors: Number of errors before a host is ejected from the // connection pool. When the backend host 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 host will be // actually 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 host // will be actually 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 host will be // actually 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. EnforcingSuccessRate int64 `json:"enforcingSuccessRate,omitempty"` // Interval: Time interval between ejection analysis sweeps. This can // result in both new ejections as well as hosts being returned to // service. Defaults to 1 second. Interval *Duration `json:"interval,omitempty"` // MaxEjectionPercent: Maximum percentage of hosts in the load balancing // pool for the backend service that can be ejected. Defaults to 50%. MaxEjectionPercent int64 `json:"maxEjectionPercent,omitempty"` // SuccessRateMinimumHosts: The number of hosts in a cluster that must // have enough request volume to detect success rate outliers. If the // number of hosts is less than this setting, outlier detection via // success rate statistics is not performed for any host in the cluster. // Defaults to 5. 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 host 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 host. // Defaults to 100. 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 * success_rate_stdev_factor). 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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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.2.0
func (s *OutlierDetection) MarshalJSON() ([]byte, error)
type PacketIntervals ¶ added in v0.7.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" // "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" // "RECEIVE" // "TRANSMIT" // "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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PacketIntervals: Next free: 7
func (*PacketIntervals) MarshalJSON ¶ added in v0.7.0
func (s *PacketIntervals) MarshalJSON() ([]byte, error)
type PacketMirroring ¶ added in v0.7.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"` // Collectors: PacketMirroring collectorInfos. Each collectorInfo // specifies a set of collector VM instances, preferably in the same // zone as the mirrored VM(s) Collectors *PacketMirroringCollectorInfo `json:"collectors,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 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"` // PacketMatchers: PacketMirroring packetMatchers. Each packetMatcher // specifies a CIRD filter that will apply to the source or destination // IP in the IP header for the mirrored VM traffic. PacketMatchers []*PacketMirroringPacketMatcher `json:"packetMatchers,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"` // 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. "CollectorIlb") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PacketMirroring: Represents a PacketMirroring resource.
func (*PacketMirroring) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroring) MarshalJSON() ([]byte, error)
type PacketMirroringAggregatedList ¶ added in v0.7.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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PacketMirroringAggregatedList: Contains a list of packetMirrorings.
func (*PacketMirroringAggregatedList) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringAggregatedList) MarshalJSON() ([]byte, error)
type PacketMirroringAggregatedListWarning ¶ added in v0.7.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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PacketMirroringAggregatedListWarning: [Output Only] Informational warning message.
func (*PacketMirroringAggregatedListWarning) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringAggregatedListWarning) MarshalJSON() ([]byte, error)
type PacketMirroringAggregatedListWarningData ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PacketMirroringAggregatedListWarningData) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringAggregatedListWarningData) MarshalJSON() ([]byte, error)
type PacketMirroringCollectorInfo ¶ added in v0.7.0
type PacketMirroringCollectorInfo struct { // Instances: A set of virtual machines configured as destination of the // mirrored traffic. They must live in zones contained in the same // region as this packetMirroring. Instances []*PacketMirroringCollectorInfoInstanceInfo `json:"instances,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PacketMirroringCollectorInfo) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringCollectorInfo) MarshalJSON() ([]byte, error)
type PacketMirroringCollectorInfoInstanceInfo ¶ added in v0.7.0
type PacketMirroringCollectorInfoInstanceInfo struct { // Url: Resource URL to the virtual machine instance configured as // destination of the mirrored traffic. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "Url") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Url") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PacketMirroringCollectorInfoInstanceInfo) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringCollectorInfoInstanceInfo) MarshalJSON() ([]byte, error)
type PacketMirroringFilter ¶ added in v0.7.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 traffic is mirrored. IPProtocols []string `json:"IPProtocols,omitempty"` // CidrRanges: IP CIDR ranges that apply as filter on the source // (ingress) or destination (egress) IP in the IP header. Only IPv4 is // supported. If no ranges are specified, all traffic that matches the // specified IPProtocols is mirrored. If neither cidrRanges nor // IPProtocols is specified, all traffic is mirrored. CidrRanges []string `json:"cidrRanges,omitempty"` // ForceSendFields is a list of field names (e.g. "IPProtocols") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PacketMirroringFilter) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringFilter) MarshalJSON() ([]byte, error)
type PacketMirroringForwardingRuleInfo ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PacketMirroringForwardingRuleInfo) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringForwardingRuleInfo) MarshalJSON() ([]byte, error)
type PacketMirroringList ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PacketMirroringList: Contains a list of PacketMirroring resources.
func (*PacketMirroringList) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringList) MarshalJSON() ([]byte, error)
type PacketMirroringListWarning ¶ added in v0.7.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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PacketMirroringListWarning: [Output Only] Informational warning message.
func (*PacketMirroringListWarning) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringListWarning) MarshalJSON() ([]byte, error)
type PacketMirroringListWarningData ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PacketMirroringListWarningData) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringListWarningData) MarshalJSON() ([]byte, error)
type PacketMirroringMirroredResourceInfo ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PacketMirroringMirroredResourceInfo) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringMirroredResourceInfo) MarshalJSON() ([]byte, error)
type PacketMirroringMirroredResourceInfoInstanceInfo ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PacketMirroringMirroredResourceInfoInstanceInfo) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringMirroredResourceInfoInstanceInfo) MarshalJSON() ([]byte, error)
type PacketMirroringMirroredResourceInfoSubnetInfo ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PacketMirroringMirroredResourceInfoSubnetInfo) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringMirroredResourceInfoSubnetInfo) MarshalJSON() ([]byte, error)
type PacketMirroringNetworkInfo ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PacketMirroringNetworkInfo) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringNetworkInfo) MarshalJSON() ([]byte, error)
type PacketMirroringPacketMatcher ¶ added in v0.7.0
type PacketMirroringPacketMatcher struct { // CidrRange: IP CIDR range that applies as filter on the source or // destination IP in the IP header. Only IPv4 is supported. CidrRange string `json:"cidrRange,omitempty"` // ForceSendFields is a list of field names (e.g. "CidrRange") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CidrRange") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PacketMirroringPacketMatcher) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringPacketMatcher) MarshalJSON() ([]byte, error)
type PacketMirroringsAggregatedListCall ¶ added in v0.7.0
type PacketMirroringsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*PacketMirroringsAggregatedListCall) Context ¶ added in v0.7.0
func (c *PacketMirroringsAggregatedListCall) Context(ctx context.Context) *PacketMirroringsAggregatedListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PacketMirroringsAggregatedListCall) Do ¶ added in v0.7.0
func (c *PacketMirroringsAggregatedListCall) Do(opts ...googleapi.CallOption) (*PacketMirroringAggregatedList, error)
Do executes the "compute.packetMirrorings.aggregatedList" call. Exactly one of *PacketMirroringAggregatedList or error will be non-nil. 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.7.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 information.
func (*PacketMirroringsAggregatedListCall) Filter ¶ added in v0.7.0
func (c *PacketMirroringsAggregatedListCall) Filter(filter string) *PacketMirroringsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*PacketMirroringsAggregatedListCall) Header ¶ added in v0.7.0
func (c *PacketMirroringsAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PacketMirroringsAggregatedListCall) IfNoneMatch ¶ added in v0.7.0
func (c *PacketMirroringsAggregatedListCall) IfNoneMatch(entityTag string) *PacketMirroringsAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*PacketMirroringsAggregatedListCall) MaxResults ¶ added in v0.7.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.7.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.7.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.7.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.
type PacketMirroringsDeleteCall ¶ added in v0.7.0
type PacketMirroringsDeleteCall struct {
// contains filtered or unexported fields
}
func (*PacketMirroringsDeleteCall) Context ¶ added in v0.7.0
func (c *PacketMirroringsDeleteCall) Context(ctx context.Context) *PacketMirroringsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PacketMirroringsDeleteCall) Do ¶ added in v0.7.0
func (c *PacketMirroringsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.packetMirrorings.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.7.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 information.
func (*PacketMirroringsDeleteCall) Header ¶ added in v0.7.0
func (c *PacketMirroringsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PacketMirroringsDeleteCall) RequestId ¶ added in v0.7.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.7.0
type PacketMirroringsGetCall struct {
// contains filtered or unexported fields
}
func (*PacketMirroringsGetCall) Context ¶ added in v0.7.0
func (c *PacketMirroringsGetCall) Context(ctx context.Context) *PacketMirroringsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PacketMirroringsGetCall) Do ¶ added in v0.7.0
func (c *PacketMirroringsGetCall) Do(opts ...googleapi.CallOption) (*PacketMirroring, error)
Do executes the "compute.packetMirrorings.get" call. Exactly one of *PacketMirroring or error will be non-nil. 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.7.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 information.
func (*PacketMirroringsGetCall) Header ¶ added in v0.7.0
func (c *PacketMirroringsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PacketMirroringsGetCall) IfNoneMatch ¶ added in v0.7.0
func (c *PacketMirroringsGetCall) IfNoneMatch(entityTag string) *PacketMirroringsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type PacketMirroringsInsertCall ¶ added in v0.7.0
type PacketMirroringsInsertCall struct {
// contains filtered or unexported fields
}
func (*PacketMirroringsInsertCall) Context ¶ added in v0.7.0
func (c *PacketMirroringsInsertCall) Context(ctx context.Context) *PacketMirroringsInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PacketMirroringsInsertCall) Do ¶ added in v0.7.0
func (c *PacketMirroringsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.packetMirrorings.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.7.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 information.
func (*PacketMirroringsInsertCall) Header ¶ added in v0.7.0
func (c *PacketMirroringsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PacketMirroringsInsertCall) RequestId ¶ added in v0.7.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.7.0
type PacketMirroringsListCall struct {
// contains filtered or unexported fields
}
func (*PacketMirroringsListCall) Context ¶ added in v0.7.0
func (c *PacketMirroringsListCall) Context(ctx context.Context) *PacketMirroringsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PacketMirroringsListCall) Do ¶ added in v0.7.0
func (c *PacketMirroringsListCall) Do(opts ...googleapi.CallOption) (*PacketMirroringList, error)
Do executes the "compute.packetMirrorings.list" call. Exactly one of *PacketMirroringList or error will be non-nil. 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.7.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 information.
func (*PacketMirroringsListCall) Filter ¶ added in v0.7.0
func (c *PacketMirroringsListCall) Filter(filter string) *PacketMirroringsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*PacketMirroringsListCall) Header ¶ added in v0.7.0
func (c *PacketMirroringsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PacketMirroringsListCall) IfNoneMatch ¶ added in v0.7.0
func (c *PacketMirroringsListCall) IfNoneMatch(entityTag string) *PacketMirroringsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*PacketMirroringsListCall) MaxResults ¶ added in v0.7.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.7.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.7.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.7.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.
type PacketMirroringsPatchCall ¶ added in v0.7.0
type PacketMirroringsPatchCall struct {
// contains filtered or unexported fields
}
func (*PacketMirroringsPatchCall) Context ¶ added in v0.7.0
func (c *PacketMirroringsPatchCall) Context(ctx context.Context) *PacketMirroringsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PacketMirroringsPatchCall) Do ¶ added in v0.7.0
func (c *PacketMirroringsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.packetMirrorings.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.7.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 information.
func (*PacketMirroringsPatchCall) Header ¶ added in v0.7.0
func (c *PacketMirroringsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PacketMirroringsPatchCall) RequestId ¶ added in v0.7.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.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*PacketMirroringsScopedList) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringsScopedList) MarshalJSON() ([]byte, error)
type PacketMirroringsScopedListWarning ¶ added in v0.7.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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PacketMirroringsScopedListWarning: Informational warning which replaces the list of packetMirrorings when the list is empty.
func (*PacketMirroringsScopedListWarning) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringsScopedListWarning) MarshalJSON() ([]byte, error)
type PacketMirroringsScopedListWarningData ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PacketMirroringsScopedListWarningData) MarshalJSON ¶ added in v0.7.0
func (s *PacketMirroringsScopedListWarningData) MarshalJSON() ([]byte, error)
type PacketMirroringsService ¶ added in v0.7.0
type PacketMirroringsService struct {
// contains filtered or unexported fields
}
func NewPacketMirroringsService ¶ added in v0.7.0
func NewPacketMirroringsService(s *Service) *PacketMirroringsService
func (*PacketMirroringsService) AggregatedList ¶ added in v0.7.0
func (r *PacketMirroringsService) AggregatedList(project string) *PacketMirroringsAggregatedListCall
AggregatedList: Retrieves an aggregated list of packetMirrorings. (== suppress_warning http-rest-shadowed ==)
func (*PacketMirroringsService) Delete ¶ added in v0.7.0
func (r *PacketMirroringsService) Delete(project string, region string, packetMirroring string) *PacketMirroringsDeleteCall
Delete: Deletes the specified PacketMirroring resource. (== suppress_warning http-rest-shadowed ==)
func (*PacketMirroringsService) Get ¶ added in v0.7.0
func (r *PacketMirroringsService) Get(project string, region string, packetMirroring string) *PacketMirroringsGetCall
Get: Returns the specified PacketMirroring resource. (== suppress_warning http-rest-shadowed ==)
func (*PacketMirroringsService) Insert ¶ added in v0.7.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. (== suppress_warning http-rest-shadowed ==)
func (*PacketMirroringsService) List ¶ added in v0.7.0
func (r *PacketMirroringsService) List(project string, region string) *PacketMirroringsListCall
List: Retrieves a list of PacketMirroring resources available to the specified project and region. (== suppress_warning http-rest-shadowed ==)
func (*PacketMirroringsService) Patch ¶ added in v0.7.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. (== suppress_warning http-rest-shadowed ==)
func (*PacketMirroringsService) TestIamPermissions ¶ added in v0.7.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. (== suppress_warning http-rest-shadowed ==)
type PacketMirroringsTestIamPermissionsCall ¶ added in v0.7.0
type PacketMirroringsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*PacketMirroringsTestIamPermissionsCall) Context ¶ added in v0.7.0
func (c *PacketMirroringsTestIamPermissionsCall) Context(ctx context.Context) *PacketMirroringsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PacketMirroringsTestIamPermissionsCall) Do ¶ added in v0.7.0
func (c *PacketMirroringsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.packetMirrorings.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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.7.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 information.
func (*PacketMirroringsTestIamPermissionsCall) Header ¶ added in v0.7.0
func (c *PacketMirroringsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type PathMatcher ¶
type PathMatcher struct { // DefaultRouteAction: defaultRouteAction takes effect when none of the // pathRules or routeRules match. The load balancer performs advanced // routing actions like URL rewrites, header transformations, etc. prior // to 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. DefaultRouteAction *HttpRouteAction `json:"defaultRouteAction,omitempty"` // DefaultService: The full or partial URL to the BackendService // resource. This will be 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 // additionally specified, advanced routing actions like URL Rewrites, // etc. take effect prior to 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. // Only one of defaultService, defaultUrlRedirect or // defaultRouteAction.weightedBackendService must be set. // 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 when none of the specified pathRules or // routeRules match, the request is redirected to a URL specified by // defaultUrlRedirect. // If defaultUrlRedirect is specified, defaultService or // defaultRouteAction must not be set. 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 backendService. // HeaderAction specified here are applied after the matching // HttpRouteRule HeaderAction and before the HeaderAction in the UrlMap 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 ordered HTTP route rules. Use this list // instead of pathRules when advanced route matching and routing actions // are desired. The order of specifying routeRules matters: the first // rule that matches will cause its specified routing action to take // effect. // Within a given pathMatcher, only one of pathRules or routeRules must // be set. // routeRules are not supported in UrlMaps intended for External Load // balancers. RouteRules []*HttpRouteRule `json:"routeRules,omitempty"` // ForceSendFields is a list of field names (e.g. "DefaultRouteAction") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DefaultRouteAction") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 will be used.
func (*PathMatcher) MarshalJSON ¶
func (s *PathMatcher) MarshalJSON() ([]byte, error)
type PathRule ¶
type PathRule struct { // 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 like URL rewrites, header // transformations, etc. prior to 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. 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 // additionally specified, advanced routing actions like URL Rewrites, // etc. take effect prior to sending the request to the backend. // However, if service is specified, routeAction cannot contain any // weightedBackendService s. 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. UrlRedirect *HttpRedirectAction `json:"urlRedirect,omitempty"` // ForceSendFields is a list of field names (e.g. "Paths") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Paths") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 PeerAuthenticationMethod ¶ added in v0.2.0
type PeerAuthenticationMethod struct { // Mtls: Set if mTLS is used for peer authentication. Mtls *MutualTls `json:"mtls,omitempty"` // ForceSendFields is a list of field names (e.g. "Mtls") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Mtls") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PeerAuthenticationMethod: Configuration for the peer authentication method.
func (*PeerAuthenticationMethod) MarshalJSON ¶ added in v0.2.0
func (s *PeerAuthenticationMethod) MarshalJSON() ([]byte, error)
type PerInstanceConfig ¶
type PerInstanceConfig struct { // Fingerprint: Fingerprint of this per-instance config. This field may // be used in optimistic locking. It will be ignored when inserting a // per-instance config. An up-to-date fingerprint must be provided in // order to update an existing per-instance config or the field needs to // be unset. Fingerprint string `json:"fingerprint,omitempty"` // Name: The name of the per-instance config and the corresponding // instance. Serves as a merge key during UpdatePerInstanceConfigs // operation, i.e. if per-instance config 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 // config for a VM instance that either doesn't exist or is not part of // the group will result in a failure. Name string `json:"name,omitempty"` // PreservedState: Intended preserved state for the given instance. Does // not contain state generated based on Stateful Policy. PreservedState *PreservedState `json:"preservedState,omitempty"` // ForceSendFields is a list of field names (e.g. "Fingerprint") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PerInstanceConfig) MarshalJSON ¶
func (s *PerInstanceConfig) MarshalJSON() ([]byte, error)
type Permission ¶ added in v0.2.0
type Permission struct { // Constraints: Extra custom constraints. The constraints are ANDed // together. Constraints []*PermissionConstraint `json:"constraints,omitempty"` // Hosts: Used in Ingress or Egress Gateway cases to specify hosts that // the policy applies to. Exact match, prefix match, and suffix match // are supported. Hosts []string `json:"hosts,omitempty"` // Methods: HTTP method. Methods []string `json:"methods,omitempty"` // NotHosts: Negate of hosts. Specifies exclusions. NotHosts []string `json:"notHosts,omitempty"` // NotMethods: Negate of methods. Specifies exclusions. NotMethods []string `json:"notMethods,omitempty"` // NotPaths: Negate of paths. Specifies exclusions. NotPaths []string `json:"notPaths,omitempty"` // NotPorts: Negate of ports. Specifies exclusions. NotPorts []string `json:"notPorts,omitempty"` // Paths: HTTP request paths or gRPC methods. Exact match, prefix match, // and suffix match are supported. Paths []string `json:"paths,omitempty"` // Ports: Port names or numbers. Ports []string `json:"ports,omitempty"` // ForceSendFields is a list of field names (e.g. "Constraints") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Permission: All fields defined in a permission are ANDed.
func (*Permission) MarshalJSON ¶ added in v0.2.0
func (s *Permission) MarshalJSON() ([]byte, error)
type PermissionConstraint ¶ added in v0.2.0
type PermissionConstraint struct { // Key: Key of the constraint. Key string `json:"key,omitempty"` // Values: A list of allowed values. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PermissionConstraint: Custom constraint that specifies a key and a list of allowed values for Istio attributes.
func (*PermissionConstraint) MarshalJSON ¶ added in v0.2.0
func (s *PermissionConstraint) 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` to a `role`. Optionally may // specify a `condition` that determines when binding is in effect. // `bindings` with no members will result in an error. 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. // // If no `etag` is provided in the call to `setIamPolicy`, then the // existing policy is overwritten. Due to blind-set semantics of an // etag-less policy, 'setIamPolicy' will not fail even if either of // incoming or stored policy does not meet the version requirements. Etag string `json:"etag,omitempty"` IamOwned bool `json:"iamOwned,omitempty"` // Rules: If more than one rule is specified, the rules are applied in // the following manner: - All matching LOG rules are always applied. - // If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging // will be applied if one or more matching rule requires logging. - // Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is // granted. Logging will be applied if one or more matching rule // requires logging. - Otherwise, if no rule applies, permission is // denied. Rules []*Rule `json:"rules,omitempty"` // Version: Specifies the format of the policy. // // Valid values are 0, 1, and 3. Requests specifying an invalid value // will be rejected. // // Operations affecting conditional bindings must specify version 3. // This can be either setting a conditional policy, modifying a // conditional binding, or removing a conditional binding from the // stored conditional policy. Operations on non-conditional policies may // specify any valid value or leave the field unset. // // If no etag is provided in the call to `setIamPolicy`, any version // compliance checks on the incoming and/or stored policy is skipped. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Policy: Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions (defined by IAM or configured by users). A `binding` can optionally specify a `condition`, which is a logic expression that further constrains the role binding based on attributes about the request and/or target resource.
**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')", } } ] }
**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')
For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).
func (*Policy) MarshalJSON ¶
type PreconfiguredWafSet ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*PreconfiguredWafSet) MarshalJSON ¶
func (s *PreconfiguredWafSet) MarshalJSON() ([]byte, error)
type PreservedState ¶
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PreservedState: Preserved state for a given instance.
func (*PreservedState) MarshalJSON ¶
func (s *PreservedState) MarshalJSON() ([]byte, error)
type PreservedStatePreservedDisk ¶
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" // "READ_WRITE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PreservedStatePreservedDisk) MarshalJSON ¶
func (s *PreservedStatePreservedDisk) MarshalJSON() ([]byte, error)
type Principal ¶ added in v0.2.0
type Principal struct { // Condition: An expression to specify custom condition. Condition string `json:"condition,omitempty"` // Groups: The groups the principal belongs to. Exact match, prefix // match, and suffix match are supported. Groups []string `json:"groups,omitempty"` // Ips: IPv4 or IPv6 address or range (In CIDR format) Ips []string `json:"ips,omitempty"` // Namespaces: The namespaces. Exact match, prefix match, and suffix // match are supported. Namespaces []string `json:"namespaces,omitempty"` // NotGroups: Negate of groups. Specifies exclusions. NotGroups []string `json:"notGroups,omitempty"` // NotIps: Negate of IPs. Specifies exclusions. NotIps []string `json:"notIps,omitempty"` // NotNamespaces: Negate of namespaces. Specifies exclusions. NotNamespaces []string `json:"notNamespaces,omitempty"` // NotUsers: Negate of users. Specifies exclusions. NotUsers []string `json:"notUsers,omitempty"` // Properties: A map of Istio attribute to expected values. Exact match, // prefix match, and suffix match are supported for values. For example, // `request.headers[version]: "v1". The properties are ANDed together. Properties map[string]string `json:"properties,omitempty"` // Users: The user names/IDs or service accounts. Exact match, prefix // match, and suffix match are supported. Users []string `json:"users,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Principal: All fields defined in a principal are ANDed.
func (*Principal) MarshalJSON ¶ added in v0.2.0
type Project ¶
type Project struct { // 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: // "PREMIUM" // "SELECT" // "STANDARD" 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"` // XpnProjectStatus: [Output Only] The role this project has in a shared // VPC configuration. Currently only HOST projects 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. // "CommonInstanceMetadata") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CommonInstanceMetadata") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. (== resource_for v1.projects ==) (== resource_for beta.projects ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsDisableXpnHostCall) Do ¶
func (c *ProjectsDisableXpnHostCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.disableXpnHost" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ProjectsDisableXpnHostCall) Header ¶
func (c *ProjectsDisableXpnHostCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsDisableXpnResourceCall) Do ¶
func (c *ProjectsDisableXpnResourceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.disableXpnResource" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ProjectsDisableXpnResourceCall) Header ¶
func (c *ProjectsDisableXpnResourceCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsEnableXpnHostCall) Do ¶
func (c *ProjectsEnableXpnHostCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.enableXpnHost" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ProjectsEnableXpnHostCall) Header ¶
func (c *ProjectsEnableXpnHostCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsEnableXpnResourceCall) Do ¶
func (c *ProjectsEnableXpnResourceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.enableXpnResource" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ProjectsEnableXpnResourceCall) Header ¶
func (c *ProjectsEnableXpnResourceCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsGetCall) Do ¶
func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error)
Do executes the "compute.projects.get" call. Exactly one of *Project or error will be non-nil. 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 information.
func (*ProjectsGetCall) Header ¶
func (c *ProjectsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsGetCall) IfNoneMatch ¶
func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsGetXpnHostCall) Do ¶
func (c *ProjectsGetXpnHostCall) Do(opts ...googleapi.CallOption) (*Project, error)
Do executes the "compute.projects.getXpnHost" call. Exactly one of *Project or error will be non-nil. 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 information.
func (*ProjectsGetXpnHostCall) Header ¶
func (c *ProjectsGetXpnHostCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsGetXpnHostCall) IfNoneMatch ¶
func (c *ProjectsGetXpnHostCall) IfNoneMatch(entityTag string) *ProjectsGetXpnHostCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsGetXpnResourcesCall) Do ¶
func (c *ProjectsGetXpnResourcesCall) Do(opts ...googleapi.CallOption) (*ProjectsGetXpnResources, error)
Do executes the "compute.projects.getXpnResources" call. Exactly one of *ProjectsGetXpnResources or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*ProjectsGetXpnResourcesCall) Header ¶
func (c *ProjectsGetXpnResourcesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsGetXpnResourcesCall) IfNoneMatch ¶
func (c *ProjectsGetXpnResourcesCall) IfNoneMatch(entityTag string) *ProjectsGetXpnResourcesCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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 "order_by": 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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsListXpnHostsCall) Do ¶
func (c *ProjectsListXpnHostsCall) Do(opts ...googleapi.CallOption) (*XpnHostList, error)
Do executes the "compute.projects.listXpnHosts" call. Exactly one of *XpnHostList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*ProjectsListXpnHostsCall) Header ¶
func (c *ProjectsListXpnHostsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 "order_by": 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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsMoveDiskCall) Do ¶
func (c *ProjectsMoveDiskCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.moveDisk" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ProjectsMoveDiskCall) Header ¶
func (c *ProjectsMoveDiskCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsMoveInstanceCall) Do ¶
func (c *ProjectsMoveInstanceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.moveInstance" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ProjectsMoveInstanceCall) Header ¶
func (c *ProjectsMoveInstanceCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*ProjectsService) EnableXpnHost ¶
func (r *ProjectsService) EnableXpnHost(project string) *ProjectsEnableXpnHostCall
EnableXpnHost: Enable this project as a shared VPC host project. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*ProjectsService) Get ¶
func (r *ProjectsService) Get(project string) *ProjectsGetCall
Get: Returns the specified Project resource. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/projects/get
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. (== suppress_warning http-rest-shadowed ==)
func (*ProjectsService) GetXpnResources ¶
func (r *ProjectsService) GetXpnResources(project string) *ProjectsGetXpnResourcesCall
GetXpnResources: Gets service resources (a.k.a service project) associated with this host project. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*ProjectsService) MoveDisk ¶
func (r *ProjectsService) MoveDisk(project string, diskmoverequest *DiskMoveRequest) *ProjectsMoveDiskCall
MoveDisk: Moves a persistent disk from one zone to another. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/projects/setCommonInstanceMetadata
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. (== suppress_warning http-rest-shadowed ==)
func (*ProjectsService) SetDefaultServiceAccount ¶
func (r *ProjectsService) SetDefaultServiceAccount(project string, projectssetdefaultserviceaccountrequest *ProjectsSetDefaultServiceAccountRequest) *ProjectsSetDefaultServiceAccountCall
SetDefaultServiceAccount: Sets the default service account of the project. The default service account is used when a VM instance is created with the service account email address set to "default". (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/projects/setUsageExportBucket
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsSetCommonInstanceMetadataCall) Do ¶
func (c *ProjectsSetCommonInstanceMetadataCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.setCommonInstanceMetadata" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ProjectsSetCommonInstanceMetadataCall) Header ¶
func (c *ProjectsSetCommonInstanceMetadataCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsSetDefaultNetworkTierCall) Do ¶
func (c *ProjectsSetDefaultNetworkTierCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.setDefaultNetworkTier" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ProjectsSetDefaultNetworkTierCall) Header ¶
func (c *ProjectsSetDefaultNetworkTierCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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: // "PREMIUM" // "SELECT" // "STANDARD" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ProjectsSetDefaultNetworkTierRequest) MarshalJSON ¶
func (s *ProjectsSetDefaultNetworkTierRequest) MarshalJSON() ([]byte, error)
type ProjectsSetDefaultServiceAccountCall ¶
type ProjectsSetDefaultServiceAccountCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSetDefaultServiceAccountCall) Context ¶
func (c *ProjectsSetDefaultServiceAccountCall) Context(ctx context.Context) *ProjectsSetDefaultServiceAccountCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsSetDefaultServiceAccountCall) Do ¶
func (c *ProjectsSetDefaultServiceAccountCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.setDefaultServiceAccount" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSetDefaultServiceAccountCall) Fields ¶
func (c *ProjectsSetDefaultServiceAccountCall) Fields(s ...googleapi.Field) *ProjectsSetDefaultServiceAccountCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsSetDefaultServiceAccountCall) Header ¶
func (c *ProjectsSetDefaultServiceAccountCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsSetDefaultServiceAccountCall) RequestId ¶
func (c *ProjectsSetDefaultServiceAccountCall) RequestId(requestId string) *ProjectsSetDefaultServiceAccountCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type ProjectsSetDefaultServiceAccountRequest ¶
type ProjectsSetDefaultServiceAccountRequest struct { // Email: Email address of the service account. Email string `json:"email,omitempty"` // ForceSendFields is a list of field names (e.g. "Email") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ProjectsSetDefaultServiceAccountRequest) MarshalJSON ¶
func (s *ProjectsSetDefaultServiceAccountRequest) 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsSetUsageExportBucketCall) Do ¶
func (c *ProjectsSetUsageExportBucketCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.projects.setUsageExportBucket" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ProjectsSetUsageExportBucketCall) Header ¶
func (c *ProjectsSetUsageExportBucketCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.11.0
type PublicAdvertisedPrefix 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"` // DnsVerificationIp: The IPv4 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 IPv4 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"` // 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"` // SelfLinkWithId: [Output Only] Server-defined URL with id for the // resource. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` // DNS verification. SharedSecret string `json:"sharedSecret,omitempty"` // Status: The status of the public advertised prefix. // // Possible values: // "INITIAL" // "PREFIX_CONFIGURATION_COMPLETE" // "PREFIX_CONFIGURATION_IN_PROGRESS" // "PREFIX_REMOVAL_IN_PROGRESS" // "PTR_CONFIGURED" // "REVERSE_DNS_LOOKUP_FAILED" // "VALIDATED" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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.11.0
func (s *PublicAdvertisedPrefix) MarshalJSON() ([]byte, error)
type PublicAdvertisedPrefixList ¶ added in v0.11.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PublicAdvertisedPrefixList) MarshalJSON ¶ added in v0.11.0
func (s *PublicAdvertisedPrefixList) MarshalJSON() ([]byte, error)
type PublicAdvertisedPrefixListWarning ¶ added in v0.11.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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PublicAdvertisedPrefixListWarning: [Output Only] Informational warning message.
func (*PublicAdvertisedPrefixListWarning) MarshalJSON ¶ added in v0.11.0
func (s *PublicAdvertisedPrefixListWarning) MarshalJSON() ([]byte, error)
type PublicAdvertisedPrefixListWarningData ¶ added in v0.11.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PublicAdvertisedPrefixListWarningData) MarshalJSON ¶ added in v0.11.0
func (s *PublicAdvertisedPrefixListWarningData) MarshalJSON() ([]byte, error)
type PublicAdvertisedPrefixPublicDelegatedPrefix ¶ added in v0.11.0
type PublicAdvertisedPrefixPublicDelegatedPrefix struct { // Name: The name of the public delegated prefix Name string `json:"name,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: ACTIVE: The public delegated prefix is active DRAINED: The // public delegated prefix is drained. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PublicAdvertisedPrefixPublicDelegatedPrefix: Represents a CIDR range which can be used to assign addresses.
func (*PublicAdvertisedPrefixPublicDelegatedPrefix) MarshalJSON ¶ added in v0.11.0
func (s *PublicAdvertisedPrefixPublicDelegatedPrefix) MarshalJSON() ([]byte, error)
type PublicAdvertisedPrefixesDeleteCall ¶ added in v0.11.0
type PublicAdvertisedPrefixesDeleteCall struct {
// contains filtered or unexported fields
}
func (*PublicAdvertisedPrefixesDeleteCall) Context ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesDeleteCall) Context(ctx context.Context) *PublicAdvertisedPrefixesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PublicAdvertisedPrefixesDeleteCall) Do ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicAdvertisedPrefixes.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.11.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 information.
func (*PublicAdvertisedPrefixesDeleteCall) Header ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PublicAdvertisedPrefixesDeleteCall) RequestId ¶ added in v0.11.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.11.0
type PublicAdvertisedPrefixesGetCall struct {
// contains filtered or unexported fields
}
func (*PublicAdvertisedPrefixesGetCall) Context ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesGetCall) Context(ctx context.Context) *PublicAdvertisedPrefixesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PublicAdvertisedPrefixesGetCall) Do ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*PublicAdvertisedPrefix, error)
Do executes the "compute.publicAdvertisedPrefixes.get" call. Exactly one of *PublicAdvertisedPrefix or error will be non-nil. 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.11.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 information.
func (*PublicAdvertisedPrefixesGetCall) Header ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PublicAdvertisedPrefixesGetCall) IfNoneMatch ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesGetCall) IfNoneMatch(entityTag string) *PublicAdvertisedPrefixesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type PublicAdvertisedPrefixesInsertCall ¶ added in v0.11.0
type PublicAdvertisedPrefixesInsertCall struct {
// contains filtered or unexported fields
}
func (*PublicAdvertisedPrefixesInsertCall) Context ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesInsertCall) Context(ctx context.Context) *PublicAdvertisedPrefixesInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PublicAdvertisedPrefixesInsertCall) Do ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicAdvertisedPrefixes.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.11.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 information.
func (*PublicAdvertisedPrefixesInsertCall) Header ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PublicAdvertisedPrefixesInsertCall) RequestId ¶ added in v0.11.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.11.0
type PublicAdvertisedPrefixesListCall struct {
// contains filtered or unexported fields
}
func (*PublicAdvertisedPrefixesListCall) Context ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesListCall) Context(ctx context.Context) *PublicAdvertisedPrefixesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PublicAdvertisedPrefixesListCall) Do ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesListCall) Do(opts ...googleapi.CallOption) (*PublicAdvertisedPrefixList, error)
Do executes the "compute.publicAdvertisedPrefixes.list" call. Exactly one of *PublicAdvertisedPrefixList or error will be non-nil. 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.11.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 information.
func (*PublicAdvertisedPrefixesListCall) Filter ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesListCall) Filter(filter string) *PublicAdvertisedPrefixesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*PublicAdvertisedPrefixesListCall) Header ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PublicAdvertisedPrefixesListCall) IfNoneMatch ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesListCall) IfNoneMatch(entityTag string) *PublicAdvertisedPrefixesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*PublicAdvertisedPrefixesListCall) MaxResults ¶ added in v0.11.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.11.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.11.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.11.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.
type PublicAdvertisedPrefixesPatchCall ¶ added in v0.11.0
type PublicAdvertisedPrefixesPatchCall struct {
// contains filtered or unexported fields
}
func (*PublicAdvertisedPrefixesPatchCall) Context ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesPatchCall) Context(ctx context.Context) *PublicAdvertisedPrefixesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PublicAdvertisedPrefixesPatchCall) Do ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicAdvertisedPrefixes.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.11.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 information.
func (*PublicAdvertisedPrefixesPatchCall) Header ¶ added in v0.11.0
func (c *PublicAdvertisedPrefixesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PublicAdvertisedPrefixesPatchCall) RequestId ¶ added in v0.11.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.11.0
type PublicAdvertisedPrefixesService struct {
// contains filtered or unexported fields
}
func NewPublicAdvertisedPrefixesService ¶ added in v0.11.0
func NewPublicAdvertisedPrefixesService(s *Service) *PublicAdvertisedPrefixesService
func (*PublicAdvertisedPrefixesService) Delete ¶ added in v0.11.0
func (r *PublicAdvertisedPrefixesService) Delete(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesDeleteCall
Delete: Deletes the specified PublicAdvertisedPrefix (== suppress_warning http-rest-shadowed ==)
func (*PublicAdvertisedPrefixesService) Get ¶ added in v0.11.0
func (r *PublicAdvertisedPrefixesService) Get(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesGetCall
Get: Returns the specified PublicAdvertisedPrefix resource. (== suppress_warning http-rest-shadowed ==)
func (*PublicAdvertisedPrefixesService) Insert ¶ added in v0.11.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. (== suppress_warning http-rest-shadowed ==)
func (*PublicAdvertisedPrefixesService) List ¶ added in v0.11.0
func (r *PublicAdvertisedPrefixesService) List(project string) *PublicAdvertisedPrefixesListCall
List: Lists the PublicAdvertisedPrefixes for a project. (== suppress_warning http-rest-shadowed ==)
func (*PublicAdvertisedPrefixesService) Patch ¶ added in v0.11.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. (== suppress_warning http-rest-shadowed ==)
type PublicDelegatedPrefix ¶ added in v0.11.0
type PublicDelegatedPrefix 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 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 IPv4 address range, in CIDR format, represented by // this public delegated prefix. IpCidrRange string `json:"ipCidrRange,omitempty"` // Kind: [Output Only] Type of the resource. Always // compute#publicDelegatedPrefix for public delegated 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"` // 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"` // SelfLinkWithId: [Output Only] Server-defined URL with id for the // resource. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` // Status: [Output Only] The status of the public delegated prefix. Status interface{} `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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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.11.0
func (s *PublicDelegatedPrefix) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixAggregatedList ¶ added in v0.11.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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PublicDelegatedPrefixAggregatedList) MarshalJSON ¶ added in v0.11.0
func (s *PublicDelegatedPrefixAggregatedList) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixAggregatedListWarning ¶ added in v0.11.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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PublicDelegatedPrefixAggregatedListWarning: [Output Only] Informational warning message.
func (*PublicDelegatedPrefixAggregatedListWarning) MarshalJSON ¶ added in v0.11.0
func (s *PublicDelegatedPrefixAggregatedListWarning) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixAggregatedListWarningData ¶ added in v0.11.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PublicDelegatedPrefixAggregatedListWarningData) MarshalJSON ¶ added in v0.11.0
func (s *PublicDelegatedPrefixAggregatedListWarningData) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixList ¶ added in v0.11.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PublicDelegatedPrefixList) MarshalJSON ¶ added in v0.11.0
func (s *PublicDelegatedPrefixList) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixListWarning ¶ added in v0.11.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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PublicDelegatedPrefixListWarning: [Output Only] Informational warning message.
func (*PublicDelegatedPrefixListWarning) MarshalJSON ¶ added in v0.11.0
func (s *PublicDelegatedPrefixListWarning) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixListWarningData ¶ added in v0.11.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PublicDelegatedPrefixListWarningData) MarshalJSON ¶ added in v0.11.0
func (s *PublicDelegatedPrefixListWarningData) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixPublicDelegatedSubPrefix ¶ added in v0.11.0
type PublicDelegatedPrefixPublicDelegatedSubPrefix struct { // 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 IPv4 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"` // 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. Status interface{} `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "DelegateeProject") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DelegateeProject") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
PublicDelegatedPrefixPublicDelegatedSubPrefix: Represents a sub PublicDelegatedPrefix.
func (*PublicDelegatedPrefixPublicDelegatedSubPrefix) MarshalJSON ¶ added in v0.11.0
func (s *PublicDelegatedPrefixPublicDelegatedSubPrefix) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixesAggregatedListCall ¶ added in v0.11.0
type PublicDelegatedPrefixesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*PublicDelegatedPrefixesAggregatedListCall) Context ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesAggregatedListCall) Context(ctx context.Context) *PublicDelegatedPrefixesAggregatedListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PublicDelegatedPrefixesAggregatedListCall) Do ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesAggregatedListCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefixAggregatedList, error)
Do executes the "compute.publicDelegatedPrefixes.aggregatedList" call. Exactly one of *PublicDelegatedPrefixAggregatedList or error will be non-nil. 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.11.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 information.
func (*PublicDelegatedPrefixesAggregatedListCall) Filter ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesAggregatedListCall) Filter(filter string) *PublicDelegatedPrefixesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*PublicDelegatedPrefixesAggregatedListCall) Header ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PublicDelegatedPrefixesAggregatedListCall) IfNoneMatch ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesAggregatedListCall) IfNoneMatch(entityTag string) *PublicDelegatedPrefixesAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*PublicDelegatedPrefixesAggregatedListCall) MaxResults ¶ added in v0.11.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.11.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.11.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.11.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.
type PublicDelegatedPrefixesDeleteCall ¶ added in v0.11.0
type PublicDelegatedPrefixesDeleteCall struct {
// contains filtered or unexported fields
}
func (*PublicDelegatedPrefixesDeleteCall) Context ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesDeleteCall) Context(ctx context.Context) *PublicDelegatedPrefixesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PublicDelegatedPrefixesDeleteCall) Do ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicDelegatedPrefixes.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.11.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 information.
func (*PublicDelegatedPrefixesDeleteCall) Header ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PublicDelegatedPrefixesDeleteCall) RequestId ¶ added in v0.11.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.11.0
type PublicDelegatedPrefixesGetCall struct {
// contains filtered or unexported fields
}
func (*PublicDelegatedPrefixesGetCall) Context ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesGetCall) Context(ctx context.Context) *PublicDelegatedPrefixesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PublicDelegatedPrefixesGetCall) Do ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefix, error)
Do executes the "compute.publicDelegatedPrefixes.get" call. Exactly one of *PublicDelegatedPrefix or error will be non-nil. 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.11.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 information.
func (*PublicDelegatedPrefixesGetCall) Header ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PublicDelegatedPrefixesGetCall) IfNoneMatch ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesGetCall) IfNoneMatch(entityTag string) *PublicDelegatedPrefixesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type PublicDelegatedPrefixesInsertCall ¶ added in v0.11.0
type PublicDelegatedPrefixesInsertCall struct {
// contains filtered or unexported fields
}
func (*PublicDelegatedPrefixesInsertCall) Context ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesInsertCall) Context(ctx context.Context) *PublicDelegatedPrefixesInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PublicDelegatedPrefixesInsertCall) Do ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicDelegatedPrefixes.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.11.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 information.
func (*PublicDelegatedPrefixesInsertCall) Header ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PublicDelegatedPrefixesInsertCall) RequestId ¶ added in v0.11.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.11.0
type PublicDelegatedPrefixesListCall struct {
// contains filtered or unexported fields
}
func (*PublicDelegatedPrefixesListCall) Context ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesListCall) Context(ctx context.Context) *PublicDelegatedPrefixesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PublicDelegatedPrefixesListCall) Do ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesListCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefixList, error)
Do executes the "compute.publicDelegatedPrefixes.list" call. Exactly one of *PublicDelegatedPrefixList or error will be non-nil. 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.11.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 information.
func (*PublicDelegatedPrefixesListCall) Filter ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesListCall) Filter(filter string) *PublicDelegatedPrefixesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*PublicDelegatedPrefixesListCall) Header ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PublicDelegatedPrefixesListCall) IfNoneMatch ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesListCall) IfNoneMatch(entityTag string) *PublicDelegatedPrefixesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*PublicDelegatedPrefixesListCall) MaxResults ¶ added in v0.11.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.11.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.11.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.11.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.
type PublicDelegatedPrefixesPatchCall ¶ added in v0.11.0
type PublicDelegatedPrefixesPatchCall struct {
// contains filtered or unexported fields
}
func (*PublicDelegatedPrefixesPatchCall) Context ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesPatchCall) Context(ctx context.Context) *PublicDelegatedPrefixesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PublicDelegatedPrefixesPatchCall) Do ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.publicDelegatedPrefixes.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.11.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 information.
func (*PublicDelegatedPrefixesPatchCall) Header ¶ added in v0.11.0
func (c *PublicDelegatedPrefixesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PublicDelegatedPrefixesPatchCall) RequestId ¶ added in v0.11.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.11.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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*PublicDelegatedPrefixesScopedList) MarshalJSON ¶ added in v0.11.0
func (s *PublicDelegatedPrefixesScopedList) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixesScopedListWarning ¶ added in v0.11.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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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.11.0
func (s *PublicDelegatedPrefixesScopedListWarning) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixesScopedListWarningData ¶ added in v0.11.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PublicDelegatedPrefixesScopedListWarningData) MarshalJSON ¶ added in v0.11.0
func (s *PublicDelegatedPrefixesScopedListWarningData) MarshalJSON() ([]byte, error)
type PublicDelegatedPrefixesService ¶ added in v0.11.0
type PublicDelegatedPrefixesService struct {
// contains filtered or unexported fields
}
func NewPublicDelegatedPrefixesService ¶ added in v0.11.0
func NewPublicDelegatedPrefixesService(s *Service) *PublicDelegatedPrefixesService
func (*PublicDelegatedPrefixesService) AggregatedList ¶ added in v0.11.0
func (r *PublicDelegatedPrefixesService) AggregatedList(project string) *PublicDelegatedPrefixesAggregatedListCall
AggregatedList: Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. (== suppress_warning http-rest-shadowed ==)
func (*PublicDelegatedPrefixesService) Delete ¶ added in v0.11.0
func (r *PublicDelegatedPrefixesService) Delete(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesDeleteCall
Delete: Deletes the specified PublicDelegatedPrefix in the given region. (== suppress_warning http-rest-shadowed ==)
func (*PublicDelegatedPrefixesService) Get ¶ added in v0.11.0
func (r *PublicDelegatedPrefixesService) Get(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesGetCall
Get: Returns the specified PublicDelegatedPrefix resource in the given region. (== suppress_warning http-rest-shadowed ==)
func (*PublicDelegatedPrefixesService) Insert ¶ added in v0.11.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. (== suppress_warning http-rest-shadowed ==)
func (*PublicDelegatedPrefixesService) List ¶ added in v0.11.0
func (r *PublicDelegatedPrefixesService) List(project string, region string) *PublicDelegatedPrefixesListCall
List: Lists the PublicDelegatedPrefixes for a project in the given region. (== suppress_warning http-rest-shadowed ==)
func (*PublicDelegatedPrefixesService) Patch ¶ added in v0.11.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. (== suppress_warning http-rest-shadowed ==)
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: // "ALIASES_PER_NETWORK_GLOBAL" // "AMD_S9300_GPUS" // "AUTOSCALERS" // "BACKEND_BUCKETS" // "BACKEND_SERVICES" // "C2_CPUS" // "COMMITMENTS" // "COMMITTED_C2_CPUS" // "COMMITTED_CPUS" // "COMMITTED_LOCAL_SSD_TOTAL_GB" // "COMMITTED_N2_CPUS" // "COMMITTED_NVIDIA_K80_GPUS" // "COMMITTED_NVIDIA_P100_GPUS" // "COMMITTED_NVIDIA_P4_GPUS" // "COMMITTED_NVIDIA_T4_GPUS" // "COMMITTED_NVIDIA_V100_GPUS" // "CPUS" // "CPUS_ALL_REGIONS" // "DISKS_TOTAL_GB" // "EXTERNAL_VPN_GATEWAYS" // "FIREWALLS" // "FORWARDING_RULES" // "GLOBAL_INTERNAL_ADDRESSES" // "GPUS_ALL_REGIONS" // "HEALTH_CHECKS" // "IMAGES" // "INSTANCES" // "INSTANCES_PER_NETWORK_GLOBAL" // "INSTANCE_GROUPS" // "INSTANCE_GROUP_MANAGERS" // "INSTANCE_TEMPLATES" // "INTERCONNECTS" // "INTERCONNECT_ATTACHMENTS_PER_REGION" // "INTERCONNECT_ATTACHMENTS_TOTAL_MBPS" // "INTERCONNECT_TOTAL_GBPS" // "INTERNAL_ADDRESSES" // "INTERNAL_FORWARDING_RULES_PER_NETWORK" // "INTERNAL_FORWARDING_RULES_WITH_GLOBAL_ACCESS_PER_NETWORK" // "INTERNAL_FORWARDING_RULES_WITH_TARGET_INSTANCE_PER_NETWORK" // "INTERNAL_TARGET_INSTANCE_WITH_GLOBAL_ACCESS_PER_NETWORK" // "IN_USE_ADDRESSES" // "IN_USE_BACKUP_SCHEDULES" // "IN_USE_MAINTENANCE_WINDOWS" // "IN_USE_SNAPSHOT_SCHEDULES" // "LOCAL_SSD_TOTAL_GB" // "MACHINE_IMAGES" // "N2_CPUS" // "NETWORKS" // "NETWORK_ENDPOINT_GROUPS" // "NVIDIA_K80_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" // "PREEMPTIBLE_CPUS" // "PREEMPTIBLE_LOCAL_SSD_GB" // "PREEMPTIBLE_NVIDIA_K80_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" // "PRIVATE_V6_ACCESS_SUBNETWORKS" // "REGIONAL_AUTOSCALERS" // "REGIONAL_INSTANCE_GROUP_MANAGERS" // "RESERVATIONS" // "RESOURCE_POLICIES" // "ROUTERS" // "ROUTES" // "SECURITY_POLICIES" // "SECURITY_POLICY_CEVAL_RULES" // "SECURITY_POLICY_RULES" // "SNAPSHOTS" // "SSD_TOTAL_GB" // "SSL_CERTIFICATES" // "STATIC_ADDRESSES" // "SUBNETWORKS" // "TARGET_HTTPS_PROXIES" // "TARGET_HTTP_PROXIES" // "TARGET_INSTANCES" // "TARGET_POOLS" // "TARGET_SSL_PROXIES" // "TARGET_TCP_PROXIES" // "TARGET_VPN_GATEWAYS" // "URL_MAPS" // "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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Quota: A quotas entry.
func (*Quota) MarshalJSON ¶
func (*Quota) UnmarshalJSON ¶
type RbacPolicy ¶ added in v0.2.0
type RbacPolicy struct { // Name: Name of the RbacPolicy. Name string `json:"name,omitempty"` // Permissions: The list of permissions. Permissions []*Permission `json:"permissions,omitempty"` // Principals: The list of principals. Principals []*Principal `json:"principals,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RbacPolicy) MarshalJSON ¶ added in v0.2.0
func (s *RbacPolicy) MarshalJSON() ([]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: // - 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` // Status: [Output Only] Status of the region, either UP or DOWN. // // Possible values: // "DOWN" // "UP" Status string `json:"status,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. (== resource_for beta.regions ==) (== resource_for v1.regions ==)
func (*Region) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionAutoscalersDeleteCall) Do ¶
func (c *RegionAutoscalersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionAutoscalers.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionAutoscalersDeleteCall) Header ¶
func (c *RegionAutoscalersDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionAutoscalersGetCall) Do ¶
func (c *RegionAutoscalersGetCall) Do(opts ...googleapi.CallOption) (*Autoscaler, error)
Do executes the "compute.regionAutoscalers.get" call. Exactly one of *Autoscaler or error will be non-nil. 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 information.
func (*RegionAutoscalersGetCall) Header ¶
func (c *RegionAutoscalersGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionAutoscalersGetCall) IfNoneMatch ¶
func (c *RegionAutoscalersGetCall) IfNoneMatch(entityTag string) *RegionAutoscalersGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionAutoscalersInsertCall) Do ¶
func (c *RegionAutoscalersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionAutoscalers.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionAutoscalersInsertCall) Header ¶
func (c *RegionAutoscalersInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionAutoscalersListCall) Do ¶
func (c *RegionAutoscalersListCall) Do(opts ...googleapi.CallOption) (*RegionAutoscalerList, error)
Do executes the "compute.regionAutoscalers.list" call. Exactly one of *RegionAutoscalerList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionAutoscalersListCall) Header ¶
func (c *RegionAutoscalersListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionAutoscalersListCall) IfNoneMatch ¶
func (c *RegionAutoscalersListCall) IfNoneMatch(entityTag string) *RegionAutoscalersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionAutoscalersPatchCall) Do ¶
func (c *RegionAutoscalersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionAutoscalers.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionAutoscalersPatchCall) Header ¶
func (c *RegionAutoscalersPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. (== suppress_warning http-rest-shadowed ==)
func (*RegionAutoscalersService) Get ¶
func (r *RegionAutoscalersService) Get(project string, region string, autoscaler string) *RegionAutoscalersGetCall
Get: Returns the specified autoscaler. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionAutoscalersService) List ¶
func (r *RegionAutoscalersService) List(project string, region string) *RegionAutoscalersListCall
List: Retrieves a list of autoscalers contained within the specified region. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionAutoscalersService) TestIamPermissions ¶
func (r *RegionAutoscalersService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionAutoscalersTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
type RegionAutoscalersTestIamPermissionsCall ¶
type RegionAutoscalersTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionAutoscalersTestIamPermissionsCall) Context ¶
func (c *RegionAutoscalersTestIamPermissionsCall) Context(ctx context.Context) *RegionAutoscalersTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionAutoscalersTestIamPermissionsCall) Do ¶
func (c *RegionAutoscalersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionAutoscalers.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*RegionAutoscalersTestIamPermissionsCall) Fields ¶
func (c *RegionAutoscalersTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionAutoscalersTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionAutoscalersTestIamPermissionsCall) Header ¶
func (c *RegionAutoscalersTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionAutoscalersUpdateCall) Do ¶
func (c *RegionAutoscalersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionAutoscalers.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionAutoscalersUpdateCall) Header ¶
func (c *RegionAutoscalersUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionBackendServicesDeleteCall) Do ¶
func (c *RegionBackendServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionBackendServices.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionBackendServicesDeleteCall) Header ¶
func (c *RegionBackendServicesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionBackendServicesGetCall) Do ¶
func (c *RegionBackendServicesGetCall) Do(opts ...googleapi.CallOption) (*BackendService, error)
Do executes the "compute.regionBackendServices.get" call. Exactly one of *BackendService or error will be non-nil. 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 information.
func (*RegionBackendServicesGetCall) Header ¶
func (c *RegionBackendServicesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionBackendServicesGetCall) IfNoneMatch ¶
func (c *RegionBackendServicesGetCall) IfNoneMatch(entityTag string) *RegionBackendServicesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionBackendServicesGetHealthCall) Do ¶
func (c *RegionBackendServicesGetHealthCall) Do(opts ...googleapi.CallOption) (*BackendServiceGroupHealth, error)
Do executes the "compute.regionBackendServices.getHealth" call. Exactly one of *BackendServiceGroupHealth or error will be non-nil. 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 information.
func (*RegionBackendServicesGetHealthCall) Header ¶
func (c *RegionBackendServicesGetHealthCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionBackendServicesInsertCall) Do ¶
func (c *RegionBackendServicesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionBackendServices.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionBackendServicesInsertCall) Header ¶
func (c *RegionBackendServicesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionBackendServicesListCall) Do ¶
func (c *RegionBackendServicesListCall) Do(opts ...googleapi.CallOption) (*BackendServiceList, error)
Do executes the "compute.regionBackendServices.list" call. Exactly one of *BackendServiceList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionBackendServicesListCall) Header ¶
func (c *RegionBackendServicesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionBackendServicesListCall) IfNoneMatch ¶
func (c *RegionBackendServicesListCall) IfNoneMatch(entityTag string) *RegionBackendServicesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionBackendServicesPatchCall) Do ¶
func (c *RegionBackendServicesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionBackendServices.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionBackendServicesPatchCall) Header ¶
func (c *RegionBackendServicesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. (== suppress_warning http-rest-shadowed ==)
func (*RegionBackendServicesService) Get ¶
func (r *RegionBackendServicesService) Get(project string, region string, backendService string) *RegionBackendServicesGetCall
Get: Returns the specified regional BackendService resource. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. There are several restrictions and guidelines to keep in mind when creating a regional backend service. Read Restrictions and Guidelines for more information. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. (== suppress_warning http-rest-shadowed ==)
func (*RegionBackendServicesService) TestIamPermissions ¶
func (r *RegionBackendServicesService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionBackendServicesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information. (== suppress_warning http-rest-shadowed ==)
type RegionBackendServicesTestIamPermissionsCall ¶
type RegionBackendServicesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionBackendServicesTestIamPermissionsCall) Context ¶
func (c *RegionBackendServicesTestIamPermissionsCall) Context(ctx context.Context) *RegionBackendServicesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionBackendServicesTestIamPermissionsCall) Do ¶
func (c *RegionBackendServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionBackendServices.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 ¶
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 information.
func (*RegionBackendServicesTestIamPermissionsCall) Header ¶
func (c *RegionBackendServicesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionBackendServicesUpdateCall) Do ¶
func (c *RegionBackendServicesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionBackendServices.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionBackendServicesUpdateCall) Header ¶
func (c *RegionBackendServicesUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionCommitmentsAggregatedListCall) Do ¶
func (c *RegionCommitmentsAggregatedListCall) Do(opts ...googleapi.CallOption) (*CommitmentAggregatedList, error)
Do executes the "compute.regionCommitments.aggregatedList" call. Exactly one of *CommitmentAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionCommitmentsAggregatedListCall) Header ¶
func (c *RegionCommitmentsAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionCommitmentsAggregatedListCall) IfNoneMatch ¶
func (c *RegionCommitmentsAggregatedListCall) IfNoneMatch(entityTag string) *RegionCommitmentsAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionCommitmentsGetCall) Do ¶
func (c *RegionCommitmentsGetCall) Do(opts ...googleapi.CallOption) (*Commitment, error)
Do executes the "compute.regionCommitments.get" call. Exactly one of *Commitment or error will be non-nil. 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 information.
func (*RegionCommitmentsGetCall) Header ¶
func (c *RegionCommitmentsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionCommitmentsGetCall) IfNoneMatch ¶
func (c *RegionCommitmentsGetCall) IfNoneMatch(entityTag string) *RegionCommitmentsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionCommitmentsInsertCall) Do ¶
func (c *RegionCommitmentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionCommitments.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionCommitmentsInsertCall) Header ¶
func (c *RegionCommitmentsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionCommitmentsListCall) Do ¶
func (c *RegionCommitmentsListCall) Do(opts ...googleapi.CallOption) (*CommitmentList, error)
Do executes the "compute.regionCommitments.list" call. Exactly one of *CommitmentList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionCommitmentsListCall) Header ¶
func (c *RegionCommitmentsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionCommitmentsListCall) IfNoneMatch ¶
func (c *RegionCommitmentsListCall) IfNoneMatch(entityTag string) *RegionCommitmentsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionCommitmentsService) Get ¶
func (r *RegionCommitmentsService) Get(project string, region string, commitment string) *RegionCommitmentsGetCall
Get: Returns the specified commitment resource. Gets a list of available commitments by making a list() request. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionCommitmentsService) List ¶
func (r *RegionCommitmentsService) List(project string, region string) *RegionCommitmentsListCall
List: Retrieves a list of commitments contained within the specified region. (== suppress_warning http-rest-shadowed ==)
func (*RegionCommitmentsService) TestIamPermissions ¶
func (r *RegionCommitmentsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionCommitmentsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
func (*RegionCommitmentsService) UpdateReservations ¶ added in v0.3.0
func (r *RegionCommitmentsService) UpdateReservations(project string, region string, commitment string, regioncommitmentsupdatereservationsrequest *RegionCommitmentsUpdateReservationsRequest) *RegionCommitmentsUpdateReservationsCall
UpdateReservations: Update the shape of reservations for GPUS/Local SSDs of reservations within the commitments. (== suppress_warning http-rest-shadowed ==)
type RegionCommitmentsTestIamPermissionsCall ¶
type RegionCommitmentsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionCommitmentsTestIamPermissionsCall) Context ¶
func (c *RegionCommitmentsTestIamPermissionsCall) Context(ctx context.Context) *RegionCommitmentsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionCommitmentsTestIamPermissionsCall) Do ¶
func (c *RegionCommitmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionCommitments.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*RegionCommitmentsTestIamPermissionsCall) Fields ¶
func (c *RegionCommitmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionCommitmentsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionCommitmentsTestIamPermissionsCall) Header ¶
func (c *RegionCommitmentsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RegionCommitmentsUpdateReservationsCall ¶ added in v0.3.0
type RegionCommitmentsUpdateReservationsCall struct {
// contains filtered or unexported fields
}
func (*RegionCommitmentsUpdateReservationsCall) Context ¶ added in v0.3.0
func (c *RegionCommitmentsUpdateReservationsCall) Context(ctx context.Context) *RegionCommitmentsUpdateReservationsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionCommitmentsUpdateReservationsCall) Do ¶ added in v0.3.0
func (c *RegionCommitmentsUpdateReservationsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionCommitments.updateReservations" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionCommitmentsUpdateReservationsCall) Fields ¶ added in v0.3.0
func (c *RegionCommitmentsUpdateReservationsCall) Fields(s ...googleapi.Field) *RegionCommitmentsUpdateReservationsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionCommitmentsUpdateReservationsCall) Header ¶ added in v0.3.0
func (c *RegionCommitmentsUpdateReservationsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionCommitmentsUpdateReservationsCall) RequestId ¶ added in v0.3.0
func (c *RegionCommitmentsUpdateReservationsCall) RequestId(requestId string) *RegionCommitmentsUpdateReservationsCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type RegionCommitmentsUpdateReservationsRequest ¶ added in v0.3.0
type RegionCommitmentsUpdateReservationsRequest struct { // Reservations: List of two reservations to transfer GPUs and local SSD // between. Reservations []*Reservation `json:"reservations,omitempty"` // ForceSendFields is a list of field names (e.g. "Reservations") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RegionCommitmentsUpdateReservationsRequest) MarshalJSON ¶ added in v0.3.0
func (s *RegionCommitmentsUpdateReservationsRequest) MarshalJSON() ([]byte, error)
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionDiskTypesGetCall) Do ¶
func (c *RegionDiskTypesGetCall) Do(opts ...googleapi.CallOption) (*DiskType, error)
Do executes the "compute.regionDiskTypes.get" call. Exactly one of *DiskType or error will be non-nil. 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 information.
func (*RegionDiskTypesGetCall) Header ¶
func (c *RegionDiskTypesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionDiskTypesGetCall) IfNoneMatch ¶
func (c *RegionDiskTypesGetCall) IfNoneMatch(entityTag string) *RegionDiskTypesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionDiskTypesListCall) Do ¶
func (c *RegionDiskTypesListCall) Do(opts ...googleapi.CallOption) (*RegionDiskTypeList, error)
Do executes the "compute.regionDiskTypes.list" call. Exactly one of *RegionDiskTypeList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionDiskTypesListCall) Header ¶
func (c *RegionDiskTypesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionDiskTypesListCall) IfNoneMatch ¶
func (c *RegionDiskTypesListCall) IfNoneMatch(entityTag string) *RegionDiskTypesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Gets a list of available disk types by making a list() request. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
type RegionDisksAddResourcePoliciesCall ¶
type RegionDisksAddResourcePoliciesCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksAddResourcePoliciesCall) Context ¶
func (c *RegionDisksAddResourcePoliciesCall) Context(ctx context.Context) *RegionDisksAddResourcePoliciesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionDisksAddResourcePoliciesCall) Do ¶
func (c *RegionDisksAddResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.addResourcePolicies" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionDisksAddResourcePoliciesCall) Header ¶
func (c *RegionDisksAddResourcePoliciesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionDisksAddResourcePoliciesCall) RequestId ¶
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 ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*RegionDisksAddResourcePoliciesRequest) MarshalJSON ¶
func (s *RegionDisksAddResourcePoliciesRequest) MarshalJSON() ([]byte, error)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionDisksCreateSnapshotCall) Do ¶
func (c *RegionDisksCreateSnapshotCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.createSnapshot" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionDisksCreateSnapshotCall) GuestFlush ¶
func (c *RegionDisksCreateSnapshotCall) GuestFlush(guestFlush bool) *RegionDisksCreateSnapshotCall
GuestFlush sets the optional parameter "guestFlush": [Input Only] Specifies to create an application consistent snapshot by informing the OS to prepare for the snapshot process. Currently only supported on Windows instances using the Volume Shadow Copy Service (VSS).
func (*RegionDisksCreateSnapshotCall) Header ¶
func (c *RegionDisksCreateSnapshotCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionDisksDeleteCall) Do ¶
func (c *RegionDisksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionDisksDeleteCall) Header ¶
func (c *RegionDisksDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionDisksGetCall) Do ¶
func (c *RegionDisksGetCall) Do(opts ...googleapi.CallOption) (*Disk, error)
Do executes the "compute.regionDisks.get" call. Exactly one of *Disk or error will be non-nil. 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 information.
func (*RegionDisksGetCall) Header ¶
func (c *RegionDisksGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionDisksGetCall) IfNoneMatch ¶
func (c *RegionDisksGetCall) IfNoneMatch(entityTag string) *RegionDisksGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type RegionDisksGetIamPolicyCall ¶ added in v0.2.0
type RegionDisksGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksGetIamPolicyCall) Context ¶ added in v0.2.0
func (c *RegionDisksGetIamPolicyCall) Context(ctx context.Context) *RegionDisksGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionDisksGetIamPolicyCall) Do ¶ added in v0.2.0
func (c *RegionDisksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.regionDisks.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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.2.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 information.
func (*RegionDisksGetIamPolicyCall) Header ¶ added in v0.2.0
func (c *RegionDisksGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionDisksGetIamPolicyCall) IfNoneMatch ¶ added in v0.2.0
func (c *RegionDisksGetIamPolicyCall) IfNoneMatch(entityTag string) *RegionDisksGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*RegionDisksGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionDisksInsertCall) Do ¶
func (c *RegionDisksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionDisksInsertCall) Header ¶
func (c *RegionDisksInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionDisksListCall) Do ¶
func (c *RegionDisksListCall) Do(opts ...googleapi.CallOption) (*DiskList, error)
Do executes the "compute.regionDisks.list" call. Exactly one of *DiskList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionDisksListCall) Header ¶
func (c *RegionDisksListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionDisksListCall) IfNoneMatch ¶
func (c *RegionDisksListCall) IfNoneMatch(entityTag string) *RegionDisksListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
type RegionDisksRemoveResourcePoliciesCall ¶
type RegionDisksRemoveResourcePoliciesCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksRemoveResourcePoliciesCall) Context ¶
func (c *RegionDisksRemoveResourcePoliciesCall) Context(ctx context.Context) *RegionDisksRemoveResourcePoliciesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionDisksRemoveResourcePoliciesCall) Do ¶
func (c *RegionDisksRemoveResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.removeResourcePolicies" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionDisksRemoveResourcePoliciesCall) Header ¶
func (c *RegionDisksRemoveResourcePoliciesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionDisksRemoveResourcePoliciesCall) RequestId ¶
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 ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*RegionDisksRemoveResourcePoliciesRequest) MarshalJSON ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionDisksResizeCall) Do ¶
func (c *RegionDisksResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.resize" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionDisksResizeCall) Header ¶
func (c *RegionDisksResizeCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionDisksService) CreateSnapshot ¶
func (r *RegionDisksService) CreateSnapshot(project string, region string, disk string, snapshot *Snapshot) *RegionDisksCreateSnapshotCall
CreateSnapshot: Creates a snapshot of this regional disk. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionDisksService) Get ¶
func (r *RegionDisksService) Get(project string, region string, disk string) *RegionDisksGetCall
Get: Returns a specified regional persistent disk. (== suppress_warning http-rest-shadowed ==)
func (*RegionDisksService) GetIamPolicy ¶ added in v0.2.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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionDisksService) List ¶
func (r *RegionDisksService) List(project string, region string) *RegionDisksListCall
List: Retrieves the list of persistent disks contained within the specified region. (== suppress_warning http-rest-shadowed ==)
func (*RegionDisksService) RemoveResourcePolicies ¶
func (r *RegionDisksService) RemoveResourcePolicies(project string, region string, disk string, regiondisksremoveresourcepoliciesrequest *RegionDisksRemoveResourcePoliciesRequest) *RegionDisksRemoveResourcePoliciesCall
RemoveResourcePolicies: Removes resource policies from a regional disk. (== suppress_warning http-rest-shadowed ==)
func (*RegionDisksService) Resize ¶
func (r *RegionDisksService) Resize(project string, region string, disk string, regiondisksresizerequest *RegionDisksResizeRequest) *RegionDisksResizeCall
Resize: Resizes the specified regional persistent disk. (== suppress_warning http-rest-shadowed ==)
func (*RegionDisksService) SetIamPolicy ¶ added in v0.2.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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
type RegionDisksSetIamPolicyCall ¶ added in v0.2.0
type RegionDisksSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*RegionDisksSetIamPolicyCall) Context ¶ added in v0.2.0
func (c *RegionDisksSetIamPolicyCall) Context(ctx context.Context) *RegionDisksSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionDisksSetIamPolicyCall) Do ¶ added in v0.2.0
func (c *RegionDisksSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.regionDisks.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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.2.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 information.
func (*RegionDisksSetIamPolicyCall) Header ¶ added in v0.2.0
func (c *RegionDisksSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionDisksSetLabelsCall) Do ¶
func (c *RegionDisksSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionDisks.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionDisksSetLabelsCall) Header ¶
func (c *RegionDisksSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionDisksTestIamPermissionsCall) Do ¶
func (c *RegionDisksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionDisks.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 information.
func (*RegionDisksTestIamPermissionsCall) Header ¶
func (c *RegionDisksTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RegionHealthCheckServicesDeleteCall ¶ added in v0.2.0
type RegionHealthCheckServicesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthCheckServicesDeleteCall) Context ¶ added in v0.2.0
func (c *RegionHealthCheckServicesDeleteCall) Context(ctx context.Context) *RegionHealthCheckServicesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionHealthCheckServicesDeleteCall) Do ¶ added in v0.2.0
func (c *RegionHealthCheckServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionHealthCheckServices.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.2.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 information.
func (*RegionHealthCheckServicesDeleteCall) Header ¶ added in v0.2.0
func (c *RegionHealthCheckServicesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionHealthCheckServicesDeleteCall) RequestId ¶ added in v0.2.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.2.0
type RegionHealthCheckServicesGetCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthCheckServicesGetCall) Context ¶ added in v0.2.0
func (c *RegionHealthCheckServicesGetCall) Context(ctx context.Context) *RegionHealthCheckServicesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionHealthCheckServicesGetCall) Do ¶ added in v0.2.0
func (c *RegionHealthCheckServicesGetCall) Do(opts ...googleapi.CallOption) (*HealthCheckService, error)
Do executes the "compute.regionHealthCheckServices.get" call. Exactly one of *HealthCheckService or error will be non-nil. 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.2.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 information.
func (*RegionHealthCheckServicesGetCall) Header ¶ added in v0.2.0
func (c *RegionHealthCheckServicesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionHealthCheckServicesGetCall) IfNoneMatch ¶ added in v0.2.0
func (c *RegionHealthCheckServicesGetCall) IfNoneMatch(entityTag string) *RegionHealthCheckServicesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type RegionHealthCheckServicesInsertCall ¶ added in v0.2.0
type RegionHealthCheckServicesInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthCheckServicesInsertCall) Context ¶ added in v0.2.0
func (c *RegionHealthCheckServicesInsertCall) Context(ctx context.Context) *RegionHealthCheckServicesInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionHealthCheckServicesInsertCall) Do ¶ added in v0.2.0
func (c *RegionHealthCheckServicesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionHealthCheckServices.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.2.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 information.
func (*RegionHealthCheckServicesInsertCall) Header ¶ added in v0.2.0
func (c *RegionHealthCheckServicesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionHealthCheckServicesInsertCall) RequestId ¶ added in v0.2.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.2.0
type RegionHealthCheckServicesListCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthCheckServicesListCall) Context ¶ added in v0.2.0
func (c *RegionHealthCheckServicesListCall) Context(ctx context.Context) *RegionHealthCheckServicesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionHealthCheckServicesListCall) Do ¶ added in v0.2.0
func (c *RegionHealthCheckServicesListCall) Do(opts ...googleapi.CallOption) (*HealthCheckServicesList, error)
Do executes the "compute.regionHealthCheckServices.list" call. Exactly one of *HealthCheckServicesList or error will be non-nil. 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.2.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 information.
func (*RegionHealthCheckServicesListCall) Filter ¶ added in v0.2.0
func (c *RegionHealthCheckServicesListCall) Filter(filter string) *RegionHealthCheckServicesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionHealthCheckServicesListCall) Header ¶ added in v0.2.0
func (c *RegionHealthCheckServicesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionHealthCheckServicesListCall) IfNoneMatch ¶ added in v0.2.0
func (c *RegionHealthCheckServicesListCall) IfNoneMatch(entityTag string) *RegionHealthCheckServicesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*RegionHealthCheckServicesListCall) MaxResults ¶ added in v0.2.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.2.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.2.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.2.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.
type RegionHealthCheckServicesService ¶ added in v0.2.0
type RegionHealthCheckServicesService struct {
// contains filtered or unexported fields
}
func NewRegionHealthCheckServicesService ¶ added in v0.2.0
func NewRegionHealthCheckServicesService(s *Service) *RegionHealthCheckServicesService
func (*RegionHealthCheckServicesService) Delete ¶ added in v0.2.0
func (r *RegionHealthCheckServicesService) Delete(project string, region string, healthCheckService string) *RegionHealthCheckServicesDeleteCall
Delete: Deletes the specified regional HealthCheckService. (== suppress_warning http-rest-shadowed ==)
func (*RegionHealthCheckServicesService) Get ¶ added in v0.2.0
func (r *RegionHealthCheckServicesService) Get(project string, region string, healthCheckService string) *RegionHealthCheckServicesGetCall
Get: Returns the specified regional HealthCheckService resource. (== suppress_warning http-rest-shadowed ==)
func (*RegionHealthCheckServicesService) Insert ¶ added in v0.2.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. (== suppress_warning http-rest-shadowed ==)
func (*RegionHealthCheckServicesService) List ¶ added in v0.2.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. (== suppress_warning http-rest-shadowed ==)
func (*RegionHealthCheckServicesService) TestIamPermissions ¶ added in v0.2.0
func (r *RegionHealthCheckServicesService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionHealthCheckServicesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type RegionHealthCheckServicesTestIamPermissionsCall ¶ added in v0.2.0
type RegionHealthCheckServicesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthCheckServicesTestIamPermissionsCall) Context ¶ added in v0.2.0
func (c *RegionHealthCheckServicesTestIamPermissionsCall) Context(ctx context.Context) *RegionHealthCheckServicesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionHealthCheckServicesTestIamPermissionsCall) Do ¶ added in v0.2.0
func (c *RegionHealthCheckServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionHealthCheckServices.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*RegionHealthCheckServicesTestIamPermissionsCall) Fields ¶ added in v0.2.0
func (c *RegionHealthCheckServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionHealthCheckServicesTestIamPermissionsCall) Header ¶ added in v0.2.0
func (c *RegionHealthCheckServicesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RegionHealthChecksDeleteCall ¶
type RegionHealthChecksDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthChecksDeleteCall) Context ¶
func (c *RegionHealthChecksDeleteCall) Context(ctx context.Context) *RegionHealthChecksDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionHealthChecksDeleteCall) Do ¶
func (c *RegionHealthChecksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionHealthChecks.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionHealthChecksDeleteCall) Header ¶
func (c *RegionHealthChecksDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionHealthChecksDeleteCall) RequestId ¶
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 ¶
type RegionHealthChecksGetCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthChecksGetCall) Context ¶
func (c *RegionHealthChecksGetCall) Context(ctx context.Context) *RegionHealthChecksGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionHealthChecksGetCall) Do ¶
func (c *RegionHealthChecksGetCall) Do(opts ...googleapi.CallOption) (*HealthCheck, error)
Do executes the "compute.regionHealthChecks.get" call. Exactly one of *HealthCheck or error will be non-nil. 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 ¶
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 information.
func (*RegionHealthChecksGetCall) Header ¶
func (c *RegionHealthChecksGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionHealthChecksGetCall) IfNoneMatch ¶
func (c *RegionHealthChecksGetCall) IfNoneMatch(entityTag string) *RegionHealthChecksGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type RegionHealthChecksInsertCall ¶
type RegionHealthChecksInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthChecksInsertCall) Context ¶
func (c *RegionHealthChecksInsertCall) Context(ctx context.Context) *RegionHealthChecksInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionHealthChecksInsertCall) Do ¶
func (c *RegionHealthChecksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionHealthChecks.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionHealthChecksInsertCall) Header ¶
func (c *RegionHealthChecksInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionHealthChecksInsertCall) RequestId ¶
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 ¶
type RegionHealthChecksListCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthChecksListCall) Context ¶
func (c *RegionHealthChecksListCall) Context(ctx context.Context) *RegionHealthChecksListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionHealthChecksListCall) Do ¶
func (c *RegionHealthChecksListCall) Do(opts ...googleapi.CallOption) (*HealthCheckList, error)
Do executes the "compute.regionHealthChecks.list" call. Exactly one of *HealthCheckList or error will be non-nil. 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 ¶
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 information.
func (*RegionHealthChecksListCall) Filter ¶
func (c *RegionHealthChecksListCall) Filter(filter string) *RegionHealthChecksListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionHealthChecksListCall) Header ¶
func (c *RegionHealthChecksListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionHealthChecksListCall) IfNoneMatch ¶
func (c *RegionHealthChecksListCall) IfNoneMatch(entityTag string) *RegionHealthChecksListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*RegionHealthChecksListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type RegionHealthChecksPatchCall ¶
type RegionHealthChecksPatchCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthChecksPatchCall) Context ¶
func (c *RegionHealthChecksPatchCall) Context(ctx context.Context) *RegionHealthChecksPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionHealthChecksPatchCall) Do ¶
func (c *RegionHealthChecksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionHealthChecks.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionHealthChecksPatchCall) Header ¶
func (c *RegionHealthChecksPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionHealthChecksPatchCall) RequestId ¶
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 ¶
type RegionHealthChecksService struct {
// contains filtered or unexported fields
}
func NewRegionHealthChecksService ¶
func NewRegionHealthChecksService(s *Service) *RegionHealthChecksService
func (*RegionHealthChecksService) Delete ¶
func (r *RegionHealthChecksService) Delete(project string, region string, healthCheck string) *RegionHealthChecksDeleteCall
Delete: Deletes the specified HealthCheck resource. (== suppress_warning http-rest-shadowed ==)
func (*RegionHealthChecksService) Get ¶
func (r *RegionHealthChecksService) Get(project string, region string, healthCheck string) *RegionHealthChecksGetCall
Get: Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request. (== suppress_warning http-rest-shadowed ==)
func (*RegionHealthChecksService) Insert ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionHealthChecksService) List ¶
func (r *RegionHealthChecksService) List(project string, region string) *RegionHealthChecksListCall
List: Retrieves the list of HealthCheck resources available to the specified project. (== suppress_warning http-rest-shadowed ==)
func (*RegionHealthChecksService) Patch ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionHealthChecksService) TestIamPermissions ¶
func (r *RegionHealthChecksService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionHealthChecksTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
func (*RegionHealthChecksService) Update ¶
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. (== suppress_warning http-rest-shadowed ==)
type RegionHealthChecksTestIamPermissionsCall ¶
type RegionHealthChecksTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthChecksTestIamPermissionsCall) Context ¶
func (c *RegionHealthChecksTestIamPermissionsCall) Context(ctx context.Context) *RegionHealthChecksTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionHealthChecksTestIamPermissionsCall) Do ¶
func (c *RegionHealthChecksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionHealthChecks.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*RegionHealthChecksTestIamPermissionsCall) Fields ¶
func (c *RegionHealthChecksTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionHealthChecksTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionHealthChecksTestIamPermissionsCall) Header ¶
func (c *RegionHealthChecksTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RegionHealthChecksUpdateCall ¶
type RegionHealthChecksUpdateCall struct {
// contains filtered or unexported fields
}
func (*RegionHealthChecksUpdateCall) Context ¶
func (c *RegionHealthChecksUpdateCall) Context(ctx context.Context) *RegionHealthChecksUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionHealthChecksUpdateCall) Do ¶
func (c *RegionHealthChecksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionHealthChecks.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionHealthChecksUpdateCall) Header ¶
func (c *RegionHealthChecksUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionHealthChecksUpdateCall) RequestId ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RegionInstanceGroupListWarningData) MarshalJSON ¶
func (s *RegionInstanceGroupListWarningData) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagerDeleteInstanceConfigReq ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RegionInstanceGroupManagerDeleteInstanceConfigReq: RegionInstanceGroupManagers.deletePerInstanceConfigs
func (*RegionInstanceGroupManagerDeleteInstanceConfigReq) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RegionInstanceGroupManagerListWarningData) MarshalJSON ¶
func (s *RegionInstanceGroupManagerListWarningData) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagerPatchInstanceConfigReq ¶ added in v0.3.0
type RegionInstanceGroupManagerPatchInstanceConfigReq struct { // PerInstanceConfigs: The list of per-instance configs 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
RegionInstanceGroupManagerPatchInstanceConfigReq: RegionInstanceGroupManagers.patchPerInstanceConfigs
func (*RegionInstanceGroupManagerPatchInstanceConfigReq) MarshalJSON ¶ added in v0.3.0
func (s *RegionInstanceGroupManagerPatchInstanceConfigReq) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagerUpdateInstanceConfigReq ¶
type RegionInstanceGroupManagerUpdateInstanceConfigReq struct { // PerInstanceConfigs: The list of per-instance configs 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
RegionInstanceGroupManagerUpdateInstanceConfigReq: RegionInstanceGroupManagers.updatePerInstanceConfigs
func (*RegionInstanceGroupManagerUpdateInstanceConfigReq) MarshalJSON ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersAbandonInstancesCall) Do ¶
func (c *RegionInstanceGroupManagersAbandonInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.abandonInstances" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionInstanceGroupManagersAbandonInstancesCall) Header ¶
func (c *RegionInstanceGroupManagersAbandonInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RegionInstanceGroupManagersAbandonInstancesRequest) MarshalJSON ¶
func (s *RegionInstanceGroupManagersAbandonInstancesRequest) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersApplyUpdatesRequest ¶
type RegionInstanceGroupManagersApplyUpdatesRequest struct { // 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"` // MaximalAction: The maximal action that should be performed on the // instances. By default REPLACE. This field is deprecated, please use // most_disruptive_allowed_action. // // Possible values: // "NONE" // "REFRESH" // "REPLACE" // "RESTART" MaximalAction string `json:"maximalAction,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. // - 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" // "REFRESH" // "REPLACE" // "RESTART" 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. // - 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" // "REFRESH" // "REPLACE" // "RESTART" MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` // ForceSendFields is a list of field names (e.g. "Instances") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RegionInstanceGroupManagersApplyUpdatesRequest: InstanceGroupManagers.applyUpdatesToInstances
func (*RegionInstanceGroupManagersApplyUpdatesRequest) MarshalJSON ¶
func (s *RegionInstanceGroupManagersApplyUpdatesRequest) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersApplyUpdatesToInstancesCall ¶
type RegionInstanceGroupManagersApplyUpdatesToInstancesCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Context ¶
func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Context(ctx context.Context) *RegionInstanceGroupManagersApplyUpdatesToInstancesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Do ¶
func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.applyUpdatesToInstances" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Header ¶
func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RegionInstanceGroupManagersCreateInstancesCall ¶ added in v0.2.0
type RegionInstanceGroupManagersCreateInstancesCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersCreateInstancesCall) Context ¶ added in v0.2.0
func (c *RegionInstanceGroupManagersCreateInstancesCall) Context(ctx context.Context) *RegionInstanceGroupManagersCreateInstancesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersCreateInstancesCall) Do ¶ added in v0.2.0
func (c *RegionInstanceGroupManagersCreateInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.createInstances" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.2.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 information.
func (*RegionInstanceGroupManagersCreateInstancesCall) Header ¶ added in v0.2.0
func (c *RegionInstanceGroupManagersCreateInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionInstanceGroupManagersCreateInstancesCall) RequestId ¶ added in v0.2.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.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RegionInstanceGroupManagersCreateInstancesRequest: RegionInstanceGroupManagers.createInstances
func (*RegionInstanceGroupManagersCreateInstancesRequest) MarshalJSON ¶ added in v0.2.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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersDeleteCall) Do ¶
func (c *RegionInstanceGroupManagersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionInstanceGroupManagersDeleteCall) Header ¶
func (c *RegionInstanceGroupManagersDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersDeleteInstancesCall) Do ¶
func (c *RegionInstanceGroupManagersDeleteInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.deleteInstances" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionInstanceGroupManagersDeleteInstancesCall) Header ¶
func (c *RegionInstanceGroupManagersDeleteInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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"` // ForceSendFields is a list of field names (e.g. "Instances") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RegionInstanceGroupManagersDeleteInstancesRequest) MarshalJSON ¶
func (s *RegionInstanceGroupManagersDeleteInstancesRequest) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersDeletePerInstanceConfigsCall ¶
type RegionInstanceGroupManagersDeletePerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Context ¶
func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Context(ctx context.Context) *RegionInstanceGroupManagersDeletePerInstanceConfigsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Do ¶
func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.deletePerInstanceConfigs" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Header ¶
func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersGetCall) Do ¶
func (c *RegionInstanceGroupManagersGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManager, error)
Do executes the "compute.regionInstanceGroupManagers.get" call. Exactly one of *InstanceGroupManager or error will be non-nil. 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 information.
func (*RegionInstanceGroupManagersGetCall) Header ¶
func (c *RegionInstanceGroupManagersGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionInstanceGroupManagersGetCall) IfNoneMatch ¶
func (c *RegionInstanceGroupManagersGetCall) IfNoneMatch(entityTag string) *RegionInstanceGroupManagersGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersInsertCall) Do ¶
func (c *RegionInstanceGroupManagersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionInstanceGroupManagersInsertCall) Header ¶
func (c *RegionInstanceGroupManagersInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersListCall) Do ¶
func (c *RegionInstanceGroupManagersListCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupManagerList, error)
Do executes the "compute.regionInstanceGroupManagers.list" call. Exactly one of *RegionInstanceGroupManagerList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionInstanceGroupManagersListCall) Header ¶
func (c *RegionInstanceGroupManagersListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionInstanceGroupManagersListCall) IfNoneMatch ¶
func (c *RegionInstanceGroupManagersListCall) IfNoneMatch(entityTag string) *RegionInstanceGroupManagersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
type RegionInstanceGroupManagersListErrorsCall ¶ added in v0.7.0
type RegionInstanceGroupManagersListErrorsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersListErrorsCall) Context ¶ added in v0.7.0
func (c *RegionInstanceGroupManagersListErrorsCall) Context(ctx context.Context) *RegionInstanceGroupManagersListErrorsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersListErrorsCall) Do ¶ added in v0.7.0
func (c *RegionInstanceGroupManagersListErrorsCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupManagersListErrorsResponse, error)
Do executes the "compute.regionInstanceGroupManagers.listErrors" call. Exactly one of *RegionInstanceGroupManagersListErrorsResponse or error will be non-nil. 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.7.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 information.
func (*RegionInstanceGroupManagersListErrorsCall) Filter ¶ added in v0.7.0
func (c *RegionInstanceGroupManagersListErrorsCall) Filter(filter string) *RegionInstanceGroupManagersListErrorsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionInstanceGroupManagersListErrorsCall) Header ¶ added in v0.7.0
func (c *RegionInstanceGroupManagersListErrorsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionInstanceGroupManagersListErrorsCall) IfNoneMatch ¶ added in v0.7.0
func (c *RegionInstanceGroupManagersListErrorsCall) IfNoneMatch(entityTag string) *RegionInstanceGroupManagersListErrorsCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*RegionInstanceGroupManagersListErrorsCall) MaxResults ¶ added in v0.7.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.7.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.7.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.7.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.
type RegionInstanceGroupManagersListErrorsResponse ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RegionInstanceGroupManagersListErrorsResponse) MarshalJSON ¶ added in v0.7.0
func (s *RegionInstanceGroupManagersListErrorsResponse) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersListInstanceConfigsResp ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RegionInstanceGroupManagersListInstanceConfigsResp) MarshalJSON ¶
func (s *RegionInstanceGroupManagersListInstanceConfigsResp) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersListInstanceConfigsRespWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RegionInstanceGroupManagersListInstanceConfigsRespWarning: [Output Only] Informational warning message.
func (*RegionInstanceGroupManagersListInstanceConfigsRespWarning) MarshalJSON ¶
func (s *RegionInstanceGroupManagersListInstanceConfigsRespWarning) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersListInstanceConfigsRespWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RegionInstanceGroupManagersListInstanceConfigsRespWarningData) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersListManagedInstancesCall) Do ¶
func (c *RegionInstanceGroupManagersListManagedInstancesCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupManagersListInstancesResponse, error)
Do executes the "compute.regionInstanceGroupManagers.listManagedInstances" call. Exactly one of *RegionInstanceGroupManagersListInstancesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RegionInstanceGroupManagersListInstancesResponse.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 (*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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionInstanceGroupManagersListManagedInstancesCall) Header ¶
func (c *RegionInstanceGroupManagersListManagedInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 "order_by": 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 ¶
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.
type RegionInstanceGroupManagersListPerInstanceConfigsCall ¶
type RegionInstanceGroupManagersListPerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersListPerInstanceConfigsCall) Context ¶
func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Context(ctx context.Context) *RegionInstanceGroupManagersListPerInstanceConfigsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersListPerInstanceConfigsCall) Do ¶
func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupManagersListInstanceConfigsResp, error)
Do executes the "compute.regionInstanceGroupManagers.listPerInstanceConfigs" call. Exactly one of *RegionInstanceGroupManagersListInstanceConfigsResp or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RegionInstanceGroupManagersListInstanceConfigsResp.ServerResponse.Hea der or (if a response was 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 ¶
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 information.
func (*RegionInstanceGroupManagersListPerInstanceConfigsCall) Filter ¶
func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Filter(filter string) *RegionInstanceGroupManagersListPerInstanceConfigsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionInstanceGroupManagersListPerInstanceConfigsCall) Header ¶
func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionInstanceGroupManagersListPerInstanceConfigsCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersPatchCall) Do ¶
func (c *RegionInstanceGroupManagersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionInstanceGroupManagersPatchCall) Header ¶
func (c *RegionInstanceGroupManagersPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.3.0
type RegionInstanceGroupManagersPatchPerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Context ¶ added in v0.3.0
func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Context(ctx context.Context) *RegionInstanceGroupManagersPatchPerInstanceConfigsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Do ¶ added in v0.3.0
func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.patchPerInstanceConfigs" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.3.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 information.
func (*RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Header ¶ added in v0.3.0
func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionInstanceGroupManagersPatchPerInstanceConfigsCall) RequestId ¶ added in v0.3.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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersRecreateInstancesCall) Do ¶
func (c *RegionInstanceGroupManagersRecreateInstancesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.recreateInstances" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionInstanceGroupManagersRecreateInstancesCall) Header ¶
func (c *RegionInstanceGroupManagersRecreateInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersResizeCall) Do ¶
func (c *RegionInstanceGroupManagersResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.resize" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionInstanceGroupManagersResizeCall) Header ¶
func (c *RegionInstanceGroupManagersResizeCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. (== suppress_warning http-rest-shadowed ==)
func (*RegionInstanceGroupManagersService) ApplyUpdatesToInstances ¶
func (r *RegionInstanceGroupManagersService) ApplyUpdatesToInstances(project string, region string, instanceGroupManager string, regioninstancegroupmanagersapplyupdatesrequest *RegionInstanceGroupManagersApplyUpdatesRequest) *RegionInstanceGroupManagersApplyUpdatesToInstancesCall
ApplyUpdatesToInstances: Apply updates to selected instances the managed instance group. (== suppress_warning http-rest-shadowed ==)
func (*RegionInstanceGroupManagersService) CreateInstances ¶ added in v0.2.0
func (r *RegionInstanceGroupManagersService) CreateInstances(project string, region string, instanceGroupManager string, regioninstancegroupmanagerscreateinstancesrequest *RegionInstanceGroupManagersCreateInstancesRequest) *RegionInstanceGroupManagersCreateInstancesCall
CreateInstances: Creates instances with per-instance configs 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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionInstanceGroupManagersService) DeletePerInstanceConfigs ¶
func (r *RegionInstanceGroupManagersService) DeletePerInstanceConfigs(project string, region string, instanceGroupManager string, regioninstancegroupmanagerdeleteinstanceconfigreq *RegionInstanceGroupManagerDeleteInstanceConfigReq) *RegionInstanceGroupManagersDeletePerInstanceConfigsCall
DeletePerInstanceConfigs: Deletes selected per-instance configs for the managed instance group. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionInstanceGroupManagersService) ListErrors ¶ added in v0.7.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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionInstanceGroupManagersService) ListPerInstanceConfigs ¶
func (r *RegionInstanceGroupManagersService) ListPerInstanceConfigs(project string, region string, instanceGroupManager string) *RegionInstanceGroupManagersListPerInstanceConfigsCall
ListPerInstanceConfigs: Lists all of the per-instance configs defined for the managed instance group. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionInstanceGroupManagersService) PatchPerInstanceConfigs ¶ added in v0.3.0
func (r *RegionInstanceGroupManagersService) PatchPerInstanceConfigs(project string, region string, instanceGroupManager string, regioninstancegroupmanagerpatchinstanceconfigreq *RegionInstanceGroupManagerPatchInstanceConfigReq) *RegionInstanceGroupManagersPatchPerInstanceConfigsCall
PatchPerInstanceConfigs: Insert or patch (for the ones that already exist) per-instance configs for the managed instance group. perInstanceConfig.instance serves as a key used to distinguish whether to perform insert or patch. (== suppress_warning http-rest-shadowed ==)
func (*RegionInstanceGroupManagersService) RecreateInstances ¶
func (r *RegionInstanceGroupManagersService) RecreateInstances(project string, region string, instanceGroupManager string, regioninstancegroupmanagersrecreaterequest *RegionInstanceGroupManagersRecreateRequest) *RegionInstanceGroupManagersRecreateInstancesCall
RecreateInstances: Flags the specified instances in the managed instance group to be immediately recreated. The instances are deleted and recreated using the current instance template for the managed instance group. 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 the recreating 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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionInstanceGroupManagersService) SetAutoHealingPolicies ¶
func (r *RegionInstanceGroupManagersService) SetAutoHealingPolicies(project string, region string, instanceGroupManager string, regioninstancegroupmanagerssetautohealingrequest *RegionInstanceGroupManagersSetAutoHealingRequest) *RegionInstanceGroupManagersSetAutoHealingPoliciesCall
SetAutoHealingPolicies: Modifies the autohealing policy for the instances in this managed instance group. [Deprecated] This method is deprecated. Please use Patch instead. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionInstanceGroupManagersService) TestIamPermissions ¶
func (r *RegionInstanceGroupManagersService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionInstanceGroupManagersTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
func (*RegionInstanceGroupManagersService) Update ¶
func (r *RegionInstanceGroupManagersService) Update(project string, region string, instanceGroupManager string, instancegroupmanager *InstanceGroupManager) *RegionInstanceGroupManagersUpdateCall
Update: Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is updated even if the instances in the group have not yet been updated. You must separately verify the status of the individual instances with the listmanagedinstances method. (== suppress_warning http-rest-shadowed ==)
func (*RegionInstanceGroupManagersService) UpdatePerInstanceConfigs ¶
func (r *RegionInstanceGroupManagersService) UpdatePerInstanceConfigs(project string, region string, instanceGroupManager string, regioninstancegroupmanagerupdateinstanceconfigreq *RegionInstanceGroupManagerUpdateInstanceConfigReq) *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall
UpdatePerInstanceConfigs: Insert or update (for the ones that already exist) per-instance configs for the managed instance group. perInstanceConfig.instance serves as a key used to distinguish whether to perform insert or patch. (== suppress_warning http-rest-shadowed ==)
type RegionInstanceGroupManagersSetAutoHealingPoliciesCall ¶
type RegionInstanceGroupManagersSetAutoHealingPoliciesCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersSetAutoHealingPoliciesCall) Context ¶
func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) Context(ctx context.Context) *RegionInstanceGroupManagersSetAutoHealingPoliciesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersSetAutoHealingPoliciesCall) Do ¶
func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.setAutoHealingPolicies" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersSetAutoHealingPoliciesCall) Fields ¶
func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersSetAutoHealingPoliciesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionInstanceGroupManagersSetAutoHealingPoliciesCall) Header ¶
func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionInstanceGroupManagersSetAutoHealingPoliciesCall) RequestId ¶
func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) RequestId(requestId string) *RegionInstanceGroupManagersSetAutoHealingPoliciesCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupManagersSetAutoHealingRequest ¶
type RegionInstanceGroupManagersSetAutoHealingRequest struct { AutoHealingPolicies []*InstanceGroupManagerAutoHealingPolicy `json:"autoHealingPolicies,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoHealingPolicies") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AutoHealingPolicies") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*RegionInstanceGroupManagersSetAutoHealingRequest) MarshalJSON ¶
func (s *RegionInstanceGroupManagersSetAutoHealingRequest) MarshalJSON() ([]byte, error)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersSetInstanceTemplateCall) Do ¶
func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.setInstanceTemplate" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionInstanceGroupManagersSetInstanceTemplateCall) Header ¶
func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersSetTargetPoolsCall) Do ¶
func (c *RegionInstanceGroupManagersSetTargetPoolsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.setTargetPools" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionInstanceGroupManagersSetTargetPoolsCall) Header ¶
func (c *RegionInstanceGroupManagersSetTargetPoolsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*RegionInstanceGroupManagersSetTemplateRequest) MarshalJSON ¶
func (s *RegionInstanceGroupManagersSetTemplateRequest) MarshalJSON() ([]byte, error)
type RegionInstanceGroupManagersTestIamPermissionsCall ¶
type RegionInstanceGroupManagersTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersTestIamPermissionsCall) Context ¶
func (c *RegionInstanceGroupManagersTestIamPermissionsCall) Context(ctx context.Context) *RegionInstanceGroupManagersTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersTestIamPermissionsCall) Do ¶
func (c *RegionInstanceGroupManagersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionInstanceGroupManagers.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*RegionInstanceGroupManagersTestIamPermissionsCall) Fields ¶
func (c *RegionInstanceGroupManagersTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionInstanceGroupManagersTestIamPermissionsCall) Header ¶
func (c *RegionInstanceGroupManagersTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RegionInstanceGroupManagersUpdateCall ¶
type RegionInstanceGroupManagersUpdateCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersUpdateCall) Context ¶
func (c *RegionInstanceGroupManagersUpdateCall) Context(ctx context.Context) *RegionInstanceGroupManagersUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersUpdateCall) Do ¶
func (c *RegionInstanceGroupManagersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionInstanceGroupManagersUpdateCall) Fields ¶
func (c *RegionInstanceGroupManagersUpdateCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagersUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionInstanceGroupManagersUpdateCall) Header ¶
func (c *RegionInstanceGroupManagersUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionInstanceGroupManagersUpdateCall) RequestId ¶
func (c *RegionInstanceGroupManagersUpdateCall) RequestId(requestId string) *RegionInstanceGroupManagersUpdateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type RegionInstanceGroupManagersUpdatePerInstanceConfigsCall ¶
type RegionInstanceGroupManagersUpdatePerInstanceConfigsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Context ¶
func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Context(ctx context.Context) *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Do ¶
func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroupManagers.updatePerInstanceConfigs" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Header ¶
func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) RequestId ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupsGetCall) Do ¶
func (c *RegionInstanceGroupsGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroup, error)
Do executes the "compute.regionInstanceGroups.get" call. Exactly one of *InstanceGroup or error will be non-nil. 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 information.
func (*RegionInstanceGroupsGetCall) Header ¶
func (c *RegionInstanceGroupsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionInstanceGroupsGetCall) IfNoneMatch ¶
func (c *RegionInstanceGroupsGetCall) IfNoneMatch(entityTag string) *RegionInstanceGroupsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupsListCall) Do ¶
func (c *RegionInstanceGroupsListCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupList, error)
Do executes the "compute.regionInstanceGroups.list" call. Exactly one of *RegionInstanceGroupList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionInstanceGroupsListCall) Header ¶
func (c *RegionInstanceGroupsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionInstanceGroupsListCall) IfNoneMatch ¶
func (c *RegionInstanceGroupsListCall) IfNoneMatch(entityTag string) *RegionInstanceGroupsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupsListInstancesCall) Do ¶
func (c *RegionInstanceGroupsListInstancesCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupsListInstances, error)
Do executes the "compute.regionInstanceGroups.listInstances" call. Exactly one of *RegionInstanceGroupsListInstances or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionInstanceGroupsListInstancesCall) Header ¶
func (c *RegionInstanceGroupsListInstancesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
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" // "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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionInstanceGroupsService) TestIamPermissions ¶
func (r *RegionInstanceGroupsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionInstanceGroupsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupsSetNamedPortsCall) Do ¶
func (c *RegionInstanceGroupsSetNamedPortsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionInstanceGroups.setNamedPorts" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionInstanceGroupsSetNamedPortsCall) Header ¶
func (c *RegionInstanceGroupsSetNamedPortsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RegionInstanceGroupsSetNamedPortsRequest) MarshalJSON ¶
func (s *RegionInstanceGroupsSetNamedPortsRequest) MarshalJSON() ([]byte, error)
type RegionInstanceGroupsTestIamPermissionsCall ¶
type RegionInstanceGroupsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionInstanceGroupsTestIamPermissionsCall) Context ¶
func (c *RegionInstanceGroupsTestIamPermissionsCall) Context(ctx context.Context) *RegionInstanceGroupsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionInstanceGroupsTestIamPermissionsCall) Do ¶
func (c *RegionInstanceGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionInstanceGroups.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*RegionInstanceGroupsTestIamPermissionsCall) Fields ¶
func (c *RegionInstanceGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionInstanceGroupsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionInstanceGroupsTestIamPermissionsCall) Header ¶
func (c *RegionInstanceGroupsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RegionListWarningData) MarshalJSON ¶
func (s *RegionListWarningData) MarshalJSON() ([]byte, error)
type RegionNotificationEndpointsDeleteCall ¶ added in v0.2.0
type RegionNotificationEndpointsDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionNotificationEndpointsDeleteCall) Context ¶ added in v0.2.0
func (c *RegionNotificationEndpointsDeleteCall) Context(ctx context.Context) *RegionNotificationEndpointsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionNotificationEndpointsDeleteCall) Do ¶ added in v0.2.0
func (c *RegionNotificationEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNotificationEndpoints.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.2.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 information.
func (*RegionNotificationEndpointsDeleteCall) Header ¶ added in v0.2.0
func (c *RegionNotificationEndpointsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionNotificationEndpointsDeleteCall) RequestId ¶ added in v0.2.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.2.0
type RegionNotificationEndpointsGetCall struct {
// contains filtered or unexported fields
}
func (*RegionNotificationEndpointsGetCall) Context ¶ added in v0.2.0
func (c *RegionNotificationEndpointsGetCall) Context(ctx context.Context) *RegionNotificationEndpointsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionNotificationEndpointsGetCall) Do ¶ added in v0.2.0
func (c *RegionNotificationEndpointsGetCall) Do(opts ...googleapi.CallOption) (*NotificationEndpoint, error)
Do executes the "compute.regionNotificationEndpoints.get" call. Exactly one of *NotificationEndpoint or error will be non-nil. 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.2.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 information.
func (*RegionNotificationEndpointsGetCall) Header ¶ added in v0.2.0
func (c *RegionNotificationEndpointsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionNotificationEndpointsGetCall) IfNoneMatch ¶ added in v0.2.0
func (c *RegionNotificationEndpointsGetCall) IfNoneMatch(entityTag string) *RegionNotificationEndpointsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type RegionNotificationEndpointsInsertCall ¶ added in v0.2.0
type RegionNotificationEndpointsInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionNotificationEndpointsInsertCall) Context ¶ added in v0.2.0
func (c *RegionNotificationEndpointsInsertCall) Context(ctx context.Context) *RegionNotificationEndpointsInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionNotificationEndpointsInsertCall) Do ¶ added in v0.2.0
func (c *RegionNotificationEndpointsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionNotificationEndpoints.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.2.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 information.
func (*RegionNotificationEndpointsInsertCall) Header ¶ added in v0.2.0
func (c *RegionNotificationEndpointsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionNotificationEndpointsInsertCall) RequestId ¶ added in v0.2.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.2.0
type RegionNotificationEndpointsListCall struct {
// contains filtered or unexported fields
}
func (*RegionNotificationEndpointsListCall) Context ¶ added in v0.2.0
func (c *RegionNotificationEndpointsListCall) Context(ctx context.Context) *RegionNotificationEndpointsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionNotificationEndpointsListCall) Do ¶ added in v0.2.0
func (c *RegionNotificationEndpointsListCall) Do(opts ...googleapi.CallOption) (*NotificationEndpointList, error)
Do executes the "compute.regionNotificationEndpoints.list" call. Exactly one of *NotificationEndpointList or error will be non-nil. 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.2.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 information.
func (*RegionNotificationEndpointsListCall) Filter ¶ added in v0.2.0
func (c *RegionNotificationEndpointsListCall) Filter(filter string) *RegionNotificationEndpointsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionNotificationEndpointsListCall) Header ¶ added in v0.2.0
func (c *RegionNotificationEndpointsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionNotificationEndpointsListCall) IfNoneMatch ¶ added in v0.2.0
func (c *RegionNotificationEndpointsListCall) IfNoneMatch(entityTag string) *RegionNotificationEndpointsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*RegionNotificationEndpointsListCall) MaxResults ¶ added in v0.2.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.2.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.2.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.2.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.
type RegionNotificationEndpointsService ¶ added in v0.2.0
type RegionNotificationEndpointsService struct {
// contains filtered or unexported fields
}
func NewRegionNotificationEndpointsService ¶ added in v0.2.0
func NewRegionNotificationEndpointsService(s *Service) *RegionNotificationEndpointsService
func (*RegionNotificationEndpointsService) Delete ¶ added in v0.2.0
func (r *RegionNotificationEndpointsService) Delete(project string, region string, notificationEndpoint string) *RegionNotificationEndpointsDeleteCall
Delete: Deletes the specified NotificationEndpoint in the given region (== suppress_warning http-rest-shadowed ==)
func (*RegionNotificationEndpointsService) Get ¶ added in v0.2.0
func (r *RegionNotificationEndpointsService) Get(project string, region string, notificationEndpoint string) *RegionNotificationEndpointsGetCall
Get: Returns the specified NotificationEndpoint resource in the given region. (== suppress_warning http-rest-shadowed ==)
func (*RegionNotificationEndpointsService) Insert ¶ added in v0.2.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. (== suppress_warning http-rest-shadowed ==)
func (*RegionNotificationEndpointsService) List ¶ added in v0.2.0
func (r *RegionNotificationEndpointsService) List(project string, region string) *RegionNotificationEndpointsListCall
List: Lists the NotificationEndpoints for a project in the given region. (== suppress_warning http-rest-shadowed ==)
func (*RegionNotificationEndpointsService) TestIamPermissions ¶ added in v0.2.0
func (r *RegionNotificationEndpointsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionNotificationEndpointsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type RegionNotificationEndpointsTestIamPermissionsCall ¶ added in v0.2.0
type RegionNotificationEndpointsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionNotificationEndpointsTestIamPermissionsCall) Context ¶ added in v0.2.0
func (c *RegionNotificationEndpointsTestIamPermissionsCall) Context(ctx context.Context) *RegionNotificationEndpointsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionNotificationEndpointsTestIamPermissionsCall) Do ¶ added in v0.2.0
func (c *RegionNotificationEndpointsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionNotificationEndpoints.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*RegionNotificationEndpointsTestIamPermissionsCall) Fields ¶ added in v0.2.0
func (c *RegionNotificationEndpointsTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionNotificationEndpointsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionNotificationEndpointsTestIamPermissionsCall) Header ¶ added in v0.2.0
func (c *RegionNotificationEndpointsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the 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. Any pending HTTP request will be aborted if the provided context is canceled.
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 information.
func (*RegionOperationsDeleteCall) Header ¶
func (c *RegionOperationsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionOperationsGetCall) Do ¶
func (c *RegionOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionOperations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RegionOperationsGetCall) Header ¶
func (c *RegionOperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionOperationsGetCall) IfNoneMatch ¶
func (c *RegionOperationsGetCall) IfNoneMatch(entityTag string) *RegionOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionOperationsListCall) Do ¶
func (c *RegionOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList, error)
Do executes the "compute.regionOperations.list" call. Exactly one of *OperationList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionOperationsListCall) Header ¶
func (c *RegionOperationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionOperationsListCall) IfNoneMatch ¶
func (c *RegionOperationsListCall) IfNoneMatch(entityTag string) *RegionOperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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, operation string) *RegionOperationsDeleteCall
Delete: Deletes the specified region-specific Operations resource. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/regionOperations/delete
func (*RegionOperationsService) Get ¶
func (r *RegionOperationsService) Get(project string, region string, operation string) *RegionOperationsGetCall
Get: Retrieves the specified region-specific Operations resource. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/regionOperations/get
func (*RegionOperationsService) List ¶
func (r *RegionOperationsService) List(project string, region string) *RegionOperationsListCall
List: Retrieves a list of Operation resources contained within the specified region. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/regionOperations/list
func (*RegionOperationsService) Wait ¶
func (r *RegionOperationsService) Wait(project string, region string, operation string) *RegionOperationsWaitCall
Wait: Waits for the specified region-specific Operations resource until it is done or timeout, and retrieves the specified Operations resource. 1. Immediately returns when the operation is already done. 2. Waits for no more than the default deadline (2 minutes, subject to change) and then returns the current state of the operation, which may be DONE or still in progress. 3. Is best-effort: a. The server can wait less than the default deadline or zero seconds, in overload situations. b. There is no guarantee that the operation is actually done when returns. 4. User should be prepared to retry if the operation is not DONE. (== suppress_warning http-rest-shadowed ==)
type RegionOperationsWaitCall ¶
type RegionOperationsWaitCall struct {
// contains filtered or unexported fields
}
func (*RegionOperationsWaitCall) Context ¶
func (c *RegionOperationsWaitCall) Context(ctx context.Context) *RegionOperationsWaitCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionOperationsWaitCall) Do ¶
func (c *RegionOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionOperations.wait" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionOperationsWaitCall) Header ¶
func (c *RegionOperationsWaitCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RegionSetPolicyRequest) MarshalJSON ¶
func (s *RegionSetPolicyRequest) MarshalJSON() ([]byte, error)
type RegionSslCertificatesDeleteCall ¶
type RegionSslCertificatesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionSslCertificatesDeleteCall) Context ¶
func (c *RegionSslCertificatesDeleteCall) Context(ctx context.Context) *RegionSslCertificatesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionSslCertificatesDeleteCall) Do ¶
func (c *RegionSslCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionSslCertificates.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionSslCertificatesDeleteCall) Header ¶
func (c *RegionSslCertificatesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionSslCertificatesDeleteCall) RequestId ¶
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 ¶
type RegionSslCertificatesGetCall struct {
// contains filtered or unexported fields
}
func (*RegionSslCertificatesGetCall) Context ¶
func (c *RegionSslCertificatesGetCall) Context(ctx context.Context) *RegionSslCertificatesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionSslCertificatesGetCall) Do ¶
func (c *RegionSslCertificatesGetCall) Do(opts ...googleapi.CallOption) (*SslCertificate, error)
Do executes the "compute.regionSslCertificates.get" call. Exactly one of *SslCertificate or error will be non-nil. 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 ¶
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 information.
func (*RegionSslCertificatesGetCall) Header ¶
func (c *RegionSslCertificatesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionSslCertificatesGetCall) IfNoneMatch ¶
func (c *RegionSslCertificatesGetCall) IfNoneMatch(entityTag string) *RegionSslCertificatesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type RegionSslCertificatesInsertCall ¶
type RegionSslCertificatesInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionSslCertificatesInsertCall) Context ¶
func (c *RegionSslCertificatesInsertCall) Context(ctx context.Context) *RegionSslCertificatesInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionSslCertificatesInsertCall) Do ¶
func (c *RegionSslCertificatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionSslCertificates.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionSslCertificatesInsertCall) Header ¶
func (c *RegionSslCertificatesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionSslCertificatesInsertCall) RequestId ¶
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 ¶
type RegionSslCertificatesListCall struct {
// contains filtered or unexported fields
}
func (*RegionSslCertificatesListCall) Context ¶
func (c *RegionSslCertificatesListCall) Context(ctx context.Context) *RegionSslCertificatesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionSslCertificatesListCall) Do ¶
func (c *RegionSslCertificatesListCall) Do(opts ...googleapi.CallOption) (*SslCertificateList, error)
Do executes the "compute.regionSslCertificates.list" call. Exactly one of *SslCertificateList or error will be non-nil. 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 ¶
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 information.
func (*RegionSslCertificatesListCall) Filter ¶
func (c *RegionSslCertificatesListCall) Filter(filter string) *RegionSslCertificatesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionSslCertificatesListCall) Header ¶
func (c *RegionSslCertificatesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionSslCertificatesListCall) IfNoneMatch ¶
func (c *RegionSslCertificatesListCall) IfNoneMatch(entityTag string) *RegionSslCertificatesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*RegionSslCertificatesListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type RegionSslCertificatesService ¶
type RegionSslCertificatesService struct {
// contains filtered or unexported fields
}
func NewRegionSslCertificatesService ¶
func NewRegionSslCertificatesService(s *Service) *RegionSslCertificatesService
func (*RegionSslCertificatesService) Delete ¶
func (r *RegionSslCertificatesService) Delete(project string, region string, sslCertificate string) *RegionSslCertificatesDeleteCall
Delete: Deletes the specified SslCertificate resource in the region. (== suppress_warning http-rest-shadowed ==)
func (*RegionSslCertificatesService) Get ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionSslCertificatesService) Insert ¶
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 (== suppress_warning http-rest-shadowed ==)
func (*RegionSslCertificatesService) List ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionSslCertificatesService) TestIamPermissions ¶
func (r *RegionSslCertificatesService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionSslCertificatesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource and region. (== suppress_warning http-rest-shadowed ==)
type RegionSslCertificatesTestIamPermissionsCall ¶
type RegionSslCertificatesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionSslCertificatesTestIamPermissionsCall) Context ¶
func (c *RegionSslCertificatesTestIamPermissionsCall) Context(ctx context.Context) *RegionSslCertificatesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionSslCertificatesTestIamPermissionsCall) Do ¶
func (c *RegionSslCertificatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionSslCertificates.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*RegionSslCertificatesTestIamPermissionsCall) Fields ¶
func (c *RegionSslCertificatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionSslCertificatesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionSslCertificatesTestIamPermissionsCall) Header ¶
func (c *RegionSslCertificatesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RegionTargetHttpProxiesDeleteCall ¶
type RegionTargetHttpProxiesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpProxiesDeleteCall) Context ¶
func (c *RegionTargetHttpProxiesDeleteCall) Context(ctx context.Context) *RegionTargetHttpProxiesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionTargetHttpProxiesDeleteCall) Do ¶
func (c *RegionTargetHttpProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetHttpProxies.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionTargetHttpProxiesDeleteCall) Header ¶
func (c *RegionTargetHttpProxiesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionTargetHttpProxiesDeleteCall) RequestId ¶
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 ¶
type RegionTargetHttpProxiesGetCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpProxiesGetCall) Context ¶
func (c *RegionTargetHttpProxiesGetCall) Context(ctx context.Context) *RegionTargetHttpProxiesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionTargetHttpProxiesGetCall) Do ¶
func (c *RegionTargetHttpProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetHttpProxy, error)
Do executes the "compute.regionTargetHttpProxies.get" call. Exactly one of *TargetHttpProxy or error will be non-nil. 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 ¶
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 information.
func (*RegionTargetHttpProxiesGetCall) Header ¶
func (c *RegionTargetHttpProxiesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionTargetHttpProxiesGetCall) IfNoneMatch ¶
func (c *RegionTargetHttpProxiesGetCall) IfNoneMatch(entityTag string) *RegionTargetHttpProxiesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type RegionTargetHttpProxiesInsertCall ¶
type RegionTargetHttpProxiesInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpProxiesInsertCall) Context ¶
func (c *RegionTargetHttpProxiesInsertCall) Context(ctx context.Context) *RegionTargetHttpProxiesInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionTargetHttpProxiesInsertCall) Do ¶
func (c *RegionTargetHttpProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetHttpProxies.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionTargetHttpProxiesInsertCall) Header ¶
func (c *RegionTargetHttpProxiesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionTargetHttpProxiesInsertCall) RequestId ¶
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 ¶
type RegionTargetHttpProxiesListCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpProxiesListCall) Context ¶
func (c *RegionTargetHttpProxiesListCall) Context(ctx context.Context) *RegionTargetHttpProxiesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionTargetHttpProxiesListCall) Do ¶
func (c *RegionTargetHttpProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetHttpProxyList, error)
Do executes the "compute.regionTargetHttpProxies.list" call. Exactly one of *TargetHttpProxyList or error will be non-nil. 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 ¶
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 information.
func (*RegionTargetHttpProxiesListCall) Filter ¶
func (c *RegionTargetHttpProxiesListCall) Filter(filter string) *RegionTargetHttpProxiesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionTargetHttpProxiesListCall) Header ¶
func (c *RegionTargetHttpProxiesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionTargetHttpProxiesListCall) IfNoneMatch ¶
func (c *RegionTargetHttpProxiesListCall) IfNoneMatch(entityTag string) *RegionTargetHttpProxiesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*RegionTargetHttpProxiesListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type RegionTargetHttpProxiesService ¶
type RegionTargetHttpProxiesService struct {
// contains filtered or unexported fields
}
func NewRegionTargetHttpProxiesService ¶
func NewRegionTargetHttpProxiesService(s *Service) *RegionTargetHttpProxiesService
func (*RegionTargetHttpProxiesService) Delete ¶
func (r *RegionTargetHttpProxiesService) Delete(project string, region string, targetHttpProxy string) *RegionTargetHttpProxiesDeleteCall
Delete: Deletes the specified TargetHttpProxy resource. (== suppress_warning http-rest-shadowed ==)
func (*RegionTargetHttpProxiesService) Get ¶
func (r *RegionTargetHttpProxiesService) Get(project string, region string, targetHttpProxy string) *RegionTargetHttpProxiesGetCall
Get: Returns the specified TargetHttpProxy resource in the specified region. Gets a list of available target HTTP proxies by making a list() request. (== suppress_warning http-rest-shadowed ==)
func (*RegionTargetHttpProxiesService) Insert ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionTargetHttpProxiesService) List ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionTargetHttpProxiesService) SetUrlMap ¶
func (r *RegionTargetHttpProxiesService) SetUrlMap(project string, region string, targetHttpProxy string, urlmapreference *UrlMapReference) *RegionTargetHttpProxiesSetUrlMapCall
SetUrlMap: Changes the URL map for TargetHttpProxy. (== suppress_warning http-rest-shadowed ==)
func (*RegionTargetHttpProxiesService) TestIamPermissions ¶
func (r *RegionTargetHttpProxiesService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionTargetHttpProxiesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type RegionTargetHttpProxiesSetUrlMapCall ¶
type RegionTargetHttpProxiesSetUrlMapCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpProxiesSetUrlMapCall) Context ¶
func (c *RegionTargetHttpProxiesSetUrlMapCall) Context(ctx context.Context) *RegionTargetHttpProxiesSetUrlMapCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionTargetHttpProxiesSetUrlMapCall) Do ¶
func (c *RegionTargetHttpProxiesSetUrlMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetHttpProxies.setUrlMap" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionTargetHttpProxiesSetUrlMapCall) Header ¶
func (c *RegionTargetHttpProxiesSetUrlMapCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionTargetHttpProxiesSetUrlMapCall) RequestId ¶
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 RegionTargetHttpProxiesTestIamPermissionsCall ¶
type RegionTargetHttpProxiesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpProxiesTestIamPermissionsCall) Context ¶
func (c *RegionTargetHttpProxiesTestIamPermissionsCall) Context(ctx context.Context) *RegionTargetHttpProxiesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionTargetHttpProxiesTestIamPermissionsCall) Do ¶
func (c *RegionTargetHttpProxiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionTargetHttpProxies.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*RegionTargetHttpProxiesTestIamPermissionsCall) Fields ¶
func (c *RegionTargetHttpProxiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionTargetHttpProxiesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionTargetHttpProxiesTestIamPermissionsCall) Header ¶
func (c *RegionTargetHttpProxiesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RegionTargetHttpsProxiesDeleteCall ¶
type RegionTargetHttpsProxiesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpsProxiesDeleteCall) Context ¶
func (c *RegionTargetHttpsProxiesDeleteCall) Context(ctx context.Context) *RegionTargetHttpsProxiesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionTargetHttpsProxiesDeleteCall) Do ¶
func (c *RegionTargetHttpsProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetHttpsProxies.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionTargetHttpsProxiesDeleteCall) Header ¶
func (c *RegionTargetHttpsProxiesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionTargetHttpsProxiesDeleteCall) RequestId ¶
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 ¶
type RegionTargetHttpsProxiesGetCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpsProxiesGetCall) Context ¶
func (c *RegionTargetHttpsProxiesGetCall) Context(ctx context.Context) *RegionTargetHttpsProxiesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionTargetHttpsProxiesGetCall) Do ¶
func (c *RegionTargetHttpsProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetHttpsProxy, error)
Do executes the "compute.regionTargetHttpsProxies.get" call. Exactly one of *TargetHttpsProxy or error will be non-nil. 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 ¶
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 information.
func (*RegionTargetHttpsProxiesGetCall) Header ¶
func (c *RegionTargetHttpsProxiesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionTargetHttpsProxiesGetCall) IfNoneMatch ¶
func (c *RegionTargetHttpsProxiesGetCall) IfNoneMatch(entityTag string) *RegionTargetHttpsProxiesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type RegionTargetHttpsProxiesInsertCall ¶
type RegionTargetHttpsProxiesInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpsProxiesInsertCall) Context ¶
func (c *RegionTargetHttpsProxiesInsertCall) Context(ctx context.Context) *RegionTargetHttpsProxiesInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionTargetHttpsProxiesInsertCall) Do ¶
func (c *RegionTargetHttpsProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetHttpsProxies.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionTargetHttpsProxiesInsertCall) Header ¶
func (c *RegionTargetHttpsProxiesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionTargetHttpsProxiesInsertCall) RequestId ¶
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 ¶
type RegionTargetHttpsProxiesListCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpsProxiesListCall) Context ¶
func (c *RegionTargetHttpsProxiesListCall) Context(ctx context.Context) *RegionTargetHttpsProxiesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionTargetHttpsProxiesListCall) Do ¶
func (c *RegionTargetHttpsProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetHttpsProxyList, error)
Do executes the "compute.regionTargetHttpsProxies.list" call. Exactly one of *TargetHttpsProxyList or error will be non-nil. 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 ¶
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 information.
func (*RegionTargetHttpsProxiesListCall) Filter ¶
func (c *RegionTargetHttpsProxiesListCall) Filter(filter string) *RegionTargetHttpsProxiesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionTargetHttpsProxiesListCall) Header ¶
func (c *RegionTargetHttpsProxiesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionTargetHttpsProxiesListCall) IfNoneMatch ¶
func (c *RegionTargetHttpsProxiesListCall) IfNoneMatch(entityTag string) *RegionTargetHttpsProxiesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*RegionTargetHttpsProxiesListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type RegionTargetHttpsProxiesService ¶
type RegionTargetHttpsProxiesService struct {
// contains filtered or unexported fields
}
func NewRegionTargetHttpsProxiesService ¶
func NewRegionTargetHttpsProxiesService(s *Service) *RegionTargetHttpsProxiesService
func (*RegionTargetHttpsProxiesService) Delete ¶
func (r *RegionTargetHttpsProxiesService) Delete(project string, region string, targetHttpsProxy string) *RegionTargetHttpsProxiesDeleteCall
Delete: Deletes the specified TargetHttpsProxy resource. (== suppress_warning http-rest-shadowed ==)
func (*RegionTargetHttpsProxiesService) Get ¶
func (r *RegionTargetHttpsProxiesService) Get(project string, region string, targetHttpsProxy string) *RegionTargetHttpsProxiesGetCall
Get: Returns the specified TargetHttpsProxy resource in the specified region. Gets a list of available target HTTP proxies by making a list() request. (== suppress_warning http-rest-shadowed ==)
func (*RegionTargetHttpsProxiesService) Insert ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionTargetHttpsProxiesService) List ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionTargetHttpsProxiesService) SetSslCertificates ¶
func (r *RegionTargetHttpsProxiesService) SetSslCertificates(project string, region string, targetHttpsProxy string, regiontargethttpsproxiessetsslcertificatesrequest *RegionTargetHttpsProxiesSetSslCertificatesRequest) *RegionTargetHttpsProxiesSetSslCertificatesCall
SetSslCertificates: Replaces SslCertificates for TargetHttpsProxy. (== suppress_warning http-rest-shadowed ==)
func (*RegionTargetHttpsProxiesService) SetUrlMap ¶
func (r *RegionTargetHttpsProxiesService) SetUrlMap(project string, region string, targetHttpsProxy string, urlmapreference *UrlMapReference) *RegionTargetHttpsProxiesSetUrlMapCall
SetUrlMap: Changes the URL map for TargetHttpsProxy. (== suppress_warning http-rest-shadowed ==)
func (*RegionTargetHttpsProxiesService) TestIamPermissions ¶
func (r *RegionTargetHttpsProxiesService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionTargetHttpsProxiesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type RegionTargetHttpsProxiesSetSslCertificatesCall ¶
type RegionTargetHttpsProxiesSetSslCertificatesCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpsProxiesSetSslCertificatesCall) Context ¶
func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) Context(ctx context.Context) *RegionTargetHttpsProxiesSetSslCertificatesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionTargetHttpsProxiesSetSslCertificatesCall) Do ¶
func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetHttpsProxies.setSslCertificates" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionTargetHttpsProxiesSetSslCertificatesCall) Header ¶
func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionTargetHttpsProxiesSetSslCertificatesCall) RequestId ¶
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 ¶
type RegionTargetHttpsProxiesSetSslCertificatesRequest struct { // SslCertificates: New set of SslCertificate resources to associate // with this TargetHttpsProxy resource. Currently exactly one // SslCertificate resource must be specified. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*RegionTargetHttpsProxiesSetSslCertificatesRequest) MarshalJSON ¶
func (s *RegionTargetHttpsProxiesSetSslCertificatesRequest) MarshalJSON() ([]byte, error)
type RegionTargetHttpsProxiesSetUrlMapCall ¶
type RegionTargetHttpsProxiesSetUrlMapCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpsProxiesSetUrlMapCall) Context ¶
func (c *RegionTargetHttpsProxiesSetUrlMapCall) Context(ctx context.Context) *RegionTargetHttpsProxiesSetUrlMapCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionTargetHttpsProxiesSetUrlMapCall) Do ¶
func (c *RegionTargetHttpsProxiesSetUrlMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionTargetHttpsProxies.setUrlMap" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionTargetHttpsProxiesSetUrlMapCall) Header ¶
func (c *RegionTargetHttpsProxiesSetUrlMapCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionTargetHttpsProxiesSetUrlMapCall) RequestId ¶
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 RegionTargetHttpsProxiesTestIamPermissionsCall ¶
type RegionTargetHttpsProxiesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionTargetHttpsProxiesTestIamPermissionsCall) Context ¶
func (c *RegionTargetHttpsProxiesTestIamPermissionsCall) Context(ctx context.Context) *RegionTargetHttpsProxiesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionTargetHttpsProxiesTestIamPermissionsCall) Do ¶
func (c *RegionTargetHttpsProxiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionTargetHttpsProxies.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*RegionTargetHttpsProxiesTestIamPermissionsCall) Fields ¶
func (c *RegionTargetHttpsProxiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionTargetHttpsProxiesTestIamPermissionsCall) Header ¶
func (c *RegionTargetHttpsProxiesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RegionUrlMapsDeleteCall ¶
type RegionUrlMapsDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsDeleteCall) Context ¶
func (c *RegionUrlMapsDeleteCall) Context(ctx context.Context) *RegionUrlMapsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionUrlMapsDeleteCall) Do ¶
func (c *RegionUrlMapsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionUrlMaps.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionUrlMapsDeleteCall) Header ¶
func (c *RegionUrlMapsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionUrlMapsDeleteCall) RequestId ¶
func (c *RegionUrlMapsDeleteCall) RequestId(requestId string) *RegionUrlMapsDeleteCall
RequestId sets the optional parameter "requestId": begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
type RegionUrlMapsGetCall ¶
type RegionUrlMapsGetCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsGetCall) Context ¶
func (c *RegionUrlMapsGetCall) Context(ctx context.Context) *RegionUrlMapsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionUrlMapsGetCall) Do ¶
func (c *RegionUrlMapsGetCall) Do(opts ...googleapi.CallOption) (*UrlMap, error)
Do executes the "compute.regionUrlMaps.get" call. Exactly one of *UrlMap or error will be non-nil. 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 ¶
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 information.
func (*RegionUrlMapsGetCall) Header ¶
func (c *RegionUrlMapsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionUrlMapsGetCall) IfNoneMatch ¶
func (c *RegionUrlMapsGetCall) IfNoneMatch(entityTag string) *RegionUrlMapsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type RegionUrlMapsInsertCall ¶
type RegionUrlMapsInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsInsertCall) Context ¶
func (c *RegionUrlMapsInsertCall) Context(ctx context.Context) *RegionUrlMapsInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionUrlMapsInsertCall) Do ¶
func (c *RegionUrlMapsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionUrlMaps.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionUrlMapsInsertCall) Header ¶
func (c *RegionUrlMapsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionUrlMapsInsertCall) RequestId ¶
func (c *RegionUrlMapsInsertCall) RequestId(requestId string) *RegionUrlMapsInsertCall
RequestId sets the optional parameter "requestId": begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
type RegionUrlMapsInvalidateCacheCall ¶
type RegionUrlMapsInvalidateCacheCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsInvalidateCacheCall) Context ¶
func (c *RegionUrlMapsInvalidateCacheCall) Context(ctx context.Context) *RegionUrlMapsInvalidateCacheCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionUrlMapsInvalidateCacheCall) Do ¶
func (c *RegionUrlMapsInvalidateCacheCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionUrlMaps.invalidateCache" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*RegionUrlMapsInvalidateCacheCall) Fields ¶
func (c *RegionUrlMapsInvalidateCacheCall) Fields(s ...googleapi.Field) *RegionUrlMapsInvalidateCacheCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionUrlMapsInvalidateCacheCall) Header ¶
func (c *RegionUrlMapsInvalidateCacheCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionUrlMapsInvalidateCacheCall) RequestId ¶
func (c *RegionUrlMapsInvalidateCacheCall) RequestId(requestId string) *RegionUrlMapsInvalidateCacheCall
RequestId sets the optional parameter "requestId": begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
type RegionUrlMapsListCall ¶
type RegionUrlMapsListCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsListCall) Context ¶
func (c *RegionUrlMapsListCall) Context(ctx context.Context) *RegionUrlMapsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionUrlMapsListCall) Do ¶
func (c *RegionUrlMapsListCall) Do(opts ...googleapi.CallOption) (*UrlMapList, error)
Do executes the "compute.regionUrlMaps.list" call. Exactly one of *UrlMapList or error will be non-nil. 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 ¶
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 information.
func (*RegionUrlMapsListCall) Filter ¶
func (c *RegionUrlMapsListCall) Filter(filter string) *RegionUrlMapsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionUrlMapsListCall) Header ¶
func (c *RegionUrlMapsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionUrlMapsListCall) IfNoneMatch ¶
func (c *RegionUrlMapsListCall) IfNoneMatch(entityTag string) *RegionUrlMapsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*RegionUrlMapsListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type RegionUrlMapsPatchCall ¶
type RegionUrlMapsPatchCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsPatchCall) Context ¶
func (c *RegionUrlMapsPatchCall) Context(ctx context.Context) *RegionUrlMapsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionUrlMapsPatchCall) Do ¶
func (c *RegionUrlMapsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionUrlMaps.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionUrlMapsPatchCall) Header ¶
func (c *RegionUrlMapsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionUrlMapsPatchCall) RequestId ¶
func (c *RegionUrlMapsPatchCall) RequestId(requestId string) *RegionUrlMapsPatchCall
RequestId sets the optional parameter "requestId": begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
type RegionUrlMapsService ¶
type RegionUrlMapsService struct {
// contains filtered or unexported fields
}
func NewRegionUrlMapsService ¶
func NewRegionUrlMapsService(s *Service) *RegionUrlMapsService
func (*RegionUrlMapsService) Delete ¶
func (r *RegionUrlMapsService) Delete(project string, region string, urlMap string) *RegionUrlMapsDeleteCall
Delete: Deletes the specified UrlMap resource. (== suppress_warning http-rest-shadowed ==)
func (*RegionUrlMapsService) Get ¶
func (r *RegionUrlMapsService) Get(project string, region string, urlMap string) *RegionUrlMapsGetCall
Get: Returns the specified UrlMap resource. Gets a list of available URL maps by making a list() request. (== suppress_warning http-rest-shadowed ==)
func (*RegionUrlMapsService) Insert ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionUrlMapsService) InvalidateCache ¶
func (r *RegionUrlMapsService) InvalidateCache(project string, region string, urlMap string, cacheinvalidationrule *CacheInvalidationRule) *RegionUrlMapsInvalidateCacheCall
InvalidateCache: Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. (== suppress_warning http-rest-shadowed ==)
func (*RegionUrlMapsService) List ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionUrlMapsService) Patch ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionUrlMapsService) TestIamPermissions ¶
func (r *RegionUrlMapsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionUrlMapsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
func (*RegionUrlMapsService) Update ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*RegionUrlMapsService) Validate ¶
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. (== suppress_warning http-rest-shadowed ==)
type RegionUrlMapsTestIamPermissionsCall ¶
type RegionUrlMapsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsTestIamPermissionsCall) Context ¶
func (c *RegionUrlMapsTestIamPermissionsCall) Context(ctx context.Context) *RegionUrlMapsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionUrlMapsTestIamPermissionsCall) Do ¶
func (c *RegionUrlMapsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.regionUrlMaps.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*RegionUrlMapsTestIamPermissionsCall) Fields ¶
func (c *RegionUrlMapsTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionUrlMapsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionUrlMapsTestIamPermissionsCall) Header ¶
func (c *RegionUrlMapsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RegionUrlMapsUpdateCall ¶
type RegionUrlMapsUpdateCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsUpdateCall) Context ¶
func (c *RegionUrlMapsUpdateCall) Context(ctx context.Context) *RegionUrlMapsUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionUrlMapsUpdateCall) Do ¶
func (c *RegionUrlMapsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.regionUrlMaps.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*RegionUrlMapsUpdateCall) Header ¶
func (c *RegionUrlMapsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionUrlMapsUpdateCall) RequestId ¶
func (c *RegionUrlMapsUpdateCall) RequestId(requestId string) *RegionUrlMapsUpdateCall
RequestId sets the optional parameter "requestId": begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
type RegionUrlMapsValidateCall ¶
type RegionUrlMapsValidateCall struct {
// contains filtered or unexported fields
}
func (*RegionUrlMapsValidateCall) Context ¶
func (c *RegionUrlMapsValidateCall) Context(ctx context.Context) *RegionUrlMapsValidateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionUrlMapsValidateCall) Do ¶
func (c *RegionUrlMapsValidateCall) Do(opts ...googleapi.CallOption) (*UrlMapsValidateResponse, error)
Do executes the "compute.regionUrlMaps.validate" call. Exactly one of *UrlMapsValidateResponse or error will be non-nil. 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 ¶
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 information.
func (*RegionUrlMapsValidateCall) Header ¶
func (c *RegionUrlMapsValidateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RegionUrlMapsValidateRequest ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RegionUrlMapsValidateRequest) MarshalJSON ¶
func (s *RegionUrlMapsValidateRequest) MarshalJSON() ([]byte, error)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionsGetCall) Do ¶
func (c *RegionsGetCall) Do(opts ...googleapi.CallOption) (*Region, error)
Do executes the "compute.regions.get" call. Exactly one of *Region or error will be non-nil. 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 information.
func (*RegionsGetCall) Header ¶
func (c *RegionsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionsGetCall) IfNoneMatch ¶
func (c *RegionsGetCall) IfNoneMatch(entityTag string) *RegionsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RegionsListCall) Do ¶
func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionList, error)
Do executes the "compute.regions.list" call. Exactly one of *RegionList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RegionsListCall) Header ¶
func (c *RegionsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionsListCall) IfNoneMatch ¶
func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Gets a list of available regions by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/regions/get
func (*RegionsService) List ¶
func (r *RegionsService) List(project string) *RegionsListCall
List: Retrieves the list of region resources available to the specified project. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/regions/list
type RequestMirrorPolicy ¶ added in v0.2.0
type RequestMirrorPolicy struct { // BackendService: The full or partial URL to the BackendService // resource being mirrored to. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
RequestMirrorPolicy: A policy that specifies how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow.
func (*RequestMirrorPolicy) MarshalJSON ¶ added in v0.2.0
func (s *RequestMirrorPolicy) MarshalJSON() ([]byte, error)
type Reservation ¶ added in v0.3.0
type Reservation struct { // 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"` // 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"` // 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" // "DELETING" // "INVALID" // "READY" // "UPDATING" 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. "Commitment") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Commitment") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== resource_for beta.reservations ==) (== resource_for v1.reservations ==)
func (*Reservation) MarshalJSON ¶ added in v0.3.0
func (s *Reservation) MarshalJSON() ([]byte, error)
type ReservationAffinity ¶ added in v0.3.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" // "NO_RESERVATION" // "SPECIFIC_RESERVATION" // "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. 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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ReservationAffinity: Specifies the reservations that this instance can consume from.
func (*ReservationAffinity) MarshalJSON ¶ added in v0.3.0
func (s *ReservationAffinity) MarshalJSON() ([]byte, error)
type ReservationAggregatedList ¶ added in v0.3.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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ReservationAggregatedList: Contains a list of reservations.
func (*ReservationAggregatedList) MarshalJSON ¶ added in v0.3.0
func (s *ReservationAggregatedList) MarshalJSON() ([]byte, error)
type ReservationAggregatedListWarning ¶ added in v0.3.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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ReservationAggregatedListWarning: [Output Only] Informational warning message.
func (*ReservationAggregatedListWarning) MarshalJSON ¶ added in v0.3.0
func (s *ReservationAggregatedListWarning) MarshalJSON() ([]byte, error)
type ReservationAggregatedListWarningData ¶ added in v0.3.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ReservationAggregatedListWarningData) MarshalJSON ¶ added in v0.3.0
func (s *ReservationAggregatedListWarningData) MarshalJSON() ([]byte, error)
type ReservationList ¶ added in v0.3.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ReservationList) MarshalJSON ¶ added in v0.3.0
func (s *ReservationList) MarshalJSON() ([]byte, error)
type ReservationListWarning ¶ added in v0.3.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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ReservationListWarning: [Output Only] Informational warning message.
func (*ReservationListWarning) MarshalJSON ¶ added in v0.3.0
func (s *ReservationListWarning) MarshalJSON() ([]byte, error)
type ReservationListWarningData ¶ added in v0.3.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ReservationListWarningData) MarshalJSON ¶ added in v0.3.0
func (s *ReservationListWarningData) MarshalJSON() ([]byte, error)
type ReservationsAggregatedListCall ¶ added in v0.3.0
type ReservationsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*ReservationsAggregatedListCall) Context ¶ added in v0.3.0
func (c *ReservationsAggregatedListCall) Context(ctx context.Context) *ReservationsAggregatedListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ReservationsAggregatedListCall) Do ¶ added in v0.3.0
func (c *ReservationsAggregatedListCall) Do(opts ...googleapi.CallOption) (*ReservationAggregatedList, error)
Do executes the "compute.reservations.aggregatedList" call. Exactly one of *ReservationAggregatedList or error will be non-nil. 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.3.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 information.
func (*ReservationsAggregatedListCall) Filter ¶ added in v0.3.0
func (c *ReservationsAggregatedListCall) Filter(filter string) *ReservationsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*ReservationsAggregatedListCall) Header ¶ added in v0.3.0
func (c *ReservationsAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ReservationsAggregatedListCall) IfNoneMatch ¶ added in v0.3.0
func (c *ReservationsAggregatedListCall) IfNoneMatch(entityTag string) *ReservationsAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ReservationsAggregatedListCall) MaxResults ¶ added in v0.3.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.3.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.3.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.3.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.
type ReservationsDeleteCall ¶ added in v0.3.0
type ReservationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ReservationsDeleteCall) Context ¶ added in v0.3.0
func (c *ReservationsDeleteCall) Context(ctx context.Context) *ReservationsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ReservationsDeleteCall) Do ¶ added in v0.3.0
func (c *ReservationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.reservations.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.3.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 information.
func (*ReservationsDeleteCall) Header ¶ added in v0.3.0
func (c *ReservationsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ReservationsDeleteCall) RequestId ¶ added in v0.3.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.3.0
type ReservationsGetCall struct {
// contains filtered or unexported fields
}
func (*ReservationsGetCall) Context ¶ added in v0.3.0
func (c *ReservationsGetCall) Context(ctx context.Context) *ReservationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ReservationsGetCall) Do ¶ added in v0.3.0
func (c *ReservationsGetCall) Do(opts ...googleapi.CallOption) (*Reservation, error)
Do executes the "compute.reservations.get" call. Exactly one of *Reservation or error will be non-nil. 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.3.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 information.
func (*ReservationsGetCall) Header ¶ added in v0.3.0
func (c *ReservationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ReservationsGetCall) IfNoneMatch ¶ added in v0.3.0
func (c *ReservationsGetCall) IfNoneMatch(entityTag string) *ReservationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ReservationsGetIamPolicyCall ¶ added in v0.3.0
type ReservationsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ReservationsGetIamPolicyCall) Context ¶ added in v0.3.0
func (c *ReservationsGetIamPolicyCall) Context(ctx context.Context) *ReservationsGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ReservationsGetIamPolicyCall) Do ¶ added in v0.3.0
func (c *ReservationsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.reservations.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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.3.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 information.
func (*ReservationsGetIamPolicyCall) Header ¶ added in v0.3.0
func (c *ReservationsGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ReservationsGetIamPolicyCall) IfNoneMatch ¶ added in v0.3.0
func (c *ReservationsGetIamPolicyCall) IfNoneMatch(entityTag string) *ReservationsGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ReservationsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.0
func (c *ReservationsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ReservationsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type ReservationsInsertCall ¶ added in v0.3.0
type ReservationsInsertCall struct {
// contains filtered or unexported fields
}
func (*ReservationsInsertCall) Context ¶ added in v0.3.0
func (c *ReservationsInsertCall) Context(ctx context.Context) *ReservationsInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ReservationsInsertCall) Do ¶ added in v0.3.0
func (c *ReservationsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.reservations.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.3.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 information.
func (*ReservationsInsertCall) Header ¶ added in v0.3.0
func (c *ReservationsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ReservationsInsertCall) RequestId ¶ added in v0.3.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.3.0
type ReservationsListCall struct {
// contains filtered or unexported fields
}
func (*ReservationsListCall) Context ¶ added in v0.3.0
func (c *ReservationsListCall) Context(ctx context.Context) *ReservationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ReservationsListCall) Do ¶ added in v0.3.0
func (c *ReservationsListCall) Do(opts ...googleapi.CallOption) (*ReservationList, error)
Do executes the "compute.reservations.list" call. Exactly one of *ReservationList or error will be non-nil. 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.3.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 information.
func (*ReservationsListCall) Filter ¶ added in v0.3.0
func (c *ReservationsListCall) Filter(filter string) *ReservationsListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*ReservationsListCall) Header ¶ added in v0.3.0
func (c *ReservationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ReservationsListCall) IfNoneMatch ¶ added in v0.3.0
func (c *ReservationsListCall) IfNoneMatch(entityTag string) *ReservationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ReservationsListCall) MaxResults ¶ added in v0.3.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.3.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.3.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.3.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.
type ReservationsResizeCall ¶ added in v0.3.0
type ReservationsResizeCall struct {
// contains filtered or unexported fields
}
func (*ReservationsResizeCall) Context ¶ added in v0.3.0
func (c *ReservationsResizeCall) Context(ctx context.Context) *ReservationsResizeCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ReservationsResizeCall) Do ¶ added in v0.3.0
func (c *ReservationsResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.reservations.resize" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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.3.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 information.
func (*ReservationsResizeCall) Header ¶ added in v0.3.0
func (c *ReservationsResizeCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ReservationsResizeCall) RequestId ¶ added in v0.3.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.3.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*ReservationsResizeRequest) MarshalJSON ¶ added in v0.3.0
func (s *ReservationsResizeRequest) MarshalJSON() ([]byte, error)
type ReservationsScopedList ¶ added in v0.3.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ReservationsScopedList) MarshalJSON ¶ added in v0.3.0
func (s *ReservationsScopedList) MarshalJSON() ([]byte, error)
type ReservationsScopedListWarning ¶ added in v0.3.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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ReservationsScopedListWarning: Informational warning which replaces the list of reservations when the list is empty.
func (*ReservationsScopedListWarning) MarshalJSON ¶ added in v0.3.0
func (s *ReservationsScopedListWarning) MarshalJSON() ([]byte, error)
type ReservationsScopedListWarningData ¶ added in v0.3.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ReservationsScopedListWarningData) MarshalJSON ¶ added in v0.3.0
func (s *ReservationsScopedListWarningData) MarshalJSON() ([]byte, error)
type ReservationsService ¶ added in v0.3.0
type ReservationsService struct {
// contains filtered or unexported fields
}
func NewReservationsService ¶ added in v0.3.0
func NewReservationsService(s *Service) *ReservationsService
func (*ReservationsService) AggregatedList ¶ added in v0.3.0
func (r *ReservationsService) AggregatedList(project string) *ReservationsAggregatedListCall
AggregatedList: Retrieves an aggregated list of reservations. (== suppress_warning http-rest-shadowed ==)
func (*ReservationsService) Delete ¶ added in v0.3.0
func (r *ReservationsService) Delete(project string, zone string, reservation string) *ReservationsDeleteCall
Delete: Deletes the specified reservation. (== suppress_warning http-rest-shadowed ==)
func (*ReservationsService) Get ¶ added in v0.3.0
func (r *ReservationsService) Get(project string, zone string, reservation string) *ReservationsGetCall
Get: Retrieves information about the specified reservation. (== suppress_warning http-rest-shadowed ==)
func (*ReservationsService) GetIamPolicy ¶ added in v0.3.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. (== suppress_warning http-rest-shadowed ==)
func (*ReservationsService) Insert ¶ added in v0.3.0
func (r *ReservationsService) Insert(project string, zone string, reservation *Reservation) *ReservationsInsertCall
Insert: Creates a new reservation. For more information, read Reserving zonal resources. (== suppress_warning http-rest-shadowed ==)
func (*ReservationsService) List ¶ added in v0.3.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. (== suppress_warning http-rest-shadowed ==)
func (*ReservationsService) Resize ¶ added in v0.3.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. (== suppress_warning http-rest-shadowed ==)
func (*ReservationsService) SetIamPolicy ¶ added in v0.3.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. (== suppress_warning http-rest-shadowed ==)
func (*ReservationsService) TestIamPermissions ¶ added in v0.3.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. (== suppress_warning http-rest-shadowed ==)
type ReservationsSetIamPolicyCall ¶ added in v0.3.0
type ReservationsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ReservationsSetIamPolicyCall) Context ¶ added in v0.3.0
func (c *ReservationsSetIamPolicyCall) Context(ctx context.Context) *ReservationsSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ReservationsSetIamPolicyCall) Do ¶ added in v0.3.0
func (c *ReservationsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.reservations.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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.3.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 information.
func (*ReservationsSetIamPolicyCall) Header ¶ added in v0.3.0
func (c *ReservationsSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ReservationsTestIamPermissionsCall ¶ added in v0.3.0
type ReservationsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ReservationsTestIamPermissionsCall) Context ¶ added in v0.3.0
func (c *ReservationsTestIamPermissionsCall) Context(ctx context.Context) *ReservationsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ReservationsTestIamPermissionsCall) Do ¶ added in v0.3.0
func (c *ReservationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.reservations.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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.3.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 information.
func (*ReservationsTestIamPermissionsCall) Header ¶ added in v0.3.0
func (c *ReservationsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the 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 and MEMORY // // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ResourceGroupReference) MarshalJSON ¶
func (s *ResourceGroupReference) MarshalJSON() ([]byte, error)
type ResourcePoliciesAggregatedListCall ¶
type ResourcePoliciesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesAggregatedListCall) Context ¶
func (c *ResourcePoliciesAggregatedListCall) Context(ctx context.Context) *ResourcePoliciesAggregatedListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ResourcePoliciesAggregatedListCall) Do ¶
func (c *ResourcePoliciesAggregatedListCall) Do(opts ...googleapi.CallOption) (*ResourcePolicyAggregatedList, error)
Do executes the "compute.resourcePolicies.aggregatedList" call. Exactly one of *ResourcePolicyAggregatedList or error will be non-nil. 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 ¶
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 information.
func (*ResourcePoliciesAggregatedListCall) Filter ¶
func (c *ResourcePoliciesAggregatedListCall) Filter(filter string) *ResourcePoliciesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*ResourcePoliciesAggregatedListCall) Header ¶
func (c *ResourcePoliciesAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ResourcePoliciesAggregatedListCall) IfNoneMatch ¶
func (c *ResourcePoliciesAggregatedListCall) IfNoneMatch(entityTag string) *ResourcePoliciesAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ResourcePoliciesAggregatedListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type ResourcePoliciesDeleteCall ¶
type ResourcePoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesDeleteCall) Context ¶
func (c *ResourcePoliciesDeleteCall) Context(ctx context.Context) *ResourcePoliciesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ResourcePoliciesDeleteCall) Do ¶
func (c *ResourcePoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.resourcePolicies.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*ResourcePoliciesDeleteCall) Header ¶
func (c *ResourcePoliciesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ResourcePoliciesDeleteCall) RequestId ¶
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 ¶
type ResourcePoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesGetCall) Context ¶
func (c *ResourcePoliciesGetCall) Context(ctx context.Context) *ResourcePoliciesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ResourcePoliciesGetCall) Do ¶
func (c *ResourcePoliciesGetCall) Do(opts ...googleapi.CallOption) (*ResourcePolicy, error)
Do executes the "compute.resourcePolicies.get" call. Exactly one of *ResourcePolicy or error will be non-nil. 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 ¶
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 information.
func (*ResourcePoliciesGetCall) Header ¶
func (c *ResourcePoliciesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ResourcePoliciesGetCall) IfNoneMatch ¶
func (c *ResourcePoliciesGetCall) IfNoneMatch(entityTag string) *ResourcePoliciesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ResourcePoliciesGetIamPolicyCall ¶
type ResourcePoliciesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesGetIamPolicyCall) Context ¶
func (c *ResourcePoliciesGetIamPolicyCall) Context(ctx context.Context) *ResourcePoliciesGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ResourcePoliciesGetIamPolicyCall) Do ¶
func (c *ResourcePoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.resourcePolicies.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 ¶
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 information.
func (*ResourcePoliciesGetIamPolicyCall) Header ¶
func (c *ResourcePoliciesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ResourcePoliciesGetIamPolicyCall) IfNoneMatch ¶
func (c *ResourcePoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ResourcePoliciesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ResourcePoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.0
func (c *ResourcePoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ResourcePoliciesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
type ResourcePoliciesInsertCall ¶
type ResourcePoliciesInsertCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesInsertCall) Context ¶
func (c *ResourcePoliciesInsertCall) Context(ctx context.Context) *ResourcePoliciesInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ResourcePoliciesInsertCall) Do ¶
func (c *ResourcePoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.resourcePolicies.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*ResourcePoliciesInsertCall) Header ¶
func (c *ResourcePoliciesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ResourcePoliciesInsertCall) RequestId ¶
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 ¶
type ResourcePoliciesListCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesListCall) Context ¶
func (c *ResourcePoliciesListCall) Context(ctx context.Context) *ResourcePoliciesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ResourcePoliciesListCall) Do ¶
func (c *ResourcePoliciesListCall) Do(opts ...googleapi.CallOption) (*ResourcePolicyList, error)
Do executes the "compute.resourcePolicies.list" call. Exactly one of *ResourcePolicyList or error will be non-nil. 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 ¶
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 information.
func (*ResourcePoliciesListCall) Filter ¶
func (c *ResourcePoliciesListCall) Filter(filter string) *ResourcePoliciesListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*ResourcePoliciesListCall) Header ¶
func (c *ResourcePoliciesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ResourcePoliciesListCall) IfNoneMatch ¶
func (c *ResourcePoliciesListCall) IfNoneMatch(entityTag string) *ResourcePoliciesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ResourcePoliciesListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type ResourcePoliciesScopedList ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*ResourcePoliciesScopedList) MarshalJSON ¶
func (s *ResourcePoliciesScopedList) MarshalJSON() ([]byte, error)
type ResourcePoliciesScopedListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ResourcePoliciesScopedListWarning: Informational warning which replaces the list of resourcePolicies when the list is empty.
func (*ResourcePoliciesScopedListWarning) MarshalJSON ¶
func (s *ResourcePoliciesScopedListWarning) MarshalJSON() ([]byte, error)
type ResourcePoliciesScopedListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ResourcePoliciesScopedListWarningData) MarshalJSON ¶
func (s *ResourcePoliciesScopedListWarningData) MarshalJSON() ([]byte, error)
type ResourcePoliciesService ¶
type ResourcePoliciesService struct {
// contains filtered or unexported fields
}
func NewResourcePoliciesService ¶
func NewResourcePoliciesService(s *Service) *ResourcePoliciesService
func (*ResourcePoliciesService) AggregatedList ¶
func (r *ResourcePoliciesService) AggregatedList(project string) *ResourcePoliciesAggregatedListCall
AggregatedList: Retrieves an aggregated list of resource policies. (== suppress_warning http-rest-shadowed ==)
func (*ResourcePoliciesService) Delete ¶
func (r *ResourcePoliciesService) Delete(project string, region string, resourcePolicy string) *ResourcePoliciesDeleteCall
Delete: Deletes the specified resource policy. (== suppress_warning http-rest-shadowed ==)
func (*ResourcePoliciesService) Get ¶
func (r *ResourcePoliciesService) Get(project string, region string, resourcePolicy string) *ResourcePoliciesGetCall
Get: Retrieves all information of the specified resource policy. (== suppress_warning http-rest-shadowed ==)
func (*ResourcePoliciesService) GetIamPolicy ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*ResourcePoliciesService) Insert ¶
func (r *ResourcePoliciesService) Insert(project string, region string, resourcepolicy *ResourcePolicy) *ResourcePoliciesInsertCall
Insert: Creates a new resource policy. (== suppress_warning http-rest-shadowed ==)
func (*ResourcePoliciesService) List ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*ResourcePoliciesService) SetIamPolicy ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*ResourcePoliciesService) TestIamPermissions ¶
func (r *ResourcePoliciesService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *ResourcePoliciesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type ResourcePoliciesSetIamPolicyCall ¶
type ResourcePoliciesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesSetIamPolicyCall) Context ¶
func (c *ResourcePoliciesSetIamPolicyCall) Context(ctx context.Context) *ResourcePoliciesSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ResourcePoliciesSetIamPolicyCall) Do ¶
func (c *ResourcePoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.resourcePolicies.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 ¶
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 information.
func (*ResourcePoliciesSetIamPolicyCall) Header ¶
func (c *ResourcePoliciesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ResourcePoliciesTestIamPermissionsCall ¶
type ResourcePoliciesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ResourcePoliciesTestIamPermissionsCall) Context ¶
func (c *ResourcePoliciesTestIamPermissionsCall) Context(ctx context.Context) *ResourcePoliciesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ResourcePoliciesTestIamPermissionsCall) Do ¶
func (c *ResourcePoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.resourcePolicies.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 ¶
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 information.
func (*ResourcePoliciesTestIamPermissionsCall) Header ¶
func (c *ResourcePoliciesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ResourcePolicy ¶
type ResourcePolicy struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` Description string `json:"description,omitempty"` // GroupPlacementPolicy: Resource policy for instacnes 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"` // 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"` // 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"` // 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" // "DELETING" // "INVALID" // "READY" Status string `json:"status,omitempty"` // VmMaintenancePolicy: Resource policy applicable to VMs for // infrastructure maintenance. VmMaintenancePolicy *ResourcePolicyVmMaintenancePolicy `json:"vmMaintenancePolicy,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*ResourcePolicy) MarshalJSON ¶
func (s *ResourcePolicy) MarshalJSON() ([]byte, error)
type ResourcePolicyAggregatedList ¶
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ResourcePolicyAggregatedList: Contains a list of resourcePolicies.
func (*ResourcePolicyAggregatedList) MarshalJSON ¶
func (s *ResourcePolicyAggregatedList) MarshalJSON() ([]byte, error)
type ResourcePolicyAggregatedListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ResourcePolicyAggregatedListWarning: [Output Only] Informational warning message.
func (*ResourcePolicyAggregatedListWarning) MarshalJSON ¶
func (s *ResourcePolicyAggregatedListWarning) MarshalJSON() ([]byte, error)
type ResourcePolicyAggregatedListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ResourcePolicyAggregatedListWarningData) MarshalJSON ¶
func (s *ResourcePolicyAggregatedListWarningData) MarshalJSON() ([]byte, error)
type ResourcePolicyDailyCycle ¶
type ResourcePolicyDailyCycle struct { // DaysInCycle: Defines a schedule that runs every nth day of the month. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ResourcePolicyDailyCycle: Time window specified for daily operations.
func (*ResourcePolicyDailyCycle) MarshalJSON ¶
func (s *ResourcePolicyDailyCycle) MarshalJSON() ([]byte, error)
type ResourcePolicyGroupPlacementPolicy ¶ added in v0.2.0
type ResourcePolicyGroupPlacementPolicy struct { // AvailabilityDomainCount: The number of availability domains instances // will be spread across. If two instances are in different availability // domain, they will not be put in the same low latency network AvailabilityDomainCount int64 `json:"availabilityDomainCount,omitempty"` // Distribution: Distribution specifies how the instances are placed at // host level. If set to SPREAD, no two instances will be put on the // same host // // Possible values: // "SPREAD" // "UNSPECIFIED" Distribution string `json:"distribution,omitempty"` // Locality: Specifies network locality // // Possible values: // "BEST_EFFORT" // "STRICT" // "UNSPECIFIED_LOCALITY" Locality string `json:"locality,omitempty"` // Style: Specifies instances to hosts placement relationship // // Possible values: // "COMPACT" // "FULLY_SPREAD" // "UNSPECIFIED_PLACEMENT_TYPE" Style string `json:"style,omitempty"` // VmCount: Number of vms in this placement group 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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ResourcePolicyGroupPlacementPolicy: A GroupPlacementPolicy specifies resource placement configuration. It specifies the failure bucket separation as well as network locality
func (*ResourcePolicyGroupPlacementPolicy) MarshalJSON ¶ added in v0.2.0
func (s *ResourcePolicyGroupPlacementPolicy) MarshalJSON() ([]byte, error)
type ResourcePolicyHourlyCycle ¶
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: Allows to define schedule that runs every nth hour. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ResourcePolicyHourlyCycle: Time window specified for hourly operations.
func (*ResourcePolicyHourlyCycle) MarshalJSON ¶
func (s *ResourcePolicyHourlyCycle) MarshalJSON() ([]byte, error)
type ResourcePolicyList ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ResourcePolicyList) MarshalJSON ¶
func (s *ResourcePolicyList) MarshalJSON() ([]byte, error)
type ResourcePolicyListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ResourcePolicyListWarning: [Output Only] Informational warning message.
func (*ResourcePolicyListWarning) MarshalJSON ¶
func (s *ResourcePolicyListWarning) MarshalJSON() ([]byte, error)
type ResourcePolicyListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ResourcePolicyListWarningData) MarshalJSON ¶
func (s *ResourcePolicyListWarningData) MarshalJSON() ([]byte, error)
type ResourcePolicySnapshotSchedulePolicy ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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.2.0
func (s *ResourcePolicySnapshotSchedulePolicy) MarshalJSON() ([]byte, error)
type ResourcePolicySnapshotSchedulePolicyRetentionPolicy ¶ added in v0.2.0
type ResourcePolicySnapshotSchedulePolicyRetentionPolicy struct { // MaxRetentionDays: Maximum age of the snapshot that is allowed to be // kept. MaxRetentionDays int64 `json:"maxRetentionDays,omitempty"` // OnPolicySwitch: Specifies the behavior to apply to existing, // scheduled snapshots snapshots if the policy is changed. // // Possible values: // "DO_NOT_RETROACTIVELY_APPLY" // "RETROACTIVELY_APPLY" // "UNSPECIFIED_ON_POLICY_SWITCH" OnPolicySwitch string `json:"onPolicySwitch,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ResourcePolicySnapshotSchedulePolicyRetentionPolicy: Policy for retention of scheduled snapshots.
func (*ResourcePolicySnapshotSchedulePolicyRetentionPolicy) MarshalJSON ¶ added in v0.2.0
func (s *ResourcePolicySnapshotSchedulePolicyRetentionPolicy) MarshalJSON() ([]byte, error)
type ResourcePolicySnapshotSchedulePolicySchedule ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ResourcePolicySnapshotSchedulePolicySchedule: A schedule for disks where the schedueled operations are performed.
func (*ResourcePolicySnapshotSchedulePolicySchedule) MarshalJSON ¶ added in v0.2.0
func (s *ResourcePolicySnapshotSchedulePolicySchedule) MarshalJSON() ([]byte, error)
type ResourcePolicySnapshotSchedulePolicySnapshotProperties ¶ added in v0.2.0
type ResourcePolicySnapshotSchedulePolicySnapshotProperties struct { // 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. "GuestFlush") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GuestFlush") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ResourcePolicySnapshotSchedulePolicySnapshotProperties: Specified snapshot properties for scheduled snapshots created by this policy.
func (*ResourcePolicySnapshotSchedulePolicySnapshotProperties) MarshalJSON ¶ added in v0.2.0
func (s *ResourcePolicySnapshotSchedulePolicySnapshotProperties) MarshalJSON() ([]byte, error)
type ResourcePolicyVmMaintenancePolicy ¶
type ResourcePolicyVmMaintenancePolicy struct { ConcurrencyControlGroup *ResourcePolicyVmMaintenancePolicyConcurrencyControl `json:"concurrencyControlGroup,omitempty"` // MaintenanceWindow: Maintenance windows that are applied to VMs // covered by this policy. MaintenanceWindow *ResourcePolicyVmMaintenancePolicyMaintenanceWindow `json:"maintenanceWindow,omitempty"` // ForceSendFields is a list of field names (e.g. // "ConcurrencyControlGroup") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ConcurrencyControlGroup") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*ResourcePolicyVmMaintenancePolicy) MarshalJSON ¶
func (s *ResourcePolicyVmMaintenancePolicy) MarshalJSON() ([]byte, error)
type ResourcePolicyVmMaintenancePolicyConcurrencyControl ¶ added in v0.7.0
type ResourcePolicyVmMaintenancePolicyConcurrencyControl struct { ConcurrencyLimit int64 `json:"concurrencyLimit,omitempty"` // ForceSendFields is a list of field names (e.g. "ConcurrencyLimit") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ConcurrencyLimit") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ResourcePolicyVmMaintenancePolicyConcurrencyControl: A concurrency control configuration. Defines a group config that, when attached to an instance, recognizes that instance as part of a group of instances where only up the concurrency_limit of instances in that group can undergo simultaneous maintenance. For more information: go/concurrency-control-design-doc
func (*ResourcePolicyVmMaintenancePolicyConcurrencyControl) MarshalJSON ¶ added in v0.7.0
func (s *ResourcePolicyVmMaintenancePolicyConcurrencyControl) MarshalJSON() ([]byte, error)
type ResourcePolicyVmMaintenancePolicyMaintenanceWindow ¶
type ResourcePolicyVmMaintenancePolicyMaintenanceWindow struct { DailyMaintenanceWindow *ResourcePolicyDailyCycle `json:"dailyMaintenanceWindow,omitempty"` // ForceSendFields is a list of field names (e.g. // "DailyMaintenanceWindow") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DailyMaintenanceWindow") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ResourcePolicyVmMaintenancePolicyMaintenanceWindow: A maintenance window for VMs. When set, we restrict our maintenance operations to this window.
func (*ResourcePolicyVmMaintenancePolicyMaintenanceWindow) MarshalJSON ¶
func (s *ResourcePolicyVmMaintenancePolicyMaintenanceWindow) MarshalJSON() ([]byte, error)
type ResourcePolicyWeeklyCycle ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ResourcePolicyWeeklyCycle: Time window specified for weekly operations.
func (*ResourcePolicyWeeklyCycle) MarshalJSON ¶
func (s *ResourcePolicyWeeklyCycle) MarshalJSON() ([]byte, error)
type ResourcePolicyWeeklyCycleDayOfWeek ¶
type ResourcePolicyWeeklyCycleDayOfWeek struct { // Day: Allows to define schedule that runs specified day of the week. // // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ResourcePolicyWeeklyCycleDayOfWeek) MarshalJSON ¶
func (s *ResourcePolicyWeeklyCycleDayOfWeek) MarshalJSON() ([]byte, error)
type Route ¶
type Route struct { // 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. Only IPv4 is supported. 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"` // NextHopIlb: The URL to a forwarding rule of type // loadBalancingScheme=INTERNAL that should handle matching packets. You // can only specify the forwarding rule as a partial or full URL. For // example, the following are all valid URLs: // - // https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule // - regions/region/forwardingRules/forwardingRule 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"` // NextHopInterconnectAttachment: [Output Only] The URL to an // InterconnectAttachment which is the next hop for the route. This // field will only be populated for the dynamic routes generated by // Cloud Router with a linked interconnectAttachment. NextHopInterconnectAttachment string `json:"nextHopInterconnectAttachment,omitempty"` // NextHopIp: The network IP address of an instance that should handle // matching packets. Only IPv4 is supported. 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"` // 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"` // 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. "CreationTimestamp") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. (== resource_for beta.routes ==) (== resource_for v1.routes ==)
func (*Route) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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. Each interface requires either one // linked resource, (for example, linkedVpnTunnel), or IP address and IP // address range (for example, ipRange), or both. Interfaces []*RouterInterface `json:"interfaces,omitempty"` // Kind: [Output Only] Type of resource. Always compute#router for // routers. 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"` // 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"` // 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. "Bgp") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Router: Represents a Cloud Router resource.
For more information about Cloud Router, read the 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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_PEER_VPC_SUBNETS" // "ALL_SUBNETS" // "ALL_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"` // 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 1 and 120. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 can take one of the following options: // - ALL_SUBNETS: Advertises all available subnets, including peer VPC // subnets. // - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. // - ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router's VPC // network. 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_PEER_VPC_SUBNETS" // "ALL_SUBNETS" // "ALL_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"` // 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"` // 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. // Only IPv4 is supported. IpAddress string `json:"ipAddress,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" // "MANAGED_BY_USER" ManagementType string `json:"managementType,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. Only IPv4 is supported. PeerIpAddress string `json:"peerIpAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvertiseMode") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RouterBgpPeer) MarshalJSON ¶
func (s *RouterBgpPeer) MarshalJSON() ([]byte, error)
type RouterBgpPeerBfd ¶ added in v0.2.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 100 and 30000. The default is 300. 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 100 and 30000. The default // is 300. MinTransmitInterval int64 `json:"minTransmitInterval,omitempty"` // Mode: 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 PASSIVE. // // Possible values: // "ACTIVE" // "DISABLED" // "PASSIVE" Mode string `json:"mode,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 2 and 16. The default is 3. Multiplier int64 `json:"multiplier,omitempty"` // PacketMode: The BFD packet mode for this BGP peer. If set to // CONTROL_AND_ECHO, BFD echo mode is enabled for this BGP peer. In this // mode, if the peer router also has BFD echo mode enabled, BFD echo // packets will be sent to the other router. If the peer router does not // have BFD echo mode enabled, only control packets will be sent. If set // to CONTROL_ONLY, BFD echo mode is disabled for this BGP peer. If this // router and the peer router have a multihop connection, this should be // set to CONTROL_ONLY as BFD echo mode is only supported on singlehop // connections. The default is CONTROL_AND_ECHO. // // Possible values: // "CONTROL_AND_ECHO" // "CONTROL_ONLY" PacketMode string `json:"packetMode,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 PASSIVE. // // Possible values: // "ACTIVE" // "DISABLED" // "PASSIVE" SessionInitializationMode string `json:"sessionInitializationMode,omitempty"` // SlowTimerInterval: The minimum interval, in milliseconds, between BFD // control packets transmitted to and received from the peer router when // BFD echo mode is enabled on both routers. The actual transmit and // receive intervals are negotiated between the two routers and are // equal to the greater of this value and the corresponding interval on // the other router. If set, this value must be between 1000 and 30000. // The default is 5000. SlowTimerInterval int64 `json:"slowTimerInterval,omitempty"` // ForceSendFields is a list of field names (e.g. "MinReceiveInterval") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*RouterBgpPeerBfd) MarshalJSON ¶ added in v0.2.0
func (s *RouterBgpPeerBfd) MarshalJSON() ([]byte, error)
type RouterInterface ¶
type RouterInterface struct { // IpRange: IP address and range of the interface. 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 address as it represents the IP address of the // interface. IpRange string `json:"ipRange,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 either be a VPN // tunnel or an Interconnect attachment. 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 either a VPN tunnel or an Interconnect // attachment. 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" // "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"` // ForceSendFields is a list of field names (e.g. "IpRange") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RouterListWarningData) MarshalJSON ¶
func (s *RouterListWarningData) MarshalJSON() ([]byte, error)
type RouterNat ¶
type RouterNat struct { // 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"` // 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"` // 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" // "MANUAL_ONLY" 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"` // 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 or // ALL_SUBNETWORKS_ALL_PRIMARY_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_SUBNETWORKS_ALL_PRIMARY_IP_RANGES" // "LIST_OF_SUBNETWORKS" 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"` // TcpTransitoryIdleTimeoutSec: Timeout (in seconds) for TCP transitory // connections. Defaults to 30s if not set. TcpTransitoryIdleTimeoutSec int64 `json:"tcpTransitoryIdleTimeoutSec,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. "DrainNatIps") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DrainNatIps") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 ¶
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" // "ERRORS_ONLY" // "TRANSLATIONS_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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RouterNatLogConfig: Configuration of logging on a NAT.
func (*RouterNatLogConfig) MarshalJSON ¶
func (s *RouterNatLogConfig) 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" // "LIST_OF_SECONDARY_IP_RANGES" // "PRIMARY_IP_RANGE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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: Best routes for this router's network. BestRoutes []*Route `json:"bestRoutes,omitempty"` // BestRoutesForRouter: Best routes learned by this 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // IpAddress: IP address of the local BGP interface. IpAddress string `json:"ipAddress,omitempty"` // LinkedVpnTunnel: URL of the VPN tunnel that this BGP peer controls. LinkedVpnTunnel string `json:"linkedVpnTunnel,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"` // State: BGP state as specified in RFC1771. State string `json:"state,omitempty"` // Status: Status of the BGP peer: {UP, DOWN} // // Possible values: // "DOWN" // "UNKNOWN" // "UP" Status string `json:"status,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
RouterStatusNatStatus: Status of a NAT contained in this router. Next tag: 9
func (*RouterStatusNatStatus) MarshalJSON ¶
func (s *RouterStatusNatStatus) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutersAggregatedListCall) Do ¶
func (c *RoutersAggregatedListCall) Do(opts ...googleapi.CallOption) (*RouterAggregatedList, error)
Do executes the "compute.routers.aggregatedList" call. Exactly one of *RouterAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RoutersAggregatedListCall) Header ¶
func (c *RoutersAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RoutersAggregatedListCall) IfNoneMatch ¶
func (c *RoutersAggregatedListCall) IfNoneMatch(entityTag string) *RoutersAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutersDeleteCall) Do ¶
func (c *RoutersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.routers.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RoutersDeleteCall) Header ¶
func (c *RoutersDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutersGetCall) Do ¶
func (c *RoutersGetCall) Do(opts ...googleapi.CallOption) (*Router, error)
Do executes the "compute.routers.get" call. Exactly one of *Router or error will be non-nil. 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 information.
func (*RoutersGetCall) Header ¶
func (c *RoutersGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RoutersGetCall) IfNoneMatch ¶
func (c *RoutersGetCall) IfNoneMatch(entityTag string) *RoutersGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutersGetNatMappingInfoCall) Do ¶
func (c *RoutersGetNatMappingInfoCall) Do(opts ...googleapi.CallOption) (*VmEndpointNatMappingsList, error)
Do executes the "compute.routers.getNatMappingInfo" call. Exactly one of *VmEndpointNatMappingsList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RoutersGetNatMappingInfoCall) Header ¶
func (c *RoutersGetNatMappingInfoCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RoutersGetNatMappingInfoCall) IfNoneMatch ¶
func (c *RoutersGetNatMappingInfoCall) IfNoneMatch(entityTag string) *RoutersGetNatMappingInfoCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.3.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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutersGetRouterStatusCall) Do ¶
func (c *RoutersGetRouterStatusCall) Do(opts ...googleapi.CallOption) (*RouterStatusResponse, error)
Do executes the "compute.routers.getRouterStatus" call. Exactly one of *RouterStatusResponse or error will be non-nil. 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 information.
func (*RoutersGetRouterStatusCall) Header ¶
func (c *RoutersGetRouterStatusCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RoutersGetRouterStatusCall) IfNoneMatch ¶
func (c *RoutersGetRouterStatusCall) IfNoneMatch(entityTag string) *RoutersGetRouterStatusCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutersInsertCall) Do ¶
func (c *RoutersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.routers.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RoutersInsertCall) Header ¶
func (c *RoutersInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutersListCall) Do ¶
func (c *RoutersListCall) Do(opts ...googleapi.CallOption) (*RouterList, error)
Do executes the "compute.routers.list" call. Exactly one of *RouterList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RoutersListCall) Header ¶
func (c *RoutersListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RoutersListCall) IfNoneMatch ¶
func (c *RoutersListCall) IfNoneMatch(entityTag string) *RoutersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutersPatchCall) Do ¶
func (c *RoutersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.routers.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RoutersPatchCall) Header ¶
func (c *RoutersPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutersPreviewCall) Do ¶
func (c *RoutersPreviewCall) Do(opts ...googleapi.CallOption) (*RoutersPreviewResponse, error)
Do executes the "compute.routers.preview" call. Exactly one of *RoutersPreviewResponse or error will be non-nil. 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 information.
func (*RoutersPreviewCall) Header ¶
func (c *RoutersPreviewCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
func (*RoutersService) Delete ¶
func (r *RoutersService) Delete(project string, region string, router string) *RoutersDeleteCall
Delete: Deletes the specified Router resource. (== suppress_warning http-rest-shadowed ==)
func (*RoutersService) Get ¶
func (r *RoutersService) Get(project string, region string, router string) *RoutersGetCall
Get: Returns the specified Router resource. Gets a list of available routers by making a list() request. (== suppress_warning http-rest-shadowed ==)
func (*RoutersService) GetNatMappingInfo ¶
func (r *RoutersService) GetNatMappingInfo(project string, region string, router string) *RoutersGetNatMappingInfoCall
GetNatMappingInfo: Retrieves runtime Nat mapping information of VM endpoints. (== suppress_warning http-rest-shadowed ==)
func (*RoutersService) GetRouterStatus ¶
func (r *RoutersService) GetRouterStatus(project string, region string, router string) *RoutersGetRouterStatusCall
GetRouterStatus: Retrieves runtime information of the specified router. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*RoutersService) List ¶
func (r *RoutersService) List(project string, region string) *RoutersListCall
List: Retrieves a list of Router resources available to the specified project. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*RoutersService) TestIamPermissions ¶
func (r *RoutersService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RoutersTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
type RoutersTestIamPermissionsCall ¶
type RoutersTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RoutersTestIamPermissionsCall) Context ¶
func (c *RoutersTestIamPermissionsCall) Context(ctx context.Context) *RoutersTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutersTestIamPermissionsCall) Do ¶
func (c *RoutersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.routers.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*RoutersTestIamPermissionsCall) Fields ¶
func (c *RoutersTestIamPermissionsCall) Fields(s ...googleapi.Field) *RoutersTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RoutersTestIamPermissionsCall) Header ¶
func (c *RoutersTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutersUpdateCall) Do ¶
func (c *RoutersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.routers.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RoutersUpdateCall) Header ¶
func (c *RoutersUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutesDeleteCall) Do ¶
func (c *RoutesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.routes.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RoutesDeleteCall) Header ¶
func (c *RoutesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutesGetCall) Do ¶
func (c *RoutesGetCall) Do(opts ...googleapi.CallOption) (*Route, error)
Do executes the "compute.routes.get" call. Exactly one of *Route or error will be non-nil. 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 information.
func (*RoutesGetCall) Header ¶
func (c *RoutesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RoutesGetCall) IfNoneMatch ¶
func (c *RoutesGetCall) IfNoneMatch(entityTag string) *RoutesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutesInsertCall) Do ¶
func (c *RoutesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.routes.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*RoutesInsertCall) Header ¶
func (c *RoutesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutesListCall) Do ¶
func (c *RoutesListCall) Do(opts ...googleapi.CallOption) (*RouteList, error)
Do executes the "compute.routes.list" call. Exactly one of *RouteList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*RoutesListCall) Header ¶
func (c *RoutesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RoutesListCall) IfNoneMatch ¶
func (c *RoutesListCall) IfNoneMatch(entityTag string) *RoutesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/routes/delete
func (*RoutesService) Get ¶
func (r *RoutesService) Get(project string, route string) *RoutesGetCall
Get: Returns the specified Route resource. Gets a list of available routes by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/routes/get
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/routes/insert
func (*RoutesService) List ¶
func (r *RoutesService) List(project string) *RoutesListCall
List: Retrieves the list of Route resources available to the specified project. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/routes/list
func (*RoutesService) TestIamPermissions ¶
func (r *RoutesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *RoutesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type RoutesTestIamPermissionsCall ¶
type RoutesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*RoutesTestIamPermissionsCall) Context ¶
func (c *RoutesTestIamPermissionsCall) Context(ctx context.Context) *RoutesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoutesTestIamPermissionsCall) Do ¶
func (c *RoutesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.routes.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*RoutesTestIamPermissionsCall) Fields ¶
func (c *RoutesTestIamPermissionsCall) Fields(s ...googleapi.Field) *RoutesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RoutesTestIamPermissionsCall) Header ¶
func (c *RoutesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type Rule ¶
type Rule struct { // Action: Required // // Possible values: // "ALLOW" // "ALLOW_WITH_LOG" // "DENY" // "DENY_WITH_LOG" // "LOG" // "NO_ACTION" Action string `json:"action,omitempty"` // Conditions: Additional restrictions that must be met. All conditions // must pass for the rule to match. Conditions []*Condition `json:"conditions,omitempty"` // Description: Human-readable description of the rule. Description string `json:"description,omitempty"` // Ins: If one or more 'in' clauses are specified, the rule matches if // the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. Ins []string `json:"ins,omitempty"` // LogConfigs: The config returned to callers of // tech.iam.IAM.CheckPolicy for any entries that match the LOG action. LogConfigs []*LogConfig `json:"logConfigs,omitempty"` // NotIns: If one or more 'not_in' clauses are specified, the rule // matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the // entries. NotIns []string `json:"notIns,omitempty"` // Permissions: A permission is a string of form '..' (e.g., // 'storage.buckets.list'). A value of '*' matches all permissions, and // a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Rule: A rule to be applied in a Policy.
func (*Rule) MarshalJSON ¶
type SSLHealthCheck ¶
type SSLHealthCheck struct { // Port: The TCP port number for the health check request. The default // value is 443. Valid values are 1 through 65535. Port int64 `json:"port,omitempty"` // PortName: Port name as defined in InstanceGroup#NamedPort#name. If // both port and port_name are defined, port takes precedence. PortName string `json:"portName,omitempty"` // PortSpecification: Specifies how port is selected for health // checking, can be one of following values: // USE_FIXED_PORT: The port number in // port // is used for health checking. // USE_NAMED_PORT: The // portName // is used for health checking. // USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for // each network endpoint is used for health checking. For other // backends, the port or named port specified in the Backend Service is // used for health checking. // // // If not specified, SSL health check follows behavior specified // in // port // and // portName // fields. // // Possible values: // "USE_FIXED_PORT" // "USE_NAMED_PORT" // "USE_SERVING_PORT" 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: The application data to send once the SSL connection has // been established (default value is empty). If both request and // response are empty, the connection establishment alone will indicate // health. The request data can only be ASCII. Request string `json:"request,omitempty"` // Response: The bytes to match against the beginning of the response // data. If left empty (the default value), any response will indicate // health. The response data can only be ASCII. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SSLHealthCheck) MarshalJSON ¶
func (s *SSLHealthCheck) MarshalJSON() ([]byte, error)
type SavedAttachedDisk ¶
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"` // 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: // "NVDIMM" // "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" // "READ_WRITE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SavedAttachedDisk: An instance-attached disk resource.
func (*SavedAttachedDisk) MarshalJSON ¶
func (s *SavedAttachedDisk) 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"` // LatencyTolerant: Defines whether the instance is tolerant of higher // cpu latency. This can only be set during instance creation, or when // the instance is not currently running. It must not be set if the // preemptible option is also set. LatencyTolerant bool `json:"latencyTolerant,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"` // 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. 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 Setting Instance Scheduling // Options. // // Possible values: // "MIGRATE" // "TERMINATE" OnHostMaintenance string `json:"onHostMaintenance,omitempty"` // Preemptible: Defines whether the instance is preemptible. This can // only be set during instance creation, it cannot be set or changed // after the instance has been created. Preemptible bool `json:"preemptible,omitempty"` // ForceSendFields is a list of field names (e.g. "AutomaticRestart") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
Scheduling: Sets the scheduling options for an Instance. NextID: 9
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" // "NOT_IN" // "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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 SdsConfig ¶ added in v0.2.0
type SdsConfig struct { // GrpcServiceConfig: The configuration to access the SDS server over // GRPC. GrpcServiceConfig *GrpcServiceConfig `json:"grpcServiceConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "GrpcServiceConfig") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GrpcServiceConfig") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
SdsConfig: The configuration to access the SDS server.
func (*SdsConfig) MarshalJSON ¶ added in v0.2.0
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SecurityPoliciesAddRuleCall) Do ¶
func (c *SecurityPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.securityPolicies.addRule" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SecurityPoliciesAddRuleCall) Header ¶
func (c *SecurityPoliciesAddRuleCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SecurityPoliciesAddRuleCall) ValidateOnly ¶
func (c *SecurityPoliciesAddRuleCall) ValidateOnly(validateOnly bool) *SecurityPoliciesAddRuleCall
ValidateOnly sets the optional parameter "validateOnly": If true, the request will not be committed.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SecurityPoliciesDeleteCall) Do ¶
func (c *SecurityPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.securityPolicies.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SecurityPoliciesDeleteCall) Header ¶
func (c *SecurityPoliciesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SecurityPoliciesGetCall) Do ¶
func (c *SecurityPoliciesGetCall) Do(opts ...googleapi.CallOption) (*SecurityPolicy, error)
Do executes the "compute.securityPolicies.get" call. Exactly one of *SecurityPolicy or error will be non-nil. 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 information.
func (*SecurityPoliciesGetCall) Header ¶
func (c *SecurityPoliciesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SecurityPoliciesGetCall) IfNoneMatch ¶
func (c *SecurityPoliciesGetCall) IfNoneMatch(entityTag string) *SecurityPoliciesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SecurityPoliciesGetRuleCall) Do ¶
func (c *SecurityPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyRule, error)
Do executes the "compute.securityPolicies.getRule" call. Exactly one of *SecurityPolicyRule or error will be non-nil. 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 information.
func (*SecurityPoliciesGetRuleCall) Header ¶
func (c *SecurityPoliciesGetRuleCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SecurityPoliciesGetRuleCall) IfNoneMatch ¶
func (c *SecurityPoliciesGetRuleCall) IfNoneMatch(entityTag string) *SecurityPoliciesGetRuleCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SecurityPoliciesInsertCall) Do ¶
func (c *SecurityPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.securityPolicies.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SecurityPoliciesInsertCall) Header ¶
func (c *SecurityPoliciesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SecurityPoliciesListCall) Do ¶
func (c *SecurityPoliciesListCall) Do(opts ...googleapi.CallOption) (*SecurityPolicyList, error)
Do executes the "compute.securityPolicies.list" call. Exactly one of *SecurityPolicyList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*SecurityPoliciesListCall) Header ¶
func (c *SecurityPoliciesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SecurityPoliciesListCall) IfNoneMatch ¶
func (c *SecurityPoliciesListCall) IfNoneMatch(entityTag string) *SecurityPoliciesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
type SecurityPoliciesListPreconfiguredExpressionSetsCall ¶
type SecurityPoliciesListPreconfiguredExpressionSetsCall struct {
// contains filtered or unexported fields
}
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) Context ¶
func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Context(ctx context.Context) *SecurityPoliciesListPreconfiguredExpressionSetsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) Do ¶
func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Do(opts ...googleapi.CallOption) (*SecurityPoliciesListPreconfiguredExpressionSetsResponse, error)
Do executes the "compute.securityPolicies.listPreconfiguredExpressionSets" call. Exactly one of *SecurityPoliciesListPreconfiguredExpressionSetsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SecurityPoliciesListPreconfiguredExpressionSetsResponse.ServerRespons e.Header or (if a response was 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 ¶
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 information.
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) Filter ¶
func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Filter(filter string) *SecurityPoliciesListPreconfiguredExpressionSetsCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) Header ¶
func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) IfNoneMatch ¶
func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) IfNoneMatch(entityTag string) *SecurityPoliciesListPreconfiguredExpressionSetsCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*SecurityPoliciesListPreconfiguredExpressionSetsCall) MaxResults ¶
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 ¶
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 ¶
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.
type SecurityPoliciesListPreconfiguredExpressionSetsResponse ¶
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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
func (*SecurityPoliciesListPreconfiguredExpressionSetsResponse) MarshalJSON ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SecurityPoliciesPatchCall) Do ¶
func (c *SecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.securityPolicies.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SecurityPoliciesPatchCall) Header ¶
func (c *SecurityPoliciesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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).
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SecurityPoliciesPatchRuleCall) Do ¶
func (c *SecurityPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.securityPolicies.patchRule" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SecurityPoliciesPatchRuleCall) Header ¶
func (c *SecurityPoliciesPatchRuleCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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) ValidateOnly ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SecurityPoliciesRemoveRuleCall) Do ¶
func (c *SecurityPoliciesRemoveRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.securityPolicies.removeRule" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SecurityPoliciesRemoveRuleCall) Header ¶
func (c *SecurityPoliciesRemoveRuleCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 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. (== suppress_warning http-rest-shadowed ==)
func (*SecurityPoliciesService) Delete ¶
func (r *SecurityPoliciesService) Delete(project string, securityPolicy string) *SecurityPoliciesDeleteCall
Delete: Deletes the specified policy. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*SecurityPoliciesService) GetRule ¶
func (r *SecurityPoliciesService) GetRule(project string, securityPolicy string) *SecurityPoliciesGetRuleCall
GetRule: Gets a rule at the specified priority. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*SecurityPoliciesService) List ¶
func (r *SecurityPoliciesService) List(project string) *SecurityPoliciesListCall
List: List all the policies that have been configured for the specified project. (== suppress_warning http-rest-shadowed ==)
func (*SecurityPoliciesService) ListPreconfiguredExpressionSets ¶
func (r *SecurityPoliciesService) ListPreconfiguredExpressionSets(project string) *SecurityPoliciesListPreconfiguredExpressionSetsCall
ListPreconfiguredExpressionSets: Gets the current list of preconfigured Web Application Firewall (WAF) expressions. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*SecurityPoliciesService) PatchRule ¶
func (r *SecurityPoliciesService) PatchRule(project string, securityPolicy string, securitypolicyrule *SecurityPolicyRule) *SecurityPoliciesPatchRuleCall
PatchRule: Patches a rule at the specified priority. (== suppress_warning http-rest-shadowed ==)
func (*SecurityPoliciesService) RemoveRule ¶
func (r *SecurityPoliciesService) RemoveRule(project string, securityPolicy string) *SecurityPoliciesRemoveRuleCall
RemoveRule: Deletes a rule at the specified priority. (== suppress_warning http-rest-shadowed ==)
func (*SecurityPoliciesService) SetLabels ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*SecurityPoliciesService) TestIamPermissions ¶
func (r *SecurityPoliciesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *SecurityPoliciesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type SecurityPoliciesSetLabelsCall ¶
type SecurityPoliciesSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*SecurityPoliciesSetLabelsCall) Context ¶
func (c *SecurityPoliciesSetLabelsCall) Context(ctx context.Context) *SecurityPoliciesSetLabelsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SecurityPoliciesSetLabelsCall) Do ¶
func (c *SecurityPoliciesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.securityPolicies.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*SecurityPoliciesSetLabelsCall) Header ¶
func (c *SecurityPoliciesSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type SecurityPoliciesTestIamPermissionsCall ¶
type SecurityPoliciesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*SecurityPoliciesTestIamPermissionsCall) Context ¶
func (c *SecurityPoliciesTestIamPermissionsCall) Context(ctx context.Context) *SecurityPoliciesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SecurityPoliciesTestIamPermissionsCall) Do ¶
func (c *SecurityPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.securityPolicies.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*SecurityPoliciesTestIamPermissionsCall) Fields ¶
func (c *SecurityPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *SecurityPoliciesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*SecurityPoliciesTestIamPermissionsCall) Header ¶
func (c *SecurityPoliciesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type SecurityPoliciesWafConfig ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SecurityPoliciesWafConfig) MarshalJSON ¶
func (s *SecurityPoliciesWafConfig) MarshalJSON() ([]byte, error)
type SecurityPolicy ¶
type SecurityPolicy struct { // Associations: A list of assocations that belong to this policy. Associations []*SecurityPolicyAssociation `json:"associations,omitempty"` CloudArmorConfig *SecurityPolicyCloudArmorConfig `json:"cloudArmorConfig,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: 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 to apply to this security policy resource. These can // be later modified by the setLabels method. Each label key/value 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"` // RuleTupleCount: [Output Only] Total count of all security policy rule // tuples. A security 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 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` // Type: The type indicates the intended use of the security policy. // CLOUD_ARMOR policies apply to backend services. FIREWALL policies // apply to organizations. // // Possible values: // "CLOUD_ARMOR" // "FIREWALL" 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. "Associations") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SecurityPolicy: Represents a Cloud Armor Security Policy resource.
Only external backend services that use load balancers can reference a Security Policy. For more information, read Cloud Armor Security Policy Concepts. (== resource_for v1.securityPolicies ==) (== resource_for beta.securityPolicies ==)
func (*SecurityPolicy) MarshalJSON ¶
func (s *SecurityPolicy) MarshalJSON() ([]byte, error)
type SecurityPolicyAssociation ¶
type SecurityPolicyAssociation struct { // AttachmentId: The resource that the security policy is attached to. AttachmentId string `json:"attachmentId,omitempty"` // Name: The name for an association. Name string `json:"name,omitempty"` // SecurityPolicyId: [Output Only] The security policy ID of the // association. SecurityPolicyId string `json:"securityPolicyId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AttachmentId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AttachmentId") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SecurityPolicyAssociation) MarshalJSON ¶
func (s *SecurityPolicyAssociation) MarshalJSON() ([]byte, error)
type SecurityPolicyCloudArmorConfig ¶ added in v0.7.0
type SecurityPolicyCloudArmorConfig struct { // EnableMl: If set to true, enables Cloud Armor Machine Learning. EnableMl bool `json:"enableMl,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableMl") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EnableMl") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SecurityPolicyCloudArmorConfig: Configuration options for Cloud Armor.
func (*SecurityPolicyCloudArmorConfig) MarshalJSON ¶ added in v0.7.0
func (s *SecurityPolicyCloudArmorConfig) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SecurityPolicyListWarningData) MarshalJSON ¶
func (s *SecurityPolicyListWarningData) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*SecurityPolicyReference) MarshalJSON ¶
func (s *SecurityPolicyReference) MarshalJSON() ([]byte, error)
type SecurityPolicyRule ¶
type SecurityPolicyRule struct { // Action: The Action to preform when the client connection triggers the // rule. Can currently be either "allow" or "deny()" where valid values // for status are 403, 404, and 502. 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"` // Direction: The direction in which this rule applies. This field may // only be specified when versioned_expr is set to FIREWALL. // // Possible values: // "EGRESS" // "INGRESS" Direction string `json:"direction,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. // // This field may only be specified when the versioned_expr is set to // FIREWALL. EnableLogging bool `json:"enableLogging,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"` // 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 prority. Priority int64 `json:"priority,omitempty"` // RateLimitOptions: Must be specified if the action is // "rate_based_blacklist" or "throttle". Cannot be specified for any // other actions. RateLimitOptions *SecurityPolicyRuleRateLimitOptions `json:"rateLimitOptions,omitempty"` // RuleTupleCount: [Output Only] Calculation of the complexity of a // single firewall security policy rule. RuleTupleCount int64 `json:"ruleTupleCount,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. // // This field may only be specified when versioned_expr is set to // FIREWALL. TargetResources []string `json:"targetResources,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 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. Expr *Expr `json:"expr,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: // "FIREWALL" // "SRC_IPS_V1" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 { // DestIpRanges: CIDR IP address range. // // This field may only be specified when versioned_expr is set to // FIREWALL. DestIpRanges []string `json:"destIpRanges,omitempty"` // DestPorts: Pairs of IP protocols and ports that the rule should // match. // // This field may only be specified when versioned_expr is set to // FIREWALL. DestPorts []*SecurityPolicyRuleMatcherConfigDestinationPort `json:"destPorts,omitempty"` // SrcIpRanges: CIDR IP address range. SrcIpRanges []string `json:"srcIpRanges,omitempty"` // ForceSendFields is a list of field names (e.g. "DestIpRanges") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SecurityPolicyRuleMatcherConfig) MarshalJSON ¶
func (s *SecurityPolicyRuleMatcherConfig) MarshalJSON() ([]byte, error)
type SecurityPolicyRuleMatcherConfigDestinationPort ¶
type SecurityPolicyRuleMatcherConfigDestinationPort 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"]. // // This field may only be specified when versioned_expr is set to // FIREWALL. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SecurityPolicyRuleMatcherConfigDestinationPort) MarshalJSON ¶
func (s *SecurityPolicyRuleMatcherConfigDestinationPort) MarshalJSON() ([]byte, error)
type SecurityPolicyRuleRateLimitOptions ¶ added in v0.2.0
type SecurityPolicyRuleRateLimitOptions struct { // BlockDuration: Can only be specifed if the action for the rule is // "rate_based_blacklist" If specified, determines the time (in seconds) // the traffic will continue to be blocked by the rate limit after the // rate falls below the threshold. The default value is 0 seconds. BlockDuration int64 `json:"blockDuration,omitempty"` // ConformAction: Action to take when requests are under the given // threshold. When requests are throttled, this is also the action for // all requests which are not dropped. Valid options are "allow", // "fairshare", and "drop_overload". ConformAction string `json:"conformAction,omitempty"` // EnforceOnKey: Determines the key to enforce the threshold_rps limit // on. If key is "IP", each IP has this limit enforced separately, // whereas "ALL_IPs" means a single limit is applied to all requests // matching this rule. // // Possible values: // "ALL_IPS" // "IP" EnforceOnKey string `json:"enforceOnKey,omitempty"` // ExceedAction: When a request is denied, returns the HTTP response // code specified. Valid options are "deny()" where valid values for // status are 403, 404, 429, and 502. ExceedAction string `json:"exceedAction,omitempty"` // ThresholdRps: Rate in requests per second at which to begin // ratelimiting. ThresholdRps int64 `json:"thresholdRps,omitempty"` // ForceSendFields is a list of field names (e.g. "BlockDuration") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BlockDuration") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SecurityPolicyRuleRateLimitOptions) MarshalJSON ¶ added in v0.2.0
func (s *SecurityPolicyRuleRateLimitOptions) MarshalJSON() ([]byte, error)
type SecuritySettings ¶ added in v0.2.0
type SecuritySettings struct { // AuthenticationPolicy: Authentication policy defines what // authentication methods can be accepted on backends, and if // authenticated, which method/certificate will set the request // principal. AuthenticationPolicy *AuthenticationPolicy `json:"authenticationPolicy,omitempty"` // AuthorizationConfig: Authorization config defines the Role Based // Access Control (RBAC) config. AuthorizationConfig *AuthorizationConfig `json:"authorizationConfig,omitempty"` // ClientTlsSettings: TLS Settings for the backend service. ClientTlsSettings *ClientTlsSettings `json:"clientTlsSettings,omitempty"` // ForceSendFields is a list of field names (e.g. // "AuthenticationPolicy") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AuthenticationPolicy") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
SecuritySettings: The authentication and authorization settings for a BackendService.
func (*SecuritySettings) MarshalJSON ¶ added in v0.2.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 from the // serial console output. 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, older output // will be overwritten by newer content and the start values will be // mismatched. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SerialPortOutput: An instance's serial console output.
func (*SerialPortOutput) MarshalJSON ¶
func (s *SerialPortOutput) MarshalJSON() ([]byte, error)
type ServerBinding ¶
type ServerBinding struct { // Possible values: // "RESTART_NODE_ON_ANY_SERVER" // "RESTART_NODE_ON_MINIMAL_SERVERS" // "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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ServerBinding) MarshalJSON ¶
func (s *ServerBinding) MarshalJSON() ([]byte, error)
type ServerTlsSettings ¶ added in v0.2.0
type ServerTlsSettings struct { // ProxyTlsContext: Configures the mechanism to obtain security // certificates and identity information. ProxyTlsContext *TlsContext `json:"proxyTlsContext,omitempty"` // SubjectAltNames: A list of alternate names to verify the subject // identity in the certificate presented by the client. SubjectAltNames []string `json:"subjectAltNames,omitempty"` // TlsMode: Indicates whether connections should be secured using TLS. // The value of this field determines how TLS is enforced. This field // can be set to one of the following: // - SIMPLE Secure connections with standard TLS semantics. // - MUTUAL Secure connections to the backends using mutual TLS by // presenting client certificates for authentication. // // Possible values: // "INVALID" // "MUTUAL" // "SIMPLE" TlsMode string `json:"tlsMode,omitempty"` // ForceSendFields is a list of field names (e.g. "ProxyTlsContext") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ProxyTlsContext") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ServerTlsSettings: The TLS settings for the server.
func (*ServerTlsSettings) MarshalJSON ¶ added in v0.2.0
func (s *ServerTlsSettings) 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 Firewalls *FirewallsService ForwardingRules *ForwardingRulesService GlobalAddresses *GlobalAddressesService GlobalForwardingRules *GlobalForwardingRulesService GlobalNetworkEndpointGroups *GlobalNetworkEndpointGroupsService GlobalOperations *GlobalOperationsService GlobalOrganizationOperations *GlobalOrganizationOperationsService GlobalPublicDelegatedPrefixes *GlobalPublicDelegatedPrefixesService HealthChecks *HealthChecksService HttpHealthChecks *HttpHealthChecksService HttpsHealthChecks *HttpsHealthChecksService Images *ImagesService InstanceGroupManagers *InstanceGroupManagersService InstanceGroups *InstanceGroupsService InstanceTemplates *InstanceTemplatesService Instances *InstancesService InterconnectAttachments *InterconnectAttachmentsService InterconnectLocations *InterconnectLocationsService Interconnects *InterconnectsService LicenseCodes *LicenseCodesService Licenses *LicensesService MachineImages *MachineImagesService MachineTypes *MachineTypesService NetworkEndpointGroups *NetworkEndpointGroupsService Networks *NetworksService NodeGroups *NodeGroupsService NodeTemplates *NodeTemplatesService NodeTypes *NodeTypesService OrganizationSecurityPolicies *OrganizationSecurityPoliciesService 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 RegionNotificationEndpoints *RegionNotificationEndpointsService RegionOperations *RegionOperationsService RegionSslCertificates *RegionSslCertificatesService RegionTargetHttpProxies *RegionTargetHttpProxiesService RegionTargetHttpsProxies *RegionTargetHttpsProxiesService RegionUrlMaps *RegionUrlMapsService Regions *RegionsService Reservations *ReservationsService ResourcePolicies *ResourcePoliciesService Routers *RoutersService Routes *RoutesService SecurityPolicies *SecurityPoliciesService Snapshots *SnapshotsService SslCertificates *SslCertificatesService SslPolicies *SslPoliciesService Subnetworks *SubnetworksService 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ServiceAccount: A service account.
func (*ServiceAccount) MarshalJSON ¶
func (s *ServiceAccount) MarshalJSON() ([]byte, error)
type ShieldedInstanceConfig ¶ added in v0.2.0
type ShieldedInstanceConfig struct { // EnableIntegrityMonitoring: Defines whether the instance has integrity // monitoring enabled. EnableIntegrityMonitoring bool `json:"enableIntegrityMonitoring,omitempty"` // EnableSecureBoot: Defines whether the instance has Secure Boot // enabled. EnableSecureBoot bool `json:"enableSecureBoot,omitempty"` // EnableVtpm: Defines whether the instance has the vTPM enabled. 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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
ShieldedInstanceConfig: A set of Shielded Instance options.
func (*ShieldedInstanceConfig) MarshalJSON ¶ added in v0.2.0
func (s *ShieldedInstanceConfig) MarshalJSON() ([]byte, error)
type ShieldedInstanceIdentity ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ShieldedInstanceIdentity: A shielded Instance identity entry.
func (*ShieldedInstanceIdentity) MarshalJSON ¶ added in v0.2.0
func (s *ShieldedInstanceIdentity) MarshalJSON() ([]byte, error)
type ShieldedInstanceIdentityEntry ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ShieldedInstanceIdentityEntry: A Shielded Instance Identity Entry.
func (*ShieldedInstanceIdentityEntry) MarshalJSON ¶ added in v0.2.0
func (s *ShieldedInstanceIdentityEntry) MarshalJSON() ([]byte, error)
type ShieldedInstanceIntegrityPolicy ¶ added in v0.2.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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ShieldedInstanceIntegrityPolicy: The policy describes the baseline against which Instance boot integrity is measured.
func (*ShieldedInstanceIntegrityPolicy) MarshalJSON ¶ added in v0.2.0
func (s *ShieldedInstanceIntegrityPolicy) MarshalJSON() ([]byte, error)
type ShieldedVmConfig ¶
type ShieldedVmConfig struct { // EnableIntegrityMonitoring: Defines whether the instance has integrity // monitoring enabled. EnableIntegrityMonitoring bool `json:"enableIntegrityMonitoring,omitempty"` // EnableSecureBoot: Defines whether the instance has Secure Boot // enabled. EnableSecureBoot bool `json:"enableSecureBoot,omitempty"` // EnableVtpm: Defines whether the instance has the vTPM enabled. 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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
ShieldedVmConfig: A set of Shielded VM options.
func (*ShieldedVmConfig) MarshalJSON ¶
func (s *ShieldedVmConfig) MarshalJSON() ([]byte, error)
type ShieldedVmIdentity ¶
type ShieldedVmIdentity struct { // EncryptionKey: An Endorsement Key (EK) issued to the Shielded VM's // vTPM. EncryptionKey *ShieldedVmIdentityEntry `json:"encryptionKey,omitempty"` // Kind: [Output Only] Type of the resource. Always // compute#shieldedVmIdentity for shielded VM identity entry. Kind string `json:"kind,omitempty"` // SigningKey: An Attestation Key (AK) issued to the Shielded VM's vTPM. SigningKey *ShieldedVmIdentityEntry `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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ShieldedVmIdentity: A shielded VM identity entry.
func (*ShieldedVmIdentity) MarshalJSON ¶
func (s *ShieldedVmIdentity) MarshalJSON() ([]byte, error)
type ShieldedVmIdentityEntry ¶
type ShieldedVmIdentityEntry 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ShieldedVmIdentityEntry: A Shielded Instance Identity Entry.
func (*ShieldedVmIdentityEntry) MarshalJSON ¶
func (s *ShieldedVmIdentityEntry) MarshalJSON() ([]byte, error)
type ShieldedVmIntegrityPolicy ¶
type ShieldedVmIntegrityPolicy 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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ShieldedVmIntegrityPolicy: The policy describes the baseline against which VM instance boot integrity is measured.
func (*ShieldedVmIntegrityPolicy) MarshalJSON ¶
func (s *ShieldedVmIntegrityPolicy) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 { // AutoCreated: [Output Only] Set to true if snapshots are automatically // created by applying resource policy on the target disk. AutoCreated bool `json:"autoCreated,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"` // 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"` // 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 for this resource's // resource id. SelfLinkWithId string `json:"selfLinkWithId,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"` // SourceDisk: [Output Only] 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"` // 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"` // Status: [Output Only] The status of the snapshot. This can be // CREATING, DELETING, FAILED, READY, or UPLOADING. // // Possible values: // "CREATING" // "DELETING" // "FAILED" // "READY" // "UPLOADING" 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. "AutoCreated") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AutoCreated") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== resource_for beta.snapshots ==) (== resource_for v1.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SnapshotListWarningData) MarshalJSON ¶
func (s *SnapshotListWarningData) 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SnapshotsDeleteCall) Do ¶
func (c *SnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.snapshots.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SnapshotsDeleteCall) Header ¶
func (c *SnapshotsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SnapshotsGetCall) Do ¶
func (c *SnapshotsGetCall) Do(opts ...googleapi.CallOption) (*Snapshot, error)
Do executes the "compute.snapshots.get" call. Exactly one of *Snapshot or error will be non-nil. 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 information.
func (*SnapshotsGetCall) Header ¶
func (c *SnapshotsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SnapshotsGetCall) IfNoneMatch ¶
func (c *SnapshotsGetCall) IfNoneMatch(entityTag string) *SnapshotsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SnapshotsGetIamPolicyCall) Do ¶
func (c *SnapshotsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.snapshots.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*SnapshotsGetIamPolicyCall) Header ¶
func (c *SnapshotsGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SnapshotsGetIamPolicyCall) IfNoneMatch ¶
func (c *SnapshotsGetIamPolicyCall) IfNoneMatch(entityTag string) *SnapshotsGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*SnapshotsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.0
func (c *SnapshotsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *SnapshotsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "optionsRequestedPolicyVersion": Requested IAM Policy version.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SnapshotsListCall) Do ¶
func (c *SnapshotsListCall) Do(opts ...googleapi.CallOption) (*SnapshotList, error)
Do executes the "compute.snapshots.list" call. Exactly one of *SnapshotList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*SnapshotsListCall) Header ¶
func (c *SnapshotsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SnapshotsListCall) IfNoneMatch ¶
func (c *SnapshotsListCall) IfNoneMatch(entityTag string) *SnapshotsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/snapshots/delete
func (*SnapshotsService) Get ¶
func (r *SnapshotsService) Get(project string, snapshot string) *SnapshotsGetCall
Get: Returns the specified Snapshot resource. Gets a list of available snapshots by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/snapshots/get
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. (== suppress_warning http-rest-shadowed ==)
func (*SnapshotsService) List ¶
func (r *SnapshotsService) List(project string) *SnapshotsListCall
List: Retrieves the list of Snapshot resources contained within the specified project. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/snapshots/list
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SnapshotsSetIamPolicyCall) Do ¶
func (c *SnapshotsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.snapshots.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*SnapshotsSetIamPolicyCall) Header ¶
func (c *SnapshotsSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SnapshotsSetLabelsCall) Do ¶
func (c *SnapshotsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.snapshots.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SnapshotsSetLabelsCall) Header ¶
func (c *SnapshotsSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SnapshotsTestIamPermissionsCall) Do ¶
func (c *SnapshotsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.snapshots.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 information.
func (*SnapshotsTestIamPermissionsCall) Header ¶
func (c *SnapshotsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type SourceDiskEncryptionKey ¶ added in v0.7.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*SourceDiskEncryptionKey) MarshalJSON ¶ added in v0.7.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, 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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 ¶
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SourceInstanceProperties) MarshalJSON ¶
func (s *SourceInstanceProperties) MarshalJSON() ([]byte, error)
type SslCertificate ¶
type SslCertificate 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"` // 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 write-only private key in PEM format. Only insert // requests will 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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" // "SELF_MANAGED" // "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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SslCertificate: Represents an SSL Certificate resource.
This SSL certificate resource also contains a private key. You can use SSL keys and certificates to secure connections to a load balancer. For more information, read Creating and Using SSL Certificates. (== resource_for beta.sslCertificates ==) (== resource_for v1.sslCertificates ==)
func (*SslCertificate) MarshalJSON ¶
func (s *SslCertificate) MarshalJSON() ([]byte, error)
type SslCertificateAggregatedList ¶
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SslCertificateAggregatedList) MarshalJSON ¶
func (s *SslCertificateAggregatedList) MarshalJSON() ([]byte, error)
type SslCertificateAggregatedListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SslCertificateAggregatedListWarning: [Output Only] Informational warning message.
func (*SslCertificateAggregatedListWarning) MarshalJSON ¶
func (s *SslCertificateAggregatedListWarning) MarshalJSON() ([]byte, error)
type SslCertificateAggregatedListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SslCertificateAggregatedListWarningData) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SslCertificateListWarningData) MarshalJSON ¶
func (s *SslCertificateListWarningData) MarshalJSON() ([]byte, error)
type SslCertificateManagedSslCertificate ¶
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. Currently only single-domain certs are supported. Domains []string `json:"domains,omitempty"` // Status: [Output only] Status of the managed certificate resource. // // Possible values: // "ACTIVE" // "MANAGED_CERTIFICATE_STATUS_UNSPECIFIED" // "PROVISIONING" // "PROVISIONING_FAILED" // "PROVISIONING_FAILED_PERMANENTLY" // "RENEWAL_FAILED" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SslCertificateManagedSslCertificate: Configuration and status of a managed SSL certificate.
func (*SslCertificateManagedSslCertificate) MarshalJSON ¶
func (s *SslCertificateManagedSslCertificate) MarshalJSON() ([]byte, error)
type SslCertificateSelfManagedSslCertificate ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SslCertificateSelfManagedSslCertificate: Configuration and status of a self-managed SSL certificate.
func (*SslCertificateSelfManagedSslCertificate) MarshalJSON ¶
func (s *SslCertificateSelfManagedSslCertificate) MarshalJSON() ([]byte, error)
type SslCertificatesAggregatedListCall ¶
type SslCertificatesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*SslCertificatesAggregatedListCall) Context ¶
func (c *SslCertificatesAggregatedListCall) Context(ctx context.Context) *SslCertificatesAggregatedListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SslCertificatesAggregatedListCall) Do ¶
func (c *SslCertificatesAggregatedListCall) Do(opts ...googleapi.CallOption) (*SslCertificateAggregatedList, error)
Do executes the "compute.sslCertificates.aggregatedList" call. Exactly one of *SslCertificateAggregatedList or error will be non-nil. 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 ¶
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 information.
func (*SslCertificatesAggregatedListCall) Filter ¶
func (c *SslCertificatesAggregatedListCall) Filter(filter string) *SslCertificatesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*SslCertificatesAggregatedListCall) Header ¶
func (c *SslCertificatesAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SslCertificatesAggregatedListCall) IfNoneMatch ¶
func (c *SslCertificatesAggregatedListCall) IfNoneMatch(entityTag string) *SslCertificatesAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*SslCertificatesAggregatedListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SslCertificatesDeleteCall) Do ¶
func (c *SslCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.sslCertificates.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SslCertificatesDeleteCall) Header ¶
func (c *SslCertificatesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SslCertificatesGetCall) Do ¶
func (c *SslCertificatesGetCall) Do(opts ...googleapi.CallOption) (*SslCertificate, error)
Do executes the "compute.sslCertificates.get" call. Exactly one of *SslCertificate or error will be non-nil. 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 information.
func (*SslCertificatesGetCall) Header ¶
func (c *SslCertificatesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SslCertificatesGetCall) IfNoneMatch ¶
func (c *SslCertificatesGetCall) IfNoneMatch(entityTag string) *SslCertificatesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SslCertificatesInsertCall) Do ¶
func (c *SslCertificatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.sslCertificates.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SslCertificatesInsertCall) Header ¶
func (c *SslCertificatesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SslCertificatesListCall) Do ¶
func (c *SslCertificatesListCall) Do(opts ...googleapi.CallOption) (*SslCertificateList, error)
Do executes the "compute.sslCertificates.list" call. Exactly one of *SslCertificateList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*SslCertificatesListCall) Header ¶
func (c *SslCertificatesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SslCertificatesListCall) IfNoneMatch ¶
func (c *SslCertificatesListCall) IfNoneMatch(entityTag string) *SslCertificatesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
type SslCertificatesScopedList ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*SslCertificatesScopedList) MarshalJSON ¶
func (s *SslCertificatesScopedList) MarshalJSON() ([]byte, error)
type SslCertificatesScopedListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SslCertificatesScopedListWarning: Informational warning which replaces the list of backend services when the list is empty.
func (*SslCertificatesScopedListWarning) MarshalJSON ¶
func (s *SslCertificatesScopedListWarning) MarshalJSON() ([]byte, error)
type SslCertificatesScopedListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SslCertificatesScopedListWarningData) MarshalJSON ¶
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 ¶
func (r *SslCertificatesService) AggregatedList(project string) *SslCertificatesAggregatedListCall
AggregatedList: Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. (== suppress_warning http-rest-shadowed ==)
func (*SslCertificatesService) Delete ¶
func (r *SslCertificatesService) Delete(project string, sslCertificate string) *SslCertificatesDeleteCall
Delete: Deletes the specified SslCertificate resource. (== suppress_warning http-rest-shadowed ==)
func (*SslCertificatesService) Get ¶
func (r *SslCertificatesService) Get(project string, sslCertificate string) *SslCertificatesGetCall
Get: Returns the specified SslCertificate resource. Gets a list of available SSL certificates by making a list() request. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*SslCertificatesService) List ¶
func (r *SslCertificatesService) List(project string) *SslCertificatesListCall
List: Retrieves the list of SslCertificate resources available to the specified project. (== suppress_warning http-rest-shadowed ==)
func (*SslCertificatesService) TestIamPermissions ¶
func (r *SslCertificatesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *SslCertificatesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type SslCertificatesTestIamPermissionsCall ¶
type SslCertificatesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*SslCertificatesTestIamPermissionsCall) Context ¶
func (c *SslCertificatesTestIamPermissionsCall) Context(ctx context.Context) *SslCertificatesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SslCertificatesTestIamPermissionsCall) Do ¶
func (c *SslCertificatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.sslCertificates.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*SslCertificatesTestIamPermissionsCall) Fields ¶
func (c *SslCertificatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *SslCertificatesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*SslCertificatesTestIamPermissionsCall) Header ¶
func (c *SslCertificatesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SslPoliciesDeleteCall) Do ¶
func (c *SslPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.sslPolicies.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SslPoliciesDeleteCall) Header ¶
func (c *SslPoliciesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SslPoliciesGetCall) Do ¶
func (c *SslPoliciesGetCall) Do(opts ...googleapi.CallOption) (*SslPolicy, error)
Do executes the "compute.sslPolicies.get" call. Exactly one of *SslPolicy or error will be non-nil. 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 information.
func (*SslPoliciesGetCall) Header ¶
func (c *SslPoliciesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SslPoliciesGetCall) IfNoneMatch ¶
func (c *SslPoliciesGetCall) IfNoneMatch(entityTag string) *SslPoliciesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SslPoliciesInsertCall) Do ¶
func (c *SslPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.sslPolicies.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SslPoliciesInsertCall) Header ¶
func (c *SslPoliciesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SslPoliciesListAvailableFeaturesCall) Do ¶
func (c *SslPoliciesListAvailableFeaturesCall) Do(opts ...googleapi.CallOption) (*SslPoliciesListAvailableFeaturesResponse, error)
Do executes the "compute.sslPolicies.listAvailableFeatures" call. Exactly one of *SslPoliciesListAvailableFeaturesResponse or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*SslPoliciesListAvailableFeaturesCall) Header ¶
func (c *SslPoliciesListAvailableFeaturesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SslPoliciesListAvailableFeaturesCall) IfNoneMatch ¶
func (c *SslPoliciesListAvailableFeaturesCall) IfNoneMatch(entityTag string) *SslPoliciesListAvailableFeaturesCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SslPoliciesListCall) Do ¶
func (c *SslPoliciesListCall) Do(opts ...googleapi.CallOption) (*SslPoliciesList, error)
Do executes the "compute.sslPolicies.list" call. Exactly one of *SslPoliciesList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*SslPoliciesListCall) Header ¶
func (c *SslPoliciesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SslPoliciesListCall) IfNoneMatch ¶
func (c *SslPoliciesListCall) IfNoneMatch(entityTag string) *SslPoliciesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SslPoliciesPatchCall) Do ¶
func (c *SslPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.sslPolicies.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SslPoliciesPatchCall) Header ¶
func (c *SslPoliciesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 SslPoliciesService ¶
type SslPoliciesService struct {
// contains filtered or unexported fields
}
func NewSslPoliciesService ¶
func NewSslPoliciesService(s *Service) *SslPoliciesService
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*SslPoliciesService) Insert ¶
func (r *SslPoliciesService) Insert(project string, sslpolicy *SslPolicy) *SslPoliciesInsertCall
Insert: Returns the specified SSL policy resource. Gets a list of available SSL policies by making a list() request. (== suppress_warning http-rest-shadowed ==)
func (*SslPoliciesService) List ¶
func (r *SslPoliciesService) List(project string) *SslPoliciesListCall
List: Lists all the SSL policies that have been configured for the specified project. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*SslPoliciesService) TestIamPermissions ¶
func (r *SslPoliciesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *SslPoliciesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type SslPoliciesTestIamPermissionsCall ¶
type SslPoliciesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*SslPoliciesTestIamPermissionsCall) Context ¶
func (c *SslPoliciesTestIamPermissionsCall) Context(ctx context.Context) *SslPoliciesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SslPoliciesTestIamPermissionsCall) Do ¶
func (c *SslPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.sslPolicies.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*SslPoliciesTestIamPermissionsCall) Fields ¶
func (c *SslPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *SslPoliciesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*SslPoliciesTestIamPermissionsCall) Header ¶
func (c *SslPoliciesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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_1" // "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" // "CUSTOM" // "MODERN" // "RESTRICTED" Profile string `json:"profile,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"` // TlsSettings: Security settings for the proxy. This field is only // applicable to a global backend service with the loadBalancingScheme // set to INTERNAL_SELF_MANAGED. TlsSettings *ServerTlsSettings `json:"tlsSettings,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
SslPolicy: Represents a Cloud Armor Security Policy resource.
Only external backend services used by HTTP or HTTPS load balancers can reference a Security Policy. For more information, read read Cloud Armor Security Policy Concepts. (== resource_for beta.sslPolicies ==) (== resource_for v1.sslPolicies ==)
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SslPolicyWarningsData) MarshalJSON ¶
func (s *SslPolicyWarningsData) MarshalJSON() ([]byte, error)
type StatefulPolicy ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*StatefulPolicy) MarshalJSON ¶
func (s *StatefulPolicy) MarshalJSON() ([]byte, error)
type StatefulPolicyPreservedState ¶
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"` // ForceSendFields is a list of field names (e.g. "Disks") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
StatefulPolicyPreservedState: Configuration of preserved resources.
func (*StatefulPolicyPreservedState) MarshalJSON ¶
func (s *StatefulPolicyPreservedState) MarshalJSON() ([]byte, error)
type StatefulPolicyPreservedStateDiskDevice ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*StatefulPolicyPreservedStateDiskDevice) MarshalJSON ¶
func (s *StatefulPolicyPreservedStateDiskDevice) MarshalJSON() ([]byte, error)
type Subnetwork ¶
type Subnetwork struct { // AggregationInterval: Can only be specified if VPC flow logging for // this subnetwork is enabled. Sets the aggregation interval for // collecting flow logs. Increasing the interval time reduces the amount // of generated flow logs for long-lasting connections. Default is an // interval of 5 seconds per connection. Valid values: INTERVAL_5_SEC, // INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN, INTERVAL_10_MIN, // INTERVAL_15_MIN. // // 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"` // AllowSubnetCidrRoutesOverlap: Whether this subnetwork can conflict // with static routes. Setting this to true allows this subnetwork's // primary and secondary ranges to conflict with routes that have // already been configured on the corresponding network. Static routes // will take precedence over the subnetwork route if the route prefix // length is at least as large as the subnetwork prefix length. // // Also, packets destined to IPs within subnetwork may contain // private/sensitive data and are prevented from leaving the virtual // network. Setting this field to true will disable this feature. // // The default value is false and applies to all existing subnetworks // and automatically created subnetworks. // // This field cannot be set to true at resource creation time. AllowSubnetCidrRoutesOverlap bool `json:"allowSubnetCidrRoutesOverlap,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. 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 to disable flow logging. EnableFlowLogs bool `json:"enableFlowLogs,omitempty"` // EnablePrivateV6Access: Deprecated in favor of enable in // PrivateIpv6GoogleAccess. Whether the VMs in this subnet can directly // access Google services via internal IPv6 addresses. This field can be // both set at resource creation time and updated using patch. EnablePrivateV6Access bool `json:"enablePrivateV6Access,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"` // 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, which means half of all collected logs are // reported. FlowSampling float64 `json:"flowSampling,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"` // 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 192.168.0.0/16. Ranges must be unique and // non-overlapping within a network. Only IPv4 is supported. This field // can be set only at resource creation time. IpCidrRange string `json:"ipCidrRange,omitempty"` // Ipv6CidrRange: [Output Only] The range of internal IPv6 addresses // that are owned by this subnetwork. 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 Stackdriver. LogConfig *SubnetworkLogConfig `json:"logConfig,omitempty"` // Metadata: Can only be specified if VPC flow logging for this // subnetwork is enabled. Configures whether metadata fields should be // added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA. // // Possible values: // "EXCLUDE_ALL_METADATA" // "INCLUDE_ALL_METADATA" Metadata string `json:"metadata,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. Only // networks that are in the distributed mode can have subnetworks. 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: The private IPv6 google access type for the // VMs in this subnet. This is an expanded field of // enablePrivateV6Access. If both fields are set, // privateIpv6GoogleAccess will take priority. // // This field can be both set at resource creation time and updated // using patch. // // Possible values: // "DISABLE_GOOGLE_ACCESS" // "ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE" // "ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE" // "ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS" PrivateIpv6GoogleAccess string `json:"privateIpv6GoogleAccess,omitempty"` // PrivateIpv6GoogleAccessServiceAccounts: The service accounts can be // used to selectively turn on Private IPv6 Google Access only on the // VMs primary service account matching the value. This value only takes // effect when PrivateIpv6GoogleAccess is // ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS or // ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS. PrivateIpv6GoogleAccessServiceAccounts []string `json:"privateIpv6GoogleAccessServiceAccounts,omitempty"` // Purpose: The purpose of the resource. This field can be either // PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with // purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created // subnetwork that is reserved for Internal HTTP(S) Load Balancing. If // unspecified, the purpose defaults to PRIVATE_RFC_1918. // // Possible values: // "AGGREGATE" // "INTERNAL_HTTPS_LOAD_BALANCER" // "PRIVATE" // "PRIVATE_RFC_1918" Purpose string `json:"purpose,omitempty"` // RangeType: The type of IP CIDR range to associate with this // subnetwork. The default is RFC_1918. When creating a subnetwork in // non-RFC 1918 range, this field must be set to NON_RFC_1918. // // Possible values: // "NON_RFC_1918" // "RFC_1918" RangeType string `json:"rangeType,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"` // Role: The role of subnetwork. Currenly, this field is only used when // purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to // ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being // used for Internal HTTP(S) Load Balancing. 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" // "BACKUP" 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` // State: [Output Only] The state of the subnetwork, which can be one of // READY or DRAINING. A subnetwork that is READY is ready to be used. // The state of DRAINING is 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" // "READY" 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. "AggregationInterval") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. (== resource_for beta.subnetworks ==) (== resource_for v1.subnetworks ==)
func (*Subnetwork) MarshalJSON ¶
func (s *Subnetwork) MarshalJSON() ([]byte, error)
func (*Subnetwork) UnmarshalJSON ¶
func (s *Subnetwork) UnmarshalJSON(data []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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SubnetworkListWarningData) MarshalJSON ¶
func (s *SubnetworkListWarningData) MarshalJSON() ([]byte, error)
type SubnetworkLogConfig ¶
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 to disable flow logging. Enable bool `json:"enable,omitempty"` // FilterExpr: Can only be specified if VPC flow logs for this // subnetwork is enabled. Export filter used to define which VPC flow // logs should be logged. 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, 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 // INCLUDE_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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
SubnetworkLogConfig: The available logging options for this subnetwork.
func (*SubnetworkLogConfig) MarshalJSON ¶
func (s *SubnetworkLogConfig) MarshalJSON() ([]byte, error)
func (*SubnetworkLogConfig) UnmarshalJSON ¶
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. 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"` // RangeType: The type of IP CIDR range to associate with this // subnetwork secondary range. The default is RFC_1918. When creating a // subnetwork in non-RFC 1918 range, this field must be set to // NON_RFC_1918. // // Possible values: // "NON_RFC_1918" // "RFC_1918" RangeType string `json:"rangeType,omitempty"` // ForceSendFields is a list of field names (e.g. "IpCidrRange") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SubnetworksAggregatedListCall) Do ¶
func (c *SubnetworksAggregatedListCall) Do(opts ...googleapi.CallOption) (*SubnetworkAggregatedList, error)
Do executes the "compute.subnetworks.aggregatedList" call. Exactly one of *SubnetworkAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*SubnetworksAggregatedListCall) Header ¶
func (c *SubnetworksAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SubnetworksAggregatedListCall) IfNoneMatch ¶
func (c *SubnetworksAggregatedListCall) IfNoneMatch(entityTag string) *SubnetworksAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SubnetworksDeleteCall) Do ¶
func (c *SubnetworksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.subnetworks.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SubnetworksDeleteCall) Header ¶
func (c *SubnetworksDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SubnetworksExpandIpCidrRangeCall) Do ¶
func (c *SubnetworksExpandIpCidrRangeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.subnetworks.expandIpCidrRange" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SubnetworksExpandIpCidrRangeCall) Header ¶
func (c *SubnetworksExpandIpCidrRangeCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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"` // RangeType: The type of IP CIDR range to associate with this // subnetwork. The default is RFC_1918. When expanding to a non-RFC 1918 // range, this field must be be set to NON_RFC_1918. // // Possible values: // "NON_RFC_1918" // "RFC_1918" RangeType string `json:"rangeType,omitempty"` // ForceSendFields is a list of field names (e.g. "IpCidrRange") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SubnetworksGetCall) Do ¶
func (c *SubnetworksGetCall) Do(opts ...googleapi.CallOption) (*Subnetwork, error)
Do executes the "compute.subnetworks.get" call. Exactly one of *Subnetwork or error will be non-nil. 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 information.
func (*SubnetworksGetCall) Header ¶
func (c *SubnetworksGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SubnetworksGetCall) IfNoneMatch ¶
func (c *SubnetworksGetCall) IfNoneMatch(entityTag string) *SubnetworksGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SubnetworksGetIamPolicyCall) Do ¶
func (c *SubnetworksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.subnetworks.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*SubnetworksGetIamPolicyCall) Header ¶
func (c *SubnetworksGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SubnetworksGetIamPolicyCall) IfNoneMatch ¶
func (c *SubnetworksGetIamPolicyCall) IfNoneMatch(entityTag string) *SubnetworksGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*SubnetworksGetIamPolicyCall) OptionsRequestedPolicyVersion ¶ added in v0.11.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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SubnetworksInsertCall) Do ¶
func (c *SubnetworksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.subnetworks.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SubnetworksInsertCall) Header ¶
func (c *SubnetworksInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SubnetworksListCall) Do ¶
func (c *SubnetworksListCall) Do(opts ...googleapi.CallOption) (*SubnetworkList, error)
Do executes the "compute.subnetworks.list" call. Exactly one of *SubnetworkList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*SubnetworksListCall) Header ¶
func (c *SubnetworksListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SubnetworksListCall) IfNoneMatch ¶
func (c *SubnetworksListCall) IfNoneMatch(entityTag string) *SubnetworksListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SubnetworksListUsableCall) Do ¶
func (c *SubnetworksListUsableCall) Do(opts ...googleapi.CallOption) (*UsableSubnetworksAggregatedList, error)
Do executes the "compute.subnetworks.listUsable" call. Exactly one of *UsableSubnetworksAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*SubnetworksListUsableCall) Header ¶
func (c *SubnetworksListUsableCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SubnetworksListUsableCall) IfNoneMatch ¶
func (c *SubnetworksListUsableCall) IfNoneMatch(entityTag string) *SubnetworksListUsableCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SubnetworksPatchCall) Do ¶
func (c *SubnetworksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.subnetworks.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*SubnetworksPatchCall) Header ¶
func (c *SubnetworksPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
func (*SubnetworksService) Delete ¶
func (r *SubnetworksService) Delete(project string, region string, subnetwork string) *SubnetworksDeleteCall
Delete: Deletes the specified subnetwork. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*SubnetworksService) Get ¶
func (r *SubnetworksService) Get(project string, region string, subnetwork string) *SubnetworksGetCall
Get: Returns the specified subnetwork. Gets a list of available subnetworks list() request. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*SubnetworksService) List ¶
func (r *SubnetworksService) List(project string, region string) *SubnetworksListCall
List: Retrieves a list of subnetworks available to the specified project. (== suppress_warning http-rest-shadowed ==)
func (*SubnetworksService) ListUsable ¶
func (r *SubnetworksService) ListUsable(project string) *SubnetworksListUsableCall
ListUsable: Retrieves an aggregated list of all usable subnetworks in the project. The list contains all of the subnetworks in the project and the subnetworks that were shared by a Shared VPC host project. (== suppress_warning http-rest-shadowed ==)
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 up updated with a patch request as indicated in the field descriptions. You must specify the current fingeprint of the subnetwork resource being patched. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SubnetworksSetIamPolicyCall) Do ¶
func (c *SubnetworksSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "compute.subnetworks.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*SubnetworksSetIamPolicyCall) Header ¶
func (c *SubnetworksSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SubnetworksSetPrivateIpGoogleAccessCall) Do ¶
func (c *SubnetworksSetPrivateIpGoogleAccessCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.subnetworks.setPrivateIpGoogleAccess" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*SubnetworksSetPrivateIpGoogleAccessCall) Header ¶
func (c *SubnetworksSetPrivateIpGoogleAccessCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SubnetworksTestIamPermissionsCall) Do ¶
func (c *SubnetworksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.subnetworks.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 information.
func (*SubnetworksTestIamPermissionsCall) Header ¶
func (c *SubnetworksTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type TCPHealthCheck ¶
type TCPHealthCheck struct { // Port: The TCP port number for the health check request. The default // value is 80. Valid values are 1 through 65535. Port int64 `json:"port,omitempty"` // PortName: Port name as defined in InstanceGroup#NamedPort#name. If // both port and port_name are defined, port takes precedence. PortName string `json:"portName,omitempty"` // PortSpecification: Specifies how port is selected for health // checking, can be one of following values: // USE_FIXED_PORT: The port number in // port // is used for health checking. // USE_NAMED_PORT: The // portName // is used for health checking. // USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for // each network endpoint is used for health checking. For other // backends, the port or named port specified in the Backend Service is // used for health checking. // // // If not specified, TCP health check follows behavior specified // in // port // and // portName // fields. // // Possible values: // "USE_FIXED_PORT" // "USE_NAMED_PORT" // "USE_SERVING_PORT" 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: The application data to send once the TCP connection has // been established (default value is empty). If both request and // response are empty, the connection establishment alone will indicate // health. The request data can only be ASCII. Request string `json:"request,omitempty"` // Response: The bytes to match against the beginning of the response // data. If left empty (the default value), any response will indicate // health. The response data can only be ASCII. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Tags: A set of instance tags.
func (*Tags) MarshalJSON ¶
type TargetHttpProxiesAggregatedListCall ¶
type TargetHttpProxiesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpProxiesAggregatedListCall) Context ¶
func (c *TargetHttpProxiesAggregatedListCall) Context(ctx context.Context) *TargetHttpProxiesAggregatedListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpProxiesAggregatedListCall) Do ¶
func (c *TargetHttpProxiesAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetHttpProxyAggregatedList, error)
Do executes the "compute.targetHttpProxies.aggregatedList" call. Exactly one of *TargetHttpProxyAggregatedList or error will be non-nil. 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 ¶
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 information.
func (*TargetHttpProxiesAggregatedListCall) Filter ¶
func (c *TargetHttpProxiesAggregatedListCall) Filter(filter string) *TargetHttpProxiesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*TargetHttpProxiesAggregatedListCall) Header ¶
func (c *TargetHttpProxiesAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetHttpProxiesAggregatedListCall) IfNoneMatch ¶
func (c *TargetHttpProxiesAggregatedListCall) IfNoneMatch(entityTag string) *TargetHttpProxiesAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*TargetHttpProxiesAggregatedListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpProxiesDeleteCall) Do ¶
func (c *TargetHttpProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpProxies.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetHttpProxiesDeleteCall) Header ¶
func (c *TargetHttpProxiesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpProxiesGetCall) Do ¶
func (c *TargetHttpProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetHttpProxy, error)
Do executes the "compute.targetHttpProxies.get" call. Exactly one of *TargetHttpProxy or error will be non-nil. 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 information.
func (*TargetHttpProxiesGetCall) Header ¶
func (c *TargetHttpProxiesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetHttpProxiesGetCall) IfNoneMatch ¶
func (c *TargetHttpProxiesGetCall) IfNoneMatch(entityTag string) *TargetHttpProxiesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpProxiesInsertCall) Do ¶
func (c *TargetHttpProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpProxies.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetHttpProxiesInsertCall) Header ¶
func (c *TargetHttpProxiesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpProxiesListCall) Do ¶
func (c *TargetHttpProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetHttpProxyList, error)
Do executes the "compute.targetHttpProxies.list" call. Exactly one of *TargetHttpProxyList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*TargetHttpProxiesListCall) Header ¶
func (c *TargetHttpProxiesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetHttpProxiesListCall) IfNoneMatch ¶
func (c *TargetHttpProxiesListCall) IfNoneMatch(entityTag string) *TargetHttpProxiesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
type TargetHttpProxiesScopedList ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*TargetHttpProxiesScopedList) MarshalJSON ¶
func (s *TargetHttpProxiesScopedList) MarshalJSON() ([]byte, error)
type TargetHttpProxiesScopedListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TargetHttpProxiesScopedListWarning: Informational warning which replaces the list of backend services when the list is empty.
func (*TargetHttpProxiesScopedListWarning) MarshalJSON ¶
func (s *TargetHttpProxiesScopedListWarning) MarshalJSON() ([]byte, error)
type TargetHttpProxiesScopedListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TargetHttpProxiesScopedListWarningData) MarshalJSON ¶
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 ¶
func (r *TargetHttpProxiesService) AggregatedList(project string) *TargetHttpProxiesAggregatedListCall
AggregatedList: Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project. (== suppress_warning http-rest-shadowed ==)
func (*TargetHttpProxiesService) Delete ¶
func (r *TargetHttpProxiesService) Delete(project string, targetHttpProxy string) *TargetHttpProxiesDeleteCall
Delete: Deletes the specified TargetHttpProxy resource. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies/delete
func (*TargetHttpProxiesService) Get ¶
func (r *TargetHttpProxiesService) Get(project string, targetHttpProxy string) *TargetHttpProxiesGetCall
Get: Returns the specified TargetHttpProxy resource. Gets a list of available target HTTP proxies by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies/get
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies/insert
func (*TargetHttpProxiesService) List ¶
func (r *TargetHttpProxiesService) List(project string) *TargetHttpProxiesListCall
List: Retrieves the list of TargetHttpProxy resources available to the specified project. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies/list
func (*TargetHttpProxiesService) SetUrlMap ¶
func (r *TargetHttpProxiesService) SetUrlMap(project string, targetHttpProxy string, urlmapreference *UrlMapReference) *TargetHttpProxiesSetUrlMapCall
SetUrlMap: Changes the URL map for TargetHttpProxy. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies/setUrlMap
func (*TargetHttpProxiesService) TestIamPermissions ¶
func (r *TargetHttpProxiesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *TargetHttpProxiesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpProxiesSetUrlMapCall) Do ¶
func (c *TargetHttpProxiesSetUrlMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpProxies.setUrlMap" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetHttpProxiesSetUrlMapCall) Header ¶
func (c *TargetHttpProxiesSetUrlMapCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 TargetHttpProxiesTestIamPermissionsCall ¶
type TargetHttpProxiesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpProxiesTestIamPermissionsCall) Context ¶
func (c *TargetHttpProxiesTestIamPermissionsCall) Context(ctx context.Context) *TargetHttpProxiesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpProxiesTestIamPermissionsCall) Do ¶
func (c *TargetHttpProxiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.targetHttpProxies.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*TargetHttpProxiesTestIamPermissionsCall) Fields ¶
func (c *TargetHttpProxiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *TargetHttpProxiesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TargetHttpProxiesTestIamPermissionsCall) Header ¶
func (c *TargetHttpProxiesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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"` // 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 loadBalancingScheme is // INTERNAL_SELF_MANAGED. When set to true the Envoy binds on the IP // address specified by the forwarding rule. 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
TargetHttpProxy: Represents a Target HTTP Proxy resource.
A target HTTP proxy is a component of certain types of load balancers. Global forwarding rules reference a target HTTP proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies. (== resource_for beta.targetHttpProxies ==) (== resource_for v1.targetHttpProxies ==)
func (*TargetHttpProxy) MarshalJSON ¶
func (s *TargetHttpProxy) MarshalJSON() ([]byte, error)
type TargetHttpProxyAggregatedList ¶
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"` // Warning: [Output Only] Informational warning message. Warning *TargetHttpProxyAggregatedListWarning `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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TargetHttpProxyAggregatedList) MarshalJSON ¶
func (s *TargetHttpProxyAggregatedList) MarshalJSON() ([]byte, error)
type TargetHttpProxyAggregatedListWarning ¶
type TargetHttpProxyAggregatedListWarning 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 []*TargetHttpProxyAggregatedListWarningData `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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TargetHttpProxyAggregatedListWarning: [Output Only] Informational warning message.
func (*TargetHttpProxyAggregatedListWarning) MarshalJSON ¶
func (s *TargetHttpProxyAggregatedListWarning) MarshalJSON() ([]byte, error)
type TargetHttpProxyAggregatedListWarningData ¶
type TargetHttpProxyAggregatedListWarningData 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TargetHttpProxyAggregatedListWarningData) MarshalJSON ¶
func (s *TargetHttpProxyAggregatedListWarningData) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TargetHttpProxyListWarningData) MarshalJSON ¶
func (s *TargetHttpProxyListWarningData) MarshalJSON() ([]byte, error)
type TargetHttpsProxiesAggregatedListCall ¶
type TargetHttpsProxiesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpsProxiesAggregatedListCall) Context ¶
func (c *TargetHttpsProxiesAggregatedListCall) Context(ctx context.Context) *TargetHttpsProxiesAggregatedListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpsProxiesAggregatedListCall) Do ¶
func (c *TargetHttpsProxiesAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetHttpsProxyAggregatedList, error)
Do executes the "compute.targetHttpsProxies.aggregatedList" call. Exactly one of *TargetHttpsProxyAggregatedList or error will be non-nil. 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 ¶
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 information.
func (*TargetHttpsProxiesAggregatedListCall) Filter ¶
func (c *TargetHttpsProxiesAggregatedListCall) Filter(filter string) *TargetHttpsProxiesAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*TargetHttpsProxiesAggregatedListCall) Header ¶
func (c *TargetHttpsProxiesAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetHttpsProxiesAggregatedListCall) IfNoneMatch ¶
func (c *TargetHttpsProxiesAggregatedListCall) IfNoneMatch(entityTag string) *TargetHttpsProxiesAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*TargetHttpsProxiesAggregatedListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpsProxiesDeleteCall) Do ¶
func (c *TargetHttpsProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpsProxies.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetHttpsProxiesDeleteCall) Header ¶
func (c *TargetHttpsProxiesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpsProxiesGetCall) Do ¶
func (c *TargetHttpsProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetHttpsProxy, error)
Do executes the "compute.targetHttpsProxies.get" call. Exactly one of *TargetHttpsProxy or error will be non-nil. 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 information.
func (*TargetHttpsProxiesGetCall) Header ¶
func (c *TargetHttpsProxiesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetHttpsProxiesGetCall) IfNoneMatch ¶
func (c *TargetHttpsProxiesGetCall) IfNoneMatch(entityTag string) *TargetHttpsProxiesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpsProxiesInsertCall) Do ¶
func (c *TargetHttpsProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpsProxies.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetHttpsProxiesInsertCall) Header ¶
func (c *TargetHttpsProxiesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpsProxiesListCall) Do ¶
func (c *TargetHttpsProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetHttpsProxyList, error)
Do executes the "compute.targetHttpsProxies.list" call. Exactly one of *TargetHttpsProxyList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*TargetHttpsProxiesListCall) Header ¶
func (c *TargetHttpsProxiesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetHttpsProxiesListCall) IfNoneMatch ¶
func (c *TargetHttpsProxiesListCall) IfNoneMatch(entityTag string) *TargetHttpsProxiesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
type TargetHttpsProxiesScopedList ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*TargetHttpsProxiesScopedList) MarshalJSON ¶
func (s *TargetHttpsProxiesScopedList) MarshalJSON() ([]byte, error)
type TargetHttpsProxiesScopedListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TargetHttpsProxiesScopedListWarning: Informational warning which replaces the list of backend services when the list is empty.
func (*TargetHttpsProxiesScopedListWarning) MarshalJSON ¶
func (s *TargetHttpsProxiesScopedListWarning) MarshalJSON() ([]byte, error)
type TargetHttpsProxiesScopedListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TargetHttpsProxiesScopedListWarningData) MarshalJSON ¶
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 ¶
func (r *TargetHttpsProxiesService) AggregatedList(project string) *TargetHttpsProxiesAggregatedListCall
AggregatedList: Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. (== suppress_warning http-rest-shadowed ==)
func (*TargetHttpsProxiesService) Delete ¶
func (r *TargetHttpsProxiesService) Delete(project string, targetHttpsProxy string) *TargetHttpsProxiesDeleteCall
Delete: Deletes the specified TargetHttpsProxy resource. (== suppress_warning http-rest-shadowed ==)
func (*TargetHttpsProxiesService) Get ¶
func (r *TargetHttpsProxiesService) Get(project string, targetHttpsProxy string) *TargetHttpsProxiesGetCall
Get: Returns the specified TargetHttpsProxy resource. Gets a list of available target HTTPS proxies by making a list() request. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*TargetHttpsProxiesService) List ¶
func (r *TargetHttpsProxiesService) List(project string) *TargetHttpsProxiesListCall
List: Retrieves the list of TargetHttpsProxy resources available to the specified project. (== suppress_warning http-rest-shadowed ==)
func (*TargetHttpsProxiesService) SetQuicOverride ¶
func (r *TargetHttpsProxiesService) SetQuicOverride(project string, targetHttpsProxy string, targethttpsproxiessetquicoverriderequest *TargetHttpsProxiesSetQuicOverrideRequest) *TargetHttpsProxiesSetQuicOverrideCall
SetQuicOverride: Sets the QUIC override policy for TargetHttpsProxy. (== suppress_warning http-rest-shadowed ==)
func (*TargetHttpsProxiesService) SetSslCertificates ¶
func (r *TargetHttpsProxiesService) SetSslCertificates(project string, targetHttpsProxy string, targethttpsproxiessetsslcertificatesrequest *TargetHttpsProxiesSetSslCertificatesRequest) *TargetHttpsProxiesSetSslCertificatesCall
SetSslCertificates: Replaces SslCertificates for TargetHttpsProxy. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*TargetHttpsProxiesService) SetUrlMap ¶
func (r *TargetHttpsProxiesService) SetUrlMap(project string, targetHttpsProxy string, urlmapreference *UrlMapReference) *TargetHttpsProxiesSetUrlMapCall
SetUrlMap: Changes the URL map for TargetHttpsProxy. (== suppress_warning http-rest-shadowed ==)
func (*TargetHttpsProxiesService) TestIamPermissions ¶
func (r *TargetHttpsProxiesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *TargetHttpsProxiesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpsProxiesSetQuicOverrideCall) Do ¶
func (c *TargetHttpsProxiesSetQuicOverrideCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpsProxies.setQuicOverride" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetHttpsProxiesSetQuicOverrideCall) Header ¶
func (c *TargetHttpsProxiesSetQuicOverrideCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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" // "ENABLE" // "NONE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpsProxiesSetSslCertificatesCall) Do ¶
func (c *TargetHttpsProxiesSetSslCertificatesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpsProxies.setSslCertificates" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetHttpsProxiesSetSslCertificatesCall) Header ¶
func (c *TargetHttpsProxiesSetSslCertificatesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Currently exactly one // SslCertificate resource must be specified. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpsProxiesSetSslPolicyCall) Do ¶
func (c *TargetHttpsProxiesSetSslPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpsProxies.setSslPolicy" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetHttpsProxiesSetSslPolicyCall) Header ¶
func (c *TargetHttpsProxiesSetSslPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpsProxiesSetUrlMapCall) Do ¶
func (c *TargetHttpsProxiesSetUrlMapCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetHttpsProxies.setUrlMap" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetHttpsProxiesSetUrlMapCall) Header ¶
func (c *TargetHttpsProxiesSetUrlMapCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 TargetHttpsProxiesTestIamPermissionsCall ¶
type TargetHttpsProxiesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpsProxiesTestIamPermissionsCall) Context ¶
func (c *TargetHttpsProxiesTestIamPermissionsCall) Context(ctx context.Context) *TargetHttpsProxiesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetHttpsProxiesTestIamPermissionsCall) Do ¶
func (c *TargetHttpsProxiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.targetHttpsProxies.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*TargetHttpsProxiesTestIamPermissionsCall) Fields ¶
func (c *TargetHttpsProxiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TargetHttpsProxiesTestIamPermissionsCall) Header ¶
func (c *TargetHttpsProxiesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type TargetHttpsProxy ¶
type TargetHttpsProxy 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 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 loadBalancingScheme is // INTERNAL_SELF_MANAGED. When set to true the Envoy binds on the IP // address specified by the forwarding rule. 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" // "ENABLE" // "NONE" 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"` // SelfLinkWithId: [Output Only] Server-defined URL for this resource // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,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. Currently, you may // specify up to 15 SSL certificates. 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"` // 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. "CreationTimestamp") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
TargetHttpsProxy: Represents a Target HTTPS Proxy resource.
A target HTTPS proxy is a component of certain types of load balancers. Global forwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies. (== resource_for beta.targetHttpsProxies ==) (== resource_for v1.targetHttpsProxies ==)
func (*TargetHttpsProxy) MarshalJSON ¶
func (s *TargetHttpsProxy) MarshalJSON() ([]byte, error)
type TargetHttpsProxyAggregatedList ¶
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TargetHttpsProxyAggregatedList) MarshalJSON ¶
func (s *TargetHttpsProxyAggregatedList) MarshalJSON() ([]byte, error)
type TargetHttpsProxyAggregatedListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TargetHttpsProxyAggregatedListWarning: [Output Only] Informational warning message.
func (*TargetHttpsProxyAggregatedListWarning) MarshalJSON ¶
func (s *TargetHttpsProxyAggregatedListWarning) MarshalJSON() ([]byte, error)
type TargetHttpsProxyAggregatedListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TargetHttpsProxyAggregatedListWarningData) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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: NAT option controlling how IPs are NAT'ed to the instance. // Currently only NO_NAT (default value) is supported. // // Possible values: // "NO_NAT" NatPolicy string `json:"natPolicy,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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. (== resource_for beta.targetInstances ==) (== resource_for v1.targetInstances ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetInstancesAggregatedListCall) Do ¶
func (c *TargetInstancesAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetInstanceAggregatedList, error)
Do executes the "compute.targetInstances.aggregatedList" call. Exactly one of *TargetInstanceAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*TargetInstancesAggregatedListCall) Header ¶
func (c *TargetInstancesAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetInstancesAggregatedListCall) IfNoneMatch ¶
func (c *TargetInstancesAggregatedListCall) IfNoneMatch(entityTag string) *TargetInstancesAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetInstancesDeleteCall) Do ¶
func (c *TargetInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetInstances.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetInstancesDeleteCall) Header ¶
func (c *TargetInstancesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetInstancesGetCall) Do ¶
func (c *TargetInstancesGetCall) Do(opts ...googleapi.CallOption) (*TargetInstance, error)
Do executes the "compute.targetInstances.get" call. Exactly one of *TargetInstance or error will be non-nil. 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 information.
func (*TargetInstancesGetCall) Header ¶
func (c *TargetInstancesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetInstancesGetCall) IfNoneMatch ¶
func (c *TargetInstancesGetCall) IfNoneMatch(entityTag string) *TargetInstancesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetInstancesInsertCall) Do ¶
func (c *TargetInstancesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetInstances.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetInstancesInsertCall) Header ¶
func (c *TargetInstancesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetInstancesListCall) Do ¶
func (c *TargetInstancesListCall) Do(opts ...googleapi.CallOption) (*TargetInstanceList, error)
Do executes the "compute.targetInstances.list" call. Exactly one of *TargetInstanceList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*TargetInstancesListCall) Header ¶
func (c *TargetInstancesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetInstancesListCall) IfNoneMatch ¶
func (c *TargetInstancesListCall) IfNoneMatch(entityTag string) *TargetInstancesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetInstances/aggregatedList
func (*TargetInstancesService) Delete ¶
func (r *TargetInstancesService) Delete(project string, zone string, targetInstance string) *TargetInstancesDeleteCall
Delete: Deletes the specified TargetInstance resource. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetInstances/delete
func (*TargetInstancesService) Get ¶
func (r *TargetInstancesService) Get(project string, zone string, targetInstance string) *TargetInstancesGetCall
Get: Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetInstances/get
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetInstances/insert
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetInstances/list
func (*TargetInstancesService) TestIamPermissions ¶
func (r *TargetInstancesService) TestIamPermissions(project string, zone string, resource string, testpermissionsrequest *TestPermissionsRequest) *TargetInstancesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type TargetInstancesTestIamPermissionsCall ¶
type TargetInstancesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*TargetInstancesTestIamPermissionsCall) Context ¶
func (c *TargetInstancesTestIamPermissionsCall) Context(ctx context.Context) *TargetInstancesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetInstancesTestIamPermissionsCall) Do ¶
func (c *TargetInstancesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.targetInstances.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*TargetInstancesTestIamPermissionsCall) Fields ¶
func (c *TargetInstancesTestIamPermissionsCall) Fields(s ...googleapi.Field) *TargetInstancesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TargetInstancesTestIamPermissionsCall) Header ¶
func (c *TargetInstancesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type TargetPool ¶
type TargetPool struct { // BackupPool: 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. An empty list means all member instances will be // considered healthy at all times. Only 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"` // 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"` // 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" // "CLIENT_IP_PORT_PROTO" // "CLIENT_IP_PROTO" // "GENERATED_COOKIE" // "HEADER_FIELD" // "HTTP_COOKIE" // "NONE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TargetPool: Represents a Target Pool resource.
Target pools are used for network TCP/UDP load balancing. A target pool references member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup target pool. For more information, read Using target pools. (== resource_for beta.targetPools ==) (== resource_for v1.targetPools ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetPoolsAddHealthCheckCall) Do ¶
func (c *TargetPoolsAddHealthCheckCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetPools.addHealthCheck" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetPoolsAddHealthCheckCall) Header ¶
func (c *TargetPoolsAddHealthCheckCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetPoolsAddInstanceCall) Do ¶
func (c *TargetPoolsAddInstanceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetPools.addInstance" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetPoolsAddInstanceCall) Header ¶
func (c *TargetPoolsAddInstanceCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetPoolsAggregatedListCall) Do ¶
func (c *TargetPoolsAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetPoolAggregatedList, error)
Do executes the "compute.targetPools.aggregatedList" call. Exactly one of *TargetPoolAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*TargetPoolsAggregatedListCall) Header ¶
func (c *TargetPoolsAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetPoolsAggregatedListCall) IfNoneMatch ¶
func (c *TargetPoolsAggregatedListCall) IfNoneMatch(entityTag string) *TargetPoolsAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetPoolsDeleteCall) Do ¶
func (c *TargetPoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetPools.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetPoolsDeleteCall) Header ¶
func (c *TargetPoolsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetPoolsGetCall) Do ¶
func (c *TargetPoolsGetCall) Do(opts ...googleapi.CallOption) (*TargetPool, error)
Do executes the "compute.targetPools.get" call. Exactly one of *TargetPool or error will be non-nil. 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 information.
func (*TargetPoolsGetCall) Header ¶
func (c *TargetPoolsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetPoolsGetCall) IfNoneMatch ¶
func (c *TargetPoolsGetCall) IfNoneMatch(entityTag string) *TargetPoolsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetPoolsGetHealthCall) Do ¶
func (c *TargetPoolsGetHealthCall) Do(opts ...googleapi.CallOption) (*TargetPoolInstanceHealth, error)
Do executes the "compute.targetPools.getHealth" call. Exactly one of *TargetPoolInstanceHealth or error will be non-nil. 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 information.
func (*TargetPoolsGetHealthCall) Header ¶
func (c *TargetPoolsGetHealthCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetPoolsInsertCall) Do ¶
func (c *TargetPoolsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetPools.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetPoolsInsertCall) Header ¶
func (c *TargetPoolsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetPoolsListCall) Do ¶
func (c *TargetPoolsListCall) Do(opts ...googleapi.CallOption) (*TargetPoolList, error)
Do executes the "compute.targetPools.list" call. Exactly one of *TargetPoolList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*TargetPoolsListCall) Header ¶
func (c *TargetPoolsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetPoolsListCall) IfNoneMatch ¶
func (c *TargetPoolsListCall) IfNoneMatch(entityTag string) *TargetPoolsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetPoolsRemoveHealthCheckCall) Do ¶
func (c *TargetPoolsRemoveHealthCheckCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetPools.removeHealthCheck" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetPoolsRemoveHealthCheckCall) Header ¶
func (c *TargetPoolsRemoveHealthCheckCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetPoolsRemoveInstanceCall) Do ¶
func (c *TargetPoolsRemoveInstanceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetPools.removeInstance" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetPoolsRemoveInstanceCall) Header ¶
func (c *TargetPoolsRemoveInstanceCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/addHealthCheck
func (*TargetPoolsService) AddInstance ¶
func (r *TargetPoolsService) AddInstance(project string, region string, targetPool string, targetpoolsaddinstancerequest *TargetPoolsAddInstanceRequest) *TargetPoolsAddInstanceCall
AddInstance: Adds an instance to a target pool. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/addInstance
func (*TargetPoolsService) AggregatedList ¶
func (r *TargetPoolsService) AggregatedList(project string) *TargetPoolsAggregatedListCall
AggregatedList: Retrieves an aggregated list of target pools. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/aggregatedList
func (*TargetPoolsService) Delete ¶
func (r *TargetPoolsService) Delete(project string, region string, targetPool string) *TargetPoolsDeleteCall
Delete: Deletes the specified target pool. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/delete
func (*TargetPoolsService) Get ¶
func (r *TargetPoolsService) Get(project string, region string, targetPool string) *TargetPoolsGetCall
Get: Returns the specified target pool. Gets a list of available target pools by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/get
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/getHealth
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/insert
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/list
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/removeHealthCheck
func (*TargetPoolsService) RemoveInstance ¶
func (r *TargetPoolsService) RemoveInstance(project string, region string, targetPool string, targetpoolsremoveinstancerequest *TargetPoolsRemoveInstanceRequest) *TargetPoolsRemoveInstanceCall
RemoveInstance: Removes instance URL from a target pool. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/removeInstance
func (*TargetPoolsService) SetBackup ¶
func (r *TargetPoolsService) SetBackup(project string, region string, targetPool string, targetreference *TargetReference) *TargetPoolsSetBackupCall
SetBackup: Changes a backup target pool's configurations. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/setBackup
func (*TargetPoolsService) TestIamPermissions ¶
func (r *TargetPoolsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *TargetPoolsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetPoolsSetBackupCall) Do ¶
func (c *TargetPoolsSetBackupCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetPools.setBackup" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetPoolsSetBackupCall) Header ¶
func (c *TargetPoolsSetBackupCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 TargetPoolsTestIamPermissionsCall ¶
type TargetPoolsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsTestIamPermissionsCall) Context ¶
func (c *TargetPoolsTestIamPermissionsCall) Context(ctx context.Context) *TargetPoolsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetPoolsTestIamPermissionsCall) Do ¶
func (c *TargetPoolsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.targetPools.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*TargetPoolsTestIamPermissionsCall) Fields ¶
func (c *TargetPoolsTestIamPermissionsCall) Fields(s ...googleapi.Field) *TargetPoolsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TargetPoolsTestIamPermissionsCall) Header ¶
func (c *TargetPoolsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetSslProxiesDeleteCall) Do ¶
func (c *TargetSslProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetSslProxies.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetSslProxiesDeleteCall) Header ¶
func (c *TargetSslProxiesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetSslProxiesGetCall) Do ¶
func (c *TargetSslProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetSslProxy, error)
Do executes the "compute.targetSslProxies.get" call. Exactly one of *TargetSslProxy or error will be non-nil. 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 information.
func (*TargetSslProxiesGetCall) Header ¶
func (c *TargetSslProxiesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetSslProxiesGetCall) IfNoneMatch ¶
func (c *TargetSslProxiesGetCall) IfNoneMatch(entityTag string) *TargetSslProxiesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetSslProxiesInsertCall) Do ¶
func (c *TargetSslProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetSslProxies.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetSslProxiesInsertCall) Header ¶
func (c *TargetSslProxiesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetSslProxiesListCall) Do ¶
func (c *TargetSslProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetSslProxyList, error)
Do executes the "compute.targetSslProxies.list" call. Exactly one of *TargetSslProxyList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*TargetSslProxiesListCall) Header ¶
func (c *TargetSslProxiesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetSslProxiesListCall) IfNoneMatch ¶
func (c *TargetSslProxiesListCall) IfNoneMatch(entityTag string) *TargetSslProxiesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. (== suppress_warning http-rest-shadowed ==)
func (*TargetSslProxiesService) Get ¶
func (r *TargetSslProxiesService) Get(project string, targetSslProxy string) *TargetSslProxiesGetCall
Get: Returns the specified TargetSslProxy resource. Gets a list of available target SSL proxies by making a list() request. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*TargetSslProxiesService) List ¶
func (r *TargetSslProxiesService) List(project string) *TargetSslProxiesListCall
List: Retrieves the list of TargetSslProxy resources available to the specified project. (== suppress_warning http-rest-shadowed ==)
func (*TargetSslProxiesService) SetBackendService ¶
func (r *TargetSslProxiesService) SetBackendService(project string, targetSslProxy string, targetsslproxiessetbackendservicerequest *TargetSslProxiesSetBackendServiceRequest) *TargetSslProxiesSetBackendServiceCall
SetBackendService: Changes the BackendService for TargetSslProxy. (== suppress_warning http-rest-shadowed ==)
func (*TargetSslProxiesService) SetProxyHeader ¶
func (r *TargetSslProxiesService) SetProxyHeader(project string, targetSslProxy string, targetsslproxiessetproxyheaderrequest *TargetSslProxiesSetProxyHeaderRequest) *TargetSslProxiesSetProxyHeaderCall
SetProxyHeader: Changes the ProxyHeaderType for TargetSslProxy. (== suppress_warning http-rest-shadowed ==)
func (*TargetSslProxiesService) SetSslCertificates ¶
func (r *TargetSslProxiesService) SetSslCertificates(project string, targetSslProxy string, targetsslproxiessetsslcertificatesrequest *TargetSslProxiesSetSslCertificatesRequest) *TargetSslProxiesSetSslCertificatesCall
SetSslCertificates: Changes SslCertificates for TargetSslProxy. (== suppress_warning http-rest-shadowed ==)
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 SSL proxy load balancer. They do not affect the connection between the load balancer and the backends. (== suppress_warning http-rest-shadowed ==)
func (*TargetSslProxiesService) TestIamPermissions ¶
func (r *TargetSslProxiesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *TargetSslProxiesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetSslProxiesSetBackendServiceCall) Do ¶
func (c *TargetSslProxiesSetBackendServiceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetSslProxies.setBackendService" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetSslProxiesSetBackendServiceCall) Header ¶
func (c *TargetSslProxiesSetBackendServiceCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TargetSslProxiesSetBackendServiceRequest) MarshalJSON ¶
func (s *TargetSslProxiesSetBackendServiceRequest) 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetSslProxiesSetProxyHeaderCall) Do ¶
func (c *TargetSslProxiesSetProxyHeaderCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetSslProxies.setProxyHeader" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetSslProxiesSetProxyHeaderCall) Header ¶
func (c *TargetSslProxiesSetProxyHeaderCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetSslProxiesSetSslCertificatesCall) Do ¶
func (c *TargetSslProxiesSetSslCertificatesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetSslProxies.setSslCertificates" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetSslProxiesSetSslCertificatesCall) Header ¶
func (c *TargetSslProxiesSetSslCertificatesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Currently exactly one ssl // certificate must be specified. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetSslProxiesSetSslPolicyCall) Do ¶
func (c *TargetSslProxiesSetSslPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetSslProxies.setSslPolicy" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetSslProxiesSetSslPolicyCall) Header ¶
func (c *TargetSslProxiesSetSslPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 TargetSslProxiesTestIamPermissionsCall ¶
type TargetSslProxiesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*TargetSslProxiesTestIamPermissionsCall) Context ¶
func (c *TargetSslProxiesTestIamPermissionsCall) Context(ctx context.Context) *TargetSslProxiesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetSslProxiesTestIamPermissionsCall) Do ¶
func (c *TargetSslProxiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.targetSslProxies.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*TargetSslProxiesTestIamPermissionsCall) Fields ¶
func (c *TargetSslProxiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *TargetSslProxiesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TargetSslProxiesTestIamPermissionsCall) Header ¶
func (c *TargetSslProxiesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type TargetSslProxy ¶
type TargetSslProxy 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#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 []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. "CreationTimestamp") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
TargetSslProxy: Represents a Target SSL Proxy resource.
A target SSL proxy is a component of a SSL Proxy load balancer. Global forwarding rules reference a target SSL proxy, and the target proxy then references an external backend service. For more information, read Using Target Proxies. (== resource_for beta.targetSslProxies ==) (== resource_for v1.targetSslProxies ==)
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TargetSslProxyListWarningData) MarshalJSON ¶
func (s *TargetSslProxyListWarningData) MarshalJSON() ([]byte, error)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetTcpProxiesDeleteCall) Do ¶
func (c *TargetTcpProxiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetTcpProxies.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetTcpProxiesDeleteCall) Header ¶
func (c *TargetTcpProxiesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetTcpProxiesGetCall) Do ¶
func (c *TargetTcpProxiesGetCall) Do(opts ...googleapi.CallOption) (*TargetTcpProxy, error)
Do executes the "compute.targetTcpProxies.get" call. Exactly one of *TargetTcpProxy or error will be non-nil. 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 information.
func (*TargetTcpProxiesGetCall) Header ¶
func (c *TargetTcpProxiesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetTcpProxiesGetCall) IfNoneMatch ¶
func (c *TargetTcpProxiesGetCall) IfNoneMatch(entityTag string) *TargetTcpProxiesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetTcpProxiesInsertCall) Do ¶
func (c *TargetTcpProxiesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetTcpProxies.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetTcpProxiesInsertCall) Header ¶
func (c *TargetTcpProxiesInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetTcpProxiesListCall) Do ¶
func (c *TargetTcpProxiesListCall) Do(opts ...googleapi.CallOption) (*TargetTcpProxyList, error)
Do executes the "compute.targetTcpProxies.list" call. Exactly one of *TargetTcpProxyList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*TargetTcpProxiesListCall) Header ¶
func (c *TargetTcpProxiesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetTcpProxiesListCall) IfNoneMatch ¶
func (c *TargetTcpProxiesListCall) IfNoneMatch(entityTag string) *TargetTcpProxiesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
type TargetTcpProxiesService ¶
type TargetTcpProxiesService struct {
// contains filtered or unexported fields
}
func NewTargetTcpProxiesService ¶
func NewTargetTcpProxiesService(s *Service) *TargetTcpProxiesService
func (*TargetTcpProxiesService) Delete ¶
func (r *TargetTcpProxiesService) Delete(project string, targetTcpProxy string) *TargetTcpProxiesDeleteCall
Delete: Deletes the specified TargetTcpProxy resource. (== suppress_warning http-rest-shadowed ==)
func (*TargetTcpProxiesService) Get ¶
func (r *TargetTcpProxiesService) Get(project string, targetTcpProxy string) *TargetTcpProxiesGetCall
Get: Returns the specified TargetTcpProxy resource. Gets a list of available target TCP proxies by making a list() request. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*TargetTcpProxiesService) List ¶
func (r *TargetTcpProxiesService) List(project string) *TargetTcpProxiesListCall
List: Retrieves the list of TargetTcpProxy resources available to the specified project. (== suppress_warning http-rest-shadowed ==)
func (*TargetTcpProxiesService) SetBackendService ¶
func (r *TargetTcpProxiesService) SetBackendService(project string, targetTcpProxy string, targettcpproxiessetbackendservicerequest *TargetTcpProxiesSetBackendServiceRequest) *TargetTcpProxiesSetBackendServiceCall
SetBackendService: Changes the BackendService for TargetTcpProxy. (== suppress_warning http-rest-shadowed ==)
func (*TargetTcpProxiesService) SetProxyHeader ¶
func (r *TargetTcpProxiesService) SetProxyHeader(project string, targetTcpProxy string, targettcpproxiessetproxyheaderrequest *TargetTcpProxiesSetProxyHeaderRequest) *TargetTcpProxiesSetProxyHeaderCall
SetProxyHeader: Changes the ProxyHeaderType for TargetTcpProxy. (== suppress_warning http-rest-shadowed ==)
func (*TargetTcpProxiesService) TestIamPermissions ¶
func (r *TargetTcpProxiesService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *TargetTcpProxiesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetTcpProxiesSetBackendServiceCall) Do ¶
func (c *TargetTcpProxiesSetBackendServiceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetTcpProxies.setBackendService" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetTcpProxiesSetBackendServiceCall) Header ¶
func (c *TargetTcpProxiesSetBackendServiceCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetTcpProxiesSetProxyHeaderCall) Do ¶
func (c *TargetTcpProxiesSetProxyHeaderCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetTcpProxies.setProxyHeader" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetTcpProxiesSetProxyHeaderCall) Header ¶
func (c *TargetTcpProxiesSetProxyHeaderCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TargetTcpProxiesSetProxyHeaderRequest) MarshalJSON ¶
func (s *TargetTcpProxiesSetProxyHeaderRequest) MarshalJSON() ([]byte, error)
type TargetTcpProxiesTestIamPermissionsCall ¶
type TargetTcpProxiesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*TargetTcpProxiesTestIamPermissionsCall) Context ¶
func (c *TargetTcpProxiesTestIamPermissionsCall) Context(ctx context.Context) *TargetTcpProxiesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetTcpProxiesTestIamPermissionsCall) Do ¶
func (c *TargetTcpProxiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.targetTcpProxies.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*TargetTcpProxiesTestIamPermissionsCall) Fields ¶
func (c *TargetTcpProxiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *TargetTcpProxiesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TargetTcpProxiesTestIamPermissionsCall) Header ¶
func (c *TargetTcpProxiesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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"` // 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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
TargetTcpProxy: Represents a Target TCP Proxy resource.
A target TCP proxy is a component of a TCP Proxy load balancer. Global forwarding rules reference target TCP proxy, and the target proxy then references an external backend service. For more information, read TCP Proxy Load Balancing Concepts. (== resource_for beta.targetTcpProxies ==) (== resource_for v1.targetTcpProxies ==)
func (*TargetTcpProxy) MarshalJSON ¶
func (s *TargetTcpProxy) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 to apply to this TargetVpnGateway resource. These can // be later modified by the setLabels method. Each label key/value 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. (== resource_for beta.targetVpnGateways ==) (== resource_for v1.targetVpnGateways ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetVpnGatewaysAggregatedListCall) Do ¶
func (c *TargetVpnGatewaysAggregatedListCall) Do(opts ...googleapi.CallOption) (*TargetVpnGatewayAggregatedList, error)
Do executes the "compute.targetVpnGateways.aggregatedList" call. Exactly one of *TargetVpnGatewayAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*TargetVpnGatewaysAggregatedListCall) Header ¶
func (c *TargetVpnGatewaysAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetVpnGatewaysAggregatedListCall) IfNoneMatch ¶
func (c *TargetVpnGatewaysAggregatedListCall) IfNoneMatch(entityTag string) *TargetVpnGatewaysAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetVpnGatewaysDeleteCall) Do ¶
func (c *TargetVpnGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetVpnGateways.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetVpnGatewaysDeleteCall) Header ¶
func (c *TargetVpnGatewaysDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetVpnGatewaysGetCall) Do ¶
func (c *TargetVpnGatewaysGetCall) Do(opts ...googleapi.CallOption) (*TargetVpnGateway, error)
Do executes the "compute.targetVpnGateways.get" call. Exactly one of *TargetVpnGateway or error will be non-nil. 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 information.
func (*TargetVpnGatewaysGetCall) Header ¶
func (c *TargetVpnGatewaysGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetVpnGatewaysGetCall) IfNoneMatch ¶
func (c *TargetVpnGatewaysGetCall) IfNoneMatch(entityTag string) *TargetVpnGatewaysGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetVpnGatewaysInsertCall) Do ¶
func (c *TargetVpnGatewaysInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetVpnGateways.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*TargetVpnGatewaysInsertCall) Header ¶
func (c *TargetVpnGatewaysInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetVpnGatewaysListCall) Do ¶
func (c *TargetVpnGatewaysListCall) Do(opts ...googleapi.CallOption) (*TargetVpnGatewayList, error)
Do executes the "compute.targetVpnGateways.list" call. Exactly one of *TargetVpnGatewayList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*TargetVpnGatewaysListCall) Header ¶
func (c *TargetVpnGatewaysListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetVpnGatewaysListCall) IfNoneMatch ¶
func (c *TargetVpnGatewaysListCall) IfNoneMatch(entityTag string) *TargetVpnGatewaysListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
func (*TargetVpnGatewaysService) Delete ¶
func (r *TargetVpnGatewaysService) Delete(project string, region string, targetVpnGateway string) *TargetVpnGatewaysDeleteCall
Delete: Deletes the specified target VPN gateway. (== suppress_warning http-rest-shadowed ==)
func (*TargetVpnGatewaysService) Get ¶
func (r *TargetVpnGatewaysService) Get(project string, region string, targetVpnGateway string) *TargetVpnGatewaysGetCall
Get: Returns the specified target VPN gateway. Gets a list of available target VPN gateways by making a list() request. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*TargetVpnGatewaysService) SetLabels ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*TargetVpnGatewaysService) TestIamPermissions ¶
func (r *TargetVpnGatewaysService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *TargetVpnGatewaysTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type TargetVpnGatewaysSetLabelsCall ¶
type TargetVpnGatewaysSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*TargetVpnGatewaysSetLabelsCall) Context ¶
func (c *TargetVpnGatewaysSetLabelsCall) Context(ctx context.Context) *TargetVpnGatewaysSetLabelsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetVpnGatewaysSetLabelsCall) Do ¶
func (c *TargetVpnGatewaysSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.targetVpnGateways.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*TargetVpnGatewaysSetLabelsCall) Header ¶
func (c *TargetVpnGatewaysSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TargetVpnGatewaysSetLabelsCall) RequestId ¶
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 TargetVpnGatewaysTestIamPermissionsCall ¶
type TargetVpnGatewaysTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*TargetVpnGatewaysTestIamPermissionsCall) Context ¶
func (c *TargetVpnGatewaysTestIamPermissionsCall) Context(ctx context.Context) *TargetVpnGatewaysTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TargetVpnGatewaysTestIamPermissionsCall) Do ¶
func (c *TargetVpnGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.targetVpnGateways.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*TargetVpnGatewaysTestIamPermissionsCall) Fields ¶
func (c *TargetVpnGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *TargetVpnGatewaysTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TargetVpnGatewaysTestIamPermissionsCall) Header ¶
func (c *TargetVpnGatewaysTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type TestFailure ¶
type TestFailure struct { ActualService string `json:"actualService,omitempty"` ExpectedService string `json:"expectedService,omitempty"` Host string `json:"host,omitempty"` Path string `json:"path,omitempty"` // ForceSendFields is a list of field names (e.g. "ActualService") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ActualService") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TestPermissionsResponse) MarshalJSON ¶
func (s *TestPermissionsResponse) MarshalJSON() ([]byte, error)
type TlsCertificateContext ¶ added in v0.2.0
type TlsCertificateContext struct { // CertificatePaths: Specifies the certificate and private key paths. // This field is applicable only if tlsCertificateSource is set to // USE_PATH. CertificatePaths *TlsCertificatePaths `json:"certificatePaths,omitempty"` // CertificateSource: Defines how TLS certificates are obtained. // // Possible values: // "INVALID" // "USE_PATH" // "USE_SDS" CertificateSource string `json:"certificateSource,omitempty"` // SdsConfig: Specifies the config to retrieve certificates through SDS. // This field is applicable only if tlsCertificateSource is set to // USE_SDS. SdsConfig *SdsConfig `json:"sdsConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "CertificatePaths") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CertificatePaths") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
TlsCertificateContext: Defines the mechanism to obtain the client or server certificate.
func (*TlsCertificateContext) MarshalJSON ¶ added in v0.2.0
func (s *TlsCertificateContext) MarshalJSON() ([]byte, error)
type TlsCertificatePaths ¶ added in v0.2.0
type TlsCertificatePaths struct { // CertificatePath: The path to the file holding the client or server // TLS certificate to use. CertificatePath string `json:"certificatePath,omitempty"` // PrivateKeyPath: The path to the file holding the client or server // private key. PrivateKeyPath string `json:"privateKeyPath,omitempty"` // ForceSendFields is a list of field names (e.g. "CertificatePath") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CertificatePath") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
TlsCertificatePaths: The paths to the mounted TLS Certificates and private key.
func (*TlsCertificatePaths) MarshalJSON ¶ added in v0.2.0
func (s *TlsCertificatePaths) MarshalJSON() ([]byte, error)
type TlsContext ¶ added in v0.2.0
type TlsContext struct { // CertificateContext: Defines the mechanism to obtain the client or // server certificate. CertificateContext *TlsCertificateContext `json:"certificateContext,omitempty"` // ValidationContext: Defines the mechanism to obtain the Certificate // Authority certificate to validate the client/server certificate. If // omitted, the proxy will not validate the server or client // certificate. ValidationContext *TlsValidationContext `json:"validationContext,omitempty"` // ForceSendFields is a list of field names (e.g. "CertificateContext") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CertificateContext") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
TlsContext: The TLS settings for the client or server.
func (*TlsContext) MarshalJSON ¶ added in v0.2.0
func (s *TlsContext) MarshalJSON() ([]byte, error)
type TlsValidationContext ¶ added in v0.2.0
type TlsValidationContext struct { // CertificatePath: The path to the file holding the CA certificate to // validate the client or server certificate. CertificatePath string `json:"certificatePath,omitempty"` // SdsConfig: Specifies the config to retrieve certificates through SDS. // This field is applicable only if tlsCertificateSource is set to // USE_SDS. SdsConfig *SdsConfig `json:"sdsConfig,omitempty"` // ValidationSource: Defines how TLS certificates are obtained. // // Possible values: // "INVALID" // "USE_PATH" // "USE_SDS" ValidationSource string `json:"validationSource,omitempty"` // ForceSendFields is a list of field names (e.g. "CertificatePath") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CertificatePath") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
TlsValidationContext: Defines the mechanism to obtain the Certificate Authority certificate to validate the client/server certificate.
func (*TlsValidationContext) MarshalJSON ¶ added in v0.2.0
func (s *TlsValidationContext) MarshalJSON() ([]byte, error)
type UDPHealthCheck ¶
type UDPHealthCheck struct { // Port: The UDP port number for the health check request. Valid values // are 1 through 65535. Port int64 `json:"port,omitempty"` // PortName: Port name as defined in InstanceGroup#NamedPort#name. If // both port and port_name are defined, port takes precedence. PortName string `json:"portName,omitempty"` // Request: Raw data of request to send in payload of UDP packet. It is // an error if this is empty. The request data can only be ASCII. Request string `json:"request,omitempty"` // Response: The bytes to match against the beginning of the response // data. It is an error if this is empty. The response data can only be // ASCII. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*UDPHealthCheck) MarshalJSON ¶
func (s *UDPHealthCheck) MarshalJSON() ([]byte, error)
type UrlMap ¶
type UrlMap struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // DefaultRouteAction: defaultRouteAction takes effect when none of the // hostRules match. The load balancer performs advanced routing actions // like URL rewrites, header transformations, etc. prior to 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. 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 additionally specified, advanced routing // actions like URL Rewrites, etc. take effect prior to sending the // request to the backend. However, if defaultService is specified, // defaultRouteAction cannot contain any weightedBackendServices. // Conversely, if routeAction specifies any weightedBackendServices, // service must not be specified. // Only one of defaultService, defaultUrlRedirect or // defaultRouteAction.weightedBackendService must be set. 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. 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 will be 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 *HttpHeaderAction `json:"headerAction,omitempty"` // HostRules: The list of HostRules 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 this // UrlMap will succeed only if all of the test cases pass. You can // specify a maximum of 100 tests per UrlMap. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
UrlMap: Represents a URL Map resource.
A URL map resource is a component of certain types of load balancers. This resource defines mappings from host names and URL paths to either a backend service or a backend bucket.
To use this resource, the backend service must have a loadBalancingScheme of either EXTERNAL, INTERNAL_SELF_MANAGED, or 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*UrlMapReference) MarshalJSON ¶
func (s *UrlMapReference) MarshalJSON() ([]byte, error)
type UrlMapTest ¶
type UrlMapTest struct { // BackendServiceWeight: The weight to use for the supplied host and // path when using advanced routing rules that involve traffic // splitting. BackendServiceWeight int64 `json:"backendServiceWeight,omitempty"` // Description: Description of this test case. Description string `json:"description,omitempty"` // ExpectedUrlRedirect: The expected URL that should be redirected to // for the host and path being tested. ExpectedUrlRedirect string `json:"expectedUrlRedirect,omitempty"` // Host: Host portion of the URL. Host string `json:"host,omitempty"` // Path: Path portion of the URL. Path string `json:"path,omitempty"` // Service: Expected BackendService resource the given URL should be // mapped to. Service string `json:"service,omitempty"` // ForceSendFields is a list of field names (e.g. // "BackendServiceWeight") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BackendServiceWeight") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
UrlMapTest: Message for the expected URL mappings.
func (*UrlMapTest) MarshalJSON ¶
func (s *UrlMapTest) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
UrlMapValidationResult: Message representing the validation result for a UrlMap.
func (*UrlMapValidationResult) MarshalJSON ¶
func (s *UrlMapValidationResult) MarshalJSON() ([]byte, error)
type UrlMapsAggregatedList ¶
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*UrlMapsAggregatedList) MarshalJSON ¶
func (s *UrlMapsAggregatedList) MarshalJSON() ([]byte, error)
type UrlMapsAggregatedListCall ¶
type UrlMapsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*UrlMapsAggregatedListCall) Context ¶
func (c *UrlMapsAggregatedListCall) Context(ctx context.Context) *UrlMapsAggregatedListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UrlMapsAggregatedListCall) Do ¶
func (c *UrlMapsAggregatedListCall) Do(opts ...googleapi.CallOption) (*UrlMapsAggregatedList, error)
Do executes the "compute.urlMaps.aggregatedList" call. Exactly one of *UrlMapsAggregatedList or error will be non-nil. 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 ¶
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 information.
func (*UrlMapsAggregatedListCall) Filter ¶
func (c *UrlMapsAggregatedListCall) Filter(filter string) *UrlMapsAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*UrlMapsAggregatedListCall) Header ¶
func (c *UrlMapsAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*UrlMapsAggregatedListCall) IfNoneMatch ¶
func (c *UrlMapsAggregatedListCall) IfNoneMatch(entityTag string) *UrlMapsAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*UrlMapsAggregatedListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type UrlMapsAggregatedListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
UrlMapsAggregatedListWarning: [Output Only] Informational warning message.
func (*UrlMapsAggregatedListWarning) MarshalJSON ¶
func (s *UrlMapsAggregatedListWarning) MarshalJSON() ([]byte, error)
type UrlMapsAggregatedListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*UrlMapsAggregatedListWarningData) MarshalJSON ¶
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UrlMapsDeleteCall) Do ¶
func (c *UrlMapsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.urlMaps.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*UrlMapsDeleteCall) Header ¶
func (c *UrlMapsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UrlMapsGetCall) Do ¶
func (c *UrlMapsGetCall) Do(opts ...googleapi.CallOption) (*UrlMap, error)
Do executes the "compute.urlMaps.get" call. Exactly one of *UrlMap or error will be non-nil. 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 information.
func (*UrlMapsGetCall) Header ¶
func (c *UrlMapsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*UrlMapsGetCall) IfNoneMatch ¶
func (c *UrlMapsGetCall) IfNoneMatch(entityTag string) *UrlMapsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UrlMapsInsertCall) Do ¶
func (c *UrlMapsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.urlMaps.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*UrlMapsInsertCall) Header ¶
func (c *UrlMapsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UrlMapsInvalidateCacheCall) Do ¶
func (c *UrlMapsInvalidateCacheCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.urlMaps.invalidateCache" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*UrlMapsInvalidateCacheCall) Header ¶
func (c *UrlMapsInvalidateCacheCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UrlMapsListCall) Do ¶
func (c *UrlMapsListCall) Do(opts ...googleapi.CallOption) (*UrlMapList, error)
Do executes the "compute.urlMaps.list" call. Exactly one of *UrlMapList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*UrlMapsListCall) Header ¶
func (c *UrlMapsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*UrlMapsListCall) IfNoneMatch ¶
func (c *UrlMapsListCall) IfNoneMatch(entityTag string) *UrlMapsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UrlMapsPatchCall) Do ¶
func (c *UrlMapsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.urlMaps.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*UrlMapsPatchCall) Header ¶
func (c *UrlMapsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*UrlMapsScopedList) MarshalJSON ¶
func (s *UrlMapsScopedList) MarshalJSON() ([]byte, error)
type UrlMapsScopedListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
UrlMapsScopedListWarning: Informational warning which replaces the list of backend services when the list is empty.
func (*UrlMapsScopedListWarning) MarshalJSON ¶
func (s *UrlMapsScopedListWarning) MarshalJSON() ([]byte, error)
type UrlMapsScopedListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*UrlMapsScopedListWarningData) MarshalJSON ¶
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 ¶
func (r *UrlMapsService) AggregatedList(project string) *UrlMapsAggregatedListCall
AggregatedList: Retrieves the list of all UrlMap resources, regional and global, available to the specified project. (== suppress_warning http-rest-shadowed ==)
func (*UrlMapsService) Delete ¶
func (r *UrlMapsService) Delete(project string, urlMap string) *UrlMapsDeleteCall
Delete: Deletes the specified UrlMap resource. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/delete
func (*UrlMapsService) Get ¶
func (r *UrlMapsService) Get(project string, urlMap string) *UrlMapsGetCall
Get: Returns the specified UrlMap resource. Gets a list of available URL maps by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/get
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/insert
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. (== suppress_warning http-rest-shadowed ==)
func (*UrlMapsService) List ¶
func (r *UrlMapsService) List(project string) *UrlMapsListCall
List: Retrieves the list of UrlMap resources available to the specified project. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/list
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/patch
func (*UrlMapsService) TestIamPermissions ¶
func (r *UrlMapsService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *UrlMapsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/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. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/validate
type UrlMapsTestIamPermissionsCall ¶
type UrlMapsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*UrlMapsTestIamPermissionsCall) Context ¶
func (c *UrlMapsTestIamPermissionsCall) Context(ctx context.Context) *UrlMapsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UrlMapsTestIamPermissionsCall) Do ¶
func (c *UrlMapsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.urlMaps.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*UrlMapsTestIamPermissionsCall) Fields ¶
func (c *UrlMapsTestIamPermissionsCall) Fields(s ...googleapi.Field) *UrlMapsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*UrlMapsTestIamPermissionsCall) Header ¶
func (c *UrlMapsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UrlMapsUpdateCall) Do ¶
func (c *UrlMapsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.urlMaps.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*UrlMapsUpdateCall) Header ¶
func (c *UrlMapsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UrlMapsValidateCall) Do ¶
func (c *UrlMapsValidateCall) Do(opts ...googleapi.CallOption) (*UrlMapsValidateResponse, error)
Do executes the "compute.urlMaps.validate" call. Exactly one of *UrlMapsValidateResponse or error will be non-nil. 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 information.
func (*UrlMapsValidateCall) Header ¶
func (c *UrlMapsValidateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type UrlMapsValidateRequest ¶
type UrlMapsValidateRequest 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*UrlMapsValidateResponse) MarshalJSON ¶
func (s *UrlMapsValidateResponse) MarshalJSON() ([]byte, error)
type UrlRewrite ¶ added in v0.2.0
type UrlRewrite struct { // HostRewrite: Prior to forwarding the request to the selected service, // the request's host header is replaced with contents of // hostRewrite. // The value must be between 1 and 255 characters. HostRewrite string `json:"hostRewrite,omitempty"` // PathPrefixRewrite: Prior to forwarding the request to the selected // backend service, the matching portion of the request's path is // replaced by pathPrefixRewrite. // The value must be between 1 and 1024 characters. PathPrefixRewrite string `json:"pathPrefixRewrite,omitempty"` // ForceSendFields is a list of field names (e.g. "HostRewrite") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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.2.0
func (s *UrlRewrite) MarshalJSON() ([]byte, error)
type UsableSubnetwork ¶
type UsableSubnetwork struct { // IpCidrRange: The range of internal addresses that are owned by this // subnetwork. IpCidrRange string `json:"ipCidrRange,omitempty"` // Network: Network URL. Network string `json:"network,omitempty"` // SecondaryIpRanges: Secondary IP ranges. SecondaryIpRanges []*UsableSubnetworkSecondaryRange `json:"secondaryIpRanges,omitempty"` // Subnetwork: Subnetwork URL. Subnetwork string `json:"subnetwork,omitempty"` // ForceSendFields is a list of field names (e.g. "IpCidrRange") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*VmEndpointNatMappingsListWarningData) MarshalJSON ¶
func (s *VmEndpointNatMappingsListWarningData) MarshalJSON() ([]byte, error)
type VpnGateway ¶
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"` // 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 an // VpnGateway. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels to apply to this VpnGateway resource. These can be // later modified by the setLabels method. Each label key/value 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"` // VpnInterfaces: [Output Only] A list of interfaces on 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
VpnGateway: Represents a VPN gateway resource.
func (*VpnGateway) MarshalJSON ¶
func (s *VpnGateway) MarshalJSON() ([]byte, error)
type VpnGatewayAggregatedList ¶
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*VpnGatewayAggregatedList) MarshalJSON ¶
func (s *VpnGatewayAggregatedList) MarshalJSON() ([]byte, error)
type VpnGatewayAggregatedListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
VpnGatewayAggregatedListWarning: [Output Only] Informational warning message.
func (*VpnGatewayAggregatedListWarning) MarshalJSON ¶
func (s *VpnGatewayAggregatedListWarning) MarshalJSON() ([]byte, error)
type VpnGatewayAggregatedListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*VpnGatewayAggregatedListWarningData) MarshalJSON ¶
func (s *VpnGatewayAggregatedListWarningData) MarshalJSON() ([]byte, error)
type VpnGatewayList ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
VpnGatewayList: Contains a list of VpnGateway resources.
func (*VpnGatewayList) MarshalJSON ¶
func (s *VpnGatewayList) MarshalJSON() ([]byte, error)
type VpnGatewayListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
VpnGatewayListWarning: [Output Only] Informational warning message.
func (*VpnGatewayListWarning) MarshalJSON ¶
func (s *VpnGatewayListWarning) MarshalJSON() ([]byte, error)
type VpnGatewayListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*VpnGatewayListWarningData) MarshalJSON ¶
func (s *VpnGatewayListWarningData) MarshalJSON() ([]byte, error)
type VpnGatewayStatus ¶ added in v0.3.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*VpnGatewayStatus) MarshalJSON ¶ added in v0.3.0
func (s *VpnGatewayStatus) MarshalJSON() ([]byte, error)
type VpnGatewayStatusHighAvailabilityRequirementState ¶ added in v0.3.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" // "CONNECTION_REDUNDANCY_NOT_MET" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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.3.0
func (s *VpnGatewayStatusHighAvailabilityRequirementState) MarshalJSON() ([]byte, error)
type VpnGatewayStatusTunnel ¶ added in v0.3.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 GCP 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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
VpnGatewayStatusTunnel: Contains some information about a VPN tunnel.
func (*VpnGatewayStatusTunnel) MarshalJSON ¶ added in v0.3.0
func (s *VpnGatewayStatusTunnel) MarshalJSON() ([]byte, error)
type VpnGatewayStatusVpnConnection ¶ added in v0.3.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 a external VPN gateway or GCP VPN gateway.
func (*VpnGatewayStatusVpnConnection) MarshalJSON ¶ added in v0.3.0
func (s *VpnGatewayStatusVpnConnection) MarshalJSON() ([]byte, error)
type VpnGatewayVpnGatewayInterface ¶
type VpnGatewayVpnGatewayInterface struct { // Id: The numeric ID of this VPN gateway interface. Id int64 `json:"id,omitempty"` // IpAddress: The external IP address for this VPN gateway interface. IpAddress string `json:"ipAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
VpnGatewayVpnGatewayInterface: A VPN gateway interface.
func (*VpnGatewayVpnGatewayInterface) MarshalJSON ¶
func (s *VpnGatewayVpnGatewayInterface) MarshalJSON() ([]byte, error)
type VpnGatewaysAggregatedListCall ¶
type VpnGatewaysAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysAggregatedListCall) Context ¶
func (c *VpnGatewaysAggregatedListCall) Context(ctx context.Context) *VpnGatewaysAggregatedListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*VpnGatewaysAggregatedListCall) Do ¶
func (c *VpnGatewaysAggregatedListCall) Do(opts ...googleapi.CallOption) (*VpnGatewayAggregatedList, error)
Do executes the "compute.vpnGateways.aggregatedList" call. Exactly one of *VpnGatewayAggregatedList or error will be non-nil. 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 ¶
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 information.
func (*VpnGatewaysAggregatedListCall) Filter ¶
func (c *VpnGatewaysAggregatedListCall) Filter(filter string) *VpnGatewaysAggregatedListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*VpnGatewaysAggregatedListCall) Header ¶
func (c *VpnGatewaysAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*VpnGatewaysAggregatedListCall) IfNoneMatch ¶
func (c *VpnGatewaysAggregatedListCall) IfNoneMatch(entityTag string) *VpnGatewaysAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*VpnGatewaysAggregatedListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type VpnGatewaysDeleteCall ¶
type VpnGatewaysDeleteCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysDeleteCall) Context ¶
func (c *VpnGatewaysDeleteCall) Context(ctx context.Context) *VpnGatewaysDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*VpnGatewaysDeleteCall) Do ¶
func (c *VpnGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.vpnGateways.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*VpnGatewaysDeleteCall) Header ¶
func (c *VpnGatewaysDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*VpnGatewaysDeleteCall) RequestId ¶
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 ¶
type VpnGatewaysGetCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysGetCall) Context ¶
func (c *VpnGatewaysGetCall) Context(ctx context.Context) *VpnGatewaysGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*VpnGatewaysGetCall) Do ¶
func (c *VpnGatewaysGetCall) Do(opts ...googleapi.CallOption) (*VpnGateway, error)
Do executes the "compute.vpnGateways.get" call. Exactly one of *VpnGateway or error will be non-nil. 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 ¶
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 information.
func (*VpnGatewaysGetCall) Header ¶
func (c *VpnGatewaysGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*VpnGatewaysGetCall) IfNoneMatch ¶
func (c *VpnGatewaysGetCall) IfNoneMatch(entityTag string) *VpnGatewaysGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type VpnGatewaysGetStatusCall ¶ added in v0.3.0
type VpnGatewaysGetStatusCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysGetStatusCall) Context ¶ added in v0.3.0
func (c *VpnGatewaysGetStatusCall) Context(ctx context.Context) *VpnGatewaysGetStatusCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*VpnGatewaysGetStatusCall) Do ¶ added in v0.3.0
func (c *VpnGatewaysGetStatusCall) Do(opts ...googleapi.CallOption) (*VpnGatewaysGetStatusResponse, error)
Do executes the "compute.vpnGateways.getStatus" call. Exactly one of *VpnGatewaysGetStatusResponse or error will be non-nil. 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.3.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 information.
func (*VpnGatewaysGetStatusCall) Header ¶ added in v0.3.0
func (c *VpnGatewaysGetStatusCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*VpnGatewaysGetStatusCall) IfNoneMatch ¶ added in v0.3.0
func (c *VpnGatewaysGetStatusCall) IfNoneMatch(entityTag string) *VpnGatewaysGetStatusCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type VpnGatewaysGetStatusResponse ¶ added in v0.3.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*VpnGatewaysGetStatusResponse) MarshalJSON ¶ added in v0.3.0
func (s *VpnGatewaysGetStatusResponse) MarshalJSON() ([]byte, error)
type VpnGatewaysInsertCall ¶
type VpnGatewaysInsertCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysInsertCall) Context ¶
func (c *VpnGatewaysInsertCall) Context(ctx context.Context) *VpnGatewaysInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*VpnGatewaysInsertCall) Do ¶
func (c *VpnGatewaysInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.vpnGateways.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*VpnGatewaysInsertCall) Header ¶
func (c *VpnGatewaysInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*VpnGatewaysInsertCall) RequestId ¶
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 ¶
type VpnGatewaysListCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysListCall) Context ¶
func (c *VpnGatewaysListCall) Context(ctx context.Context) *VpnGatewaysListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*VpnGatewaysListCall) Do ¶
func (c *VpnGatewaysListCall) Do(opts ...googleapi.CallOption) (*VpnGatewayList, error)
Do executes the "compute.vpnGateways.list" call. Exactly one of *VpnGatewayList or error will be non-nil. 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 ¶
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 information.
func (*VpnGatewaysListCall) Filter ¶
func (c *VpnGatewaysListCall) Filter(filter string) *VpnGatewaysListCall
Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*VpnGatewaysListCall) Header ¶
func (c *VpnGatewaysListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*VpnGatewaysListCall) IfNoneMatch ¶
func (c *VpnGatewaysListCall) IfNoneMatch(entityTag string) *VpnGatewaysListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*VpnGatewaysListCall) MaxResults ¶
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 ¶
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 ¶
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 ¶
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.
type VpnGatewaysScopedList ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*VpnGatewaysScopedList) MarshalJSON ¶
func (s *VpnGatewaysScopedList) MarshalJSON() ([]byte, error)
type VpnGatewaysScopedListWarning ¶
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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
VpnGatewaysScopedListWarning: [Output Only] Informational warning which replaces the list of addresses when the list is empty.
func (*VpnGatewaysScopedListWarning) MarshalJSON ¶
func (s *VpnGatewaysScopedListWarning) MarshalJSON() ([]byte, error)
type VpnGatewaysScopedListWarningData ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*VpnGatewaysScopedListWarningData) MarshalJSON ¶
func (s *VpnGatewaysScopedListWarningData) MarshalJSON() ([]byte, error)
type VpnGatewaysService ¶
type VpnGatewaysService struct {
// contains filtered or unexported fields
}
func NewVpnGatewaysService ¶
func NewVpnGatewaysService(s *Service) *VpnGatewaysService
func (*VpnGatewaysService) AggregatedList ¶
func (r *VpnGatewaysService) AggregatedList(project string) *VpnGatewaysAggregatedListCall
AggregatedList: Retrieves an aggregated list of VPN gateways. (== suppress_warning http-rest-shadowed ==)
func (*VpnGatewaysService) Delete ¶
func (r *VpnGatewaysService) Delete(project string, region string, vpnGateway string) *VpnGatewaysDeleteCall
Delete: Deletes the specified VPN gateway. (== suppress_warning http-rest-shadowed ==)
func (*VpnGatewaysService) Get ¶
func (r *VpnGatewaysService) Get(project string, region string, vpnGateway string) *VpnGatewaysGetCall
Get: Returns the specified VPN gateway. Gets a list of available VPN gateways by making a list() request. (== suppress_warning http-rest-shadowed ==)
func (*VpnGatewaysService) GetStatus ¶ added in v0.3.0
func (r *VpnGatewaysService) GetStatus(project string, region string, vpnGateway string) *VpnGatewaysGetStatusCall
GetStatus: Returns the status for the specified VPN gateway. (== suppress_warning http-rest-shadowed ==)
func (*VpnGatewaysService) Insert ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*VpnGatewaysService) List ¶
func (r *VpnGatewaysService) List(project string, region string) *VpnGatewaysListCall
List: Retrieves a list of VPN gateways available to the specified project and region. (== suppress_warning http-rest-shadowed ==)
func (*VpnGatewaysService) SetLabels ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*VpnGatewaysService) TestIamPermissions ¶
func (r *VpnGatewaysService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *VpnGatewaysTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type VpnGatewaysSetLabelsCall ¶
type VpnGatewaysSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysSetLabelsCall) Context ¶
func (c *VpnGatewaysSetLabelsCall) Context(ctx context.Context) *VpnGatewaysSetLabelsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*VpnGatewaysSetLabelsCall) Do ¶
func (c *VpnGatewaysSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.vpnGateways.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*VpnGatewaysSetLabelsCall) Header ¶
func (c *VpnGatewaysSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*VpnGatewaysSetLabelsCall) RequestId ¶
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 ¶
type VpnGatewaysTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*VpnGatewaysTestIamPermissionsCall) Context ¶
func (c *VpnGatewaysTestIamPermissionsCall) Context(ctx context.Context) *VpnGatewaysTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*VpnGatewaysTestIamPermissionsCall) Do ¶
func (c *VpnGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.vpnGateways.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 ¶
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 information.
func (*VpnGatewaysTestIamPermissionsCall) Header ¶
func (c *VpnGatewaysTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 to apply to this VpnTunnel. These can be later // 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. 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. PeerExternalGatewayInterface int64 `json:"peerExternalGatewayInterface,omitempty"` // PeerGcpGateway: URL of the peer side HA GCP 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 GCP VPN // gateway. PeerGcpGateway string `json:"peerGcpGateway,omitempty"` // PeerIp: IP address of the peer VPN gateway. Only IPv4 is supported. 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. 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"` // the Cloud 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 // blacklisted. // - 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" // "AUTHORIZATION_ERROR" // "DEPROVISIONING" // "ESTABLISHED" // "FAILED" // "FIRST_HANDSHAKE" // "NEGOTIATION_FAILURE" // "NETWORK_ERROR" // "NO_INCOMING_PACKETS" // "PROVISIONING" // "REJECTED" // "STOPPED" // "WAITING_FOR_FULL_CONFIG" 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. 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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
VpnTunnel: Represents a Cloud VPN Tunnel resource.
For more information about VPN, read the the Cloud VPN Overview. (== resource_for beta.vpnTunnels ==) (== resource_for v1.vpnTunnels ==)
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*VpnTunnelsAggregatedListCall) Do ¶
func (c *VpnTunnelsAggregatedListCall) Do(opts ...googleapi.CallOption) (*VpnTunnelAggregatedList, error)
Do executes the "compute.vpnTunnels.aggregatedList" call. Exactly one of *VpnTunnelAggregatedList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*VpnTunnelsAggregatedListCall) Header ¶
func (c *VpnTunnelsAggregatedListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*VpnTunnelsAggregatedListCall) IfNoneMatch ¶
func (c *VpnTunnelsAggregatedListCall) IfNoneMatch(entityTag string) *VpnTunnelsAggregatedListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*VpnTunnelsDeleteCall) Do ¶
func (c *VpnTunnelsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.vpnTunnels.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*VpnTunnelsDeleteCall) Header ¶
func (c *VpnTunnelsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*VpnTunnelsGetCall) Do ¶
func (c *VpnTunnelsGetCall) Do(opts ...googleapi.CallOption) (*VpnTunnel, error)
Do executes the "compute.vpnTunnels.get" call. Exactly one of *VpnTunnel or error will be non-nil. 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 information.
func (*VpnTunnelsGetCall) Header ¶
func (c *VpnTunnelsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*VpnTunnelsGetCall) IfNoneMatch ¶
func (c *VpnTunnelsGetCall) IfNoneMatch(entityTag string) *VpnTunnelsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*VpnTunnelsInsertCall) Do ¶
func (c *VpnTunnelsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.vpnTunnels.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*VpnTunnelsInsertCall) Header ¶
func (c *VpnTunnelsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*VpnTunnelsListCall) Do ¶
func (c *VpnTunnelsListCall) Do(opts ...googleapi.CallOption) (*VpnTunnelList, error)
Do executes the "compute.vpnTunnels.list" call. Exactly one of *VpnTunnelList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*VpnTunnelsListCall) Header ¶
func (c *VpnTunnelsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*VpnTunnelsListCall) IfNoneMatch ¶
func (c *VpnTunnelsListCall) IfNoneMatch(entityTag string) *VpnTunnelsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. (== suppress_warning http-rest-shadowed ==)
func (*VpnTunnelsService) Delete ¶
func (r *VpnTunnelsService) Delete(project string, region string, vpnTunnel string) *VpnTunnelsDeleteCall
Delete: Deletes the specified VpnTunnel resource. (== suppress_warning http-rest-shadowed ==)
func (*VpnTunnelsService) Get ¶
func (r *VpnTunnelsService) Get(project string, region string, vpnTunnel string) *VpnTunnelsGetCall
Get: Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels by making a list() request. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
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. (== suppress_warning http-rest-shadowed ==)
func (*VpnTunnelsService) SetLabels ¶
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. (== suppress_warning http-rest-shadowed ==)
func (*VpnTunnelsService) TestIamPermissions ¶
func (r *VpnTunnelsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *VpnTunnelsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. (== suppress_warning http-rest-shadowed ==)
type VpnTunnelsSetLabelsCall ¶
type VpnTunnelsSetLabelsCall struct {
// contains filtered or unexported fields
}
func (*VpnTunnelsSetLabelsCall) Context ¶
func (c *VpnTunnelsSetLabelsCall) Context(ctx context.Context) *VpnTunnelsSetLabelsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*VpnTunnelsSetLabelsCall) Do ¶
func (c *VpnTunnelsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.vpnTunnels.setLabels" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*VpnTunnelsSetLabelsCall) Header ¶
func (c *VpnTunnelsSetLabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*VpnTunnelsSetLabelsCall) RequestId ¶
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 VpnTunnelsTestIamPermissionsCall ¶
type VpnTunnelsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*VpnTunnelsTestIamPermissionsCall) Context ¶
func (c *VpnTunnelsTestIamPermissionsCall) Context(ctx context.Context) *VpnTunnelsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*VpnTunnelsTestIamPermissionsCall) Do ¶
func (c *VpnTunnelsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error)
Do executes the "compute.vpnTunnels.testIamPermissions" call. Exactly one of *TestPermissionsResponse or error will be non-nil. 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 (*VpnTunnelsTestIamPermissionsCall) Fields ¶
func (c *VpnTunnelsTestIamPermissionsCall) Fields(s ...googleapi.Field) *VpnTunnelsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*VpnTunnelsTestIamPermissionsCall) Header ¶
func (c *VpnTunnelsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type WafExpressionSet ¶
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 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*WafExpressionSet) MarshalJSON ¶
func (s *WafExpressionSet) MarshalJSON() ([]byte, error)
type WafExpressionSetExpression ¶
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. Id string `json:"id,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*WafExpressionSetExpression) MarshalJSON ¶
func (s *WafExpressionSetExpression) MarshalJSON() ([]byte, error)
type WeightedBackendService ¶ added in v0.2.0
type WeightedBackendService struct { // BackendService: The full or partial URL to the default BackendService // resource. Before forwarding the request to backendService, the // loadbalancer 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 *HttpHeaderAction `json:"headerAction,omitempty"` // Weight: Specifies the fraction of traffic sent to backendService, // 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 backendService, // subsequent requests will be sent to the same backendService as // determined by the BackendService's session affinity policy. // The value must be between 0 and 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 BackendServices. The volume of traffic for each BackendService is proportional to the weight specified in each WeightedBackendService
func (*WeightedBackendService) MarshalJSON ¶ added in v0.2.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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-a is located in the us-east1 region. For more information, read Regions and Zones. (== resource_for beta.zones ==) (== resource_for v1.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "DEPRECATED_RESOURCE_USED" // "DEPRECATED_TYPE_USED" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "EXPERIMENTAL_TYPE_USED" // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" // "NEXT_HOP_INSTANCE_NOT_FOUND" // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" // "NEXT_HOP_NOT_RUNNING" // "NOT_CRITICAL_ERROR" // "NO_RESULTS_ON_PAGE" // "REQUIRED_TOS_AGREEMENT" // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" // "RESOURCE_NOT_DELETED" // "SCHEMA_VALIDATION_IGNORED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "UNDECLARED_PROPERTIES" // "UNREACHABLE" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
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 information.
func (*ZoneOperationsDeleteCall) Header ¶
func (c *ZoneOperationsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ZoneOperationsGetCall) Do ¶
func (c *ZoneOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.zoneOperations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 information.
func (*ZoneOperationsGetCall) Header ¶
func (c *ZoneOperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ZoneOperationsGetCall) IfNoneMatch ¶
func (c *ZoneOperationsGetCall) IfNoneMatch(entityTag string) *ZoneOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ZoneOperationsListCall) Do ¶
func (c *ZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList, error)
Do executes the "compute.zoneOperations.list" call. Exactly one of *OperationList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*ZoneOperationsListCall) Header ¶
func (c *ZoneOperationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ZoneOperationsListCall) IfNoneMatch ¶
func (c *ZoneOperationsListCall) IfNoneMatch(entityTag string) *ZoneOperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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, operation string) *ZoneOperationsDeleteCall
Delete: Deletes the specified zone-specific Operations resource. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/zoneOperations/delete
func (*ZoneOperationsService) Get ¶
func (r *ZoneOperationsService) Get(project string, zone string, operation string) *ZoneOperationsGetCall
Get: Retrieves the specified zone-specific Operations resource. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/zoneOperations/get
func (*ZoneOperationsService) List ¶
func (r *ZoneOperationsService) List(project string, zone string) *ZoneOperationsListCall
List: Retrieves a list of Operation resources contained within the specified zone. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/zoneOperations/list
func (*ZoneOperationsService) Wait ¶
func (r *ZoneOperationsService) Wait(project string, zone string, operation string) *ZoneOperationsWaitCall
Wait: Waits for the specified zone-specific Operations resource until it is done or timeout, and retrieves the specified Operations resource. 1. Immediately returns when the operation is already done. 2. Waits for no more than the default deadline (2 minutes, subject to change) and then returns the current state of the operation, which may be DONE or still in progress. 3. Is best-effort: a. The server can wait less than the default deadline or zero seconds, in overload situations. b. There is no guarantee that the operation is actually done when returns. 4. User should be prepared to retry if the operation is not DONE. (== suppress_warning http-rest-shadowed ==)
type ZoneOperationsWaitCall ¶
type ZoneOperationsWaitCall struct {
// contains filtered or unexported fields
}
func (*ZoneOperationsWaitCall) Context ¶
func (c *ZoneOperationsWaitCall) Context(ctx context.Context) *ZoneOperationsWaitCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ZoneOperationsWaitCall) Do ¶
func (c *ZoneOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "compute.zoneOperations.wait" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was 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 ¶
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 information.
func (*ZoneOperationsWaitCall) Header ¶
func (c *ZoneOperationsWaitCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ZonesGetCall) Do ¶
func (c *ZonesGetCall) Do(opts ...googleapi.CallOption) (*Zone, error)
Do executes the "compute.zones.get" call. Exactly one of *Zone or error will be non-nil. 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 information.
func (*ZonesGetCall) Header ¶
func (c *ZonesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ZonesGetCall) IfNoneMatch ¶
func (c *ZonesGetCall) IfNoneMatch(entityTag string) *ZonesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ZonesListCall) Do ¶
func (c *ZonesListCall) Do(opts ...googleapi.CallOption) (*ZoneList, error)
Do executes the "compute.zones.list" call. Exactly one of *ZoneList or error will be non-nil. 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 information.
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. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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.
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).
func (*ZonesListCall) Header ¶
func (c *ZonesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ZonesListCall) IfNoneMatch ¶
func (c *ZonesListCall) IfNoneMatch(entityTag string) *ZonesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
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. Gets a list of available zones by making a list() request. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/zones/get
func (*ZonesService) List ¶
func (r *ZonesService) List(project string) *ZonesListCall
List: Retrieves the list of Zone resources available to the specified project. (== suppress_warning http-rest-shadowed ==) For details, see https://cloud.google.com/compute/docs/reference/latest/zones/list