class Compute extends Service (View source)

Service definition for Compute (v1).

Creates and runs virtual machines on Google Cloud Platform.

For more information about this service, see the API Documentation

Constants

CLOUD_PLATFORM

See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.

.

COMPUTE

View and manage your Google Compute Engine resources.

COMPUTE_READONLY

View your Google Compute Engine resources.

DEVSTORAGE_FULL_CONTROL

Manage your data and permissions in Cloud Storage and see the email address for your Google Account.

DEVSTORAGE_READ_ONLY

View your data in Google Cloud Storage.

DEVSTORAGE_READ_WRITE

Manage your data in Cloud Storage and see the email address of your Google Account.

Properties

$acceleratorTypes
$addresses
$autoscalers
$backendBuckets
$backendServices
$diskTypes
$disks
$externalVpnGateways
$firewallPolicies
$firewalls
$forwardingRules
$futureReservations
$globalAddresses
$globalForwardingRules
$globalNetworkEndpointGroups
$globalOperations
$globalOrganizationOperations
$globalPublicDelegatedPrefixes
$healthChecks
$httpHealthChecks
$httpsHealthChecks
$imageFamilyViews
$images
$instanceGroupManagerResizeRequests
$instanceGroupManagers
$instanceGroups
$instanceSettings
$instanceTemplates
$instances
$instantSnapshots
$interconnectAttachments
$interconnectLocations
$interconnectRemoteLocations
$interconnects
$licenseCodes
$licenses
$machineImages
$machineTypes
$networkAttachments
$networkEdgeSecurityServices
$networkEndpointGroups
$networkFirewallPolicies
$networks
$nodeGroups
$nodeTemplates
$nodeTypes
$packetMirrorings
$projects
$publicAdvertisedPrefixes
$publicDelegatedPrefixes
$regionAutoscalers
$regionBackendServices
$regionCommitments
$regionDiskTypes
$regionDisks
$regionHealthCheckServices
$regionHealthChecks
$regionInstanceGroupManagers
$regionInstanceGroups
$regionInstanceTemplates
$regionInstances
$regionInstantSnapshots
$regionNetworkEndpointGroups
$regionNetworkFirewallPolicies
$regionNotificationEndpoints
$regionOperations
$regionSecurityPolicies
$regionSslCertificates
$regionSslPolicies
$regionTargetHttpProxies
$regionTargetHttpsProxies
$regionTargetTcpProxies
$regionUrlMaps
$regionZones
$regions
$reservations
$resourcePolicies
$routers
$routes
$securityPolicies
$serviceAttachments
$snapshotSettings
$snapshots
$sslCertificates
$sslPolicies
$storagePoolTypes
$storagePools
$subnetworks
$targetGrpcProxies
$targetHttpProxies
$targetHttpsProxies
$targetInstances
$targetPools
$targetSslProxies
$targetTcpProxies
$targetVpnGateways
$urlMaps
$vpnGateways
$vpnTunnels
$zoneOperations
$zones
$rootUrlTemplate

Methods

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the Compute service.

Details

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the Compute service.

Parameters

Client|array $clientOrConfig

The client used to deliver requests, or a config array to pass to a new Client instance.

string $rootUrl

The root URL used for requests to the service.