Documentation ¶
Overview ¶
Package compute provides access to the Compute Engine API.
See https://developers.google.com/compute/docs/reference/latest/
Usage example:
import "google.golang.org/api/compute/v1" ... computeService, err := compute.New(oauthHttpClient)
Index ¶
- Constants
- type AccessConfig
- type Address
- type AddressAggregatedList
- type AddressList
- 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) IfNoneMatch(entityTag string) *AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) MaxResults(maxResults int64) *AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) PageToken(pageToken string) *AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) Pages(ctx context.Context, f func(*AddressAggregatedList) error) error
- type 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) IfNoneMatch(entityTag string) *AddressesGetCall
- type 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) IfNoneMatch(entityTag string) *AddressesListCall
- func (c *AddressesListCall) MaxResults(maxResults int64) *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
- type AttachedDisk
- type AttachedDiskInitializeParams
- type Autoscaler
- type AutoscalerAggregatedList
- type AutoscalerList
- 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) IfNoneMatch(entityTag string) *AutoscalersAggregatedListCall
- func (c *AutoscalersAggregatedListCall) MaxResults(maxResults int64) *AutoscalersAggregatedListCall
- func (c *AutoscalersAggregatedListCall) PageToken(pageToken string) *AutoscalersAggregatedListCall
- func (c *AutoscalersAggregatedListCall) Pages(ctx context.Context, f func(*AutoscalerAggregatedList) error) error
- type 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) IfNoneMatch(entityTag string) *AutoscalersGetCall
- type 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) IfNoneMatch(entityTag string) *AutoscalersListCall
- func (c *AutoscalersListCall) MaxResults(maxResults int64) *AutoscalersListCall
- func (c *AutoscalersListCall) PageToken(pageToken string) *AutoscalersListCall
- func (c *AutoscalersListCall) Pages(ctx context.Context, f func(*AutoscalerList) error) error
- type 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 string, autoscaler2 *Autoscaler) *AutoscalersPatchCall
- func (r *AutoscalersService) Update(project string, zone string, autoscaler *Autoscaler) *AutoscalersUpdateCall
- type AutoscalersUpdateCall
- func (c *AutoscalersUpdateCall) Autoscaler(autoscaler string) *AutoscalersUpdateCall
- func (c *AutoscalersUpdateCall) Context(ctx context.Context) *AutoscalersUpdateCall
- func (c *AutoscalersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *AutoscalersUpdateCall) Fields(s ...googleapi.Field) *AutoscalersUpdateCall
- type AutoscalingPolicy
- type AutoscalingPolicyCpuUtilization
- type AutoscalingPolicyCustomMetricUtilization
- type AutoscalingPolicyLoadBalancingUtilization
- type Backend
- type BackendService
- type BackendServiceGroupHealth
- type BackendServiceList
- type BackendServicesDeleteCall
- 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) 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
- type 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) IfNoneMatch(entityTag string) *BackendServicesListCall
- func (c *BackendServicesListCall) MaxResults(maxResults int64) *BackendServicesListCall
- func (c *BackendServicesListCall) PageToken(pageToken string) *BackendServicesListCall
- func (c *BackendServicesListCall) Pages(ctx context.Context, f func(*BackendServiceList) error) error
- type BackendServicesPatchCall
- type BackendServicesService
- func (r *BackendServicesService) Delete(project string, backendService string) *BackendServicesDeleteCall
- 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) Update(project string, backendService string, backendservice *BackendService) *BackendServicesUpdateCall
- type BackendServicesUpdateCall
- type DeprecationStatus
- type Disk
- type DiskAggregatedList
- type DiskList
- type DiskMoveRequest
- type DiskType
- type DiskTypeAggregatedList
- type DiskTypeList
- 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) IfNoneMatch(entityTag string) *DiskTypesAggregatedListCall
- func (c *DiskTypesAggregatedListCall) MaxResults(maxResults int64) *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) 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) IfNoneMatch(entityTag string) *DiskTypesListCall
- func (c *DiskTypesListCall) MaxResults(maxResults int64) *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 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) IfNoneMatch(entityTag string) *DisksAggregatedListCall
- func (c *DisksAggregatedListCall) MaxResults(maxResults int64) *DisksAggregatedListCall
- func (c *DisksAggregatedListCall) PageToken(pageToken string) *DisksAggregatedListCall
- func (c *DisksAggregatedListCall) Pages(ctx context.Context, f func(*DiskAggregatedList) error) error
- type DisksCreateSnapshotCall
- type DisksDeleteCall
- type DisksGetCall
- type 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) IfNoneMatch(entityTag string) *DisksListCall
- func (c *DisksListCall) MaxResults(maxResults int64) *DisksListCall
- func (c *DisksListCall) PageToken(pageToken string) *DisksListCall
- func (c *DisksListCall) Pages(ctx context.Context, f func(*DiskList) error) error
- type DisksScopedList
- type DisksScopedListWarning
- type DisksScopedListWarningData
- type DisksService
- 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) Insert(project string, zone string, disk *Disk) *DisksInsertCall
- func (r *DisksService) List(project string, zone string) *DisksListCall
- type Firewall
- type FirewallAllowed
- type FirewallList
- type 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) IfNoneMatch(entityTag string) *FirewallsGetCall
- type 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) IfNoneMatch(entityTag string) *FirewallsListCall
- func (c *FirewallsListCall) MaxResults(maxResults int64) *FirewallsListCall
- func (c *FirewallsListCall) PageToken(pageToken string) *FirewallsListCall
- func (c *FirewallsListCall) Pages(ctx context.Context, f func(*FirewallList) error) error
- type FirewallsPatchCall
- type FirewallsService
- func (r *FirewallsService) Delete(project string, firewall string) *FirewallsDeleteCall
- func (r *FirewallsService) Get(project string, firewall string) *FirewallsGetCall
- func (r *FirewallsService) Insert(project string, firewall *Firewall) *FirewallsInsertCall
- func (r *FirewallsService) List(project string) *FirewallsListCall
- func (r *FirewallsService) Patch(project string, firewall string, firewall2 *Firewall) *FirewallsPatchCall
- func (r *FirewallsService) Update(project string, firewall string, firewall2 *Firewall) *FirewallsUpdateCall
- type FirewallsUpdateCall
- type ForwardingRule
- type ForwardingRuleAggregatedList
- type ForwardingRuleList
- 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) IfNoneMatch(entityTag string) *ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) MaxResults(maxResults int64) *ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) PageToken(pageToken string) *ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) Pages(ctx context.Context, f func(*ForwardingRuleAggregatedList) error) error
- type 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) IfNoneMatch(entityTag string) *ForwardingRulesGetCall
- type 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) IfNoneMatch(entityTag string) *ForwardingRulesListCall
- func (c *ForwardingRulesListCall) MaxResults(maxResults int64) *ForwardingRulesListCall
- func (c *ForwardingRulesListCall) PageToken(pageToken string) *ForwardingRulesListCall
- func (c *ForwardingRulesListCall) Pages(ctx context.Context, f func(*ForwardingRuleList) error) error
- 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) SetTarget(project string, region string, forwardingRule string, ...) *ForwardingRulesSetTargetCall
- type ForwardingRulesSetTargetCall
- type 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) IfNoneMatch(entityTag string) *GlobalAddressesGetCall
- type 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) IfNoneMatch(entityTag string) *GlobalAddressesListCall
- func (c *GlobalAddressesListCall) MaxResults(maxResults int64) *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
- 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
- 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) 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
- 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) IfNoneMatch(entityTag string) *GlobalForwardingRulesListCall
- func (c *GlobalForwardingRulesListCall) MaxResults(maxResults int64) *GlobalForwardingRulesListCall
- func (c *GlobalForwardingRulesListCall) PageToken(pageToken string) *GlobalForwardingRulesListCall
- func (c *GlobalForwardingRulesListCall) Pages(ctx context.Context, f func(*ForwardingRuleList) error) error
- 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) SetTarget(project string, forwardingRule string, targetreference *TargetReference) *GlobalForwardingRulesSetTargetCall
- 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
- 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) IfNoneMatch(entityTag string) *GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) MaxResults(maxResults int64) *GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) PageToken(pageToken string) *GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) Pages(ctx context.Context, f func(*OperationAggregatedList) error) error
- type GlobalOperationsDeleteCall
- 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) 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) IfNoneMatch(entityTag string) *GlobalOperationsListCall
- func (c *GlobalOperationsListCall) MaxResults(maxResults int64) *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
- type HealthCheckReference
- type HealthStatus
- type HostRule
- type HttpHealthCheck
- type HttpHealthCheckList
- type 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) IfNoneMatch(entityTag string) *HttpHealthChecksGetCall
- type 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) IfNoneMatch(entityTag string) *HttpHealthChecksListCall
- func (c *HttpHealthChecksListCall) MaxResults(maxResults int64) *HttpHealthChecksListCall
- func (c *HttpHealthChecksListCall) PageToken(pageToken string) *HttpHealthChecksListCall
- func (c *HttpHealthChecksListCall) Pages(ctx context.Context, f func(*HttpHealthCheckList) error) error
- type HttpHealthChecksPatchCall
- type HttpHealthChecksService
- func (r *HttpHealthChecksService) Delete(project string, httpHealthCheck string) *HttpHealthChecksDeleteCall
- func (r *HttpHealthChecksService) Get(project string, httpHealthCheck string) *HttpHealthChecksGetCall
- func (r *HttpHealthChecksService) Insert(project string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksInsertCall
- func (r *HttpHealthChecksService) List(project string) *HttpHealthChecksListCall
- func (r *HttpHealthChecksService) Patch(project string, httpHealthCheck string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksPatchCall
- func (r *HttpHealthChecksService) Update(project string, httpHealthCheck string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksUpdateCall
- type HttpHealthChecksUpdateCall
- type HttpsHealthCheck
- type HttpsHealthCheckList
- type 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) IfNoneMatch(entityTag string) *HttpsHealthChecksGetCall
- type 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) IfNoneMatch(entityTag string) *HttpsHealthChecksListCall
- func (c *HttpsHealthChecksListCall) MaxResults(maxResults int64) *HttpsHealthChecksListCall
- func (c *HttpsHealthChecksListCall) PageToken(pageToken string) *HttpsHealthChecksListCall
- func (c *HttpsHealthChecksListCall) Pages(ctx context.Context, f func(*HttpsHealthCheckList) error) error
- type HttpsHealthChecksPatchCall
- type HttpsHealthChecksService
- func (r *HttpsHealthChecksService) Delete(project string, httpsHealthCheck string) *HttpsHealthChecksDeleteCall
- func (r *HttpsHealthChecksService) Get(project string, httpsHealthCheck string) *HttpsHealthChecksGetCall
- func (r *HttpsHealthChecksService) Insert(project string, httpshealthcheck *HttpsHealthCheck) *HttpsHealthChecksInsertCall
- func (r *HttpsHealthChecksService) List(project string) *HttpsHealthChecksListCall
- func (r *HttpsHealthChecksService) Patch(project string, httpsHealthCheck string, httpshealthcheck *HttpsHealthCheck) *HttpsHealthChecksPatchCall
- func (r *HttpsHealthChecksService) Update(project string, httpsHealthCheck string, httpshealthcheck *HttpsHealthCheck) *HttpsHealthChecksUpdateCall
- type HttpsHealthChecksUpdateCall
- type Image
- type ImageList
- type ImageRawDisk
- type ImagesDeleteCall
- type ImagesDeprecateCall
- type ImagesGetCall
- type 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) IfNoneMatch(entityTag string) *ImagesListCall
- func (c *ImagesListCall) MaxResults(maxResults int64) *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) Insert(project string, image *Image) *ImagesInsertCall
- func (r *ImagesService) List(project string) *ImagesListCall
- type Instance
- type InstanceAggregatedList
- type InstanceGroup
- type InstanceGroupAggregatedList
- type InstanceGroupList
- type InstanceGroupManager
- type InstanceGroupManagerActionsSummary
- type InstanceGroupManagerAggregatedList
- type InstanceGroupManagerList
- 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
- 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) IfNoneMatch(entityTag string) *InstanceGroupManagersAggregatedListCall
- func (c *InstanceGroupManagersAggregatedListCall) MaxResults(maxResults int64) *InstanceGroupManagersAggregatedListCall
- func (c *InstanceGroupManagersAggregatedListCall) PageToken(pageToken string) *InstanceGroupManagersAggregatedListCall
- func (c *InstanceGroupManagersAggregatedListCall) Pages(ctx context.Context, f func(*InstanceGroupManagerAggregatedList) error) error
- 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
- 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
- type InstanceGroupManagersDeleteInstancesRequest
- 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) 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
- 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) IfNoneMatch(entityTag string) *InstanceGroupManagersListCall
- func (c *InstanceGroupManagersListCall) MaxResults(maxResults int64) *InstanceGroupManagersListCall
- func (c *InstanceGroupManagersListCall) PageToken(pageToken string) *InstanceGroupManagersListCall
- func (c *InstanceGroupManagersListCall) Pages(ctx context.Context, f func(*InstanceGroupManagerList) error) error
- 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
- type InstanceGroupManagersListManagedInstancesResponse
- 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
- type InstanceGroupManagersRecreateInstancesRequest
- type InstanceGroupManagersResizeCall
- func (c *InstanceGroupManagersResizeCall) Context(ctx context.Context) *InstanceGroupManagersResizeCall
- func (c *InstanceGroupManagersResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupManagersResizeCall) Fields(s ...googleapi.Field) *InstanceGroupManagersResizeCall
- 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) Delete(project string, zone string, instanceGroupManager string) *InstanceGroupManagersDeleteCall
- func (r *InstanceGroupManagersService) DeleteInstances(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersDeleteInstancesCall
- 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) ListManagedInstances(project string, zone string, instanceGroupManager string) *InstanceGroupManagersListManagedInstancesCall
- func (r *InstanceGroupManagersService) RecreateInstances(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersRecreateInstancesCall
- func (r *InstanceGroupManagersService) Resize(project string, zone string, instanceGroupManager string, size int64) *InstanceGroupManagersResizeCall
- func (r *InstanceGroupManagersService) SetInstanceTemplate(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersSetInstanceTemplateCall
- func (r *InstanceGroupManagersService) SetTargetPools(project string, zone string, instanceGroupManager string, ...) *InstanceGroupManagersSetTargetPoolsCall
- 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
- 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
- type InstanceGroupManagersSetTargetPoolsRequest
- type 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) IfNoneMatch(entityTag string) *InstanceGroupsAggregatedListCall
- func (c *InstanceGroupsAggregatedListCall) MaxResults(maxResults int64) *InstanceGroupsAggregatedListCall
- func (c *InstanceGroupsAggregatedListCall) PageToken(pageToken string) *InstanceGroupsAggregatedListCall
- func (c *InstanceGroupsAggregatedListCall) Pages(ctx context.Context, f func(*InstanceGroupAggregatedList) error) error
- type 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) IfNoneMatch(entityTag string) *InstanceGroupsGetCall
- type 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) IfNoneMatch(entityTag string) *InstanceGroupsListCall
- func (c *InstanceGroupsListCall) MaxResults(maxResults int64) *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) MaxResults(maxResults int64) *InstanceGroupsListInstancesCall
- func (c *InstanceGroupsListInstancesCall) PageToken(pageToken string) *InstanceGroupsListInstancesCall
- type InstanceGroupsListInstancesRequest
- 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
- type InstanceGroupsRemoveInstancesRequest
- type InstanceGroupsScopedList
- type InstanceGroupsScopedListWarning
- type InstanceGroupsScopedListWarningData
- type InstanceGroupsService
- func (r *InstanceGroupsService) AddInstances(project string, zone string, instanceGroup string, ...) *InstanceGroupsAddInstancesCall
- func (r *InstanceGroupsService) AggregatedList(project string) *InstanceGroupsAggregatedListCall
- func (r *InstanceGroupsService) Delete(project string, zone string, instanceGroup string) *InstanceGroupsDeleteCall
- func (r *InstanceGroupsService) Get(project string, zone string, instanceGroup string) *InstanceGroupsGetCall
- func (r *InstanceGroupsService) Insert(project string, zone string, instancegroup *InstanceGroup) *InstanceGroupsInsertCall
- func (r *InstanceGroupsService) List(project string, zone string) *InstanceGroupsListCall
- func (r *InstanceGroupsService) ListInstances(project string, zone string, instanceGroup string, ...) *InstanceGroupsListInstancesCall
- func (r *InstanceGroupsService) RemoveInstances(project string, zone string, instanceGroup string, ...) *InstanceGroupsRemoveInstancesCall
- func (r *InstanceGroupsService) SetNamedPorts(project string, zone string, instanceGroup string, ...) *InstanceGroupsSetNamedPortsCall
- type InstanceGroupsSetNamedPortsCall
- func (c *InstanceGroupsSetNamedPortsCall) Context(ctx context.Context) *InstanceGroupsSetNamedPortsCall
- func (c *InstanceGroupsSetNamedPortsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *InstanceGroupsSetNamedPortsCall) Fields(s ...googleapi.Field) *InstanceGroupsSetNamedPortsCall
- type InstanceGroupsSetNamedPortsRequest
- type InstanceList
- type InstanceMoveRequest
- type InstanceProperties
- type InstanceReference
- type InstanceTemplate
- type InstanceTemplateList
- type 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) IfNoneMatch(entityTag string) *InstanceTemplatesGetCall
- type 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) IfNoneMatch(entityTag string) *InstanceTemplatesListCall
- func (c *InstanceTemplatesListCall) MaxResults(maxResults int64) *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) Insert(project string, instancetemplate *InstanceTemplate) *InstanceTemplatesInsertCall
- func (r *InstanceTemplatesService) List(project string) *InstanceTemplatesListCall
- type InstanceWithNamedPorts
- type InstancesAddAccessConfigCall
- 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) IfNoneMatch(entityTag string) *InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) MaxResults(maxResults int64) *InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) PageToken(pageToken string) *InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) Pages(ctx context.Context, f func(*InstanceAggregatedList) error) error
- type 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
- type InstancesDeleteCall
- type 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) IfNoneMatch(entityTag string) *InstancesGetCall
- 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) IfNoneMatch(entityTag string) *InstancesGetSerialPortOutputCall
- func (c *InstancesGetSerialPortOutputCall) Port(port int64) *InstancesGetSerialPortOutputCall
- type 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) IfNoneMatch(entityTag string) *InstancesListCall
- func (c *InstancesListCall) MaxResults(maxResults int64) *InstancesListCall
- func (c *InstancesListCall) PageToken(pageToken string) *InstancesListCall
- func (c *InstancesListCall) Pages(ctx context.Context, f func(*InstanceList) error) error
- type InstancesResetCall
- type InstancesScopedList
- type InstancesScopedListWarning
- type InstancesScopedListWarningData
- type InstancesService
- func (r *InstancesService) AddAccessConfig(project string, zone string, instance string, networkInterface string, ...) *InstancesAddAccessConfigCall
- 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) GetSerialPortOutput(project string, zone string, instance string) *InstancesGetSerialPortOutputCall
- func (r *InstancesService) Insert(project string, zone string, instance *Instance) *InstancesInsertCall
- func (r *InstancesService) List(project string, zone string) *InstancesListCall
- func (r *InstancesService) Reset(project string, zone string, instance string) *InstancesResetCall
- func (r *InstancesService) SetDiskAutoDelete(project string, zone string, instance string, autoDelete bool, ...) *InstancesSetDiskAutoDeleteCall
- 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) SetScheduling(project string, zone string, instance string, scheduling *Scheduling) *InstancesSetSchedulingCall
- func (r *InstancesService) SetTags(project string, zone string, instance string, tags *Tags) *InstancesSetTagsCall
- func (r *InstancesService) Start(project string, zone string, instance string) *InstancesStartCall
- func (r *InstancesService) Stop(project string, zone string, instance string) *InstancesStopCall
- type InstancesSetDiskAutoDeleteCall
- type InstancesSetMachineTypeCall
- type InstancesSetMachineTypeRequest
- type InstancesSetMetadataCall
- type InstancesSetSchedulingCall
- type InstancesSetTagsCall
- type InstancesStartCall
- type InstancesStopCall
- type License
- type LicensesGetCall
- type LicensesService
- type MachineType
- type MachineTypeAggregatedList
- type MachineTypeList
- type MachineTypeScratchDisks
- type MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) Context(ctx context.Context) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*MachineTypeAggregatedList, error)
- func (c *MachineTypesAggregatedListCall) Fields(s ...googleapi.Field) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) Filter(filter string) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) IfNoneMatch(entityTag string) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) MaxResults(maxResults int64) *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) 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) IfNoneMatch(entityTag string) *MachineTypesListCall
- func (c *MachineTypesListCall) MaxResults(maxResults int64) *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 ManagedInstanceLastAttempt
- type ManagedInstanceLastAttemptErrors
- type ManagedInstanceLastAttemptErrorsErrors
- type Metadata
- type MetadataItems
- type NamedPort
- type Network
- type NetworkInterface
- type NetworkList
- type NetworksDeleteCall
- type NetworksGetCall
- type 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) IfNoneMatch(entityTag string) *NetworksListCall
- func (c *NetworksListCall) MaxResults(maxResults int64) *NetworksListCall
- func (c *NetworksListCall) PageToken(pageToken string) *NetworksListCall
- func (c *NetworksListCall) Pages(ctx context.Context, f func(*NetworkList) error) error
- type NetworksService
- func (r *NetworksService) Delete(project string, network string) *NetworksDeleteCall
- func (r *NetworksService) Get(project string, network string) *NetworksGetCall
- func (r *NetworksService) Insert(project string, network *Network) *NetworksInsertCall
- func (r *NetworksService) List(project string) *NetworksListCall
- type Operation
- type OperationAggregatedList
- type OperationError
- type OperationErrorErrors
- type OperationList
- type OperationWarnings
- type OperationWarningsData
- type OperationsScopedList
- type OperationsScopedListWarning
- type OperationsScopedListWarningData
- type PathMatcher
- type PathRule
- type Project
- type ProjectsGetCall
- type ProjectsMoveDiskCall
- type ProjectsMoveInstanceCall
- type ProjectsService
- func (r *ProjectsService) Get(project string) *ProjectsGetCall
- 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) 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
- 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
- type Quota
- type Region
- type RegionList
- type RegionOperationsDeleteCall
- 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) 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) IfNoneMatch(entityTag string) *RegionOperationsListCall
- func (c *RegionOperationsListCall) MaxResults(maxResults int64) *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
- type 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) IfNoneMatch(entityTag string) *RegionsListCall
- func (c *RegionsListCall) MaxResults(maxResults int64) *RegionsListCall
- func (c *RegionsListCall) PageToken(pageToken string) *RegionsListCall
- func (c *RegionsListCall) Pages(ctx context.Context, f func(*RegionList) error) error
- type RegionsService
- type ResourceGroupReference
- type Route
- type RouteList
- type RouteWarnings
- type RouteWarningsData
- type RoutesDeleteCall
- type RoutesGetCall
- type 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) IfNoneMatch(entityTag string) *RoutesListCall
- func (c *RoutesListCall) MaxResults(maxResults int64) *RoutesListCall
- func (c *RoutesListCall) PageToken(pageToken string) *RoutesListCall
- func (c *RoutesListCall) Pages(ctx context.Context, f func(*RouteList) error) error
- type RoutesService
- type Scheduling
- type SerialPortOutput
- type Service
- type ServiceAccount
- type Snapshot
- type SnapshotList
- type 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) IfNoneMatch(entityTag string) *SnapshotsGetCall
- 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) IfNoneMatch(entityTag string) *SnapshotsListCall
- func (c *SnapshotsListCall) MaxResults(maxResults int64) *SnapshotsListCall
- func (c *SnapshotsListCall) PageToken(pageToken string) *SnapshotsListCall
- func (c *SnapshotsListCall) Pages(ctx context.Context, f func(*SnapshotList) error) error
- type SnapshotsService
- type SslCertificate
- type SslCertificateList
- type 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) IfNoneMatch(entityTag string) *SslCertificatesGetCall
- type 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) IfNoneMatch(entityTag string) *SslCertificatesListCall
- func (c *SslCertificatesListCall) MaxResults(maxResults int64) *SslCertificatesListCall
- func (c *SslCertificatesListCall) PageToken(pageToken string) *SslCertificatesListCall
- func (c *SslCertificatesListCall) Pages(ctx context.Context, f func(*SslCertificateList) error) error
- type SslCertificatesService
- func (r *SslCertificatesService) Delete(project string, sslCertificate string) *SslCertificatesDeleteCall
- func (r *SslCertificatesService) Get(project string, sslCertificate string) *SslCertificatesGetCall
- func (r *SslCertificatesService) Insert(project string, sslcertificate *SslCertificate) *SslCertificatesInsertCall
- func (r *SslCertificatesService) List(project string) *SslCertificatesListCall
- type Subnetwork
- type SubnetworkAggregatedList
- type SubnetworkList
- 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) IfNoneMatch(entityTag string) *SubnetworksAggregatedListCall
- func (c *SubnetworksAggregatedListCall) MaxResults(maxResults int64) *SubnetworksAggregatedListCall
- func (c *SubnetworksAggregatedListCall) PageToken(pageToken string) *SubnetworksAggregatedListCall
- func (c *SubnetworksAggregatedListCall) Pages(ctx context.Context, f func(*SubnetworkAggregatedList) error) error
- type SubnetworksDeleteCall
- 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) IfNoneMatch(entityTag string) *SubnetworksGetCall
- type 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) IfNoneMatch(entityTag string) *SubnetworksListCall
- func (c *SubnetworksListCall) MaxResults(maxResults int64) *SubnetworksListCall
- func (c *SubnetworksListCall) PageToken(pageToken string) *SubnetworksListCall
- func (c *SubnetworksListCall) Pages(ctx context.Context, f func(*SubnetworkList) error) error
- 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) Get(project string, region string, subnetwork string) *SubnetworksGetCall
- func (r *SubnetworksService) Insert(project string, region string, subnetwork *Subnetwork) *SubnetworksInsertCall
- func (r *SubnetworksService) List(project string, region string) *SubnetworksListCall
- type Tags
- type 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) IfNoneMatch(entityTag string) *TargetHttpProxiesGetCall
- type 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) IfNoneMatch(entityTag string) *TargetHttpProxiesListCall
- func (c *TargetHttpProxiesListCall) MaxResults(maxResults int64) *TargetHttpProxiesListCall
- func (c *TargetHttpProxiesListCall) PageToken(pageToken string) *TargetHttpProxiesListCall
- func (c *TargetHttpProxiesListCall) Pages(ctx context.Context, f func(*TargetHttpProxyList) error) error
- type TargetHttpProxiesService
- 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
- type TargetHttpProxiesSetUrlMapCall
- type TargetHttpProxy
- type TargetHttpProxyList
- type 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) IfNoneMatch(entityTag string) *TargetHttpsProxiesGetCall
- type 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) IfNoneMatch(entityTag string) *TargetHttpsProxiesListCall
- func (c *TargetHttpsProxiesListCall) MaxResults(maxResults int64) *TargetHttpsProxiesListCall
- func (c *TargetHttpsProxiesListCall) PageToken(pageToken string) *TargetHttpsProxiesListCall
- func (c *TargetHttpsProxiesListCall) Pages(ctx context.Context, f func(*TargetHttpsProxyList) error) error
- type TargetHttpsProxiesService
- 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) SetSslCertificates(project string, targetHttpsProxy string, ...) *TargetHttpsProxiesSetSslCertificatesCall
- func (r *TargetHttpsProxiesService) SetUrlMap(project string, targetHttpsProxy string, urlmapreference *UrlMapReference) *TargetHttpsProxiesSetUrlMapCall
- 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
- type TargetHttpsProxiesSetSslCertificatesRequest
- 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
- type TargetHttpsProxy
- type TargetHttpsProxyList
- type TargetInstance
- type TargetInstanceAggregatedList
- type TargetInstanceList
- 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) IfNoneMatch(entityTag string) *TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) MaxResults(maxResults int64) *TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) PageToken(pageToken string) *TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) Pages(ctx context.Context, f func(*TargetInstanceAggregatedList) error) error
- type 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) IfNoneMatch(entityTag string) *TargetInstancesGetCall
- type 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) IfNoneMatch(entityTag string) *TargetInstancesListCall
- func (c *TargetInstancesListCall) MaxResults(maxResults int64) *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
- type TargetPool
- type TargetPoolAggregatedList
- type TargetPoolInstanceHealth
- type TargetPoolList
- type TargetPoolsAddHealthCheckCall
- type TargetPoolsAddHealthCheckRequest
- type 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) IfNoneMatch(entityTag string) *TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) MaxResults(maxResults int64) *TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) PageToken(pageToken string) *TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) Pages(ctx context.Context, f func(*TargetPoolAggregatedList) error) error
- type 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) IfNoneMatch(entityTag string) *TargetPoolsGetCall
- type TargetPoolsGetHealthCall
- type 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) IfNoneMatch(entityTag string) *TargetPoolsListCall
- func (c *TargetPoolsListCall) MaxResults(maxResults int64) *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
- type TargetPoolsRemoveHealthCheckRequest
- type 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
- 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
- type TargetReference
- type TargetVpnGateway
- type TargetVpnGatewayAggregatedList
- type TargetVpnGatewayList
- 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) IfNoneMatch(entityTag string) *TargetVpnGatewaysAggregatedListCall
- func (c *TargetVpnGatewaysAggregatedListCall) MaxResults(maxResults int64) *TargetVpnGatewaysAggregatedListCall
- func (c *TargetVpnGatewaysAggregatedListCall) PageToken(pageToken string) *TargetVpnGatewaysAggregatedListCall
- func (c *TargetVpnGatewaysAggregatedListCall) Pages(ctx context.Context, f func(*TargetVpnGatewayAggregatedList) error) error
- type 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) IfNoneMatch(entityTag string) *TargetVpnGatewaysGetCall
- type 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) IfNoneMatch(entityTag string) *TargetVpnGatewaysListCall
- func (c *TargetVpnGatewaysListCall) MaxResults(maxResults int64) *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
- type TestFailure
- type UrlMap
- type UrlMapList
- type UrlMapReference
- type UrlMapTest
- type UrlMapValidationResult
- type UrlMapsDeleteCall
- type UrlMapsGetCall
- type UrlMapsInsertCall
- 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) IfNoneMatch(entityTag string) *UrlMapsListCall
- func (c *UrlMapsListCall) MaxResults(maxResults int64) *UrlMapsListCall
- func (c *UrlMapsListCall) PageToken(pageToken string) *UrlMapsListCall
- func (c *UrlMapsListCall) Pages(ctx context.Context, f func(*UrlMapList) error) error
- type UrlMapsPatchCall
- type UrlMapsService
- 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) List(project string) *UrlMapsListCall
- func (r *UrlMapsService) Patch(project string, urlMap string, urlmap *UrlMap) *UrlMapsPatchCall
- func (r *UrlMapsService) Update(project string, urlMap string, urlmap *UrlMap) *UrlMapsUpdateCall
- func (r *UrlMapsService) Validate(project string, urlMap string, urlmapsvalidaterequest *UrlMapsValidateRequest) *UrlMapsValidateCall
- type UrlMapsUpdateCall
- type UrlMapsValidateCall
- type UrlMapsValidateRequest
- type UrlMapsValidateResponse
- type UsageExportLocation
- type VpnTunnel
- type VpnTunnelAggregatedList
- type VpnTunnelList
- 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) IfNoneMatch(entityTag string) *VpnTunnelsAggregatedListCall
- func (c *VpnTunnelsAggregatedListCall) MaxResults(maxResults int64) *VpnTunnelsAggregatedListCall
- func (c *VpnTunnelsAggregatedListCall) PageToken(pageToken string) *VpnTunnelsAggregatedListCall
- func (c *VpnTunnelsAggregatedListCall) Pages(ctx context.Context, f func(*VpnTunnelAggregatedList) error) error
- type 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) IfNoneMatch(entityTag string) *VpnTunnelsGetCall
- type 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) IfNoneMatch(entityTag string) *VpnTunnelsListCall
- func (c *VpnTunnelsListCall) MaxResults(maxResults int64) *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
- type Zone
- type ZoneList
- type ZoneMaintenanceWindows
- type ZoneOperationsDeleteCall
- 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) 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) IfNoneMatch(entityTag string) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) MaxResults(maxResults int64) *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
- type 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) IfNoneMatch(entityTag string) *ZonesListCall
- func (c *ZonesListCall) MaxResults(maxResults int64) *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 AccessConfig ¶
type AccessConfig struct { // Kind: [Output Only] Type of the resource. Always compute#accessConfig // for access configs. Kind string `json:"kind,omitempty"` // Name: Name of this access configuration. 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"` // 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:"-"` }
AccessConfig: An access configuration attached to an instance's network interface.
func (*AccessConfig) MarshalJSON ¶
func (s *AccessConfig) MarshalJSON() ([]byte, error)
type Address ¶
type Address struct { // Address: The static external IP address represented by this resource. Address string `json:"address,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#address for // addresses. 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 regional address // resides. This field is not applicable to global addresses. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Status: [Output Only] The status of the address, which can be either // IN_USE or RESERVED. An address that is RESERVED 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" Status string `json:"status,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:"-"` }
Address: A reserved address resource.
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: [Output Only] A map of scoped address lists. 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"` // 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:"-"` }
func (*AddressAggregatedList) MarshalJSON ¶
func (s *AddressAggregatedList) MarshalJSON() ([]byte, error)
type AddressList ¶
type AddressList 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 addresses. 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 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. "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:"-"` }
AddressList: Contains a list of addresses.
func (*AddressList) MarshalJSON ¶
func (s *AddressList) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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] 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:"-"` }
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
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. 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. 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. 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 using the data included in the request. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/addresses/list
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-disks-x, where x is a number // assigned by Google Compute Engine. This field is only applicable for // persistent disks. DeviceName string `json:"deviceName,omitempty"` // Index: Assigns a zero-based index to this disk, where 0 is reserved // for the boot disk. For example, if you have many disks attached to an // instance, each disk would have a unique index number. If not // specified, the server will choose an appropriate value. 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. // // Possible values: // "NVME" // "SCSI" Interface string `json:"interface,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#attachedDisk // for attached disks. Kind string `json:"kind,omitempty"` // Licenses: [Output Only] Any valid publicly visible licenses. Licenses []string `json:"licenses,omitempty"` // Mode: The mode in which to attach this disk, either READ_WRITE or // READ_ONLY. If not specified, the default is to attach the disk in // READ_WRITE mode. // // Possible values: // "READ_ONLY" // "READ_WRITE" Mode string `json:"mode,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"` // 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:"-"` }
AttachedDisk: An instance-attached disk resource.
func (*AttachedDisk) MarshalJSON ¶
func (s *AttachedDisk) MarshalJSON() ([]byte, error)
type AttachedDiskInitializeParams ¶
type AttachedDiskInitializeParams struct { // DiskName: Specifies the disk name. If not specified, the default is // to use the name of the instance. DiskName string `json:"diskName,omitempty"` // DiskSizeGb: Specifies the size of the disk in base-2 GB. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` // DiskType: Specifies the disk type to use to create the instance. If // not specified, the default is pd-standard, specified using the full // URL. For // example: // // https://www.googleapis.com/compute/v1/projects/project/zones // /zone/diskTypes/pd-standard // // 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 DiskType string `json:"diskType,omitempty"` // SourceImage: A source image used to create the disk. You can provide // a private (custom) image, and Compute Engine will use the // corresponding image from your project. For // example: // // global/images/my-private-image // // Or you can provide an image from a publicly-available project. For // example, to use a Debian image from the debian-cloud project, make // sure to include the project in the // URL: // // projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD // // where vYYYYMMDD is the image version. The fully-qualified URL will // also work in both cases. SourceImage string `json:"sourceImage,omitempty"` // ForceSendFields is a list of field names (e.g. "DiskName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []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 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.8 or 80%. 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"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,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. 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:"-"` }
Autoscaler: Represents an Autoscaler resource. Autoscalers allow you to automatically scale virtual machine instances in managed instance groups according to an autoscaling policy that you define. For more information, read Autoscaling Groups of Instances.
func (*Autoscaler) MarshalJSON ¶
func (s *Autoscaler) MarshalJSON() ([]byte, error)
type AutoscalerAggregatedList ¶
type AutoscalerAggregatedList struct { // Id: [Output Only] The unique identifier for the resource. This // identifier is defined by the server. Id string `json:"id,omitempty"` // Items: A map of scoped autoscaler lists. 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"` // 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:"-"` }
func (*AutoscalerAggregatedList) MarshalJSON ¶
func (s *AutoscalerAggregatedList) MarshalJSON() ([]byte, error)
type AutoscalerList ¶
type AutoscalerList struct { // Id: [Output Only] The unique identifier for the resource. This // identifier is 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"` // 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:"-"` }
AutoscalerList: Contains a list of Autoscaler resources.
func (*AutoscalerList) MarshalJSON ¶
func (s *AutoscalerList) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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) 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.
type AutoscalersScopedList ¶
type AutoscalersScopedList struct { // Autoscalers: [Output Only] 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:"-"` }
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
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.
func (*AutoscalersService) Delete ¶
func (r *AutoscalersService) Delete(project string, zone string, autoscaler string) *AutoscalersDeleteCall
Delete: Deletes the specified autoscaler.
func (*AutoscalersService) Get ¶
func (r *AutoscalersService) Get(project string, zone string, autoscaler string) *AutoscalersGetCall
Get: Returns the specified autoscaler resource. Get a list of available autoscalers by making a list() request.
func (*AutoscalersService) Insert ¶
func (r *AutoscalersService) Insert(project string, zone string, autoscaler *Autoscaler) *AutoscalersInsertCall
Insert: Creates an autoscaler in the specified project using the data included in the request.
func (*AutoscalersService) List ¶
func (r *AutoscalersService) List(project string, zone string) *AutoscalersListCall
List: Retrieves a list of autoscalers contained within the specified zone.
func (*AutoscalersService) Patch ¶
func (r *AutoscalersService) Patch(project string, zone string, autoscaler string, autoscaler2 *Autoscaler) *AutoscalersPatchCall
Patch: Updates an autoscaler in the specified project using the data included in the request. This method supports patch semantics.
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.
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.
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"` // 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:"-"` }
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.8. // // 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:"-"` }
AutoscalingPolicyCpuUtilization: CPU utilization policy.
func (*AutoscalingPolicyCpuUtilization) MarshalJSON ¶
func (s *AutoscalingPolicyCpuUtilization) MarshalJSON() ([]byte, error)
type AutoscalingPolicyCustomMetricUtilization ¶
type AutoscalingPolicyCustomMetricUtilization struct { // Metric: The identifier of the Cloud Monitoring metric. The metric // cannot have negative values and should be a utilization metric, which // means that the number of virtual machines handling requests should // increase or decrease proportionally to the metric. The metric must // also have a label of compute.googleapis.com/resource_id with the // value of the instance's unique ID, although this alone does not // guarantee that the metric is valid. // // For example, the following is a valid // metric: // compute.googleapis.com/instance/network/received_bytes_count // // // // The following is not a valid metric because it does not increase or // decrease based on // usage: // compute.googleapis.com/instance/cpu/reserved_cores Metric string `json:"metric,omitempty"` // UtilizationTarget: Target value of the metric which autoscaler should // maintain. Must be a positive value. UtilizationTarget float64 `json:"utilizationTarget,omitempty"` // UtilizationTargetType: Defines how target utilization value is // expressed for a Cloud Monitoring metric. Either GAUGE, // DELTA_PER_SECOND, or DELTA_PER_MINUTE. If not specified, the default // is GAUGE. // // Possible values: // "DELTA_PER_MINUTE" // "DELTA_PER_SECOND" // "GAUGE" UtilizationTargetType string `json:"utilizationTargetType,omitempty"` // ForceSendFields is a list of field names (e.g. "Metric") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
AutoscalingPolicyCustomMetricUtilization: Custom utilization metric policy.
func (*AutoscalingPolicyCustomMetricUtilization) MarshalJSON ¶
func (s *AutoscalingPolicyCustomMetricUtilization) MarshalJSON() ([]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:"-"` }
AutoscalingPolicyLoadBalancingUtilization: Configuration parameters of autoscaling based on load balancing.
func (*AutoscalingPolicyLoadBalancingUtilization) MarshalJSON ¶
func (s *AutoscalingPolicyLoadBalancingUtilization) MarshalJSON() ([]byte, error)
type Backend ¶
type Backend struct { // BalancingMode: Specifies the balancing mode for this backend. For // global HTTP(S) load balancing, the default is UTILIZATION. Valid // values are UTILIZATION and RATE. // // Possible values: // "RATE" // "UTILIZATION" BalancingMode string `json:"balancingMode,omitempty"` // CapacityScaler: A multiplier applied to the group's maximum servicing // capacity (either UTILIZATION or RATE). Default value is 1, which // means the group will serve up to 100% of its configured CPU or RPS // (depending on balancingMode). A setting of 0 means the group is // completely drained, offering 0% of its available CPU or RPS. Valid // range is [0.0,1.0]. 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"` // Group: The fully-qualified URL of a zonal Instance Group resource. // This instance group defines the list of instances that serve traffic. // Member virtual machine instances from each instance group must live // in the same zone as the instance group itself. No two backends in a // backend service are allowed to use same Instance Group // resource. // // Note that you must specify an Instance Group resource using the // fully-qualified URL, rather than a partial URL. Group string `json:"group,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. MaxRate int64 `json:"maxRate,omitempty"` // MaxRatePerInstance: The max requests per second (RPS) that a single // backend instance can handle.This is used to calculate the capacity of // the group. Can be used in either balancing mode. For RATE mode, // either maxRate or maxRatePerInstance must be set. MaxRatePerInstance float64 `json:"maxRatePerInstance,omitempty"` // MaxUtilization: Used when balancingMode is UTILIZATION. This ratio // defines the CPU utilization target for the group. The default is 0.8. // Valid range is [0.0, 1.0]. 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:"-"` }
Backend: Message containing information of one individual backend.
func (*Backend) MarshalJSON ¶
type BackendService ¶
type BackendService struct { // Backends: The list of backends that serve this BackendService. Backends []*Backend `json:"backends,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 BackendService. An up-to-date // fingerprint must be provided in order to update the 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. 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"` // Kind: [Output Only] Type of resource. Always compute#backendService // for backend services. 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: Deprecated in favor of portName. The TCP port to connect on the // backend. The default value is 80. Port int64 `json:"port,omitempty"` // PortName: Name of backend port. The same name should appear in the // instance groups referenced by this service. Required. PortName string `json:"portName,omitempty"` // Protocol: The protocol this BackendService uses to communicate with // backends. // // Possible values are HTTP, HTTPS, HTTP2, TCP and SSL. // // Possible values: // "HTTP" // "HTTPS" Protocol string `json:"protocol,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // TimeoutSec: How many seconds to wait for the backend before // considering it a failed request. 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. "Backends") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
BackendService: A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
func (*BackendService) MarshalJSON ¶
func (s *BackendService) MarshalJSON() ([]byte, error)
type BackendServiceGroupHealth ¶
type BackendServiceGroupHealth struct { 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. "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:"-"` }
func (*BackendServiceGroupHealth) MarshalJSON ¶
func (s *BackendServiceGroupHealth) MarshalJSON() ([]byte, error)
type BackendServiceList ¶
type BackendServiceList struct { // Id: [Output Only] The unique identifier for the resource. This // identifier is 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"` // 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:"-"` }
BackendServiceList: Contains a list of BackendService resources.
func (*BackendServiceList) MarshalJSON ¶
func (s *BackendServiceList) MarshalJSON() ([]byte, error)
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.
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) 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.
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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
type BackendServicesService ¶
type BackendServicesService struct {
// contains filtered or unexported fields
}
func NewBackendServicesService ¶
func NewBackendServicesService(s *Service) *BackendServicesService
func (*BackendServicesService) Delete ¶
func (r *BackendServicesService) Delete(project string, backendService string) *BackendServicesDeleteCall
Delete: Deletes the specified BackendService resource. For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/delete
func (*BackendServicesService) Get ¶
func (r *BackendServicesService) Get(project string, backendService string) *BackendServicesGetCall
Get: Returns the specified BackendService resource. Get a list of available backend services by making a list() request. 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. 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. 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. 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: Updates the entire content of the BackendService resource. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/patch
func (*BackendServicesService) Update ¶
func (r *BackendServicesService) Update(project string, backendService string, backendservice *BackendService) *BackendServicesUpdateCall
Update: Updates the entire content of the BackendService resource. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information. For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/update
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.
type DeprecationStatus ¶
type DeprecationStatus struct { // Deleted: An optional RFC3339 timestamp on or after which the // deprecation state of this resource will be changed to DELETED. Deleted string `json:"deleted,omitempty"` // Deprecated: An optional RFC3339 timestamp on or after which the // deprecation state of this resource will be changed to DEPRECATED. Deprecated string `json:"deprecated,omitempty"` // Obsolete: An optional RFC3339 timestamp on or after which the // deprecation state of this resource will be changed to OBSOLETE. 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 // DEPRECATED, OBSOLETE, or DELETED. 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: // "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:"-"` }
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"` // 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"` // 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"` // Licenses: [Output Only] Any applicable publicly visible licenses. 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"` // Options: Internal use only. Options string `json:"options,omitempty"` // SelfLink: [Output Only] Server-defined fully-qualified URL for this // resource. SelfLink string `json:"selfLink,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. SizeGb int64 `json:"sizeGb,omitempty,string"` // SourceImage: The source image used to create this disk. If the source // image is deleted from the system, this field will not be set, even if // an image with the same name has been re-created. // // When creating a disk, you can provide a private (custom) image using // the following input, and Compute Engine will use the corresponding // image from your project. For example: // // global/images/my-private-image // // Or you can provide an image from a publicly-available project. For // example, to use a Debian image from the debian-cloud project, make // sure to include the project in the // URL: // // projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD // // where vYYYYMMDD is the image version. The fully-qualified URL will // also work in both cases. // // You can also specify the latest image for a private image family by // replacing the image name suffix with family/family-name. For // example: // // global/images/family/my-private-family // // Or you can specify an image family from a publicly-available project. // For example, to use the latest Debian 7 from the debian-cloud // project, make sure to include the project in the // URL: // // projects/debian-cloud/global/images/family/debian-7 SourceImage string `json:"sourceImage,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"` // 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. Applicable // statuses includes: CREATING, FAILED, READY, RESTORING. // // Possible values: // "CREATING" // "FAILED" // "READY" // "RESTORING" Status string `json:"status,omitempty"` // Type: URL of the disk type resource describing which disk type to use // to create the disk. Provide this when creating the disk. Type string `json:"type,omitempty"` // Users: [Output Only] Links to the users of the disk (attached // instances) in form: project/zones/zone/instances/instance Users []string `json:"users,omitempty"` // Zone: [Output Only] URL of the zone where the disk resides. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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:"-"` }
Disk: A Disk resource.
func (*Disk) MarshalJSON ¶
type DiskAggregatedList ¶
type DiskAggregatedList 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 disk lists. 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"` // 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:"-"` }
func (*DiskAggregatedList) MarshalJSON ¶
func (s *DiskAggregatedList) MarshalJSON() ([]byte, error)
type DiskList ¶
type DiskList 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 persistent disks. 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"` // 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:"-"` }
DiskList: A list of Disk resources.
func (*DiskList) MarshalJSON ¶
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:"-"` }
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"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ValidDiskSize: [Output Only] An optional textual description of the // valid disk size, such as "10GB-10TB". ValidDiskSize string `json:"validDiskSize,omitempty"` // Zone: [Output Only] URL of the zone where the disk type resides. 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:"-"` }
DiskType: A DiskType resource.
func (*DiskType) MarshalJSON ¶
type DiskTypeAggregatedList ¶
type DiskTypeAggregatedList 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 disk type lists. 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"` // 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:"-"` }
func (*DiskTypeAggregatedList) MarshalJSON ¶
func (s *DiskTypeAggregatedList) MarshalJSON() ([]byte, error)
type DiskTypeList ¶
type DiskTypeList 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 Disk Type 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"` // 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:"-"` }
DiskTypeList: Contains a list of disk types.
func (*DiskTypeList) MarshalJSON ¶
func (s *DiskTypeList) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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] 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:"-"` }
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
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. 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. Get a list of available disk types by making a list() request. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/diskTypes/list
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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.
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) 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 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) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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 DisksScopedList ¶
type DisksScopedList struct { // Disks: [Output Only] 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:"-"` }
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
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) AggregatedList ¶
func (r *DisksService) AggregatedList(project string) *DisksAggregatedListCall
AggregatedList: Retrieves an aggregated list of persistent disks. 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. 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. 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. Get a list of available persistent disks by making a list() request. For details, see https://cloud.google.com/compute/docs/reference/latest/disks/get
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 200 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. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/disks/list
type Firewall ¶
type Firewall struct { // Allowed: The list of 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"` // 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 Ony] Type of the resource. Always compute#firewall for // firewall rules. Kind string `json:"kind,omitempty"` // Name: Name of the resource; provided by the client when the resource // is created. The name must be 1-63 characters long, and comply with // RFC1035. Specifically, the name must be 1-63 characters long and // match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means // the first character must be a lowercase letter, and all following // characters must be a dash, lowercase letter, or digit, except the // last character, which cannot be a dash. Name string `json:"name,omitempty"` // Network: 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 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/myproject/global/networks/my-network // - projects/myproject/global/networks/my-network // - global/networks/default Network string `json:"network,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SourceRanges: The IP address blocks that this rule applies to, // expressed in CIDR format. One or both of sourceRanges and sourceTags // may be set. // // If both properties are set, an inbound connection is allowed if the // range matches the sourceRanges OR the tag of the source matches the // sourceTags property. The connection does not need to match both // properties. SourceRanges []string `json:"sourceRanges,omitempty"` // SourceTags: A list of instance tags which this rule applies to. One // or both of sourceRanges and sourceTags may be set. // // If both properties are set, an inbound connection is allowed if the // range matches the sourceRanges OR the tag of the source matches the // sourceTags property. The connection does not need to match both // properties. SourceTags []string `json:"sourceTags,omitempty"` // TargetTags: A list of instance tags indicating sets of instances // located in the network that may make network connections as specified // in allowed[]. 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:"-"` }
Firewall: Represents a Firewall resource.
func (*Firewall) MarshalJSON ¶
type FirewallAllowed ¶
type FirewallAllowed struct { // IPProtocol: The IP protocol that is allowed for this rule. 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, sctp), or the IP protocol number. IPProtocol string `json:"IPProtocol,omitempty"` // Ports: An optional list of ports which are allowed. This field is // only applicable for UDP or TCP protocol. Each entry must be either an // integer or a range. If not specified, connections through any port // are allowed // // 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:"-"` }
func (*FirewallAllowed) MarshalJSON ¶
func (s *FirewallAllowed) MarshalJSON() ([]byte, error)
type FirewallList ¶
type FirewallList 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 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"` // 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:"-"` }
FirewallList: Contains a list of firewalls.
func (*FirewallList) MarshalJSON ¶
func (s *FirewallList) 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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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. 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. 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. 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. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/patch
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. For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/update
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.
type ForwardingRule ¶
type ForwardingRule struct { // IPAddress: Value of the reserved IP address that this forwarding rule // is serving on behalf of. For global forwarding rules, the address // must be a global IP; for regional forwarding rules, the address must // live in the same region as the forwarding rule. If left empty // (default value), an ephemeral IP from the same scope (global or // regional) will be assigned. IPAddress string `json:"IPAddress,omitempty"` // IPProtocol: The IP protocol to which this rule applies. Valid options // are TCP, UDP, ESP, AH or SCTP. // // Possible values: // "AH" // "ESP" // "SCTP" // "TCP" // "UDP" IPProtocol string `json:"IPProtocol,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#forwardingRule for Forwarding Rule 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])? 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"` // PortRange: Applicable only when IPProtocol is TCP, UDP, or SCTP, only // packets addressed to ports in the specified range will be forwarded // to target. Forwarding rules with the same [IPAddress, IPProtocol] // pair must have disjoint port ranges. PortRange string `json:"portRange,omitempty"` // Region: [Output Only] URL of the region where the regional forwarding // rule resides. This field is not applicable to global forwarding // rules. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,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 TargetHttpProxy or TargetHttpsProxy resource. // The forwarded traffic must be of a type appropriate to the target // object. For example, TargetHttpProxy requires HTTP traffic, and // TargetHttpsProxy requires HTTPS traffic. 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:"-"` }
ForwardingRule: A ForwardingRule resource. A ForwardingRule resource specifies which pool of target virtual machines to forward a packet to if it matches the given [IPAddress, IPProtocol, portRange] tuple.
func (*ForwardingRule) MarshalJSON ¶
func (s *ForwardingRule) MarshalJSON() ([]byte, error)
type ForwardingRuleAggregatedList ¶
type ForwardingRuleAggregatedList struct { // Id: [Output Only] The unique identifier for the resource. This // identifier is defined by the server. Id string `json:"id,omitempty"` // Items: A map of scoped forwarding rule lists. 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"` // 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:"-"` }
func (*ForwardingRuleAggregatedList) MarshalJSON ¶
func (s *ForwardingRuleAggregatedList) MarshalJSON() ([]byte, error)
type ForwardingRuleList ¶
type ForwardingRuleList struct { // Id: [Output Only] Unique identifier for the resource. Set 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"` // 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:"-"` }
ForwardingRuleList: Contains a list of ForwardingRule resources.
func (*ForwardingRuleList) MarshalJSON ¶
func (s *ForwardingRuleList) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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 ForwardingRulesScopedList ¶
type ForwardingRulesScopedList struct { // ForwardingRules: 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:"-"` }
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
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. 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. 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. 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. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/list
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. For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/setTarget
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.
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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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. 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. Get a list of available addresses by making a list() request. 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 using the data included in the request. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/list
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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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 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 ForwardingRule resource. 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 ForwardingRule resource. Get a list of available forwarding rules by making a list() request. 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 ForwardingRule resource in the specified project and region using the data included in the request. 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 ForwardingRule resources available to the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/list
func (*GlobalForwardingRulesService) SetTarget ¶
func (r *GlobalForwardingRulesService) SetTarget(project string, forwardingRule string, targetreference *TargetReference) *GlobalForwardingRulesSetTargetCall
SetTarget: Changes target URL for forwarding rule. The new target should be of the same type as the old target. For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/setTarget
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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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. 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. 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. Get a list of operations by making a list() request. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/list
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:"-"` }
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 HealthStatus ¶
type HealthStatus struct { // 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. "HealthState") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*HealthStatus) MarshalJSON ¶
func (s *HealthStatus) 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:"-"` }
HostRule: UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.
func (*HostRule) MarshalJSON ¶
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 /. RequestPath string `json:"requestPath,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // TimeoutSec: How long (in seconds) to wait before claiming failure. // The default value is 5 seconds. It is invalid for timeoutSec to have // greater value than checkIntervalSec. TimeoutSec int64 `json:"timeoutSec,omitempty"` // UnhealthyThreshold: A so-far healthy instance will be marked // unhealthy after this many consecutive failures. The default value is // 2. UnhealthyThreshold int64 `json:"unhealthyThreshold,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CheckIntervalSec") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
HttpHealthCheck: An HttpHealthCheck resource. This resource defines a template for how individual instances should be checked for health, via HTTP.
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"` // 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:"-"` }
HttpHealthCheckList: Contains a list of HttpHealthCheck resources.
func (*HttpHealthCheckList) MarshalJSON ¶
func (s *HttpHealthCheckList) 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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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. 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. Get a list of available HTTP health checks by making a list() request. 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. 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. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/patch
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. For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/update
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.
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"` // 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:"-"` }
HttpsHealthCheck: An HttpsHealthCheck resource. This resource defines a template for how individual instances should be checked for health, via HTTPS.
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"` // 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:"-"` }
HttpsHealthCheckList: Contains a list of HttpsHealthCheck resources.
func (*HttpsHealthCheckList) MarshalJSON ¶
func (s *HttpsHealthCheckList) 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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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.
func (*HttpsHealthChecksService) Get ¶
func (r *HttpsHealthChecksService) Get(project string, httpsHealthCheck string) *HttpsHealthChecksGetCall
Get: Returns the specified HttpsHealthCheck resource. Get a list of available HTTPS health checks by making a list() request.
func (*HttpsHealthChecksService) Insert ¶
func (r *HttpsHealthChecksService) Insert(project string, httpshealthcheck *HttpsHealthCheck) *HttpsHealthChecksInsertCall
Insert: Creates a HttpsHealthCheck resource in the specified project using the data included in the request.
func (*HttpsHealthChecksService) List ¶
func (r *HttpsHealthChecksService) List(project string) *HttpsHealthChecksListCall
List: Retrieves the list of HttpsHealthCheck resources available to the specified project.
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.
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.
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.
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"` // 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#image for // images. Kind string `json:"kind,omitempty"` // Licenses: Any applicable publicly visible licenses. 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"` // SourceDisk: URL of the 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/disk/disk // - projects/project/zones/zone/disk/disk // - zones/zone/disks/disk SourceDisk string `json:"sourceDisk,omitempty"` // SourceDiskId: 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"` // 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: // "FAILED" // "PENDING" // "READY" 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. "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:"-"` }
Image: An Image resource.
func (*Image) MarshalJSON ¶
type ImageList ¶
type ImageList 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 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"` // 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:"-"` }
ImageList: Contains a list of images.
func (*ImageList) MarshalJSON ¶
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: 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:"-"` }
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.
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.
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) 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 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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. 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. 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. Get a list of available images by making a list() request. For details, see https://cloud.google.com/compute/docs/reference/latest/images/get
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. 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 private images available to the specified project. Private 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 7. 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.
See Accessing images for more information. For details, see https://cloud.google.com/compute/docs/reference/latest/images/list
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"` // 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"` // 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"` // 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#instance for // instances. Kind string `json:"kind,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"` // 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 configurations for this interface. // This specifies how this interface is configured to interact with // other network services, such as connecting to the internet. NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"` // Scheduling: Scheduling options for this instance. Scheduling *Scheduling `json:"scheduling,omitempty"` // SelfLink: [Output Only] Server-defined URL for this resource. SelfLink string `json:"selfLink,omitempty"` // ServiceAccounts: A list of service accounts, with their specified // scopes, authorized for this instance. Service accounts generate // access tokens that can be accessed through the metadata server and // used to authenticate applications on the instance. See Authenticating // from Google Compute Engine for more information. ServiceAccounts []*ServiceAccount `json:"serviceAccounts,omitempty"` // Status: [Output Only] The status of the instance. One of the // following values: PROVISIONING, STAGING, RUNNING, STOPPING, and // TERMINATED. // // Possible values: // "PROVISIONING" // "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: A list of 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. Tags *Tags `json:"tags,omitempty"` // Zone: [Output Only] URL of the zone where the instance resides. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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:"-"` }
Instance: An Instance resource.
func (*Instance) MarshalJSON ¶
type InstanceAggregatedList ¶
type InstanceAggregatedList 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 instance lists. 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"` // 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:"-"` }
func (*InstanceAggregatedList) MarshalJSON ¶
func (s *InstanceAggregatedList) 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 resource type. The // server generates this identifier. 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"` // SelfLink: [Output Only] The URL for this instance group. The server // generates this URL. SelfLink string `json:"selfLink,omitempty"` // Size: [Output Only] The total number of instances in the instance // group. Size int64 `json:"size,omitempty"` // Subnetwork: 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. 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:"-"` }
func (*InstanceGroup) MarshalJSON ¶
func (s *InstanceGroup) MarshalJSON() ([]byte, error)
type InstanceGroupAggregatedList ¶
type InstanceGroupAggregatedList struct { // Id: [Output Only] A unique identifier for this aggregated list of // instance groups. The server generates this identifier. Id string `json:"id,omitempty"` // Items: A map of scoped instance group lists. 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] The URL for this resource type. The server // generates this URL. 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. "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:"-"` }
func (*InstanceGroupAggregatedList) MarshalJSON ¶
func (s *InstanceGroupAggregatedList) MarshalJSON() ([]byte, error)
type InstanceGroupList ¶
type InstanceGroupList struct { // Id: [Output Only] A unique identifier for this list of instance // groups. The server generates this identifier. Id string `json:"id,omitempty"` // Items: A list of instance groups. 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] The URL for this resource type. The server // generates this URL. 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. "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:"-"` }
InstanceGroupList: A list of InstanceGroup resources.
func (*InstanceGroupList) MarshalJSON ¶
func (s *InstanceGroupList) MarshalJSON() ([]byte, error)
type InstanceGroupManager ¶
type InstanceGroupManager struct { // 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"` // Fingerprint: [Output Only] The fingerprint of the target pools // information. You can use this optional field for optimistic locking // when you update the target pool entries. 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"` // SelfLink: [Output Only] The URL for this managed instance group. The // server defines this URL. SelfLink string `json:"selfLink,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"` // Zone: The name of the zone where the managed instance 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. "BaseInstanceName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
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 one of these instances, // it tries again until it creates the instance successfully. Creating int64 `json:"creating,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"` // 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:"-"` }
func (*InstanceGroupManagerActionsSummary) MarshalJSON ¶
func (s *InstanceGroupManagerActionsSummary) MarshalJSON() ([]byte, error)
type InstanceGroupManagerAggregatedList ¶
type InstanceGroupManagerAggregatedList struct { // Id: [Output Only] A unique identifier for this aggregated list of // managed instance groups. The server generates this identifier. Id string `json:"id,omitempty"` // Items: [Output Only] A map of filtered managed instance group lists. 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] The URL for this resource type. The server // generates this URL. 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. "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:"-"` }
func (*InstanceGroupManagerAggregatedList) MarshalJSON ¶
func (s *InstanceGroupManagerAggregatedList) MarshalJSON() ([]byte, error)
type InstanceGroupManagerList ¶
type InstanceGroupManagerList struct { // Id: [Output Only] A unique identifier for this resource type. The // server generates this identifier. Id string `json:"id,omitempty"` // Items: [Output Only] A list of managed instance groups. 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] The URL for this resource type. The server // generates this URL. 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. "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:"-"` }
InstanceGroupManagerList: [Output Only] A list of managed instance groups.
func (*InstanceGroupManagerList) MarshalJSON ¶
func (s *InstanceGroupManagerList) 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.
type InstanceGroupManagersAbandonInstancesRequest ¶
type InstanceGroupManagersAbandonInstancesRequest struct { // Instances: The URL for one or more instances to abandon from the // managed instance group. 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:"-"` }
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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 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.
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.
type InstanceGroupManagersDeleteInstancesRequest ¶
type InstanceGroupManagersDeleteInstancesRequest struct { // Instances: The list of instances to delete from this managed instance // group. Specify one or more instance URLs. 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:"-"` }
func (*InstanceGroupManagersDeleteInstancesRequest) MarshalJSON ¶
func (s *InstanceGroupManagersDeleteInstancesRequest) 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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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 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.
type InstanceGroupManagersListManagedInstancesResponse ¶
type InstanceGroupManagersListManagedInstancesResponse struct { // ManagedInstances: [Output Only] The list of instances in the managed // instance group. ManagedInstances []*ManagedInstance `json:"managedInstances,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:"-"` }
func (*InstanceGroupManagersListManagedInstancesResponse) MarshalJSON ¶
func (s *InstanceGroupManagersListManagedInstancesResponse) 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.
type InstanceGroupManagersRecreateInstancesRequest ¶
type InstanceGroupManagersRecreateInstancesRequest struct { // Instances: The URL for one or more instances to recreate. 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:"-"` }
func (*InstanceGroupManagersRecreateInstancesRequest) MarshalJSON ¶
func (s *InstanceGroupManagersRecreateInstancesRequest) MarshalJSON() ([]byte, error)
type InstanceGroupManagersResizeCall ¶
type InstanceGroupManagersResizeCall struct {
// contains filtered or unexported fields
}
func (*InstanceGroupManagersResizeCall) Context ¶
func (c *InstanceGroupManagersResizeCall) Context(ctx context.Context) *InstanceGroupManagersResizeCall
Context sets the context to be used in this call's Do method. 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.
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:"-"` }
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
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: Schedules a group action to remove the specified instances 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.
func (*InstanceGroupManagersService) AggregatedList ¶
func (r *InstanceGroupManagersService) AggregatedList(project string) *InstanceGroupManagersAggregatedListCall
AggregatedList: Retrieves the list of managed instance groups and groups them by zone.
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.
func (*InstanceGroupManagersService) DeleteInstances ¶
func (r *InstanceGroupManagersService) DeleteInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersdeleteinstancesrequest *InstanceGroupManagersDeleteInstancesRequest) *InstanceGroupManagersDeleteInstancesCall
DeleteInstances: Schedules a group action to delete the specified instances in the managed instance group. 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.
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. Get a list of available managed instance groups by making a list() request.
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, it schedules an action to create instances in the group 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.
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.
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.
func (*InstanceGroupManagersService) RecreateInstances ¶
func (r *InstanceGroupManagersService) RecreateInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersrecreateinstancesrequest *InstanceGroupManagersRecreateInstancesRequest) *InstanceGroupManagersRecreateInstancesCall
RecreateInstances: Schedules a group action to recreate the specified instances in the managed instance group. The instances are deleted and recreated using the current instance template for the managed instance group. This operation is marked as DONE when the action is scheduled even if the instances have not yet been recreated. You must separately verify the status of the recreating action with the listmanagedinstances method.
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.
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.
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.
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.
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:"-"` }
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.
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:"-"` }
func (*InstanceGroupManagersSetTargetPoolsRequest) MarshalJSON ¶
func (s *InstanceGroupManagersSetTargetPoolsRequest) 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.
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:"-"` }
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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] A unique identifier for this list of instance // groups. The server generates this identifier. Id string `json:"id,omitempty"` // Items: [Output Only] A list of instances and any named ports that are // assigned to those instances. Items []*InstanceWithNamedPorts `json:"items,omitempty"` // Kind: [Output Only] The resource type, which is always // compute#instanceGroupsListInstances for 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] The URL for this list of instance groups. The // server generates this URL. 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. "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:"-"` }
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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:"-"` }
func (*InstanceGroupsListInstancesRequest) MarshalJSON ¶
func (s *InstanceGroupsListInstancesRequest) 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.
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:"-"` }
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:"-"` }
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
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.
func (*InstanceGroupsService) AggregatedList ¶
func (r *InstanceGroupsService) AggregatedList(project string) *InstanceGroupsAggregatedListCall
AggregatedList: Retrieves the list of instance groups and sorts them by zone.
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.
func (*InstanceGroupsService) Get ¶
func (r *InstanceGroupsService) Get(project string, zone string, instanceGroup string) *InstanceGroupsGetCall
Get: Returns the specified instance group. Get a list of available instance groups by making a list() request.
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.
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.
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.
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.
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.
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.
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. 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:"-"` }
func (*InstanceGroupsSetNamedPortsRequest) MarshalJSON ¶
func (s *InstanceGroupsSetNamedPortsRequest) MarshalJSON() ([]byte, error)
type InstanceList ¶
type InstanceList 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 instances. 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"` // 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:"-"` }
InstanceList: Contains a list of instances.
func (*InstanceList) MarshalJSON ¶
func (s *InstanceList) 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:"-"` }
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 canIpForward documentation for more // information. CanIpForward bool `json:"canIpForward,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"` // 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"` // 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 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"` // 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:"-"` }
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:"-"` }
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"` // 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:"-"` }
InstanceTemplate: An Instance Template resource.
func (*InstanceTemplate) MarshalJSON ¶
func (s *InstanceTemplate) MarshalJSON() ([]byte, error)
type InstanceTemplateList ¶
type InstanceTemplateList struct { // Id: [Output Only] A unique identifier for this instance template. The // server defines this identifier. Id string `json:"id,omitempty"` // Items: [Output Only] 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] The URL for this instance template list. The // server defines this URL. 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. "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:"-"` }
InstanceTemplateList: A list of instance templates.
func (*InstanceTemplateList) MarshalJSON ¶
func (s *InstanceTemplateList) 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.
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) 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 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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. If you delete an instance template that is being referenced from another instance group, the instance group will not be able to create or recreate virtual machine instances. Deleting an instance template is permanent and cannot be undone. 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. Get a list of available instance templates by making a list() request. For details, see https://cloud.google.com/compute/docs/reference/latest/instanceTemplates/get
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. 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 and zone. For details, see https://cloud.google.com/compute/docs/reference/latest/instanceTemplates/list
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" // "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:"-"` }
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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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.
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.
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.
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) 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 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) 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.
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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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 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.
type InstancesScopedList ¶
type InstancesScopedList struct { // Instances: [Output Only] 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:"-"` }
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
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. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/addAccessConfig
func (*InstancesService) AggregatedList ¶
func (r *InstancesService) AggregatedList(project string) *InstancesAggregatedListCall
AggregatedList: Retrieves aggregated list of instances. 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 a Disk resource to an instance. 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. 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. 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. 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. Get a list of available instances by making a list() request. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/get
func (*InstancesService) GetSerialPortOutput ¶
func (r *InstancesService) GetSerialPortOutput(project string, zone string, instance string) *InstancesGetSerialPortOutputCall
GetSerialPortOutput: Returns the specified instance's serial port output. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/getSerialPortOutput
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. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/list
func (*InstancesService) Reset ¶
func (r *InstancesService) Reset(project string, zone string, instance string) *InstancesResetCall
Reset: Performs a hard reset on the instance. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/reset
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. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/setDiskAutoDelete
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.
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. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/setMetadata
func (*InstancesService) SetScheduling ¶
func (r *InstancesService) SetScheduling(project string, zone string, instance string, scheduling *Scheduling) *InstancesSetSchedulingCall
SetScheduling: Sets an instance's scheduling options. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/setScheduling
func (*InstancesService) SetTags ¶
func (r *InstancesService) SetTags(project string, zone string, instance string, tags *Tags) *InstancesSetTagsCall
SetTags: Sets tags for the specified instance to the data included in the request. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/setTags
func (*InstancesService) Start ¶
func (r *InstancesService) Start(project string, zone string, instance string) *InstancesStartCall
Start: Starts an instance that was stopped using the using the instances().stop method. For more information, see Restart an instance. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/start
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 per-minute, virtual machine usage charges while they are stopped, but any resources that the virtual machine 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. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/stop
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.
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.
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:"-"` }
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.
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.
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.
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.
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) 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.
type License ¶
type License struct { // ChargesUseFee: [Output Only] If true, the customer will be charged // license fee for running software that contains this license on an // instance. ChargesUseFee bool `json:"chargesUseFee,omitempty"` // Kind: [Output Only] Type of resource. Always compute#license for // licenses. Kind string `json:"kind,omitempty"` // Name: [Output Only] Name of the resource. The name is 1-63 characters // long and complies with RFC1035. Name string `json:"name,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. "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:"-"` }
License: A license resource.
func (*License) MarshalJSON ¶
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) 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 LicensesService ¶
type LicensesService struct {
// contains filtered or unexported fields
}
func NewLicensesService ¶
func NewLicensesService(s *Service) *LicensesService
func (*LicensesService) Get ¶
func (r *LicensesService) Get(project string, license string) *LicensesGetCall
Get: Returns the specified License resource. Get a list of available licenses by making a list() request. For details, see https://cloud.google.com/compute/docs/reference/latest/licenses/get
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"` // ImageSpaceGb: [Deprecated] This property is deprecated and will never // be populated with any relevant values. ImageSpaceGb int64 `json:"imageSpaceGb,omitempty"` // Kind: [Output Only] The type of the resource. Always // compute#machineType for machine types. Kind string `json:"kind,omitempty"` // MaximumPersistentDisks: [Output Only] Maximum persistent disks // allowed. MaximumPersistentDisks int64 `json:"maximumPersistentDisks,omitempty"` // MaximumPersistentDisksSizeGb: [Output Only] Maximum total persistent // disks size (GB) allowed. MaximumPersistentDisksSizeGb int64 `json:"maximumPersistentDisksSizeGb,omitempty,string"` // MemoryMb: [Output Only] The amount of physical memory available to // the instance, defined in MB. MemoryMb int64 `json:"memoryMb,omitempty"` // Name: [Output Only] Name of the resource. Name string `json:"name,omitempty"` // ScratchDisks: [Output Only] List of extended scratch disks assigned // to the instance. ScratchDisks []*MachineTypeScratchDisks `json:"scratchDisks,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Zone: [Output Only] The name of the zone where the machine type // resides, such as us-central1-a. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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:"-"` }
MachineType: A Machine Type resource.
func (*MachineType) MarshalJSON ¶
func (s *MachineType) MarshalJSON() ([]byte, error)
type MachineTypeAggregatedList ¶
type MachineTypeAggregatedList 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 machine type lists. 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"` // 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:"-"` }
func (*MachineTypeAggregatedList) MarshalJSON ¶
func (s *MachineTypeAggregatedList) MarshalJSON() ([]byte, error)
type MachineTypeList ¶
type MachineTypeList 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 Machine Type 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"` // 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:"-"` }
MachineTypeList: Contains a list of machine types.
func (*MachineTypeList) MarshalJSON ¶
func (s *MachineTypeList) MarshalJSON() ([]byte, error)
type MachineTypeScratchDisks ¶
type MachineTypeScratchDisks struct { // DiskGb: Size of the scratch disk, defined in GB. DiskGb int64 `json:"diskGb,omitempty"` // ForceSendFields is a list of field names (e.g. "DiskGb") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*MachineTypeScratchDisks) MarshalJSON ¶
func (s *MachineTypeScratchDisks) MarshalJSON() ([]byte, error)
type MachineTypesAggregatedListCall ¶
type MachineTypesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*MachineTypesAggregatedListCall) Context ¶
func (c *MachineTypesAggregatedListCall) Context(ctx context.Context) *MachineTypesAggregatedListCall
Context sets the context to be used in this call's Do method. 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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] 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:"-"` }
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
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. 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. Get a list of available machine types by making a list() request. 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. 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 target_size value is // decreased. // - 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. // // Possible values: // "ABANDONING" // "CREATING" // "DELETING" // "NONE" // "RECREATING" // "REFRESHING" // "RESTARTING" 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"` // InstanceStatus: [Output Only] The status of the instance. This field // is empty when the instance does not exist. // // Possible values: // "PROVISIONING" // "RUNNING" // "STAGING" // "STOPPED" // "STOPPING" // "SUSPENDED" // "SUSPENDING" // "TERMINATED" InstanceStatus string `json:"instanceStatus,omitempty"` // LastAttempt: [Output Only] Information about the last attempt to // create or delete the instance. LastAttempt *ManagedInstanceLastAttempt `json:"lastAttempt,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:"-"` }
func (*ManagedInstance) MarshalJSON ¶
func (s *ManagedInstance) 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:"-"` }
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:"-"` }
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:"-"` }
func (*ManagedInstanceLastAttemptErrorsErrors) MarshalJSON ¶
func (s *ManagedInstanceLastAttemptErrorsErrors) 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. 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:"-"` }
Metadata: A metadata key/value entry.
func (*Metadata) MarshalJSON ¶
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 32768 bytes. Value *string `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:"-"` }
func (*MetadataItems) MarshalJSON ¶
func (s *MetadataItems) MarshalJSON() ([]byte, error)
type NamedPort ¶
type NamedPort struct { // Name: The name for this named port. The name must be 1-63 characters // long, and comply with RFC1035. Name string `json:"name,omitempty"` // Port: The port number, which can be a value between 1 and 65535. Port int64 `json:"port,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
NamedPort: The named port. For example: .
func (*NamedPort) MarshalJSON ¶
type Network ¶
type Network struct { // IPv4Range: 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 network is created in // "auto subnet mode". When set to false, the network is in "custom // subnet mode". // // In "auto subnet mode", a newly created network is assigned the // default CIDR of 10.128.0.0/9 and it automatically creates one // subnetwork per region. AutoCreateSubnetworks bool `json:"autoCreateSubnetworks,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this // property when you create the resource. Description string `json:"description,omitempty"` // GatewayIPv4: A gateway address for default routing to other networks. // This value is read only and is selected by the Google Compute Engine, // typically as the first usable address in the IPv4Range. 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"` // 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"` // Subnetworks: [Output Only] Server-defined fully-qualified URLs for // all subnetworks in this 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:"-"` }
Network: Represents a Network resource. Read Networks and Firewalls for more information.
func (*Network) MarshalJSON ¶
type NetworkInterface ¶
type NetworkInterface struct { // AccessConfigs: An array of configurations for this interface. // Currently, ONE_TO_ONE_NAT is the only access config supported. If // there are no accessConfigs specified, then this instance will have no // external internet access. AccessConfigs []*AccessConfig `json:"accessConfigs,omitempty"` // Name: [Output Only] The name of the network interface, 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. This is // required for creating an instance but optional when creating a // firewall rule. If not specified when creating a firewall rule, the // default network is used: // // global/networks/default // // 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: [Output Only] An optional IPV4 internal network address // assigned to the instance for this network interface. 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 provide this property. // If the network is in auto subnet mode, providing the subnetwork is // optional. If the network is in custom subnet mode, then this field // should be specified. If you specify this property, 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/zones/zone/subnetworks/subnetwork // - zones/zone/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:"-"` }
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] The unique identifier for the resource. This // identifier is defined by the server. Id string `json:"id,omitempty"` // Items: [Output Only] 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"` // 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:"-"` }
NetworkList: Contains a list of networks.
func (*NetworkList) MarshalJSON ¶
func (s *NetworkList) 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.
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) 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 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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 NetworksService ¶
type NetworksService struct {
// contains filtered or unexported fields
}
func NewNetworksService ¶
func NewNetworksService(s *Service) *NetworksService
func (*NetworksService) Delete ¶
func (r *NetworksService) Delete(project string, network string) *NetworksDeleteCall
Delete: Deletes the specified network. 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. Get a list of available networks by making a list() request. For details, see https://cloud.google.com/compute/docs/reference/latest/networks/get
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. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/networks/list
type Operation ¶
type Operation struct { // ClientOperationId: [Output Only] Reserved for future use. ClientOperationId string `json:"clientOperationId,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. 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 resource. 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 resource. 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 available when performing regional operations. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,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. 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 available 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:"-"` }
Operation: An Operation resource, used to manage asynchronous API requests.
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"` // 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:"-"` }
func (*OperationAggregatedList) MarshalJSON ¶
func (s *OperationAggregatedList) 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:"-"` }
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:"-"` }
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"` // 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:"-"` }
OperationList: Contains a list of Operation resources.
func (*OperationList) MarshalJSON ¶
func (s *OperationList) 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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
func (*OperationWarningsData) MarshalJSON ¶
func (s *OperationWarningsData) MarshalJSON() ([]byte, error)
type OperationsScopedList ¶
type OperationsScopedList struct { // Operations: [Output Only] 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:"-"` }
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
func (*OperationsScopedListWarningData) MarshalJSON ¶
func (s *OperationsScopedListWarningData) MarshalJSON() ([]byte, error)
type PathMatcher ¶
type PathMatcher struct { // DefaultService: The full or partial URL to the BackendService // resource. This will be used if none of the pathRules defined by this // PathMatcher is matched by the URL's path portion. 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 DefaultService string `json:"defaultService,omitempty"` // Description: An optional description of this resource. Provide this // property when you create the resource. Description string `json:"description,omitempty"` // Name: The name to which this PathMatcher is referred by the HostRule. Name string `json:"name,omitempty"` // PathRules: The list of path rules. PathRules []*PathRule `json:"pathRules,omitempty"` // ForceSendFields is a list of field names (e.g. "DefaultService") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []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"` // Service: The URL of the BackendService resource if this rule is // matched. Service string `json:"service,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:"-"` }
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 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"` // 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"` // 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:"-"` }
Project: A Project resource. Projects can only be created in the Google Cloud Platform Console. Unless marked otherwise, values can only be modified in the console.
func (*Project) MarshalJSON ¶
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) 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 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.
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.
type ProjectsService ¶
type ProjectsService struct {
// contains filtered or unexported fields
}
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
func (*ProjectsService) Get ¶
func (r *ProjectsService) Get(project string) *ProjectsGetCall
Get: Returns the specified Project resource. For details, see https://cloud.google.com/compute/docs/reference/latest/projects/get
func (*ProjectsService) MoveDisk ¶
func (r *ProjectsService) MoveDisk(project string, diskmoverequest *DiskMoveRequest) *ProjectsMoveDiskCall
MoveDisk: Moves a persistent disk from one zone to another.
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.
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. For details, see https://cloud.google.com/compute/docs/reference/latest/projects/setCommonInstanceMetadata
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. 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.
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.
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: // "AUTOSCALERS" // "BACKEND_SERVICES" // "CPUS" // "DISKS_TOTAL_GB" // "FIREWALLS" // "FORWARDING_RULES" // "HEALTH_CHECKS" // "IMAGES" // "INSTANCES" // "INSTANCE_GROUPS" // "INSTANCE_GROUP_MANAGERS" // "INSTANCE_TEMPLATES" // "IN_USE_ADDRESSES" // "LOCAL_SSD_TOTAL_GB" // "NETWORKS" // "ROUTES" // "SNAPSHOTS" // "SSD_TOTAL_GB" // "SSL_CERTIFICATES" // "STATIC_ADDRESSES" // "SUBNETWORKS" // "TARGET_HTTPS_PROXIES" // "TARGET_HTTP_PROXIES" // "TARGET_INSTANCES" // "TARGET_POOLS" // "TARGET_VPN_GATEWAYS" // "URL_MAPS" // "VPN_TUNNELS" Metric string `json:"metric,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:"-"` }
Quota: A quotas entry.
func (*Quota) 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"` // 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:"-"` }
Region: Region resource.
func (*Region) MarshalJSON ¶
type RegionList ¶
type RegionList 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 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"` // 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:"-"` }
RegionList: Contains a list of region resources.
func (*RegionList) MarshalJSON ¶
func (s *RegionList) MarshalJSON() ([]byte, error)
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.
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) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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. 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. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/regionOperations/list
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) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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. Get a list of available regions by making a list() request. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/regions/list
type ResourceGroupReference ¶
type ResourceGroupReference struct { // Group: A URI referencing one of the resource views 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:"-"` }
func (*ResourceGroupReference) MarshalJSON ¶
func (s *ResourceGroupReference) 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 // property when you create the resource. Description string `json:"description,omitempty"` // DestRange: The destination range of outgoing packets that this route // applies to. 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])? 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: 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-id>/global/gateways/default-internet-gateway NextHopGateway string `json:"nextHopGateway,omitempty"` // NextHopInstance: The URL to an instance that should handle matching // packets. You can specify this as a full or partial URL. For // example: // https://www.googleapis.com/compute/v1/projects/project/zones/ // zone/instances/ NextHopInstance string `json:"nextHopInstance,omitempty"` // NextHopIp: The network IP address of an instance that should handle // matching packets. NextHopIp string `json:"nextHopIp,omitempty"` // NextHopNetwork: The URL of the local network if it should handle // matching packets. NextHopNetwork string `json:"nextHopNetwork,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 the case of two routes with equal prefix length, the one // with the lowest-numbered priority value wins. Default value is 1000. // Valid range is 0 through 65535. Priority int64 `json:"priority,omitempty"` // SelfLink: [Output Only] Server-defined fully-qualified URL for this // resource. SelfLink string `json:"selfLink,omitempty"` // Tags: A list of instance tags to which this route applies. Tags []string `json:"tags,omitempty"` // Warnings: [Output Only] If potential misconfigurations are detected // for this route, this field will be populated with warning messages. Warnings []*RouteWarnings `json:"warnings,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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:"-"` }
Route: Represents a Route resource. A route specifies how certain packets should be handled by the network. Routes are associated with instances by tags and the set of routes for a particular instance is called its routing table.
For each packet leaving a instance, the system searches that instance's routing table for a single best matching route. Routes match packets by destination IP address, preferring smaller or more specific ranges over larger ones. If there is a tie, the system selects the route with the smallest priority value. If there is still a tie, it uses the layer three and four packet headers to select just one of the remaining matching routes. The packet is then forwarded as specified by the nextHop field of the winning route - either to another instance destination, a instance gateway or a Google Compute Engine-operated gateway.
Packets that do not match any route in the sending instance's routing table are dropped.
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: [Output Only] 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"` // 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:"-"` }
RouteList: Contains a list of Route resources.
func (*RouteList) MarshalJSON ¶
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
func (*RouteWarningsData) MarshalJSON ¶
func (s *RouteWarningsData) MarshalJSON() ([]byte, error)
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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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. 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. Get a list of available routes by making a list() request. 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. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/routes/list
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. AutomaticRestart bool `json:"automaticRestart,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: Whether the instance is preemptible. 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:"-"` }
Scheduling: Sets the scheduling options for an Instance.
func (*Scheduling) MarshalJSON ¶
func (s *Scheduling) 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"` // 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. "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:"-"` }
SerialPortOutput: An instance's serial console output.
func (*SerialPortOutput) MarshalJSON ¶
func (s *SerialPortOutput) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Addresses *AddressesService Autoscalers *AutoscalersService BackendServices *BackendServicesService DiskTypes *DiskTypesService Disks *DisksService Firewalls *FirewallsService ForwardingRules *ForwardingRulesService GlobalAddresses *GlobalAddressesService GlobalForwardingRules *GlobalForwardingRulesService GlobalOperations *GlobalOperationsService HttpHealthChecks *HttpHealthChecksService HttpsHealthChecks *HttpsHealthChecksService Images *ImagesService InstanceGroupManagers *InstanceGroupManagersService InstanceGroups *InstanceGroupsService InstanceTemplates *InstanceTemplatesService Instances *InstancesService Licenses *LicensesService MachineTypes *MachineTypesService Networks *NetworksService Projects *ProjectsService RegionOperations *RegionOperationsService Regions *RegionsService Routes *RoutesService Snapshots *SnapshotsService SslCertificates *SslCertificatesService Subnetworks *SubnetworksService TargetHttpProxies *TargetHttpProxiesService TargetHttpsProxies *TargetHttpsProxiesService TargetInstances *TargetInstancesService TargetPools *TargetPoolsService TargetVpnGateways *TargetVpnGatewaysService UrlMaps *UrlMapsService VpnTunnels *VpnTunnelsService ZoneOperations *ZoneOperationsService Zones *ZonesService // contains filtered or unexported fields }
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:"-"` }
ServiceAccount: A service account.
func (*ServiceAccount) MarshalJSON ¶
func (s *ServiceAccount) MarshalJSON() ([]byte, error)
type Snapshot ¶
type Snapshot 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"` // DiskSizeGb: [Output Only] Size of the snapshot, specified in GB. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` // Id: [Output Only] The unique identifier for the resource. This // identifier is defined by the server. Id uint64 `json:"id,omitempty,string"` // Kind: [Output Only] Type of the resource. Always compute#snapshot for // Snapshot resources. Kind string `json:"kind,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"` // SourceDisk: [Output Only] The source disk used to create this // snapshot. SourceDisk string `json:"sourceDisk,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 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"` // 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:"-"` }
Snapshot: A persistent disk snapshot resource.
func (*Snapshot) MarshalJSON ¶
type SnapshotList ¶
type SnapshotList 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 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"` // 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:"-"` }
SnapshotList: Contains a list of Snapshot resources.
func (*SnapshotList) MarshalJSON ¶
func (s *SnapshotList) 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.
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) 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 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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 snaphots. 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. Get a list of available snapshots by making a list() request. For details, see https://cloud.google.com/compute/docs/reference/latest/snapshots/get
func (*SnapshotsService) List ¶
func (r *SnapshotsService) List(project string) *SnapshotsListCall
List: Retrieves the list of Snapshot resources contained within the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/snapshots/list
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"` // 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"` // 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 RPCs // will include this field. PrivateKey string `json:"privateKey,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. "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:"-"` }
SslCertificate: An SslCertificate resource. This resource provides a mechanism to upload an SSL key and certificate to the load balancer to serve secure connections from the user.
func (*SslCertificate) MarshalJSON ¶
func (s *SslCertificate) 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"` // 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:"-"` }
SslCertificateList: Contains a list of SslCertificate resources.
func (*SslCertificateList) MarshalJSON ¶
func (s *SslCertificateList) MarshalJSON() ([]byte, error)
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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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 SslCertificatesService ¶
type SslCertificatesService struct {
// contains filtered or unexported fields
}
func NewSslCertificatesService ¶
func NewSslCertificatesService(s *Service) *SslCertificatesService
func (*SslCertificatesService) Delete ¶
func (r *SslCertificatesService) Delete(project string, sslCertificate string) *SslCertificatesDeleteCall
Delete: Deletes the specified SslCertificate resource.
func (*SslCertificatesService) Get ¶
func (r *SslCertificatesService) Get(project string, sslCertificate string) *SslCertificatesGetCall
Get: Returns the specified SslCertificate resource. Get a list of available SSL certificates by making a list() request.
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.
func (*SslCertificatesService) List ¶
func (r *SslCertificatesService) List(project string) *SslCertificatesListCall
List: Retrieves the list of SslCertificate resources available to the specified project.
type Subnetwork ¶
type Subnetwork struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this // property when you create the resource. Description string `json:"description,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. IpCidrRange string `json:"ipCidrRange,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#subnetwork // for Subnetwork resources. Kind string `json:"kind,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. Network string `json:"network,omitempty"` // Region: [Output Only] URL of the region where the Subnetwork resides. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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:"-"` }
Subnetwork: A Subnetwork resource.
func (*Subnetwork) MarshalJSON ¶
func (s *Subnetwork) MarshalJSON() ([]byte, error)
type SubnetworkAggregatedList ¶
type SubnetworkAggregatedList 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 map of scoped Subnetwork lists. 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"` // 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:"-"` }
func (*SubnetworkAggregatedList) MarshalJSON ¶
func (s *SubnetworkAggregatedList) MarshalJSON() ([]byte, error)
type SubnetworkList ¶
type SubnetworkList struct { // Id: [Output Only] The unique identifier for the resource. This // identifier is defined by the server. Id string `json:"id,omitempty"` // Items: The 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"` // 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:"-"` }
SubnetworkList: Contains a list of Subnetwork resources.
func (*SubnetworkList) MarshalJSON ¶
func (s *SubnetworkList) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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) 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 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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 SubnetworksScopedList ¶
type SubnetworksScopedList struct { // Subnetworks: 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:"-"` }
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
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.
func (*SubnetworksService) Delete ¶
func (r *SubnetworksService) Delete(project string, region string, subnetwork string) *SubnetworksDeleteCall
Delete: Deletes the specified subnetwork.
func (*SubnetworksService) Get ¶
func (r *SubnetworksService) Get(project string, region string, subnetwork string) *SubnetworksGetCall
Get: Returns the specified subnetwork. Get a list of available subnetworks by making a list() request.
func (*SubnetworksService) Insert ¶
func (r *SubnetworksService) Insert(project string, region string, subnetwork *Subnetwork) *SubnetworksInsertCall
Insert: Creates a subnetwork in the specified project using the data included in the request.
func (*SubnetworksService) List ¶
func (r *SubnetworksService) List(project string, region string) *SubnetworksListCall
List: Retrieves a list of subnetworks available to the specified project.
type Tags ¶
type Tags 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. // // 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:"-"` }
Tags: A set of instance tags.
func (*Tags) MarshalJSON ¶
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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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 TargetHttpProxiesService ¶
type TargetHttpProxiesService struct {
// contains filtered or unexported fields
}
func NewTargetHttpProxiesService ¶
func NewTargetHttpProxiesService(s *Service) *TargetHttpProxiesService
func (*TargetHttpProxiesService) Delete ¶
func (r *TargetHttpProxiesService) Delete(project string, targetHttpProxy string) *TargetHttpProxiesDeleteCall
Delete: Deletes the specified TargetHttpProxy resource. 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. Get a list of available target HTTP proxies by making a list() request. 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. 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. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies/setUrlMap
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.
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"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // UrlMap: URL to the UrlMap resource that defines the mapping from URL // to the BackendService. UrlMap string `json:"urlMap,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
TargetHttpProxy: A TargetHttpProxy resource. This resource defines an HTTP proxy.
func (*TargetHttpProxy) MarshalJSON ¶
func (s *TargetHttpProxy) MarshalJSON() ([]byte, error)
type TargetHttpProxyList ¶
type TargetHttpProxyList struct { // Id: [Output Only] The unique identifier for the resource. This // identifier is 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"` // 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:"-"` }
TargetHttpProxyList: A list of TargetHttpProxy resources.
func (*TargetHttpProxyList) MarshalJSON ¶
func (s *TargetHttpProxyList) MarshalJSON() ([]byte, error)
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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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 TargetHttpsProxiesService ¶
type TargetHttpsProxiesService struct {
// contains filtered or unexported fields
}
func NewTargetHttpsProxiesService ¶
func NewTargetHttpsProxiesService(s *Service) *TargetHttpsProxiesService
func (*TargetHttpsProxiesService) Delete ¶
func (r *TargetHttpsProxiesService) Delete(project string, targetHttpsProxy string) *TargetHttpsProxiesDeleteCall
Delete: Deletes the specified TargetHttpsProxy resource.
func (*TargetHttpsProxiesService) Get ¶
func (r *TargetHttpsProxiesService) Get(project string, targetHttpsProxy string) *TargetHttpsProxiesGetCall
Get: Returns the specified TargetHttpsProxy resource. Get a list of available target HTTPS proxies by making a list() request.
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.
func (*TargetHttpsProxiesService) List ¶
func (r *TargetHttpsProxiesService) List(project string) *TargetHttpsProxiesListCall
List: Retrieves the list of TargetHttpsProxy resources available to the specified project.
func (*TargetHttpsProxiesService) SetSslCertificates ¶
func (r *TargetHttpsProxiesService) SetSslCertificates(project string, targetHttpsProxy string, targethttpsproxiessetsslcertificatesrequest *TargetHttpsProxiesSetSslCertificatesRequest) *TargetHttpsProxiesSetSslCertificatesCall
SetSslCertificates: Replaces SslCertificates for TargetHttpsProxy.
func (*TargetHttpsProxiesService) SetUrlMap ¶
func (r *TargetHttpsProxiesService) SetUrlMap(project string, targetHttpsProxy string, urlmapreference *UrlMapReference) *TargetHttpsProxiesSetUrlMapCall
SetUrlMap: Changes the URL map for TargetHttpsProxy.
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.
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:"-"` }
func (*TargetHttpsProxiesSetSslCertificatesRequest) MarshalJSON ¶
func (s *TargetHttpsProxiesSetSslCertificatesRequest) MarshalJSON() ([]byte, error)
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.
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"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // SslCertificates: URLs to SslCertificate resources that are used to // authenticate connections between users and the load balancer. // Currently, exactly one SSL certificate must be specified. SslCertificates []string `json:"sslCertificates,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:"-"` }
TargetHttpsProxy: A TargetHttpsProxy resource. This resource defines an HTTPS proxy.
func (*TargetHttpsProxy) MarshalJSON ¶
func (s *TargetHttpsProxy) MarshalJSON() ([]byte, error)
type TargetHttpsProxyList ¶
type TargetHttpsProxyList struct { // Id: [Output Only] The unique identifier for the resource. This // identifier is 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"` // 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:"-"` }
TargetHttpsProxyList: Contains a list of TargetHttpsProxy resources.
func (*TargetHttpsProxyList) MarshalJSON ¶
func (s *TargetHttpsProxyList) 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"` // Zone: [Output Only] URL of the zone where the target instance // resides. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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:"-"` }
TargetInstance: A TargetInstance resource. This resource defines an endpoint instance that terminates traffic of certain protocols.
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 map of scoped target instance lists. 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"` // 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:"-"` }
func (*TargetInstanceAggregatedList) MarshalJSON ¶
func (s *TargetInstanceAggregatedList) MarshalJSON() ([]byte, error)
type TargetInstanceList ¶
type TargetInstanceList struct { // Id: [Output Only] The unique identifier for the resource. This // identifier is 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"` // 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:"-"` }
TargetInstanceList: Contains a list of TargetInstance resources.
func (*TargetInstanceList) MarshalJSON ¶
func (s *TargetInstanceList) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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: 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:"-"` }
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
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. 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. 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. Get a list of available target instances by making a list() request. 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. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/targetInstances/list
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: A list of URLs to the HttpHealthCheck resource. A // member instance in this pool is considered healthy if and only if all // specified health checks pass. An empty list means all member // instances will be considered healthy at all times. 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"` // SessionAffinity: Sesssion 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_PROTO" // "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:"-"` }
TargetPool: A TargetPool resource. This resource defines a pool of instances, associated HttpHealthCheck resources, and the fallback target pool.
func (*TargetPool) MarshalJSON ¶
func (s *TargetPool) MarshalJSON() ([]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: [Output Only] A map of scoped target pool lists. 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"` // 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:"-"` }
func (*TargetPoolAggregatedList) MarshalJSON ¶
func (s *TargetPoolAggregatedList) 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:"-"` }
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"` // 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:"-"` }
TargetPoolList: Contains a list of TargetPool resources.
func (*TargetPoolList) MarshalJSON ¶
func (s *TargetPoolList) 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.
type TargetPoolsAddHealthCheckRequest ¶
type TargetPoolsAddHealthCheckRequest struct { // HealthChecks: A list of HttpHealthCheck resources 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:"-"` }
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.
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:"-"` }
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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) 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.
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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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:"-"` }
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.
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:"-"` }
func (*TargetPoolsRemoveInstanceRequest) MarshalJSON ¶
func (s *TargetPoolsRemoveInstanceRequest) MarshalJSON() ([]byte, error)
type TargetPoolsScopedList ¶
type TargetPoolsScopedList struct { // TargetPools: 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:"-"` }
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
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. 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. 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. 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. 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. Get a list of available target pools by making a list() request. 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. 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. 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. 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. 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. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/setBackup
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.
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:"-"` }
func (*TargetReference) MarshalJSON ¶
func (s *TargetReference) 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 to 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"` // 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. 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. // // 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 compute.vpntunnels.insert method and // associated to 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:"-"` }
TargetVpnGateway: Represents a Target VPN gateway resource.
func (*TargetVpnGateway) MarshalJSON ¶
func (s *TargetVpnGateway) MarshalJSON() ([]byte, error)
type TargetVpnGatewayAggregatedList ¶
type TargetVpnGatewayAggregatedList struct { // Id: [Output Only] The unique identifier for the resource. This // identifier is defined by the server. Id string `json:"id,omitempty"` // Items: A map of scoped target vpn gateway lists. 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 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. "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:"-"` }
func (*TargetVpnGatewayAggregatedList) MarshalJSON ¶
func (s *TargetVpnGatewayAggregatedList) MarshalJSON() ([]byte, error)
type TargetVpnGatewayList ¶
type TargetVpnGatewayList 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 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 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. "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:"-"` }
TargetVpnGatewayList: Contains a list of TargetVpnGateway resources.
func (*TargetVpnGatewayList) MarshalJSON ¶
func (s *TargetVpnGatewayList) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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] 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:"-"` }
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
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.
func (*TargetVpnGatewaysService) Delete ¶
func (r *TargetVpnGatewaysService) Delete(project string, region string, targetVpnGateway string) *TargetVpnGatewaysDeleteCall
Delete: Deletes the specified target VPN gateway.
func (*TargetVpnGatewaysService) Get ¶
func (r *TargetVpnGatewaysService) Get(project string, region string, targetVpnGateway string) *TargetVpnGatewaysGetCall
Get: Returns the specified target VPN gateway. Get a list of available target VPN gateways by making a list() request.
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.
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.
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:"-"` }
func (*TestFailure) MarshalJSON ¶
func (s *TestFailure) MarshalJSON() ([]byte, error)
type UrlMap ¶
type UrlMap struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // DefaultService: The URL of the BackendService resource if none of the // hostRules match. DefaultService string `json:"defaultService,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. Fingerprint string `json:"fingerprint,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"` // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Tests: The list of expected URL mappings. Request to update this // UrlMap will succeed only all of the test cases pass. 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:"-"` }
UrlMap: A UrlMap resource. This resource defines the mapping from URL to the BackendService resource, based on the "longest-match" of the URL's host and path.
func (*UrlMap) MarshalJSON ¶
type UrlMapList ¶
type UrlMapList struct { // Id: [Output Only] Unique identifier for the resource. Set 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"` // 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:"-"` }
UrlMapList: Contains a list of UrlMap resources.
func (*UrlMapList) MarshalJSON ¶
func (s *UrlMapList) 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:"-"` }
func (*UrlMapReference) MarshalJSON ¶
func (s *UrlMapReference) MarshalJSON() ([]byte, error)
type UrlMapTest ¶
type UrlMapTest struct { // Description: Description of this test case. Description string `json:"description,omitempty"` // 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. "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:"-"` }
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:"-"` }
UrlMapValidationResult: Message representing the validation result for a UrlMap.
func (*UrlMapValidationResult) MarshalJSON ¶
func (s *UrlMapValidationResult) 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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
type UrlMapsService ¶
type UrlMapsService struct {
// contains filtered or unexported fields
}
func NewUrlMapsService ¶
func NewUrlMapsService(s *Service) *UrlMapsService
func (*UrlMapsService) Delete ¶
func (r *UrlMapsService) Delete(project string, urlMap string) *UrlMapsDeleteCall
Delete: Deletes the specified UrlMap resource. 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. Get a list of available URL maps by making a list() request. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/insert
func (*UrlMapsService) List ¶
func (r *UrlMapsService) List(project string) *UrlMapsListCall
List: Retrieves the list of UrlMap resources available to the specified project. 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: Updates the entire content of the UrlMap resource. This method supports patch semantics. For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/patch
func (*UrlMapsService) Update ¶
func (r *UrlMapsService) Update(project string, urlMap string, urlmap *UrlMap) *UrlMapsUpdateCall
Update: Updates the entire content of the UrlMap resource. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/validate
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.
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.
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:"-"` }
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:"-"` }
func (*UrlMapsValidateResponse) MarshalJSON ¶
func (s *UrlMapsValidateResponse) 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:"-"` }
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 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 peer VPN gateway. Acceptable IKE versions are 1 or 2. // 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"` // LocalTrafficSelector: Local traffic selector to use when establishing // the VPN tunnel with peer VPN gateway. The value should be a CIDR // formatted string, for example: 192.168.0.0/16. The ranges should be // disjoint. 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"` // PeerIp: IP address of the peer VPN gateway. PeerIp string `json:"peerIp,omitempty"` // Region: [Output Only] URL of the region where the VPN tunnel resides. Region string `json:"region,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. // // Possible values: // "ALLOCATING_RESOURCES" // "AUTHORIZATION_ERROR" // "DEPROVISIONING" // "ESTABLISHED" // "FAILED" // "FIRST_HANDSHAKE" // "NEGOTIATION_FAILURE" // "NETWORK_ERROR" // "NO_INCOMING_PACKETS" // "PROVISIONING" // "REJECTED" // "WAITING_FOR_FULL_CONFIG" Status string `json:"status,omitempty"` // TargetVpnGateway: URL of the VPN gateway with which this VPN tunnel // is associated. Provided by the client when the VPN tunnel is created. TargetVpnGateway string `json:"targetVpnGateway,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:"-"` }
func (*VpnTunnel) MarshalJSON ¶
type VpnTunnelAggregatedList ¶
type VpnTunnelAggregatedList 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 vpn tunnel lists. 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"` // 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:"-"` }
func (*VpnTunnelAggregatedList) MarshalJSON ¶
func (s *VpnTunnelAggregatedList) MarshalJSON() ([]byte, error)
type VpnTunnelList ¶
type VpnTunnelList 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 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 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. "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:"-"` }
VpnTunnelList: Contains a list of VpnTunnel resources.
func (*VpnTunnelList) MarshalJSON ¶
func (s *VpnTunnelList) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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.
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) 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.
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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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: 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:"-"` }
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" // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" // "INJECTED_KERNELS_DEPRECATED" // "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_NOT_DELETED" // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" // "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:"-"` }
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:"-"` }
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.
func (*VpnTunnelsService) Delete ¶
func (r *VpnTunnelsService) Delete(project string, region string, vpnTunnel string) *VpnTunnelsDeleteCall
Delete: Deletes the specified VpnTunnel resource.
func (*VpnTunnelsService) Get ¶
func (r *VpnTunnelsService) Get(project string, region string, vpnTunnel string) *VpnTunnelsGetCall
Get: Returns the specified VpnTunnel resource. Get a list of available VPN tunnels by making a list() request.
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.
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.
type Zone ¶
type Zone struct { // 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"` // MaintenanceWindows: [Output Only] Any scheduled maintenance windows // for this zone. When the zone is in a maintenance window, all // resources which reside in the zone will be unavailable. For more // information, see Maintenance Windows MaintenanceWindows []*ZoneMaintenanceWindows `json:"maintenanceWindows,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. "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:"-"` }
Zone: A Zone resource.
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: [Output Only] 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"` // 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:"-"` }
ZoneList: Contains a list of zone resources.
func (*ZoneList) MarshalJSON ¶
type ZoneMaintenanceWindows ¶
type ZoneMaintenanceWindows struct { // BeginTime: [Output Only] Starting time of the maintenance window, in // RFC3339 format. BeginTime string `json:"beginTime,omitempty"` // Description: [Output Only] Textual description of the maintenance // window. Description string `json:"description,omitempty"` // EndTime: [Output Only] Ending time of the maintenance window, in // RFC3339 format. EndTime string `json:"endTime,omitempty"` // Name: [Output Only] Name of the maintenance window. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "BeginTime") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*ZoneMaintenanceWindows) MarshalJSON ¶
func (s *ZoneMaintenanceWindows) 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.
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) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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. 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. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/zoneOperations/list
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) 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": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
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.
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. Get a list of available zones by making a list() request. 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. For details, see https://cloud.google.com/compute/docs/reference/latest/zones/list