Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 402] [Versions 401 and 403]

(no description)

File Size: 913 lines (27 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 15 classes

Google_Service_Container:: (1 method):
  __construct()

Google_Service_Container_Projects_Resource:: (0 methods):

Google_Service_Container_ProjectsZones_Resource:: (1 method):
  getServerconfig()

Google_Service_Container_ProjectsZonesClusters_Resource:: (5 methods):
  create()
  delete()
  get()
  listProjectsZonesClusters()
  update()

Google_Service_Container_ProjectsZonesOperations_Resource:: (2 methods):
  get()
  listProjectsZonesOperations()

Google_Service_Container_Cluster:: (42 methods):
  setClusterIpv4Cidr()
  getClusterIpv4Cidr()
  setCreateTime()
  getCreateTime()
  setCurrentMasterVersion()
  getCurrentMasterVersion()
  setCurrentNodeVersion()
  getCurrentNodeVersion()
  setDescription()
  getDescription()
  setEndpoint()
  getEndpoint()
  setInitialClusterVersion()
  getInitialClusterVersion()
  setInitialNodeCount()
  getInitialNodeCount()
  setInstanceGroupUrls()
  getInstanceGroupUrls()
  setLoggingService()
  getLoggingService()
  setMasterAuth()
  getMasterAuth()
  setMonitoringService()
  getMonitoringService()
  setName()
  getName()
  setNetwork()
  getNetwork()
  setNodeConfig()
  getNodeConfig()
  setNodeIpv4CidrSize()
  getNodeIpv4CidrSize()
  setSelfLink()
  getSelfLink()
  setServicesIpv4Cidr()
  getServicesIpv4Cidr()
  setStatus()
  getStatus()
  setStatusMessage()
  getStatusMessage()
  setZone()
  getZone()

Google_Service_Container_ClusterUpdate:: (2 methods):
  setDesiredNodeVersion()
  getDesiredNodeVersion()

Google_Service_Container_CreateClusterRequest:: (2 methods):
  setCluster()
  getCluster()

Google_Service_Container_ListClustersResponse:: (2 methods):
  setClusters()
  getClusters()

Google_Service_Container_ListOperationsResponse:: (2 methods):
  setOperations()
  getOperations()

Google_Service_Container_MasterAuth:: (10 methods):
  setClientCertificate()
  getClientCertificate()
  setClientKey()
  getClientKey()
  setClusterCaCertificate()
  getClusterCaCertificate()
  setPassword()
  getPassword()
  setUsername()
  getUsername()

Google_Service_Container_NodeConfig:: (6 methods):
  setDiskSizeGb()
  getDiskSizeGb()
  setMachineType()
  getMachineType()
  setOauthScopes()
  getOauthScopes()

Google_Service_Container_Operation:: (14 methods):
  setName()
  getName()
  setOperationType()
  getOperationType()
  setSelfLink()
  getSelfLink()
  setStatus()
  getStatus()
  setStatusMessage()
  getStatusMessage()
  setTargetLink()
  getTargetLink()
  setZone()
  getZone()

Google_Service_Container_ServerConfig:: (4 methods):
  setDefaultClusterVersion()
  getDefaultClusterVersion()
  setValidNodeVersions()
  getValidNodeVersions()

Google_Service_Container_UpdateClusterRequest:: (2 methods):
  setUpdate()
  getUpdate()


Class: Google_Service_Container  - X-Ref

Service definition for Container (v1).

<p>
The Google Container Engine API is used for building and managing container
based applications, powered by the open source Kubernetes technology.</p>

<p>
For more information about this service, see the API
<a href="https://cloud.google.com/container-engine/" target="_blank">Documentation</a>
</p>

__construct(Google_Client $client)   X-Ref
Constructs the internal representation of the Container service.

param: Google_Client $client

Class: Google_Service_Container_Projects_Resource  - X-Ref

The "projects" collection of methods.
Typical usage is:
<code>
$containerService = new Google_Service_Container(...);
$projects = $containerService->projects;
</code>

Class: Google_Service_Container_ProjectsZones_Resource  - X-Ref

The "zones" collection of methods.
Typical usage is:
<code>
$containerService = new Google_Service_Container(...);
$zones = $containerService->zones;
</code>

getServerconfig($projectId, $zone, $optParams = array()   X-Ref
Returns configuration info about the Container Engine service.
(zones.getServerconfig)

param: string $projectId The Google Developers Console [project ID or project
param: string $zone The name of the Google Compute Engine
param: array $optParams Optional parameters.
return: Google_Service_Container_ServerConfig

Class: Google_Service_Container_ProjectsZonesClusters_Resource  - X-Ref

The "clusters" collection of methods.
Typical usage is:
<code>
$containerService = new Google_Service_Container(...);
$clusters = $containerService->clusters;
</code>

create($projectId, $zone, Google_Service_Container_CreateClusterRequest $postBody, $optParams = array()   X-Ref
Creates a cluster, consisting of the specified number and type of Google
Compute Engine instances, plus a Kubernetes master endpoint. By default, the
cluster is created in the project's [default
network](/compute/docs/networking#networks_1). One firewall is added for the
cluster. After cluster creation, the cluster creates routes for each node to
allow the containers on that node to communicate with all other instances in
the cluster. Finally, an entry is added to the project's global metadata
indicating which CIDR range is being used by the cluster. (clusters.create)

param: string $projectId The Google Developers Console [project ID or project
param: string $zone The name of the Google Compute Engine
param: Google_CreateClusterRequest $postBody
param: array $optParams Optional parameters.
return: Google_Service_Container_Operation

delete($projectId, $zone, $clusterId, $optParams = array()   X-Ref
Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
Firewalls and routes that were configured during cluster creation are also
deleted. (clusters.delete)

param: string $projectId The Google Developers Console [project ID or project
param: string $zone The name of the Google Compute Engine
param: string $clusterId The name of the cluster to delete.
param: array $optParams Optional parameters.
return: Google_Service_Container_Operation

get($projectId, $zone, $clusterId, $optParams = array()   X-Ref
Gets a specific cluster. (clusters.get)

param: string $projectId The Google Developers Console [project ID or project
param: string $zone The name of the Google Compute Engine
param: string $clusterId The name of the cluster to retrieve.
param: array $optParams Optional parameters.
return: Google_Service_Container_Cluster

listProjectsZonesClusters($projectId, $zone, $optParams = array()   X-Ref
Lists all clusters owned by a project in either the specified zone or all
zones. (clusters.listProjectsZonesClusters)

param: string $projectId The Google Developers Console [project ID or project
param: string $zone The name of the Google Compute Engine
param: array $optParams Optional parameters.
return: Google_Service_Container_ListClustersResponse

update($projectId, $zone, $clusterId, Google_Service_Container_UpdateClusterRequest $postBody, $optParams = array()   X-Ref
Update settings of a specific cluster. (clusters.update)

param: string $projectId The Google Developers Console [project ID or project
param: string $zone The name of the Google Compute Engine
param: string $clusterId The name of the cluster to upgrade.
param: Google_UpdateClusterRequest $postBody
param: array $optParams Optional parameters.
return: Google_Service_Container_Operation

Class: Google_Service_Container_ProjectsZonesOperations_Resource  - X-Ref

The "operations" collection of methods.
Typical usage is:
<code>
$containerService = new Google_Service_Container(...);
$operations = $containerService->operations;
</code>

get($projectId, $zone, $operationId, $optParams = array()   X-Ref
Gets the specified operation. (operations.get)

param: string $projectId The Google Developers Console [project ID or project
param: string $zone The name of the Google Compute Engine
param: string $operationId The server-assigned `name` of the operation.
param: array $optParams Optional parameters.
return: Google_Service_Container_Operation

listProjectsZonesOperations($projectId, $zone, $optParams = array()   X-Ref
Lists all operations in a project in a specific zone or all zones.
(operations.listProjectsZonesOperations)

param: string $projectId The Google Developers Console [project ID or project
param: string $zone The name of the Google Compute Engine
param: array $optParams Optional parameters.
return: Google_Service_Container_ListOperationsResponse

Class: Google_Service_Container_Cluster  - X-Ref

setClusterIpv4Cidr($clusterIpv4Cidr)   X-Ref
No description

getClusterIpv4Cidr()   X-Ref
No description

setCreateTime($createTime)   X-Ref
No description

getCreateTime()   X-Ref
No description

setCurrentMasterVersion($currentMasterVersion)   X-Ref
No description

getCurrentMasterVersion()   X-Ref
No description

setCurrentNodeVersion($currentNodeVersion)   X-Ref
No description

getCurrentNodeVersion()   X-Ref
No description

setDescription($description)   X-Ref
No description

getDescription()   X-Ref
No description

setEndpoint($endpoint)   X-Ref
No description

getEndpoint()   X-Ref
No description

setInitialClusterVersion($initialClusterVersion)   X-Ref
No description

getInitialClusterVersion()   X-Ref
No description

setInitialNodeCount($initialNodeCount)   X-Ref
No description

getInitialNodeCount()   X-Ref
No description

setInstanceGroupUrls($instanceGroupUrls)   X-Ref
No description

getInstanceGroupUrls()   X-Ref
No description

setLoggingService($loggingService)   X-Ref
No description

getLoggingService()   X-Ref
No description

setMasterAuth(Google_Service_Container_MasterAuth $masterAuth)   X-Ref
No description

getMasterAuth()   X-Ref
No description

setMonitoringService($monitoringService)   X-Ref
No description

getMonitoringService()   X-Ref
No description

setName($name)   X-Ref
No description

getName()   X-Ref
No description

setNetwork($network)   X-Ref
No description

getNetwork()   X-Ref
No description

setNodeConfig(Google_Service_Container_NodeConfig $nodeConfig)   X-Ref
No description

getNodeConfig()   X-Ref
No description

setNodeIpv4CidrSize($nodeIpv4CidrSize)   X-Ref
No description

getNodeIpv4CidrSize()   X-Ref
No description

setSelfLink($selfLink)   X-Ref
No description

getSelfLink()   X-Ref
No description

setServicesIpv4Cidr($servicesIpv4Cidr)   X-Ref
No description

getServicesIpv4Cidr()   X-Ref
No description

setStatus($status)   X-Ref
No description

getStatus()   X-Ref
No description

setStatusMessage($statusMessage)   X-Ref
No description

getStatusMessage()   X-Ref
No description

setZone($zone)   X-Ref
No description

getZone()   X-Ref
No description

Class: Google_Service_Container_CreateClusterRequest  - X-Ref

setCluster(Google_Service_Container_Cluster $cluster)   X-Ref
No description

getCluster()   X-Ref
No description

Class: Google_Service_Container_ListClustersResponse  - X-Ref

setClusters($clusters)   X-Ref
No description

getClusters()   X-Ref
No description

Class: Google_Service_Container_MasterAuth  - X-Ref

setClientCertificate($clientCertificate)   X-Ref
No description

getClientCertificate()   X-Ref
No description

setClientKey($clientKey)   X-Ref
No description

getClientKey()   X-Ref
No description

setClusterCaCertificate($clusterCaCertificate)   X-Ref
No description

getClusterCaCertificate()   X-Ref
No description

setPassword($password)   X-Ref
No description

getPassword()   X-Ref
No description

setUsername($username)   X-Ref
No description

getUsername()   X-Ref
No description

Class: Google_Service_Container_NodeConfig  - X-Ref

setDiskSizeGb($diskSizeGb)   X-Ref
No description

getDiskSizeGb()   X-Ref
No description

setMachineType($machineType)   X-Ref
No description

getMachineType()   X-Ref
No description

setOauthScopes($oauthScopes)   X-Ref
No description

getOauthScopes()   X-Ref
No description

Class: Google_Service_Container_Operation  - X-Ref

setName($name)   X-Ref
No description

getName()   X-Ref
No description

setOperationType($operationType)   X-Ref
No description

getOperationType()   X-Ref
No description

setSelfLink($selfLink)   X-Ref
No description

getSelfLink()   X-Ref
No description

setStatus($status)   X-Ref
No description

getStatus()   X-Ref
No description

setStatusMessage($statusMessage)   X-Ref
No description

getStatusMessage()   X-Ref
No description

setTargetLink($targetLink)   X-Ref
No description

getTargetLink()   X-Ref
No description

setZone($zone)   X-Ref
No description

getZone()   X-Ref
No description

Class: Google_Service_Container_UpdateClusterRequest  - X-Ref

setUpdate(Google_Service_Container_ClusterUpdate $update)   X-Ref
No description

getUpdate()   X-Ref
No description