Documentation
¶
Overview ¶
Package compute provides access to the Compute Engine API.
See https://developers.google.com/compute/docs/reference/latest/
Usage example:
import "code.google.com/p/google-api-go-client/compute/v1"
...
computeService, err := compute.New(oauthHttpClient)
Index ¶
- Constants
- type AccessConfig
- type Address
- type AddressAggregatedList
- type AddressList
- type AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) Do() (*AddressAggregatedList, error)
- func (c *AddressesAggregatedListCall) Fields(s ...googleapi.Field) *AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) Filter(filter string) *AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) MaxResults(maxResults int64) *AddressesAggregatedListCall
- func (c *AddressesAggregatedListCall) PageToken(pageToken string) *AddressesAggregatedListCall
- type AddressesDeleteCall
- type AddressesGetCall
- type AddressesInsertCall
- type AddressesListCall
- func (c *AddressesListCall) Do() (*AddressList, error)
- func (c *AddressesListCall) Fields(s ...googleapi.Field) *AddressesListCall
- func (c *AddressesListCall) Filter(filter string) *AddressesListCall
- func (c *AddressesListCall) MaxResults(maxResults int64) *AddressesListCall
- func (c *AddressesListCall) PageToken(pageToken string) *AddressesListCall
- 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 Backend
- type BackendService
- type BackendServiceGroupHealth
- type BackendServiceList
- type BackendServicesDeleteCall
- type BackendServicesGetCall
- type BackendServicesGetHealthCall
- type BackendServicesInsertCall
- type BackendServicesListCall
- func (c *BackendServicesListCall) Do() (*BackendServiceList, error)
- func (c *BackendServicesListCall) Fields(s ...googleapi.Field) *BackendServicesListCall
- func (c *BackendServicesListCall) Filter(filter string) *BackendServicesListCall
- func (c *BackendServicesListCall) MaxResults(maxResults int64) *BackendServicesListCall
- func (c *BackendServicesListCall) PageToken(pageToken string) *BackendServicesListCall
- 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 DiskType
- type DiskTypeAggregatedList
- type DiskTypeList
- type DiskTypesAggregatedListCall
- func (c *DiskTypesAggregatedListCall) Do() (*DiskTypeAggregatedList, error)
- func (c *DiskTypesAggregatedListCall) Fields(s ...googleapi.Field) *DiskTypesAggregatedListCall
- func (c *DiskTypesAggregatedListCall) Filter(filter string) *DiskTypesAggregatedListCall
- func (c *DiskTypesAggregatedListCall) MaxResults(maxResults int64) *DiskTypesAggregatedListCall
- func (c *DiskTypesAggregatedListCall) PageToken(pageToken string) *DiskTypesAggregatedListCall
- type DiskTypesGetCall
- type DiskTypesListCall
- func (c *DiskTypesListCall) Do() (*DiskTypeList, error)
- func (c *DiskTypesListCall) Fields(s ...googleapi.Field) *DiskTypesListCall
- func (c *DiskTypesListCall) Filter(filter string) *DiskTypesListCall
- func (c *DiskTypesListCall) MaxResults(maxResults int64) *DiskTypesListCall
- func (c *DiskTypesListCall) PageToken(pageToken string) *DiskTypesListCall
- type DiskTypesScopedList
- type DiskTypesScopedListWarning
- type DiskTypesScopedListWarningData
- type DiskTypesService
- type DisksAggregatedListCall
- func (c *DisksAggregatedListCall) Do() (*DiskAggregatedList, error)
- func (c *DisksAggregatedListCall) Fields(s ...googleapi.Field) *DisksAggregatedListCall
- func (c *DisksAggregatedListCall) Filter(filter string) *DisksAggregatedListCall
- func (c *DisksAggregatedListCall) MaxResults(maxResults int64) *DisksAggregatedListCall
- func (c *DisksAggregatedListCall) PageToken(pageToken string) *DisksAggregatedListCall
- type DisksCreateSnapshotCall
- type DisksDeleteCall
- type DisksGetCall
- type DisksInsertCall
- type DisksListCall
- func (c *DisksListCall) Do() (*DiskList, error)
- func (c *DisksListCall) Fields(s ...googleapi.Field) *DisksListCall
- func (c *DisksListCall) Filter(filter string) *DisksListCall
- func (c *DisksListCall) MaxResults(maxResults int64) *DisksListCall
- func (c *DisksListCall) PageToken(pageToken string) *DisksListCall
- 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
- type FirewallsInsertCall
- type FirewallsListCall
- func (c *FirewallsListCall) Do() (*FirewallList, error)
- func (c *FirewallsListCall) Fields(s ...googleapi.Field) *FirewallsListCall
- func (c *FirewallsListCall) Filter(filter string) *FirewallsListCall
- func (c *FirewallsListCall) MaxResults(maxResults int64) *FirewallsListCall
- func (c *FirewallsListCall) PageToken(pageToken string) *FirewallsListCall
- 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) Do() (*ForwardingRuleAggregatedList, error)
- func (c *ForwardingRulesAggregatedListCall) Fields(s ...googleapi.Field) *ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) Filter(filter string) *ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) MaxResults(maxResults int64) *ForwardingRulesAggregatedListCall
- func (c *ForwardingRulesAggregatedListCall) PageToken(pageToken string) *ForwardingRulesAggregatedListCall
- type ForwardingRulesDeleteCall
- type ForwardingRulesGetCall
- type ForwardingRulesInsertCall
- type ForwardingRulesListCall
- func (c *ForwardingRulesListCall) Do() (*ForwardingRuleList, error)
- func (c *ForwardingRulesListCall) Fields(s ...googleapi.Field) *ForwardingRulesListCall
- func (c *ForwardingRulesListCall) Filter(filter string) *ForwardingRulesListCall
- func (c *ForwardingRulesListCall) MaxResults(maxResults int64) *ForwardingRulesListCall
- func (c *ForwardingRulesListCall) PageToken(pageToken string) *ForwardingRulesListCall
- 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
- type GlobalAddressesInsertCall
- type GlobalAddressesListCall
- func (c *GlobalAddressesListCall) Do() (*AddressList, error)
- func (c *GlobalAddressesListCall) Fields(s ...googleapi.Field) *GlobalAddressesListCall
- func (c *GlobalAddressesListCall) Filter(filter string) *GlobalAddressesListCall
- func (c *GlobalAddressesListCall) MaxResults(maxResults int64) *GlobalAddressesListCall
- func (c *GlobalAddressesListCall) PageToken(pageToken string) *GlobalAddressesListCall
- 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
- type GlobalForwardingRulesGetCall
- type GlobalForwardingRulesInsertCall
- type GlobalForwardingRulesListCall
- func (c *GlobalForwardingRulesListCall) Do() (*ForwardingRuleList, error)
- func (c *GlobalForwardingRulesListCall) Fields(s ...googleapi.Field) *GlobalForwardingRulesListCall
- func (c *GlobalForwardingRulesListCall) Filter(filter string) *GlobalForwardingRulesListCall
- func (c *GlobalForwardingRulesListCall) MaxResults(maxResults int64) *GlobalForwardingRulesListCall
- func (c *GlobalForwardingRulesListCall) PageToken(pageToken string) *GlobalForwardingRulesListCall
- 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
- type GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) Do() (*OperationAggregatedList, error)
- func (c *GlobalOperationsAggregatedListCall) Fields(s ...googleapi.Field) *GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) Filter(filter string) *GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) MaxResults(maxResults int64) *GlobalOperationsAggregatedListCall
- func (c *GlobalOperationsAggregatedListCall) PageToken(pageToken string) *GlobalOperationsAggregatedListCall
- type GlobalOperationsDeleteCall
- type GlobalOperationsGetCall
- type GlobalOperationsListCall
- func (c *GlobalOperationsListCall) Do() (*OperationList, error)
- func (c *GlobalOperationsListCall) Fields(s ...googleapi.Field) *GlobalOperationsListCall
- func (c *GlobalOperationsListCall) Filter(filter string) *GlobalOperationsListCall
- func (c *GlobalOperationsListCall) MaxResults(maxResults int64) *GlobalOperationsListCall
- func (c *GlobalOperationsListCall) PageToken(pageToken string) *GlobalOperationsListCall
- 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
- type HttpHealthChecksInsertCall
- type HttpHealthChecksListCall
- func (c *HttpHealthChecksListCall) Do() (*HttpHealthCheckList, error)
- func (c *HttpHealthChecksListCall) Fields(s ...googleapi.Field) *HttpHealthChecksListCall
- func (c *HttpHealthChecksListCall) Filter(filter string) *HttpHealthChecksListCall
- func (c *HttpHealthChecksListCall) MaxResults(maxResults int64) *HttpHealthChecksListCall
- func (c *HttpHealthChecksListCall) PageToken(pageToken string) *HttpHealthChecksListCall
- 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 Image
- type ImageList
- type ImageRawDisk
- type ImagesDeleteCall
- type ImagesDeprecateCall
- type ImagesGetCall
- type ImagesInsertCall
- type ImagesListCall
- func (c *ImagesListCall) Do() (*ImageList, error)
- func (c *ImagesListCall) Fields(s ...googleapi.Field) *ImagesListCall
- func (c *ImagesListCall) Filter(filter string) *ImagesListCall
- func (c *ImagesListCall) MaxResults(maxResults int64) *ImagesListCall
- func (c *ImagesListCall) PageToken(pageToken string) *ImagesListCall
- 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 InstanceList
- type InstanceProperties
- type InstanceReference
- type InstanceTemplate
- type InstanceTemplateList
- type InstanceTemplatesDeleteCall
- type InstanceTemplatesGetCall
- type InstanceTemplatesInsertCall
- type InstanceTemplatesListCall
- func (c *InstanceTemplatesListCall) Do() (*InstanceTemplateList, error)
- func (c *InstanceTemplatesListCall) Fields(s ...googleapi.Field) *InstanceTemplatesListCall
- func (c *InstanceTemplatesListCall) Filter(filter string) *InstanceTemplatesListCall
- func (c *InstanceTemplatesListCall) MaxResults(maxResults int64) *InstanceTemplatesListCall
- func (c *InstanceTemplatesListCall) PageToken(pageToken string) *InstanceTemplatesListCall
- 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 InstancesAddAccessConfigCall
- type InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) Do() (*InstanceAggregatedList, error)
- func (c *InstancesAggregatedListCall) Fields(s ...googleapi.Field) *InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) Filter(filter string) *InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) MaxResults(maxResults int64) *InstancesAggregatedListCall
- func (c *InstancesAggregatedListCall) PageToken(pageToken string) *InstancesAggregatedListCall
- type InstancesAttachDiskCall
- type InstancesDeleteAccessConfigCall
- type InstancesDeleteCall
- type InstancesDetachDiskCall
- type InstancesGetCall
- type InstancesGetSerialPortOutputCall
- type InstancesInsertCall
- type InstancesListCall
- func (c *InstancesListCall) Do() (*InstanceList, error)
- func (c *InstancesListCall) Fields(s ...googleapi.Field) *InstancesListCall
- func (c *InstancesListCall) Filter(filter string) *InstancesListCall
- func (c *InstancesListCall) MaxResults(maxResults int64) *InstancesListCall
- func (c *InstancesListCall) PageToken(pageToken string) *InstancesListCall
- 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) 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
- type InstancesSetDiskAutoDeleteCall
- type InstancesSetMetadataCall
- type InstancesSetSchedulingCall
- type InstancesSetTagsCall
- type License
- type LicensesGetCall
- type LicensesService
- type MachineType
- type MachineTypeAggregatedList
- type MachineTypeList
- type MachineTypeScratchDisks
- type MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) Do() (*MachineTypeAggregatedList, error)
- func (c *MachineTypesAggregatedListCall) Fields(s ...googleapi.Field) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) Filter(filter string) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) MaxResults(maxResults int64) *MachineTypesAggregatedListCall
- func (c *MachineTypesAggregatedListCall) PageToken(pageToken string) *MachineTypesAggregatedListCall
- type MachineTypesGetCall
- type MachineTypesListCall
- func (c *MachineTypesListCall) Do() (*MachineTypeList, error)
- func (c *MachineTypesListCall) Fields(s ...googleapi.Field) *MachineTypesListCall
- func (c *MachineTypesListCall) Filter(filter string) *MachineTypesListCall
- func (c *MachineTypesListCall) MaxResults(maxResults int64) *MachineTypesListCall
- func (c *MachineTypesListCall) PageToken(pageToken string) *MachineTypesListCall
- type MachineTypesScopedList
- type MachineTypesScopedListWarning
- type MachineTypesScopedListWarningData
- type MachineTypesService
- type Metadata
- type MetadataItems
- type Network
- type NetworkInterface
- type NetworkList
- type NetworksDeleteCall
- type NetworksGetCall
- type NetworksInsertCall
- type NetworksListCall
- func (c *NetworksListCall) Do() (*NetworkList, error)
- func (c *NetworksListCall) Fields(s ...googleapi.Field) *NetworksListCall
- func (c *NetworksListCall) Filter(filter string) *NetworksListCall
- func (c *NetworksListCall) MaxResults(maxResults int64) *NetworksListCall
- func (c *NetworksListCall) PageToken(pageToken string) *NetworksListCall
- 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 ProjectsService
- func (r *ProjectsService) Get(project string) *ProjectsGetCall
- func (r *ProjectsService) SetCommonInstanceMetadata(project string, metadata *Metadata) *ProjectsSetCommonInstanceMetadataCall
- func (r *ProjectsService) SetUsageExportBucket(project string, usageexportlocation *UsageExportLocation) *ProjectsSetUsageExportBucketCall
- type ProjectsSetCommonInstanceMetadataCall
- type ProjectsSetUsageExportBucketCall
- type Quota
- type Region
- type RegionList
- type RegionOperationsDeleteCall
- type RegionOperationsGetCall
- type RegionOperationsListCall
- func (c *RegionOperationsListCall) Do() (*OperationList, error)
- func (c *RegionOperationsListCall) Fields(s ...googleapi.Field) *RegionOperationsListCall
- func (c *RegionOperationsListCall) Filter(filter string) *RegionOperationsListCall
- func (c *RegionOperationsListCall) MaxResults(maxResults int64) *RegionOperationsListCall
- func (c *RegionOperationsListCall) PageToken(pageToken string) *RegionOperationsListCall
- 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) Do() (*RegionList, error)
- func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall
- func (c *RegionsListCall) Filter(filter string) *RegionsListCall
- func (c *RegionsListCall) MaxResults(maxResults int64) *RegionsListCall
- func (c *RegionsListCall) PageToken(pageToken string) *RegionsListCall
- type RegionsService
- type ResourceGroupReference
- type Route
- type RouteList
- type RouteWarnings
- type RouteWarningsData
- type RoutesDeleteCall
- type RoutesGetCall
- type RoutesInsertCall
- type RoutesListCall
- func (c *RoutesListCall) Do() (*RouteList, error)
- func (c *RoutesListCall) Fields(s ...googleapi.Field) *RoutesListCall
- func (c *RoutesListCall) Filter(filter string) *RoutesListCall
- func (c *RoutesListCall) MaxResults(maxResults int64) *RoutesListCall
- func (c *RoutesListCall) PageToken(pageToken string) *RoutesListCall
- type RoutesService
- type Scheduling
- type SerialPortOutput
- type Service
- type ServiceAccount
- type Snapshot
- type SnapshotList
- type SnapshotsDeleteCall
- type SnapshotsGetCall
- type SnapshotsListCall
- func (c *SnapshotsListCall) Do() (*SnapshotList, error)
- func (c *SnapshotsListCall) Fields(s ...googleapi.Field) *SnapshotsListCall
- func (c *SnapshotsListCall) Filter(filter string) *SnapshotsListCall
- func (c *SnapshotsListCall) MaxResults(maxResults int64) *SnapshotsListCall
- func (c *SnapshotsListCall) PageToken(pageToken string) *SnapshotsListCall
- type SnapshotsService
- type Tags
- type TargetHttpProxiesDeleteCall
- type TargetHttpProxiesGetCall
- type TargetHttpProxiesInsertCall
- type TargetHttpProxiesListCall
- func (c *TargetHttpProxiesListCall) Do() (*TargetHttpProxyList, error)
- func (c *TargetHttpProxiesListCall) Fields(s ...googleapi.Field) *TargetHttpProxiesListCall
- func (c *TargetHttpProxiesListCall) Filter(filter string) *TargetHttpProxiesListCall
- func (c *TargetHttpProxiesListCall) MaxResults(maxResults int64) *TargetHttpProxiesListCall
- func (c *TargetHttpProxiesListCall) PageToken(pageToken string) *TargetHttpProxiesListCall
- 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 TargetInstance
- type TargetInstanceAggregatedList
- type TargetInstanceList
- type TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) Do() (*TargetInstanceAggregatedList, error)
- func (c *TargetInstancesAggregatedListCall) Fields(s ...googleapi.Field) *TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) Filter(filter string) *TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) MaxResults(maxResults int64) *TargetInstancesAggregatedListCall
- func (c *TargetInstancesAggregatedListCall) PageToken(pageToken string) *TargetInstancesAggregatedListCall
- type TargetInstancesDeleteCall
- type TargetInstancesGetCall
- type TargetInstancesInsertCall
- type TargetInstancesListCall
- func (c *TargetInstancesListCall) Do() (*TargetInstanceList, error)
- func (c *TargetInstancesListCall) Fields(s ...googleapi.Field) *TargetInstancesListCall
- func (c *TargetInstancesListCall) Filter(filter string) *TargetInstancesListCall
- func (c *TargetInstancesListCall) MaxResults(maxResults int64) *TargetInstancesListCall
- func (c *TargetInstancesListCall) PageToken(pageToken string) *TargetInstancesListCall
- type TargetInstancesScopedList
- type TargetInstancesScopedListWarning
- type TargetInstancesScopedListWarningData
- type TargetInstancesService
- func (r *TargetInstancesService) AggregatedList(project string) *TargetInstancesAggregatedListCall
- func (r *TargetInstancesService) Delete(project string, zone string, targetInstance string) *TargetInstancesDeleteCall
- func (r *TargetInstancesService) Get(project string, zone string, targetInstance string) *TargetInstancesGetCall
- func (r *TargetInstancesService) Insert(project string, zone string, targetinstance *TargetInstance) *TargetInstancesInsertCall
- func (r *TargetInstancesService) List(project string, zone string) *TargetInstancesListCall
- type TargetPool
- type TargetPoolAggregatedList
- type TargetPoolInstanceHealth
- type TargetPoolList
- type TargetPoolsAddHealthCheckCall
- type TargetPoolsAddHealthCheckRequest
- type TargetPoolsAddInstanceCall
- type TargetPoolsAddInstanceRequest
- type TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) Do() (*TargetPoolAggregatedList, error)
- func (c *TargetPoolsAggregatedListCall) Fields(s ...googleapi.Field) *TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) Filter(filter string) *TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) MaxResults(maxResults int64) *TargetPoolsAggregatedListCall
- func (c *TargetPoolsAggregatedListCall) PageToken(pageToken string) *TargetPoolsAggregatedListCall
- type TargetPoolsDeleteCall
- type TargetPoolsGetCall
- type TargetPoolsGetHealthCall
- type TargetPoolsInsertCall
- type TargetPoolsListCall
- func (c *TargetPoolsListCall) Do() (*TargetPoolList, error)
- func (c *TargetPoolsListCall) Fields(s ...googleapi.Field) *TargetPoolsListCall
- func (c *TargetPoolsListCall) Filter(filter string) *TargetPoolsListCall
- func (c *TargetPoolsListCall) MaxResults(maxResults int64) *TargetPoolsListCall
- func (c *TargetPoolsListCall) PageToken(pageToken string) *TargetPoolsListCall
- type 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
- type TargetReference
- type TestFailure
- type UrlMap
- type UrlMapList
- type UrlMapReference
- type UrlMapTest
- type UrlMapValidationResult
- type UrlMapsDeleteCall
- type UrlMapsGetCall
- type UrlMapsInsertCall
- type UrlMapsListCall
- func (c *UrlMapsListCall) Do() (*UrlMapList, error)
- func (c *UrlMapsListCall) Fields(s ...googleapi.Field) *UrlMapsListCall
- func (c *UrlMapsListCall) Filter(filter string) *UrlMapsListCall
- func (c *UrlMapsListCall) MaxResults(maxResults int64) *UrlMapsListCall
- func (c *UrlMapsListCall) PageToken(pageToken string) *UrlMapsListCall
- 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 Zone
- type ZoneList
- type ZoneMaintenanceWindows
- type ZoneOperationsDeleteCall
- type ZoneOperationsGetCall
- type ZoneOperationsListCall
- func (c *ZoneOperationsListCall) Do() (*OperationList, error)
- func (c *ZoneOperationsListCall) Fields(s ...googleapi.Field) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) Filter(filter string) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) MaxResults(maxResults int64) *ZoneOperationsListCall
- func (c *ZoneOperationsListCall) PageToken(pageToken string) *ZoneOperationsListCall
- 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) Do() (*ZoneList, error)
- func (c *ZonesListCall) Fields(s ...googleapi.Field) *ZonesListCall
- func (c *ZonesListCall) Filter(filter string) *ZonesListCall
- func (c *ZonesListCall) MaxResults(maxResults int64) *ZonesListCall
- func (c *ZonesListCall) PageToken(pageToken string) *ZonesListCall
- type ZonesService
Constants ¶
const (
// 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
DevstorageFull_controlScope = "https://www.googleapis.com/auth/devstorage.full_control"
// View your data in Google Cloud Storage
DevstorageRead_onlyScope = "https://www.googleapis.com/auth/devstorage.read_only"
// Manage your data in Google Cloud Storage
DevstorageRead_writeScope = "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: Type of the resource.
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 IP address available to the project. If not
// specified, the external IP will be drawn from a shared ephemeral
// pool.
NatIP string `json:"natIP,omitempty"`
// Type: Type of configuration. Must be set to "ONE_TO_ONE_NAT". This
// configures port-for-port NAT to the internet.
Type string `json:"type,omitempty"`
}
type Address ¶
type Address struct {
// Address: The IP address represented by this resource.
Address string `json:"address,omitempty"`
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Description: An optional textual description of the resource;
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
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.
Name string `json:"name,omitempty"`
// Region: URL of the region where the regional address resides (output
// only). This field is not applicable to global addresses.
Region string `json:"region,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
// Status: The status of the address (output only).
Status string `json:"status,omitempty"`
// Users: The resources that are using this address resource.
Users []string `json:"users,omitempty"`
}
type AddressAggregatedList ¶
type AddressAggregatedList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: A map of scoped address lists.
Items map[string]AddressesScopedList `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type AddressList ¶
type AddressList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The address resources.
Items []*Address `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type AddressesAggregatedListCall ¶
type AddressesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*AddressesAggregatedListCall) Do ¶
func (c *AddressesAggregatedListCall) Do() (*AddressAggregatedList, error)
func (*AddressesAggregatedListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*AddressesAggregatedListCall) MaxResults ¶
func (c *AddressesAggregatedListCall) MaxResults(maxResults int64) *AddressesAggregatedListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*AddressesAggregatedListCall) PageToken ¶
func (c *AddressesAggregatedListCall) PageToken(pageToken string) *AddressesAggregatedListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type AddressesDeleteCall ¶
type AddressesDeleteCall struct {
// contains filtered or unexported fields
}
func (*AddressesDeleteCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type AddressesInsertCall ¶
type AddressesInsertCall struct {
// contains filtered or unexported fields
}
func (*AddressesInsertCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*AddressesListCall) MaxResults ¶
func (c *AddressesListCall) MaxResults(maxResults int64) *AddressesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
type AddressesScopedList ¶
type AddressesScopedList struct {
// Addresses: List of addresses contained in this scope.
Addresses []*Address `json:"addresses,omitempty"`
// Warning: Informational warning which replaces the list of addresses
// when the list is empty.
Warning *AddressesScopedListWarning `json:"warning,omitempty"`
}
type AddressesScopedListWarning ¶
type AddressesScopedListWarning struct {
// Code: The warning type identifier for this warning.
Code string `json:"code,omitempty"`
// Data: Metadata for this warning in 'key: value' format.
Data []*AddressesScopedListWarningData `json:"data,omitempty"`
// Message: Optional human-readable details for this warning.
Message string `json:"message,omitempty"`
}
type AddressesScopedListWarningData ¶
type AddressesScopedListWarningData struct {
// Key: A key for the warning data.
Key string `json:"key,omitempty"`
// Value: A warning data value corresponding to the key.
Value string `json:"value,omitempty"`
}
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 the list of addresses grouped by scope.
func (*AddressesService) Delete ¶
func (r *AddressesService) Delete(project string, region string, address string) *AddressesDeleteCall
Delete: Deletes the specified address resource.
func (*AddressesService) Get ¶
func (r *AddressesService) Get(project string, region string, address string) *AddressesGetCall
Get: Returns the specified address resource.
type AttachedDisk ¶
type AttachedDisk struct {
// AutoDelete: 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. VM will use the first
// partition of the disk for its root filesystem.
Boot bool `json:"boot,omitempty"`
// DeviceName: Persistent disk only; must be unique within the instance
// when specified. This represents a unique device name that is
// reflected into the /dev/ tree of a Linux operating system running
// within the instance. If not specified, a default will be chosen by
// the system.
DeviceName string `json:"deviceName,omitempty"`
// Index: A zero-based index to assign to this disk, where 0 is reserved
// for the boot disk. If not specified, the server will choose an
// appropriate value (output only).
Index int64 `json:"index,omitempty"`
// InitializeParams: Initialization parameters.
InitializeParams *AttachedDiskInitializeParams `json:"initializeParams,omitempty"`
Interface string `json:"interface,omitempty"`
// Kind: Type of the resource.
Kind string `json:"kind,omitempty"`
// Licenses: Public visible licenses.
Licenses []string `json:"licenses,omitempty"`
// Mode: The mode in which to attach this disk, either "READ_WRITE" or
// "READ_ONLY".
Mode string `json:"mode,omitempty"`
// Source: Persistent disk only; the URL of the persistent disk
// resource.
Source string `json:"source,omitempty"`
// Type: Type of the disk, either "SCRATCH" or "PERSISTENT". Note that
// persistent disks must be created before you can specify them here.
Type string `json:"type,omitempty"`
}
type AttachedDiskInitializeParams ¶
type AttachedDiskInitializeParams struct {
// DiskName: Name of the disk (when not provided defaults to the name of
// the instance).
DiskName string `json:"diskName,omitempty"`
// DiskSizeGb: Size of the disk in base-2 GB.
DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`
// DiskType: URL of the disk type resource describing which disk type to
// use to create the disk; provided by the client when the disk is
// created.
DiskType string `json:"diskType,omitempty"`
// SourceImage: The source image used to create this disk.
SourceImage string `json:"sourceImage,omitempty"`
}
type Backend ¶
type Backend struct {
// BalancingMode: The balancing mode of this backend, default is
// UTILIZATION.
BalancingMode string `json:"balancingMode,omitempty"`
// CapacityScaler: The multiplier (a value between 0 and 1e6) of the max
// capacity (CPU or RPS, depending on 'balancingMode') the group should
// serve up to. 0 means the group is totally drained. Default value is
// 1. Valid range is [0, 1e6].
CapacityScaler float64 `json:"capacityScaler,omitempty"`
// Description: An optional textual description of the resource, which
// is provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// Group: URL of a zonal Cloud Resource View resource. This resource
// view defines the list of instances that serve traffic. Member virtual
// machine instances from each resource view must live in the same zone
// as the resource view itself. No two backends in a backend service are
// allowed to use same Resource View resource.
Group string `json:"group,omitempty"`
// MaxRate: The max RPS of the group. Can be used with either balancing
// mode, but required if RATE mode. For RATE mode, either maxRate or
// maxRatePerInstance must be set.
MaxRate int64 `json:"maxRate,omitempty"`
// MaxRatePerInstance: The max RPS that a single backed 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, 1].
MaxUtilization float64 `json:"maxUtilization,omitempty"`
}
type BackendService ¶
type BackendService struct {
// Backends: The list of backends that serve this BackendService.
Backends []*Backend `json:"backends,omitempty"`
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Description: An optional textual description of the resource;
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// 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 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: Unique identifier for the resource; defined by the server (output
// only).
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.
Name string `json:"name,omitempty"`
// Port: Deprecated in favor of port_name. 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
// resource views referenced by this service. Required.
PortName string `json:"portName,omitempty"`
Protocol string `json:"protocol,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
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"`
}
type BackendServiceGroupHealth ¶
type BackendServiceGroupHealth struct {
HealthStatus []*HealthStatus `json:"healthStatus,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
}
type BackendServiceList ¶
type BackendServiceList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The BackendService resources.
Items []*BackendService `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type BackendServicesDeleteCall ¶
type BackendServicesDeleteCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesDeleteCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type BackendServicesGetHealthCall ¶
type BackendServicesGetHealthCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesGetHealthCall) Do ¶
func (c *BackendServicesGetHealthCall) Do() (*BackendServiceGroupHealth, error)
func (*BackendServicesGetHealthCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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) Do ¶
func (c *BackendServicesListCall) Do() (*BackendServiceList, error)
func (*BackendServicesListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*BackendServicesListCall) MaxResults ¶
func (c *BackendServicesListCall) MaxResults(maxResults int64) *BackendServicesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
type BackendServicesPatchCall ¶
type BackendServicesPatchCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesPatchCall) Fields ¶ added in v0.2.1
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.
func (*BackendServicesService) Get ¶
func (r *BackendServicesService) Get(project string, backendService string) *BackendServicesGetCall
Get: Returns the specified BackendService resource.
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.
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.
func (*BackendServicesService) List ¶
func (r *BackendServicesService) List(project string) *BackendServicesListCall
List: Retrieves the list of BackendService resources available to the specified project.
type BackendServicesUpdateCall ¶
type BackendServicesUpdateCall struct {
// contains filtered or unexported fields
}
func (*BackendServicesUpdateCall) Fields ¶ added in v0.2.1
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: A URL of the suggested replacement for the deprecated
// resource. The deprecated resource and its replacement must be
// resources of the same kind.
Replacement string `json:"replacement,omitempty"`
// State: The deprecation state. 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.
// New uses of "OBSOLETE" or "DELETED" resources will result in an
// error.
State string `json:"state,omitempty"`
}
type Disk ¶
type Disk struct {
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Description: An optional textual description of the resource;
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id uint64 `json:"id,omitempty,string"`
// Kind: Type of the resource.
Kind string `json:"kind,omitempty"`
// Licenses: Public 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.
Name string `json:"name,omitempty"`
// Options: Internal use only.
Options string `json:"options,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
// SizeGb: Size of the persistent disk, specified in GB. This parameter
// is optional when creating a disk from a disk image or a snapshot,
// otherwise it is required.
SizeGb int64 `json:"sizeGb,omitempty,string"`
// SourceImage: The source image used to create this disk.
SourceImage string `json:"sourceImage,omitempty"`
// SourceImageId: The 'id' value of the image used to create this disk.
// This value may be used to determine whether the disk was created from
// the current or a previous instance of a given image.
SourceImageId string `json:"sourceImageId,omitempty"`
// SourceSnapshot: The source snapshot used to create this disk.
SourceSnapshot string `json:"sourceSnapshot,omitempty"`
// SourceSnapshotId: The 'id' value of the snapshot used to create this
// disk. This value may be used to determine whether the disk was
// created from the current or a previous instance of a given disk
// snapshot.
SourceSnapshotId string `json:"sourceSnapshotId,omitempty"`
// Status: The status of disk creation (output only).
Status string `json:"status,omitempty"`
// Type: URL of the disk type resource describing which disk type to use
// to create the disk; provided by the client when the disk is created.
Type string `json:"type,omitempty"`
// Zone: URL of the zone where the disk resides (output only).
Zone string `json:"zone,omitempty"`
}
type DiskAggregatedList ¶
type DiskAggregatedList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: A map of scoped disk lists.
Items map[string]DisksScopedList `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type DiskList ¶
type DiskList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The persistent disk resources.
Items []*Disk `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type DiskType ¶
type DiskType struct {
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// DefaultDiskSizeGb: Server defined default disk size in gb (output
// only).
DefaultDiskSizeGb int64 `json:"defaultDiskSizeGb,omitempty,string"`
// Deprecated: The deprecation status associated with this disk type.
Deprecated *DeprecationStatus `json:"deprecated,omitempty"`
// Description: An optional textual description of the resource.
Description string `json:"description,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id uint64 `json:"id,omitempty,string"`
// Kind: Type of the resource.
Kind string `json:"kind,omitempty"`
// Name: Name of the resource.
Name string `json:"name,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
// ValidDiskSize: An optional textual descroption of the valid disk
// size, e.g., "10GB-10TB".
ValidDiskSize string `json:"validDiskSize,omitempty"`
// Zone: Url of the zone where the disk type resides (output only).
Zone string `json:"zone,omitempty"`
}
type DiskTypeAggregatedList ¶
type DiskTypeAggregatedList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: A map of scoped disk type lists.
Items map[string]DiskTypesScopedList `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type DiskTypeList ¶
type DiskTypeList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The disk type resources.
Items []*DiskType `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type DiskTypesAggregatedListCall ¶
type DiskTypesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*DiskTypesAggregatedListCall) Do ¶
func (c *DiskTypesAggregatedListCall) Do() (*DiskTypeAggregatedList, error)
func (*DiskTypesAggregatedListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*DiskTypesAggregatedListCall) MaxResults ¶
func (c *DiskTypesAggregatedListCall) MaxResults(maxResults int64) *DiskTypesAggregatedListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*DiskTypesAggregatedListCall) PageToken ¶
func (c *DiskTypesAggregatedListCall) PageToken(pageToken string) *DiskTypesAggregatedListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type DiskTypesGetCall ¶
type DiskTypesGetCall struct {
// contains filtered or unexported fields
}
func (*DiskTypesGetCall) Fields ¶ added in v0.2.1
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.
type DiskTypesListCall ¶
type DiskTypesListCall struct {
// contains filtered or unexported fields
}
func (*DiskTypesListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*DiskTypesListCall) MaxResults ¶
func (c *DiskTypesListCall) MaxResults(maxResults int64) *DiskTypesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
type DiskTypesScopedList ¶
type DiskTypesScopedList struct {
// DiskTypes: List of disk types contained in this scope.
DiskTypes []*DiskType `json:"diskTypes,omitempty"`
// Warning: Informational warning which replaces the list of disk types
// when the list is empty.
Warning *DiskTypesScopedListWarning `json:"warning,omitempty"`
}
type DiskTypesScopedListWarning ¶
type DiskTypesScopedListWarning struct {
// Code: The warning type identifier for this warning.
Code string `json:"code,omitempty"`
// Data: Metadata for this warning in 'key: value' format.
Data []*DiskTypesScopedListWarningData `json:"data,omitempty"`
// Message: Optional human-readable details for this warning.
Message string `json:"message,omitempty"`
}
type DiskTypesScopedListWarningData ¶
type DiskTypesScopedListWarningData struct {
// Key: A key for the warning data.
Key string `json:"key,omitempty"`
// Value: A warning data value corresponding to the key.
Value string `json:"value,omitempty"`
}
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 the list of disk type resources grouped by scope.
type DisksAggregatedListCall ¶
type DisksAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*DisksAggregatedListCall) Do ¶
func (c *DisksAggregatedListCall) Do() (*DiskAggregatedList, error)
func (*DisksAggregatedListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*DisksAggregatedListCall) MaxResults ¶
func (c *DisksAggregatedListCall) MaxResults(maxResults int64) *DisksAggregatedListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
type DisksCreateSnapshotCall ¶
type DisksCreateSnapshotCall struct {
// contains filtered or unexported fields
}
func (*DisksCreateSnapshotCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type DisksInsertCall ¶
type DisksInsertCall struct {
// contains filtered or unexported fields
}
func (*DisksInsertCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*DisksListCall) MaxResults ¶
func (c *DisksListCall) MaxResults(maxResults int64) *DisksListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
type DisksScopedList ¶
type DisksScopedList struct {
// Disks: List of disks contained in this scope.
Disks []*Disk `json:"disks,omitempty"`
// Warning: Informational warning which replaces the list of disks when
// the list is empty.
Warning *DisksScopedListWarning `json:"warning,omitempty"`
}
type DisksScopedListWarning ¶
type DisksScopedListWarning struct {
// Code: The warning type identifier for this warning.
Code string `json:"code,omitempty"`
// Data: Metadata for this warning in 'key: value' format.
Data []*DisksScopedListWarningData `json:"data,omitempty"`
// Message: Optional human-readable details for this warning.
Message string `json:"message,omitempty"`
}
type DisksScopedListWarningData ¶
type DisksScopedListWarningData struct {
// Key: A key for the warning data.
Key string `json:"key,omitempty"`
// Value: A warning data value corresponding to the key.
Value string `json:"value,omitempty"`
}
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 the list of disks grouped by scope.
func (*DisksService) CreateSnapshot ¶
func (r *DisksService) CreateSnapshot(project string, zone string, disk string, snapshot *Snapshot) *DisksCreateSnapshotCall
CreateSnapshot:
func (*DisksService) Delete ¶
func (r *DisksService) Delete(project string, zone string, disk string) *DisksDeleteCall
Delete: Deletes the specified persistent disk resource.
func (*DisksService) Get ¶
func (r *DisksService) Get(project string, zone string, disk string) *DisksGetCall
Get: Returns the specified persistent disk resource.
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: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Description: An optional textual description of the resource;
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
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.
Name string `json:"name,omitempty"`
// Network: URL of the network to which this firewall is applied;
// provided by the client when the firewall is created.
Network string `json:"network,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
// SourceRanges: A list of IP address blocks expressed in CIDR format
// which this rule applies to. One or both of sourceRanges and
// sourceTags may be set; an inbound connection is allowed if either the
// range or the tag of the source matches.
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; an inbound
// connection is allowed if either the range or the tag of the source
// matches.
SourceTags []string `json:"sourceTags,omitempty"`
// TargetTags: A list of instance tags indicating sets of instances
// located on network which 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"`
}
type FirewallAllowed ¶
type FirewallAllowed struct {
// IPProtocol: Required; this is the IP protocol that is allowed for
// this rule. This 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. It is an error to
// specify this for any protocol that isn't UDP or TCP. 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"`
}
type FirewallList ¶
type FirewallList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The firewall resources.
Items []*Firewall `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type FirewallsDeleteCall ¶
type FirewallsDeleteCall struct {
// contains filtered or unexported fields
}
func (*FirewallsDeleteCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type FirewallsInsertCall ¶
type FirewallsInsertCall struct {
// contains filtered or unexported fields
}
func (*FirewallsInsertCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*FirewallsListCall) MaxResults ¶
func (c *FirewallsListCall) MaxResults(maxResults int64) *FirewallsListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
type FirewallsPatchCall ¶
type FirewallsPatchCall struct {
// contains filtered or unexported fields
}
func (*FirewallsPatchCall) Fields ¶ added in v0.2.1
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 resource.
func (*FirewallsService) Get ¶
func (r *FirewallsService) Get(project string, firewall string) *FirewallsGetCall
Get: Returns the specified firewall resource.
func (*FirewallsService) Insert ¶
func (r *FirewallsService) Insert(project string, firewall *Firewall) *FirewallsInsertCall
Insert: Creates a firewall resource in the specified project using the data included in the request.
func (*FirewallsService) List ¶
func (r *FirewallsService) List(project string) *FirewallsListCall
List: Retrieves the list of firewall resources available to the specified project.
type FirewallsUpdateCall ¶
type FirewallsUpdateCall struct {
// contains filtered or unexported fields
}
func (*FirewallsUpdateCall) Fields ¶ added in v0.2.1
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'.
IPProtocol string `json:"IPProtocol,omitempty"`
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Description: An optional textual description of the resource;
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
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.
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'. If 'portRange' is left empty (default
// value), all ports are forwarded. Forwarding rules with the same
// [IPAddress, IPProtocol] pair must have disjoint port ranges.
PortRange string `json:"portRange,omitempty"`
// Region: URL of the region where the regional forwarding rule resides
// (output only). This field is not applicable to global forwarding
// rules.
Region string `json:"region,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
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 resource.
Target string `json:"target,omitempty"`
}
type ForwardingRuleAggregatedList ¶
type ForwardingRuleAggregatedList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: A map of scoped forwarding rule lists.
Items map[string]ForwardingRulesScopedList `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type ForwardingRuleList ¶
type ForwardingRuleList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The ForwardingRule resources.
Items []*ForwardingRule `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type ForwardingRulesAggregatedListCall ¶
type ForwardingRulesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*ForwardingRulesAggregatedListCall) Do ¶
func (c *ForwardingRulesAggregatedListCall) Do() (*ForwardingRuleAggregatedList, error)
func (*ForwardingRulesAggregatedListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*ForwardingRulesAggregatedListCall) MaxResults ¶
func (c *ForwardingRulesAggregatedListCall) MaxResults(maxResults int64) *ForwardingRulesAggregatedListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*ForwardingRulesAggregatedListCall) PageToken ¶
func (c *ForwardingRulesAggregatedListCall) PageToken(pageToken string) *ForwardingRulesAggregatedListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type ForwardingRulesDeleteCall ¶
type ForwardingRulesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ForwardingRulesDeleteCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type ForwardingRulesInsertCall ¶
type ForwardingRulesInsertCall struct {
// contains filtered or unexported fields
}
func (*ForwardingRulesInsertCall) Fields ¶ added in v0.2.1
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) Do ¶
func (c *ForwardingRulesListCall) Do() (*ForwardingRuleList, error)
func (*ForwardingRulesListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*ForwardingRulesListCall) MaxResults ¶
func (c *ForwardingRulesListCall) MaxResults(maxResults int64) *ForwardingRulesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
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"`
}
type ForwardingRulesScopedListWarning ¶
type ForwardingRulesScopedListWarning struct {
// Code: The warning type identifier for this warning.
Code string `json:"code,omitempty"`
// Data: Metadata for this warning in 'key: value' format.
Data []*ForwardingRulesScopedListWarningData `json:"data,omitempty"`
// Message: Optional human-readable details for this warning.
Message string `json:"message,omitempty"`
}
type ForwardingRulesScopedListWarningData ¶
type ForwardingRulesScopedListWarningData struct {
// Key: A key for the warning data.
Key string `json:"key,omitempty"`
// Value: A warning data value corresponding to the key.
Value string `json:"value,omitempty"`
}
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 the list of forwarding rules grouped by scope.
func (*ForwardingRulesService) Delete ¶
func (r *ForwardingRulesService) Delete(project string, region string, forwardingRule string) *ForwardingRulesDeleteCall
Delete: Deletes the specified ForwardingRule resource.
func (*ForwardingRulesService) Get ¶
func (r *ForwardingRulesService) Get(project string, region string, forwardingRule string) *ForwardingRulesGetCall
Get: Returns the specified ForwardingRule resource.
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.
type ForwardingRulesSetTargetCall ¶
type ForwardingRulesSetTargetCall struct {
// contains filtered or unexported fields
}
func (*ForwardingRulesSetTargetCall) Do ¶
func (c *ForwardingRulesSetTargetCall) Do() (*Operation, error)
func (*ForwardingRulesSetTargetCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type GlobalAddressesInsertCall ¶
type GlobalAddressesInsertCall struct {
// contains filtered or unexported fields
}
func (*GlobalAddressesInsertCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*GlobalAddressesListCall) MaxResults ¶
func (c *GlobalAddressesListCall) MaxResults(maxResults int64) *GlobalAddressesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
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.
func (*GlobalAddressesService) Get ¶
func (r *GlobalAddressesService) Get(project string, address string) *GlobalAddressesGetCall
Get: Returns the specified address resource.
type GlobalForwardingRulesDeleteCall ¶
type GlobalForwardingRulesDeleteCall struct {
// contains filtered or unexported fields
}
func (*GlobalForwardingRulesDeleteCall) Do ¶
func (c *GlobalForwardingRulesDeleteCall) Do() (*Operation, error)
func (*GlobalForwardingRulesDeleteCall) Fields ¶ added in v0.2.1
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) Do ¶
func (c *GlobalForwardingRulesGetCall) Do() (*ForwardingRule, error)
func (*GlobalForwardingRulesGetCall) Fields ¶ added in v0.2.1
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.
type GlobalForwardingRulesInsertCall ¶
type GlobalForwardingRulesInsertCall struct {
// contains filtered or unexported fields
}
func (*GlobalForwardingRulesInsertCall) Do ¶
func (c *GlobalForwardingRulesInsertCall) Do() (*Operation, error)
func (*GlobalForwardingRulesInsertCall) Fields ¶ added in v0.2.1
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) Do ¶
func (c *GlobalForwardingRulesListCall) Do() (*ForwardingRuleList, error)
func (*GlobalForwardingRulesListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*GlobalForwardingRulesListCall) MaxResults ¶
func (c *GlobalForwardingRulesListCall) MaxResults(maxResults int64) *GlobalForwardingRulesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*GlobalForwardingRulesListCall) PageToken ¶
func (c *GlobalForwardingRulesListCall) PageToken(pageToken string) *GlobalForwardingRulesListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
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.
func (*GlobalForwardingRulesService) Get ¶
func (r *GlobalForwardingRulesService) Get(project string, forwardingRule string) *GlobalForwardingRulesGetCall
Get: Returns the specified ForwardingRule resource.
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.
type GlobalForwardingRulesSetTargetCall ¶
type GlobalForwardingRulesSetTargetCall struct {
// contains filtered or unexported fields
}
func (*GlobalForwardingRulesSetTargetCall) Do ¶
func (c *GlobalForwardingRulesSetTargetCall) Do() (*Operation, error)
func (*GlobalForwardingRulesSetTargetCall) Fields ¶ added in v0.2.1
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) Do ¶
func (c *GlobalOperationsAggregatedListCall) Do() (*OperationAggregatedList, error)
func (*GlobalOperationsAggregatedListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*GlobalOperationsAggregatedListCall) MaxResults ¶
func (c *GlobalOperationsAggregatedListCall) MaxResults(maxResults int64) *GlobalOperationsAggregatedListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*GlobalOperationsAggregatedListCall) PageToken ¶
func (c *GlobalOperationsAggregatedListCall) PageToken(pageToken string) *GlobalOperationsAggregatedListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type GlobalOperationsDeleteCall ¶
type GlobalOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*GlobalOperationsDeleteCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type GlobalOperationsListCall ¶
type GlobalOperationsListCall struct {
// contains filtered or unexported fields
}
func (*GlobalOperationsListCall) Do ¶
func (c *GlobalOperationsListCall) Do() (*OperationList, error)
func (*GlobalOperationsListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*GlobalOperationsListCall) MaxResults ¶
func (c *GlobalOperationsListCall) MaxResults(maxResults int64) *GlobalOperationsListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
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 the list of all operations grouped by scope.
func (*GlobalOperationsService) Delete ¶
func (r *GlobalOperationsService) Delete(project string, operation string) *GlobalOperationsDeleteCall
Delete: Deletes the specified operation resource.
type HealthCheckReference ¶
type HealthCheckReference struct {
HealthCheck string `json:"healthCheck,omitempty"`
}
type HealthStatus ¶
type HealthStatus struct {
// HealthState: Health state of the instance.
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"`
}
type HostRule ¶
type HostRule struct {
Description string `json:"description,omitempty"`
// Hosts: The list of host patterns to match. They must be valid
// hostnames except that they may start with *. or *-. The * acts like a
// glob and will match any string of atoms (separated by .s and -s) to
// the left.
Hosts []string `json:"hosts,omitempty"`
// PathMatcher: The name of the PathMatcher to match the path portion of
// the URL, if the this HostRule matches the URL's host portion.
PathMatcher string `json:"pathMatcher,omitempty"`
}
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: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Description: An optional textual description of the resource;
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// HealthyThreshold: A so-far unhealthy VM 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: Unique identifier for the resource; defined by the server (output
// only).
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.
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: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
// TimeoutSec: How long (in seconds) to wait before claiming failure.
// The default value is 5 seconds.
TimeoutSec int64 `json:"timeoutSec,omitempty"`
// UnhealthyThreshold: A so-far healthy VM will be marked unhealthy
// after this many consecutive failures. The default value is 2.
UnhealthyThreshold int64 `json:"unhealthyThreshold,omitempty"`
}
type HttpHealthCheckList ¶
type HttpHealthCheckList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The HttpHealthCheck resources.
Items []*HttpHealthCheck `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type HttpHealthChecksDeleteCall ¶
type HttpHealthChecksDeleteCall struct {
// contains filtered or unexported fields
}
func (*HttpHealthChecksDeleteCall) Do ¶
func (c *HttpHealthChecksDeleteCall) Do() (*Operation, error)
func (*HttpHealthChecksDeleteCall) Fields ¶ added in v0.2.1
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) Do ¶
func (c *HttpHealthChecksGetCall) Do() (*HttpHealthCheck, error)
func (*HttpHealthChecksGetCall) Fields ¶ added in v0.2.1
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.
type HttpHealthChecksInsertCall ¶
type HttpHealthChecksInsertCall struct {
// contains filtered or unexported fields
}
func (*HttpHealthChecksInsertCall) Do ¶
func (c *HttpHealthChecksInsertCall) Do() (*Operation, error)
func (*HttpHealthChecksInsertCall) Fields ¶ added in v0.2.1
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) Do ¶
func (c *HttpHealthChecksListCall) Do() (*HttpHealthCheckList, error)
func (*HttpHealthChecksListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*HttpHealthChecksListCall) MaxResults ¶
func (c *HttpHealthChecksListCall) MaxResults(maxResults int64) *HttpHealthChecksListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
type HttpHealthChecksPatchCall ¶
type HttpHealthChecksPatchCall struct {
// contains filtered or unexported fields
}
func (*HttpHealthChecksPatchCall) Fields ¶ added in v0.2.1
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.
func (*HttpHealthChecksService) Get ¶
func (r *HttpHealthChecksService) Get(project string, httpHealthCheck string) *HttpHealthChecksGetCall
Get: Returns the specified HttpHealthCheck resource.
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.
func (*HttpHealthChecksService) List ¶
func (r *HttpHealthChecksService) List(project string) *HttpHealthChecksListCall
List: Retrieves the list of HttpHealthCheck resources available to the specified project.
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.
type HttpHealthChecksUpdateCall ¶
type HttpHealthChecksUpdateCall struct {
// contains filtered or unexported fields
}
func (*HttpHealthChecksUpdateCall) Do ¶
func (c *HttpHealthChecksUpdateCall) Do() (*Operation, error)
func (*HttpHealthChecksUpdateCall) Fields ¶ added in v0.2.1
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 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: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Deprecated: The deprecation status associated with this image.
Deprecated *DeprecationStatus `json:"deprecated,omitempty"`
// Description: Textual description of the resource; provided by the
// client when the resource is created.
Description string `json:"description,omitempty"`
// DiskSizeGb: Size of the image when restored onto a disk (in GiB).
DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id uint64 `json:"id,omitempty,string"`
// Kind: Type of the resource.
Kind string `json:"kind,omitempty"`
// Licenses: Public 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.
Name string `json:"name,omitempty"`
// RawDisk: The raw disk image parameters.
RawDisk *ImageRawDisk `json:"rawDisk,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
// SourceDisk: The source disk used to create this image.
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: Must be "RAW"; provided by the client when the disk image
// is created.
SourceType string `json:"sourceType,omitempty"`
// Status: Status of the image (output only). It will be one of the
// following READY - after image has been successfully created and is
// ready for use FAILED - if creating the image fails for some reason
// PENDING - the image creation is in progress An image can be used to
// create other resources suck as instances only after the image has
// been successfully created and the status is set to READY.
Status string `json:"status,omitempty"`
}
type ImageList ¶
type ImageList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The disk image resources.
Items []*Image `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type ImageRawDisk ¶
type ImageRawDisk struct {
// ContainerType: The format used to encode and transmit the block
// device. 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.
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; provided by the client when the disk image is created.
Source string `json:"source,omitempty"`
}
type ImagesDeleteCall ¶
type ImagesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ImagesDeleteCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type ImagesInsertCall ¶
type ImagesInsertCall struct {
// contains filtered or unexported fields
}
func (*ImagesInsertCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*ImagesListCall) MaxResults ¶
func (c *ImagesListCall) MaxResults(maxResults int64) *ImagesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
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 resource.
func (*ImagesService) Deprecate ¶
func (r *ImagesService) Deprecate(project string, image string, deprecationstatus *DeprecationStatus) *ImagesDeprecateCall
Deprecate: Sets the deprecation status of an image. If no message body is given, clears the deprecation status instead.
func (*ImagesService) Get ¶
func (r *ImagesService) Get(project string, image string) *ImagesGetCall
Get: Returns the specified image resource.
type Instance ¶
type Instance struct {
// CanIpForward: Allows this instance to send packets with source IP
// addresses other than its own and receive packets with destination IP
// addresses other than its own. If this instance will be used as an IP
// gateway or it will be set as the next-hop in a Route resource, say
// true. If unsure, leave this set to false.
CanIpForward bool `json:"canIpForward,omitempty"`
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Description: An optional textual description of the resource;
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// Disks: Array of disks associated with this instance. Persistent disks
// must be created before you can assign them.
Disks []*AttachedDisk `json:"disks,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id uint64 `json:"id,omitempty,string"`
// Kind: Type of the resource.
Kind string `json:"kind,omitempty"`
// MachineType: URL of the machine type resource describing which
// machine type to use to host the instance; provided by the client when
// the instance is created.
MachineType string `json:"machineType,omitempty"`
// Metadata: Metadata key/value pairs assigned to this instance.
// Consists of custom metadata or predefined keys; see Instance
// documentation for more information.
Metadata *Metadata `json:"metadata,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.
Name string `json:"name,omitempty"`
// NetworkInterfaces: 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. 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.
NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"`
// Scheduling: Scheduling options for this instance.
Scheduling *Scheduling `json:"scheduling,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
// ServiceAccounts: A list of service accounts each with specified
// scopes, for which access tokens are to be made available to the
// instance through metadata queries.
ServiceAccounts []*ServiceAccount `json:"serviceAccounts,omitempty"`
// Status: Instance status. One of the following values: "PROVISIONING",
// "STAGING", "RUNNING", "STOPPING", "STOPPED", "TERMINATED" (output
// only).
Status string `json:"status,omitempty"`
// StatusMessage: An optional, human-readable explanation of the status
// (output only).
StatusMessage string `json:"statusMessage,omitempty"`
// Tags: A list of tags to be applied to this instance. Used to identify
// valid sources or targets for network firewalls. Provided by the
// client on 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: URL of the zone where the instance resides (output only).
Zone string `json:"zone,omitempty"`
}
type InstanceAggregatedList ¶
type InstanceAggregatedList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: A map of scoped instance lists.
Items map[string]InstancesScopedList `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type InstanceList ¶
type InstanceList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: A list of instance resources.
Items []*Instance `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type InstanceProperties ¶ added in v0.2.1
type InstanceProperties struct {
// CanIpForward: Allows 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, say true. If unsure, leave this set to
// false.
CanIpForward bool `json:"canIpForward,omitempty"`
// Description: An optional textual description for the instances
// created based on the instance template resource; provided by the
// client when the template is created.
Description string `json:"description,omitempty"`
// Disks: Array of disks associated with instance created based on this
// template.
Disks []*AttachedDisk `json:"disks,omitempty"`
// MachineType: Name of the machine type resource describing which
// machine type to use to host the instances created based on this
// template; provided by the client when the instance template is
// created.
MachineType string `json:"machineType,omitempty"`
// Metadata: Metadata key/value pairs assigned to instances created
// based on this template. Consists of custom metadata or predefined
// keys; see Instance documentation for more information.
Metadata *Metadata `json:"metadata,omitempty"`
// NetworkInterfaces: 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. Currently,
// ONE_TO_ONE_NAT is the only access config supported. If there are no
// accessConfigs specified, then this instances created based based on
// this template will have no external internet access.
NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"`
// Scheduling: Scheduling options for the instances created based on
// this template.
Scheduling *Scheduling `json:"scheduling,omitempty"`
// ServiceAccounts: A list of service accounts each with specified
// scopes, for which access tokens are to be made available to the
// instances created based on this template, through metadata queries.
ServiceAccounts []*ServiceAccount `json:"serviceAccounts,omitempty"`
// Tags: A list of tags to be applied to the instances created based on
// this template used to identify valid sources or targets for network
// firewalls. Provided by the client on 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"`
}
type InstanceReference ¶
type InstanceReference struct {
Instance string `json:"instance,omitempty"`
}
type InstanceTemplate ¶ added in v0.2.1
type InstanceTemplate struct {
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Description: An optional textual description of the instance template
// resource; provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id uint64 `json:"id,omitempty,string"`
// Kind: Type of the resource.
Kind string `json:"kind,omitempty"`
// Name: Name of the instance template resource; provided by the client
// when the resource is created. The name must be 1-63 characters long,
// and comply with RFC1035
Name string `json:"name,omitempty"`
// Properties: The instance properties portion of this instance template
// resource.
Properties *InstanceProperties `json:"properties,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type InstanceTemplateList ¶ added in v0.2.1
type InstanceTemplateList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: A list of instance template resources.
Items []*InstanceTemplate `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type InstanceTemplatesDeleteCall ¶ added in v0.2.1
type InstanceTemplatesDeleteCall struct {
// contains filtered or unexported fields
}
func (*InstanceTemplatesDeleteCall) Do ¶ added in v0.2.1
func (c *InstanceTemplatesDeleteCall) Do() (*Operation, error)
func (*InstanceTemplatesDeleteCall) Fields ¶ added in v0.2.1
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 ¶ added in v0.2.1
type InstanceTemplatesGetCall struct {
// contains filtered or unexported fields
}
func (*InstanceTemplatesGetCall) Do ¶ added in v0.2.1
func (c *InstanceTemplatesGetCall) Do() (*InstanceTemplate, error)
func (*InstanceTemplatesGetCall) Fields ¶ added in v0.2.1
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.
type InstanceTemplatesInsertCall ¶ added in v0.2.1
type InstanceTemplatesInsertCall struct {
// contains filtered or unexported fields
}
func (*InstanceTemplatesInsertCall) Do ¶ added in v0.2.1
func (c *InstanceTemplatesInsertCall) Do() (*Operation, error)
func (*InstanceTemplatesInsertCall) Fields ¶ added in v0.2.1
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 ¶ added in v0.2.1
type InstanceTemplatesListCall struct {
// contains filtered or unexported fields
}
func (*InstanceTemplatesListCall) Do ¶ added in v0.2.1
func (c *InstanceTemplatesListCall) Do() (*InstanceTemplateList, error)
func (*InstanceTemplatesListCall) Fields ¶ added in v0.2.1
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 ¶ added in v0.2.1
func (c *InstanceTemplatesListCall) Filter(filter string) *InstanceTemplatesListCall
Filter sets the optional parameter "filter": Filter expression for filtering listed resources.
func (*InstanceTemplatesListCall) MaxResults ¶ added in v0.2.1
func (c *InstanceTemplatesListCall) MaxResults(maxResults int64) *InstanceTemplatesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*InstanceTemplatesListCall) PageToken ¶ added in v0.2.1
func (c *InstanceTemplatesListCall) PageToken(pageToken string) *InstanceTemplatesListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type InstanceTemplatesService ¶ added in v0.2.1
type InstanceTemplatesService struct {
// contains filtered or unexported fields
}
func NewInstanceTemplatesService ¶ added in v0.2.1
func NewInstanceTemplatesService(s *Service) *InstanceTemplatesService
func (*InstanceTemplatesService) Delete ¶ added in v0.2.1
func (r *InstanceTemplatesService) Delete(project string, instanceTemplate string) *InstanceTemplatesDeleteCall
Delete: Deletes the specified instance template resource.
func (*InstanceTemplatesService) Get ¶ added in v0.2.1
func (r *InstanceTemplatesService) Get(project string, instanceTemplate string) *InstanceTemplatesGetCall
Get: Returns the specified instance template resource.
type InstancesAddAccessConfigCall ¶
type InstancesAddAccessConfigCall struct {
// contains filtered or unexported fields
}
func (*InstancesAddAccessConfigCall) Do ¶
func (c *InstancesAddAccessConfigCall) Do() (*Operation, error)
func (*InstancesAddAccessConfigCall) Fields ¶ added in v0.2.1
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) Do ¶
func (c *InstancesAggregatedListCall) Do() (*InstanceAggregatedList, error)
func (*InstancesAggregatedListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*InstancesAggregatedListCall) MaxResults ¶
func (c *InstancesAggregatedListCall) MaxResults(maxResults int64) *InstancesAggregatedListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*InstancesAggregatedListCall) PageToken ¶
func (c *InstancesAggregatedListCall) PageToken(pageToken string) *InstancesAggregatedListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type InstancesAttachDiskCall ¶
type InstancesAttachDiskCall struct {
// contains filtered or unexported fields
}
func (*InstancesAttachDiskCall) Fields ¶ added in v0.2.1
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) Do ¶
func (c *InstancesDeleteAccessConfigCall) Do() (*Operation, error)
func (*InstancesDeleteAccessConfigCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type InstancesGetSerialPortOutputCall ¶
type InstancesGetSerialPortOutputCall struct {
// contains filtered or unexported fields
}
func (*InstancesGetSerialPortOutputCall) Do ¶
func (c *InstancesGetSerialPortOutputCall) Do() (*SerialPortOutput, error)
func (*InstancesGetSerialPortOutputCall) Fields ¶ added in v0.2.1
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.
type InstancesInsertCall ¶
type InstancesInsertCall struct {
// contains filtered or unexported fields
}
func (*InstancesInsertCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*InstancesListCall) MaxResults ¶
func (c *InstancesListCall) MaxResults(maxResults int64) *InstancesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
type InstancesResetCall ¶
type InstancesResetCall struct {
// contains filtered or unexported fields
}
func (*InstancesResetCall) Fields ¶ added in v0.2.1
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: List of instances contained in this scope.
Instances []*Instance `json:"instances,omitempty"`
// Warning: Informational warning which replaces the list of instances
// when the list is empty.
Warning *InstancesScopedListWarning `json:"warning,omitempty"`
}
type InstancesScopedListWarning ¶
type InstancesScopedListWarning struct {
// Code: The warning type identifier for this warning.
Code string `json:"code,omitempty"`
// Data: Metadata for this warning in 'key: value' format.
Data []*InstancesScopedListWarningData `json:"data,omitempty"`
// Message: Optional human-readable details for this warning.
Message string `json:"message,omitempty"`
}
type InstancesScopedListWarningData ¶
type InstancesScopedListWarningData struct {
// Key: A key for the warning data.
Key string `json:"key,omitempty"`
// Value: A warning data value corresponding to the key.
Value string `json:"value,omitempty"`
}
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.
func (*InstancesService) AggregatedList ¶
func (r *InstancesService) AggregatedList(project string) *InstancesAggregatedListCall
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.
func (*InstancesService) Delete ¶
func (r *InstancesService) Delete(project string, zone string, instance string) *InstancesDeleteCall
Delete: Deletes the specified instance resource.
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.
func (*InstancesService) DetachDisk ¶
func (r *InstancesService) DetachDisk(project string, zone string, instance string, deviceName string) *InstancesDetachDiskCall
DetachDisk: Detaches a disk from an instance.
func (*InstancesService) Get ¶
func (r *InstancesService) Get(project string, zone string, instance string) *InstancesGetCall
Get: Returns the specified instance resource.
func (*InstancesService) GetSerialPortOutput ¶
func (r *InstancesService) GetSerialPortOutput(project string, zone string, instance string) *InstancesGetSerialPortOutputCall
GetSerialPortOutput: Returns the specified instance's serial port output.
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.
func (*InstancesService) List ¶
func (r *InstancesService) List(project string, zone string) *InstancesListCall
List: Retrieves the list of instance resources contained within the specified zone.
func (*InstancesService) Reset ¶
func (r *InstancesService) Reset(project string, zone string, instance string) *InstancesResetCall
Reset: Performs a hard reset on the instance.
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
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.
func (*InstancesService) SetScheduling ¶
func (r *InstancesService) SetScheduling(project string, zone string, instance string, scheduling *Scheduling) *InstancesSetSchedulingCall
SetScheduling: Sets an instance's scheduling options.
type InstancesSetDiskAutoDeleteCall ¶
type InstancesSetDiskAutoDeleteCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetDiskAutoDeleteCall) Do ¶
func (c *InstancesSetDiskAutoDeleteCall) Do() (*Operation, error)
func (*InstancesSetDiskAutoDeleteCall) Fields ¶ added in v0.2.1
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 InstancesSetMetadataCall ¶
type InstancesSetMetadataCall struct {
// contains filtered or unexported fields
}
func (*InstancesSetMetadataCall) Fields ¶ added in v0.2.1
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) Do ¶
func (c *InstancesSetSchedulingCall) Do() (*Operation, error)
func (*InstancesSetSchedulingCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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 License ¶
type License struct {
// ChargesUseFee: 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: Type of 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.
Name string `json:"name,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type LicensesGetCall ¶
type LicensesGetCall struct {
// contains filtered or unexported fields
}
func (*LicensesGetCall) Fields ¶ added in v0.2.1
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.
type LicensesService ¶
type LicensesService struct {
// contains filtered or unexported fields
}
func NewLicensesService ¶
func NewLicensesService(s *Service) *LicensesService
type MachineType ¶
type MachineType struct {
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Deprecated: The deprecation status associated with this machine type.
Deprecated *DeprecationStatus `json:"deprecated,omitempty"`
// Description: An optional textual description of the resource.
Description string `json:"description,omitempty"`
// GuestCpus: Count of CPUs exposed to the instance.
GuestCpus int64 `json:"guestCpus,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id uint64 `json:"id,omitempty,string"`
// ImageSpaceGb: Space allotted for the image, defined in GB.
ImageSpaceGb int64 `json:"imageSpaceGb,omitempty"`
// Kind: Type of the resource.
Kind string `json:"kind,omitempty"`
// MaximumPersistentDisks: Maximum persistent disks allowed.
MaximumPersistentDisks int64 `json:"maximumPersistentDisks,omitempty"`
// MaximumPersistentDisksSizeGb: Maximum total persistent disks size
// (GB) allowed.
MaximumPersistentDisksSizeGb int64 `json:"maximumPersistentDisksSizeGb,omitempty,string"`
// MemoryMb: Physical memory assigned to the instance, defined in MB.
MemoryMb int64 `json:"memoryMb,omitempty"`
// Name: Name of the resource.
Name string `json:"name,omitempty"`
// ScratchDisks: List of extended scratch disks assigned to the
// instance.
ScratchDisks []*MachineTypeScratchDisks `json:"scratchDisks,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
// Zone: Url of the zone where the machine type resides (output only).
Zone string `json:"zone,omitempty"`
}
type MachineTypeAggregatedList ¶
type MachineTypeAggregatedList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: A map of scoped machine type lists.
Items map[string]MachineTypesScopedList `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type MachineTypeList ¶
type MachineTypeList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The machine type resources.
Items []*MachineType `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type MachineTypeScratchDisks ¶
type MachineTypeScratchDisks struct {
// DiskGb: Size of the scratch disk, defined in GB.
DiskGb int64 `json:"diskGb,omitempty"`
}
type MachineTypesAggregatedListCall ¶
type MachineTypesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*MachineTypesAggregatedListCall) Do ¶
func (c *MachineTypesAggregatedListCall) Do() (*MachineTypeAggregatedList, error)
func (*MachineTypesAggregatedListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*MachineTypesAggregatedListCall) MaxResults ¶
func (c *MachineTypesAggregatedListCall) MaxResults(maxResults int64) *MachineTypesAggregatedListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*MachineTypesAggregatedListCall) PageToken ¶
func (c *MachineTypesAggregatedListCall) PageToken(pageToken string) *MachineTypesAggregatedListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type MachineTypesGetCall ¶
type MachineTypesGetCall struct {
// contains filtered or unexported fields
}
func (*MachineTypesGetCall) Fields ¶ added in v0.2.1
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.
type MachineTypesListCall ¶
type MachineTypesListCall struct {
// contains filtered or unexported fields
}
func (*MachineTypesListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*MachineTypesListCall) MaxResults ¶
func (c *MachineTypesListCall) MaxResults(maxResults int64) *MachineTypesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
type MachineTypesScopedList ¶
type MachineTypesScopedList struct {
// MachineTypes: List of machine types contained in this scope.
MachineTypes []*MachineType `json:"machineTypes,omitempty"`
// Warning: Informational warning which replaces the list of machine
// types when the list is empty.
Warning *MachineTypesScopedListWarning `json:"warning,omitempty"`
}
type MachineTypesScopedListWarning ¶
type MachineTypesScopedListWarning struct {
// Code: The warning type identifier for this warning.
Code string `json:"code,omitempty"`
// Data: Metadata for this warning in 'key: value' format.
Data []*MachineTypesScopedListWarningData `json:"data,omitempty"`
// Message: Optional human-readable details for this warning.
Message string `json:"message,omitempty"`
}
type MachineTypesScopedListWarningData ¶
type MachineTypesScopedListWarningData struct {
// Key: A key for the warning data.
Key string `json:"key,omitempty"`
// Value: A warning data value corresponding to the key.
Value string `json:"value,omitempty"`
}
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 the list of machine type resources grouped by scope.
type Metadata ¶
type Metadata struct {
// Fingerprint: Fingerprint of this resource. A hash of the metadata's
// contents. This field is used for optimistic locking. An up-to-date
// metadata fingerprint must be provided in order to modify 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: Type of the resource.
Kind string `json:"kind,omitempty"`
}
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"`
}
type Network ¶
type Network struct {
// IPv4Range: Required; 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"`
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Description: An optional textual description of the resource;
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// GatewayIPv4: An optional address that is used for default routing to
// other networks. This must be within the range specified by IPv4Range,
// and is typically the first usable address in that range. If not
// specified, the default value is the first usable address in
// IPv4Range.
GatewayIPv4 string `json:"gatewayIPv4,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
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.
Name string `json:"name,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type NetworkInterface ¶
type NetworkInterface struct {
// AccessConfigs: 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. 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: Name of the network interface, determined by the server; for
// network devices, these are e.g. eth0, eth1, etc. (output only).
Name string `json:"name,omitempty"`
// Network: URL of the network resource attached to this interface.
Network string `json:"network,omitempty"`
// NetworkIP: An optional IPV4 internal network address assigned to the
// instance for this network interface (output only).
NetworkIP string `json:"networkIP,omitempty"`
}
type NetworkList ¶
type NetworkList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The network resources.
Items []*Network `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type NetworksDeleteCall ¶
type NetworksDeleteCall struct {
// contains filtered or unexported fields
}
func (*NetworksDeleteCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type NetworksInsertCall ¶
type NetworksInsertCall struct {
// contains filtered or unexported fields
}
func (*NetworksInsertCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*NetworksListCall) MaxResults ¶
func (c *NetworksListCall) MaxResults(maxResults int64) *NetworksListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
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 resource.
func (*NetworksService) Get ¶
func (r *NetworksService) Get(project string, network string) *NetworksGetCall
Get: Returns the specified network resource.
type Operation ¶
type Operation struct {
// ClientOperationId: An optional identifier specified by the client
// when the mutation was initiated. Must be unique for all operation
// resources in the project (output only).
ClientOperationId string `json:"clientOperationId,omitempty"`
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// EndTime: The time that this operation was completed. This is in RFC
// 3339 format (output only).
EndTime string `json:"endTime,omitempty"`
// Error: If errors occurred during processing of this operation, this
// field will be populated (output only).
Error *OperationError `json:"error,omitempty"`
// HttpErrorMessage: If operation fails, the HTTP error message
// returned, e.g. NOT FOUND. (output only).
HttpErrorMessage string `json:"httpErrorMessage,omitempty"`
// HttpErrorStatusCode: If operation fails, the HTTP error status code
// returned, e.g. 404. (output only).
HttpErrorStatusCode int64 `json:"httpErrorStatusCode,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id uint64 `json:"id,omitempty,string"`
// InsertTime: The time that this operation was requested. This is in
// RFC 3339 format (output only).
InsertTime string `json:"insertTime,omitempty"`
// Kind: Type of the resource.
Kind string `json:"kind,omitempty"`
// Name: Name of the resource (output only).
Name string `json:"name,omitempty"`
// OperationType: Type of the operation. Examples include "insert",
// "update", and "delete" (output only).
OperationType string `json:"operationType,omitempty"`
// Progress: 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 at when
// the operation will be complete. This number should be monotonically
// increasing as the operation progresses (output only).
Progress int64 `json:"progress,omitempty"`
// Region: URL of the region where the operation resides (output only).
Region string `json:"region,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
// StartTime: The time that this operation was started by the server.
// This is in RFC 3339 format (output only).
StartTime string `json:"startTime,omitempty"`
// Status: Status of the operation. Can be one of the following:
// "PENDING", "RUNNING", or "DONE" (output only).
Status string `json:"status,omitempty"`
// StatusMessage: An optional textual description of the current status
// of the operation (output only).
StatusMessage string `json:"statusMessage,omitempty"`
// TargetId: Unique target id which identifies a particular incarnation
// of the target (output only).
TargetId uint64 `json:"targetId,omitempty,string"`
// TargetLink: URL of the resource the operation is mutating (output
// only).
TargetLink string `json:"targetLink,omitempty"`
// User: User who requested the operation, for example
// "user@example.com" (output only).
User string `json:"user,omitempty"`
// Warnings: If warning messages generated during processing of this
// operation, this field will be populated (output only).
Warnings []*OperationWarnings `json:"warnings,omitempty"`
// Zone: URL of the zone where the operation resides (output only).
Zone string `json:"zone,omitempty"`
}
type OperationAggregatedList ¶
type OperationAggregatedList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: A map of scoped operation lists.
Items map[string]OperationsScopedList `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type OperationError ¶
type OperationError struct {
// Errors: The array of errors encountered while processing this
// operation.
Errors []*OperationErrorErrors `json:"errors,omitempty"`
}
type OperationErrorErrors ¶
type OperationErrorErrors struct {
// Code: The error type identifier for this error.
Code string `json:"code,omitempty"`
// Location: Indicates the field in the request which caused the error.
// This property is optional.
Location string `json:"location,omitempty"`
// Message: An optional, human-readable error message.
Message string `json:"message,omitempty"`
}
type OperationList ¶
type OperationList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The operation resources.
Items []*Operation `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type OperationWarnings ¶
type OperationWarnings struct {
// Code: The warning type identifier for this warning.
Code string `json:"code,omitempty"`
// Data: Metadata for this warning in 'key: value' format.
Data []*OperationWarningsData `json:"data,omitempty"`
// Message: Optional human-readable details for this warning.
Message string `json:"message,omitempty"`
}
type OperationWarningsData ¶
type OperationWarningsData struct {
// Key: A key for the warning data.
Key string `json:"key,omitempty"`
// Value: A warning data value corresponding to the key.
Value string `json:"value,omitempty"`
}
type OperationsScopedList ¶
type OperationsScopedList struct {
// Operations: List of operations contained in this scope.
Operations []*Operation `json:"operations,omitempty"`
// Warning: Informational warning which replaces the list of operations
// when the list is empty.
Warning *OperationsScopedListWarning `json:"warning,omitempty"`
}
type OperationsScopedListWarning ¶
type OperationsScopedListWarning struct {
// Code: The warning type identifier for this warning.
Code string `json:"code,omitempty"`
// Data: Metadata for this warning in 'key: value' format.
Data []*OperationsScopedListWarningData `json:"data,omitempty"`
// Message: Optional human-readable details for this warning.
Message string `json:"message,omitempty"`
}
type OperationsScopedListWarningData ¶
type OperationsScopedListWarningData struct {
// Key: A key for the warning data.
Key string `json:"key,omitempty"`
// Value: A warning data value corresponding to the key.
Value string `json:"value,omitempty"`
}
type PathMatcher ¶
type PathMatcher struct {
// DefaultService: The URL to the BackendService resource. This will be
// used if none of the 'pathRules' defined by this PathMatcher is met by
// the URL's path portion.
DefaultService string `json:"defaultService,omitempty"`
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"`
}
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"`
}
type Project ¶
type Project struct {
// CommonInstanceMetadata: Metadata key/value pairs available to all
// instances contained in this project.
CommonInstanceMetadata *Metadata `json:"commonInstanceMetadata,omitempty"`
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Description: An optional textual description of the resource.
Description string `json:"description,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id uint64 `json:"id,omitempty,string"`
// Kind: Type of the resource.
Kind string `json:"kind,omitempty"`
// Name: Name of the resource.
Name string `json:"name,omitempty"`
// Quotas: Quotas assigned to this project.
Quotas []*Quota `json:"quotas,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
// UsageExportLocation: The location in Cloud Storage and naming method
// of the daily usage report.
UsageExportLocation *UsageExportLocation `json:"usageExportLocation,omitempty"`
}
type ProjectsGetCall ¶
type ProjectsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsGetCall) Fields ¶ added in v0.2.1
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.
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.
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.
func (*ProjectsService) SetUsageExportBucket ¶
func (r *ProjectsService) SetUsageExportBucket(project string, usageexportlocation *UsageExportLocation) *ProjectsSetUsageExportBucketCall
SetUsageExportBucket: Sets usage export location
type ProjectsSetCommonInstanceMetadataCall ¶
type ProjectsSetCommonInstanceMetadataCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSetCommonInstanceMetadataCall) Do ¶
func (c *ProjectsSetCommonInstanceMetadataCall) Do() (*Operation, error)
func (*ProjectsSetCommonInstanceMetadataCall) Fields ¶ added in v0.2.1
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) Do ¶
func (c *ProjectsSetUsageExportBucketCall) Do() (*Operation, error)
func (*ProjectsSetUsageExportBucketCall) Fields ¶ added in v0.2.1
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: Quota limit for this metric.
Limit float64 `json:"limit,omitempty"`
// Metric: Name of the quota metric.
Metric string `json:"metric,omitempty"`
// Usage: Current usage of this metric.
Usage float64 `json:"usage,omitempty"`
}
type Region ¶
type Region struct {
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Deprecated: The deprecation status associated with this region.
Deprecated *DeprecationStatus `json:"deprecated,omitempty"`
// Description: Textual description of the resource.
Description string `json:"description,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id uint64 `json:"id,omitempty,string"`
// Kind: Type of the resource.
Kind string `json:"kind,omitempty"`
// Name: Name of the resource.
Name string `json:"name,omitempty"`
// Quotas: Quotas assigned to this region.
Quotas []*Quota `json:"quotas,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
// Status: Status of the region, "UP" or "DOWN".
Status string `json:"status,omitempty"`
// Zones: A list of zones homed in this region, in the form of resource
// URLs.
Zones []string `json:"zones,omitempty"`
}
type RegionList ¶
type RegionList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The region resources.
Items []*Region `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type RegionOperationsDeleteCall ¶
type RegionOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionOperationsDeleteCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type RegionOperationsListCall ¶
type RegionOperationsListCall struct {
// contains filtered or unexported fields
}
func (*RegionOperationsListCall) Do ¶
func (c *RegionOperationsListCall) Do() (*OperationList, error)
func (*RegionOperationsListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*RegionOperationsListCall) MaxResults ¶
func (c *RegionOperationsListCall) MaxResults(maxResults int64) *RegionOperationsListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
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 operation resource.
type RegionsGetCall ¶
type RegionsGetCall struct {
// contains filtered or unexported fields
}
func (*RegionsGetCall) Fields ¶ added in v0.2.1
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.
type RegionsListCall ¶
type RegionsListCall struct {
// contains filtered or unexported fields
}
func (*RegionsListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*RegionsListCall) MaxResults ¶
func (c *RegionsListCall) MaxResults(maxResults int64) *RegionsListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
type RegionsService ¶
type RegionsService struct {
// contains filtered or unexported fields
}
func NewRegionsService ¶
func NewRegionsService(s *Service) *RegionsService
type ResourceGroupReference ¶
type ResourceGroupReference struct {
// Group: A URI referencing one of the resource views listed in the
// backend service.
Group string `json:"group,omitempty"`
}
type Route ¶
type Route struct {
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Description: An optional textual description of the resource;
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// DestRange: Which packets does this route apply to?
DestRange string `json:"destRange,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
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.
Name string `json:"name,omitempty"`
// Network: URL of the network to which this route is applied; provided
// by the client when the route is created.
Network string `json:"network,omitempty"`
// NextHopGateway: The URL to a gateway that should handle matching
// packets.
NextHopGateway string `json:"nextHopGateway,omitempty"`
// NextHopInstance: The URL to an instance that should handle matching
// packets.
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"`
// Priority: Breaks ties between Routes of equal specificity. Routes
// with smaller values win when tied with routes with larger values.
Priority int64 `json:"priority,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
// Tags: A list of instance tags to which this route applies.
Tags []string `json:"tags,omitempty"`
// Warnings: If potential misconfigurations are detected for this route,
// this field will be populated with warning messages.
Warnings []*RouteWarnings `json:"warnings,omitempty"`
}
type RouteList ¶
type RouteList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The route resources.
Items []*Route `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type RouteWarnings ¶
type RouteWarnings struct {
// Code: The warning type identifier for this warning.
Code string `json:"code,omitempty"`
// Data: Metadata for this warning in 'key: value' format.
Data []*RouteWarningsData `json:"data,omitempty"`
// Message: Optional human-readable details for this warning.
Message string `json:"message,omitempty"`
}
type RouteWarningsData ¶
type RouteWarningsData struct {
// Key: A key for the warning data.
Key string `json:"key,omitempty"`
// Value: A warning data value corresponding to the key.
Value string `json:"value,omitempty"`
}
type RoutesDeleteCall ¶
type RoutesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RoutesDeleteCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type RoutesInsertCall ¶
type RoutesInsertCall struct {
// contains filtered or unexported fields
}
func (*RoutesInsertCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*RoutesListCall) MaxResults ¶
func (c *RoutesListCall) MaxResults(maxResults int64) *RoutesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
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.
func (*RoutesService) Get ¶
func (r *RoutesService) Get(project string, route string) *RoutesGetCall
Get: Returns the specified route resource.
type Scheduling ¶
type Scheduling struct {
// AutomaticRestart: Whether the Instance should be automatically
// restarted whenever it is terminated by Compute Engine (not terminated
// by user).
AutomaticRestart bool `json:"automaticRestart,omitempty"`
// OnHostMaintenance: How the instance should behave when the host
// machine undergoes maintenance that may temporarily impact instance
// performance.
OnHostMaintenance string `json:"onHostMaintenance,omitempty"`
}
type SerialPortOutput ¶
type SerialPortOutput struct {
// Contents: The contents of the console output.
Contents string `json:"contents,omitempty"`
// Kind: Type of the resource.
Kind string `json:"kind,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type Service ¶
type Service struct {
BasePath string // API endpoint base URL
Addresses *AddressesService
BackendServices *BackendServicesService
DiskTypes *DiskTypesService
Disks *DisksService
Firewalls *FirewallsService
ForwardingRules *ForwardingRulesService
GlobalAddresses *GlobalAddressesService
GlobalForwardingRules *GlobalForwardingRulesService
GlobalOperations *GlobalOperationsService
HttpHealthChecks *HttpHealthChecksService
Images *ImagesService
InstanceTemplates *InstanceTemplatesService
Instances *InstancesService
Licenses *LicensesService
MachineTypes *MachineTypesService
Networks *NetworksService
Projects *ProjectsService
RegionOperations *RegionOperationsService
Regions *RegionsService
Routes *RoutesService
Snapshots *SnapshotsService
TargetHttpProxies *TargetHttpProxiesService
TargetInstances *TargetInstancesService
TargetPools *TargetPoolsService
UrlMaps *UrlMapsService
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"`
}
type Snapshot ¶
type Snapshot struct {
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Description: An optional textual description of the resource;
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// DiskSizeGb: Size of the persistent disk snapshot, specified in GB
// (output only).
DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id uint64 `json:"id,omitempty,string"`
// Kind: Type of the resource.
Kind string `json:"kind,omitempty"`
// Licenses: Public 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.
Name string `json:"name,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
// SourceDisk: The source disk used to create this snapshot.
SourceDisk string `json:"sourceDisk,omitempty"`
// SourceDiskId: 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: The status of the persistent disk snapshot (output only).
Status string `json:"status,omitempty"`
// StorageBytes: 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: An indicator whether storageBytes is in a stable
// state, or it is being adjusted as a result of shared storage
// reallocation.
StorageBytesStatus string `json:"storageBytesStatus,omitempty"`
}
type SnapshotList ¶
type SnapshotList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The persistent snapshot resources.
Items []*Snapshot `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type SnapshotsDeleteCall ¶
type SnapshotsDeleteCall struct {
// contains filtered or unexported fields
}
func (*SnapshotsDeleteCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type SnapshotsListCall ¶
type SnapshotsListCall struct {
// contains filtered or unexported fields
}
func (*SnapshotsListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*SnapshotsListCall) MaxResults ¶
func (c *SnapshotsListCall) MaxResults(maxResults int64) *SnapshotsListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
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 persistent disk snapshot resource.
type Tags ¶
type Tags struct {
// Fingerprint: Fingerprint of this resource. A hash of the tags stored
// in this object. This field is used optimistic locking. An up-to-date
// tags fingerprint must be provided in order to modify tags.
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"`
}
type TargetHttpProxiesDeleteCall ¶
type TargetHttpProxiesDeleteCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpProxiesDeleteCall) Do ¶
func (c *TargetHttpProxiesDeleteCall) Do() (*Operation, error)
func (*TargetHttpProxiesDeleteCall) Fields ¶ added in v0.2.1
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) Do ¶
func (c *TargetHttpProxiesGetCall) Do() (*TargetHttpProxy, error)
func (*TargetHttpProxiesGetCall) Fields ¶ added in v0.2.1
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.
type TargetHttpProxiesInsertCall ¶
type TargetHttpProxiesInsertCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpProxiesInsertCall) Do ¶
func (c *TargetHttpProxiesInsertCall) Do() (*Operation, error)
func (*TargetHttpProxiesInsertCall) Fields ¶ added in v0.2.1
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) Do ¶
func (c *TargetHttpProxiesListCall) Do() (*TargetHttpProxyList, error)
func (*TargetHttpProxiesListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*TargetHttpProxiesListCall) MaxResults ¶
func (c *TargetHttpProxiesListCall) MaxResults(maxResults int64) *TargetHttpProxiesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
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.
func (*TargetHttpProxiesService) Get ¶
func (r *TargetHttpProxiesService) Get(project string, targetHttpProxy string) *TargetHttpProxiesGetCall
Get: Returns the specified TargetHttpProxy resource.
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.
type TargetHttpProxiesSetUrlMapCall ¶
type TargetHttpProxiesSetUrlMapCall struct {
// contains filtered or unexported fields
}
func (*TargetHttpProxiesSetUrlMapCall) Do ¶
func (c *TargetHttpProxiesSetUrlMapCall) Do() (*Operation, error)
func (*TargetHttpProxiesSetUrlMapCall) Fields ¶ added in v0.2.1
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: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Description: An optional textual description of the resource;
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
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.
Name string `json:"name,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
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"`
}
type TargetHttpProxyList ¶
type TargetHttpProxyList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The TargetHttpProxy resources.
Items []*TargetHttpProxy `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type TargetInstance ¶
type TargetInstance struct {
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Description: An optional textual description of the resource;
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id uint64 `json:"id,omitempty,string"`
// Instance: The URL to the instance that terminates the relevant
// traffic.
Instance string `json:"instance,omitempty"`
// 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.
Name string `json:"name,omitempty"`
// NatPolicy: NAT option controlling how IPs are NAT'ed to the VM.
// Currently only NO_NAT (default value) is supported.
NatPolicy string `json:"natPolicy,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
// Zone: URL of the zone where the target instance resides (output
// only).
Zone string `json:"zone,omitempty"`
}
type TargetInstanceAggregatedList ¶
type TargetInstanceAggregatedList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
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: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type TargetInstanceList ¶
type TargetInstanceList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The TargetInstance resources.
Items []*TargetInstance `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type TargetInstancesAggregatedListCall ¶
type TargetInstancesAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*TargetInstancesAggregatedListCall) Do ¶
func (c *TargetInstancesAggregatedListCall) Do() (*TargetInstanceAggregatedList, error)
func (*TargetInstancesAggregatedListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*TargetInstancesAggregatedListCall) MaxResults ¶
func (c *TargetInstancesAggregatedListCall) MaxResults(maxResults int64) *TargetInstancesAggregatedListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*TargetInstancesAggregatedListCall) PageToken ¶
func (c *TargetInstancesAggregatedListCall) PageToken(pageToken string) *TargetInstancesAggregatedListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type TargetInstancesDeleteCall ¶
type TargetInstancesDeleteCall struct {
// contains filtered or unexported fields
}
func (*TargetInstancesDeleteCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type TargetInstancesInsertCall ¶
type TargetInstancesInsertCall struct {
// contains filtered or unexported fields
}
func (*TargetInstancesInsertCall) Fields ¶ added in v0.2.1
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) Do ¶
func (c *TargetInstancesListCall) Do() (*TargetInstanceList, error)
func (*TargetInstancesListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*TargetInstancesListCall) MaxResults ¶
func (c *TargetInstancesListCall) MaxResults(maxResults int64) *TargetInstancesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
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"`
}
type TargetInstancesScopedListWarning ¶
type TargetInstancesScopedListWarning struct {
// Code: The warning type identifier for this warning.
Code string `json:"code,omitempty"`
// Data: Metadata for this warning in 'key: value' format.
Data []*TargetInstancesScopedListWarningData `json:"data,omitempty"`
// Message: Optional human-readable details for this warning.
Message string `json:"message,omitempty"`
}
type TargetInstancesScopedListWarningData ¶
type TargetInstancesScopedListWarningData struct {
// Key: A key for the warning data.
Key string `json:"key,omitempty"`
// Value: A warning data value corresponding to the key.
Value string `json:"value,omitempty"`
}
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 the list of target instances grouped by scope.
func (*TargetInstancesService) Delete ¶
func (r *TargetInstancesService) Delete(project string, zone string, targetInstance string) *TargetInstancesDeleteCall
Delete: Deletes the specified TargetInstance resource.
func (*TargetInstancesService) Get ¶
func (r *TargetInstancesService) Get(project string, zone string, targetInstance string) *TargetInstancesGetCall
Get: Returns the specified TargetInstance resource.
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 VMs
// 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 VMs 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 VMs with the best effort, or to all VMs when no VM is
// healthy.
BackupPool string `json:"backupPool,omitempty"`
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Description: An optional textual description of the resource;
// provided by the client when the resource is created.
Description string `json:"description,omitempty"`
// 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 VMs 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
// VMs 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 VMs with the best effort, or to all VMs when no
// VM is healthy.
FailoverRatio float64 `json:"failoverRatio,omitempty"`
// HealthChecks: A list of URLs to the HttpHealthCheck resource. A
// member VM in this pool is considered healthy if and only if all
// specified health checks pass. An empty list means all member VMs will
// be considered healthy at all times.
HealthChecks []string `json:"healthChecks,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id uint64 `json:"id,omitempty,string"`
// Instances: A list of resource URLs to the member VMs serving this
// pool. They must live in zones contained in the same region as this
// pool.
Instances []string `json:"instances,omitempty"`
// 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.
Name string `json:"name,omitempty"`
// Region: URL of the region where the target pool resides (output
// only).
Region string `json:"region,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
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 VM in the pool; 'CLIENT_IP': Connections from the same client
// IP will go to the same VM in the pool while that VM remains healthy.
// 'CLIENT_IP_PROTO': Connections from the same client IP with the same
// IP protocol will go to the same VM in the pool while that VM remains
// healthy.
SessionAffinity string `json:"sessionAffinity,omitempty"`
}
type TargetPoolAggregatedList ¶
type TargetPoolAggregatedList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: A map of scoped target pool lists.
Items map[string]TargetPoolsScopedList `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type TargetPoolInstanceHealth ¶
type TargetPoolInstanceHealth struct {
HealthStatus []*HealthStatus `json:"healthStatus,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
}
type TargetPoolList ¶
type TargetPoolList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The TargetPool resources.
Items []*TargetPool `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type TargetPoolsAddHealthCheckCall ¶
type TargetPoolsAddHealthCheckCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsAddHealthCheckCall) Do ¶
func (c *TargetPoolsAddHealthCheckCall) Do() (*Operation, error)
func (*TargetPoolsAddHealthCheckCall) Fields ¶ added in v0.2.1
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: Health check URLs to be added to targetPool.
HealthChecks []*HealthCheckReference `json:"healthChecks,omitempty"`
}
type TargetPoolsAddInstanceCall ¶
type TargetPoolsAddInstanceCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsAddInstanceCall) Do ¶
func (c *TargetPoolsAddInstanceCall) Do() (*Operation, error)
func (*TargetPoolsAddInstanceCall) Fields ¶ added in v0.2.1
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: URLs of the instances to be added to targetPool.
Instances []*InstanceReference `json:"instances,omitempty"`
}
type TargetPoolsAggregatedListCall ¶
type TargetPoolsAggregatedListCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsAggregatedListCall) Do ¶
func (c *TargetPoolsAggregatedListCall) Do() (*TargetPoolAggregatedList, error)
func (*TargetPoolsAggregatedListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*TargetPoolsAggregatedListCall) MaxResults ¶
func (c *TargetPoolsAggregatedListCall) MaxResults(maxResults int64) *TargetPoolsAggregatedListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*TargetPoolsAggregatedListCall) PageToken ¶
func (c *TargetPoolsAggregatedListCall) PageToken(pageToken string) *TargetPoolsAggregatedListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
type TargetPoolsDeleteCall ¶
type TargetPoolsDeleteCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsDeleteCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type TargetPoolsGetHealthCall ¶
type TargetPoolsGetHealthCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsGetHealthCall) Do ¶
func (c *TargetPoolsGetHealthCall) Do() (*TargetPoolInstanceHealth, error)
func (*TargetPoolsGetHealthCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*TargetPoolsListCall) MaxResults ¶
func (c *TargetPoolsListCall) MaxResults(maxResults int64) *TargetPoolsListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
type TargetPoolsRemoveHealthCheckCall ¶
type TargetPoolsRemoveHealthCheckCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsRemoveHealthCheckCall) Do ¶
func (c *TargetPoolsRemoveHealthCheckCall) Do() (*Operation, error)
func (*TargetPoolsRemoveHealthCheckCall) Fields ¶ added in v0.2.1
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 URLs to be removed from targetPool.
HealthChecks []*HealthCheckReference `json:"healthChecks,omitempty"`
}
type TargetPoolsRemoveInstanceCall ¶
type TargetPoolsRemoveInstanceCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsRemoveInstanceCall) Do ¶
func (c *TargetPoolsRemoveInstanceCall) Do() (*Operation, error)
func (*TargetPoolsRemoveInstanceCall) Fields ¶ added in v0.2.1
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 targetPool.
Instances []*InstanceReference `json:"instances,omitempty"`
}
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"`
}
type TargetPoolsScopedListWarning ¶
type TargetPoolsScopedListWarning struct {
// Code: The warning type identifier for this warning.
Code string `json:"code,omitempty"`
// Data: Metadata for this warning in 'key: value' format.
Data []*TargetPoolsScopedListWarningData `json:"data,omitempty"`
// Message: Optional human-readable details for this warning.
Message string `json:"message,omitempty"`
}
type TargetPoolsScopedListWarningData ¶
type TargetPoolsScopedListWarningData struct {
// Key: A key for the warning data.
Key string `json:"key,omitempty"`
// Value: A warning data value corresponding to the key.
Value string `json:"value,omitempty"`
}
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 URL to targetPool.
func (*TargetPoolsService) AddInstance ¶
func (r *TargetPoolsService) AddInstance(project string, region string, targetPool string, targetpoolsaddinstancerequest *TargetPoolsAddInstanceRequest) *TargetPoolsAddInstanceCall
AddInstance: Adds instance url to targetPool.
func (*TargetPoolsService) AggregatedList ¶
func (r *TargetPoolsService) AggregatedList(project string) *TargetPoolsAggregatedListCall
AggregatedList: Retrieves the list of target pools grouped by scope.
func (*TargetPoolsService) Delete ¶
func (r *TargetPoolsService) Delete(project string, region string, targetPool string) *TargetPoolsDeleteCall
Delete: Deletes the specified TargetPool resource.
func (*TargetPoolsService) Get ¶
func (r *TargetPoolsService) Get(project string, region string, targetPool string) *TargetPoolsGetCall
Get: Returns the specified TargetPool resource.
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 given instance that is referenced by given TargetPool.
func (*TargetPoolsService) Insert ¶
func (r *TargetPoolsService) Insert(project string, region string, targetpool *TargetPool) *TargetPoolsInsertCall
Insert: Creates a TargetPool resource in the specified project and region using the data included in the request.
func (*TargetPoolsService) List ¶
func (r *TargetPoolsService) List(project string, region string) *TargetPoolsListCall
List: Retrieves the list of TargetPool resources available to the specified project and region.
func (*TargetPoolsService) RemoveHealthCheck ¶
func (r *TargetPoolsService) RemoveHealthCheck(project string, region string, targetPool string, targetpoolsremovehealthcheckrequest *TargetPoolsRemoveHealthCheckRequest) *TargetPoolsRemoveHealthCheckCall
RemoveHealthCheck: Removes health check URL from targetPool.
func (*TargetPoolsService) RemoveInstance ¶
func (r *TargetPoolsService) RemoveInstance(project string, region string, targetPool string, targetpoolsremoveinstancerequest *TargetPoolsRemoveInstanceRequest) *TargetPoolsRemoveInstanceCall
RemoveInstance: Removes instance URL from targetPool.
type TargetPoolsSetBackupCall ¶
type TargetPoolsSetBackupCall struct {
// contains filtered or unexported fields
}
func (*TargetPoolsSetBackupCall) FailoverRatio ¶
func (c *TargetPoolsSetBackupCall) FailoverRatio(failoverRatio float64) *TargetPoolsSetBackupCall
FailoverRatio sets the optional parameter "failoverRatio": New failoverRatio value for the containing target pool.
func (*TargetPoolsSetBackupCall) Fields ¶ added in v0.2.1
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"`
}
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"`
}
type UrlMap ¶
type UrlMap struct {
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
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 textual description of the resource;
// provided by the client when the resource is created.
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: Unique identifier for the resource; defined by the server (output
// only).
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.
Name string `json:"name,omitempty"`
// PathMatchers: The list of named PathMatchers to use against the URL.
PathMatchers []*PathMatcher `json:"pathMatchers,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
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"`
}
type UrlMapList ¶
type UrlMapList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The UrlMap resources.
Items []*UrlMap `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type UrlMapReference ¶
type UrlMapReference struct {
UrlMap string `json:"urlMap,omitempty"`
}
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"`
}
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"`
}
type UrlMapsDeleteCall ¶
type UrlMapsDeleteCall struct {
// contains filtered or unexported fields
}
func (*UrlMapsDeleteCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type UrlMapsInsertCall ¶
type UrlMapsInsertCall struct {
// contains filtered or unexported fields
}
func (*UrlMapsInsertCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*UrlMapsListCall) MaxResults ¶
func (c *UrlMapsListCall) MaxResults(maxResults int64) *UrlMapsListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
type UrlMapsPatchCall ¶
type UrlMapsPatchCall struct {
// contains filtered or unexported fields
}
func (*UrlMapsPatchCall) Fields ¶ added in v0.2.1
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.
func (*UrlMapsService) Get ¶
func (r *UrlMapsService) Get(project string, urlMap string) *UrlMapsGetCall
Get: Returns the specified UrlMap resource.
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.
func (*UrlMapsService) List ¶
func (r *UrlMapsService) List(project string) *UrlMapsListCall
List: Retrieves the list of UrlMap resources available to the specified project.
func (*UrlMapsService) Patch ¶
func (r *UrlMapsService) Patch(project string, urlMap string, urlmap *UrlMap) *UrlMapsPatchCall
Patch: Update the entire content of the UrlMap resource. This method supports patch semantics.
func (*UrlMapsService) Update ¶
func (r *UrlMapsService) Update(project string, urlMap string, urlmap *UrlMap) *UrlMapsUpdateCall
Update: Update the entire content of the UrlMap resource.
func (*UrlMapsService) Validate ¶
func (r *UrlMapsService) Validate(project string, urlMap string, urlmapsvalidaterequest *UrlMapsValidateRequest) *UrlMapsValidateCall
Validate: Run static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.
type UrlMapsUpdateCall ¶
type UrlMapsUpdateCall struct {
// contains filtered or unexported fields
}
func (*UrlMapsUpdateCall) Fields ¶ added in v0.2.1
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) Do ¶
func (c *UrlMapsValidateCall) Do() (*UrlMapsValidateResponse, error)
func (*UrlMapsValidateCall) Fields ¶ added in v0.2.1
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"`
}
type UrlMapsValidateResponse ¶
type UrlMapsValidateResponse struct {
Result *UrlMapValidationResult `json:"result,omitempty"`
}
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 is simply the bucket name, with no
// "gs://" or "https://storage.googleapis.com/" in front of it.
BucketName string `json:"bucketName,omitempty"`
// ReportNamePrefix: An optional prefix for the name of the usage report
// object stored in bucket_name. If not supplied, defaults to "usage_".
// The report is stored as a CSV file named _gce_.csv. where is the day
// of the usage according to Pacific Time. The prefix should conform to
// Cloud Storage object naming conventions.
ReportNamePrefix string `json:"reportNamePrefix,omitempty"`
}
type Zone ¶
type Zone struct {
// CreationTimestamp: Creation timestamp in RFC3339 text format (output
// only).
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// Deprecated: The deprecation status associated with this zone.
Deprecated *DeprecationStatus `json:"deprecated,omitempty"`
// Description: Textual description of the resource.
Description string `json:"description,omitempty"`
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id uint64 `json:"id,omitempty,string"`
// Kind: Type of the resource.
Kind string `json:"kind,omitempty"`
// MaintenanceWindows: Scheduled maintenance windows for the zone. When
// the zone is in a maintenance window, all resources which reside in
// the zone will be unavailable.
MaintenanceWindows []*ZoneMaintenanceWindows `json:"maintenanceWindows,omitempty"`
// Name: Name of the resource.
Name string `json:"name,omitempty"`
// Region: Full URL reference to the region which hosts the zone (output
// only).
Region string `json:"region,omitempty"`
// SelfLink: Server defined URL for the resource (output only).
SelfLink string `json:"selfLink,omitempty"`
// Status: Status of the zone. "UP" or "DOWN".
Status string `json:"status,omitempty"`
}
type ZoneList ¶
type ZoneList struct {
// Id: Unique identifier for the resource; defined by the server (output
// only).
Id string `json:"id,omitempty"`
// Items: The zone resources.
Items []*Zone `json:"items,omitempty"`
// Kind: Type of resource.
Kind string `json:"kind,omitempty"`
// NextPageToken: A token used to continue a truncated list request
// (output only).
NextPageToken string `json:"nextPageToken,omitempty"`
// SelfLink: Server defined URL for this resource (output only).
SelfLink string `json:"selfLink,omitempty"`
}
type ZoneMaintenanceWindows ¶
type ZoneMaintenanceWindows struct {
// BeginTime: Begin time of the maintenance window, in RFC 3339 format.
BeginTime string `json:"beginTime,omitempty"`
// Description: Textual description of the maintenance window.
Description string `json:"description,omitempty"`
// EndTime: End time of the maintenance window, in RFC 3339 format.
EndTime string `json:"endTime,omitempty"`
// Name: Name of the maintenance window.
Name string `json:"name,omitempty"`
}
type ZoneOperationsDeleteCall ¶
type ZoneOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ZoneOperationsDeleteCall) Fields ¶ added in v0.2.1
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) Fields ¶ added in v0.2.1
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.
type ZoneOperationsListCall ¶
type ZoneOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ZoneOperationsListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*ZoneOperationsListCall) MaxResults ¶
func (c *ZoneOperationsListCall) MaxResults(maxResults int64) *ZoneOperationsListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
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 operation resource.
type ZonesGetCall ¶
type ZonesGetCall struct {
// contains filtered or unexported fields
}
func (*ZonesGetCall) Fields ¶ added in v0.2.1
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.
type ZonesListCall ¶
type ZonesListCall struct {
// contains filtered or unexported fields
}
func (*ZonesListCall) Fields ¶ added in v0.2.1
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": Filter expression for filtering listed resources.
func (*ZonesListCall) MaxResults ¶
func (c *ZonesListCall) MaxResults(maxResults int64) *ZonesListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
type ZonesService ¶
type ZonesService struct {
// contains filtered or unexported fields
}
func NewZonesService ¶
func NewZonesService(s *Service) *ZonesService