Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class Authorization extends \Google\Collection
{
protected $collection_key = 'adminUsers';
protected $adminUsersType = ClusterUser::class;
protected $adminUsersDataType = 'array';
/**
* For VMware and bare metal user clusters, users will be granted the cluster-
* admin role on the cluster, which provides full administrative access to the
* cluster. For bare metal admin clusters, users will be granted the cluster-
* view role, which limits users to read-only access.
*
* @param ClusterUser[] $adminUsers
*/
public function setAdminUsers($adminUsers)
{
$this->adminUsers = $adminUsers;
}
/**
* @return ClusterUser[]
*/
public function getAdminUsers()
{
return $this->adminUsers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Authorization::class, 'Google_Service_GKEOnPrem_Authorization');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminApiServerArgument extends \Google\Model
{
/**
* Required. The argument name as it appears on the API Server command line
* please make sure to remove the leading dashes.
*
* @var string
*/
public $argument;
/**
* Required. The value of the arg as it will be passed to the API Server
* command line.
*
* @var string
*/
public $value;
/**
* Required. The argument name as it appears on the API Server command line
* please make sure to remove the leading dashes.
*
* @param string $argument
*/
public function setArgument($argument)
{
$this->argument = $argument;
}
/**
* @return string
*/
public function getArgument()
{
return $this->argument;
}
/**
* Required. The value of the arg as it will be passed to the API Server
* command line.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminApiServerArgument::class, 'Google_Service_GKEOnPrem_BareMetalAdminApiServerArgument');

View File

@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminBgpLbConfig extends \Google\Collection
{
protected $collection_key = 'bgpPeerConfigs';
protected $addressPoolsType = BareMetalAdminLoadBalancerAddressPool::class;
protected $addressPoolsDataType = 'array';
/**
* Required. BGP autonomous system number (ASN) of the cluster. This field can
* be updated after cluster creation.
*
* @var string
*/
public $asn;
protected $bgpPeerConfigsType = BareMetalAdminBgpPeerConfig::class;
protected $bgpPeerConfigsDataType = 'array';
protected $loadBalancerNodePoolConfigType = BareMetalAdminLoadBalancerNodePoolConfig::class;
protected $loadBalancerNodePoolConfigDataType = '';
/**
* Required. AddressPools is a list of non-overlapping IP pools used by load
* balancer typed services. All addresses must be routable to load balancer
* nodes. IngressVIP must be included in the pools.
*
* @param BareMetalAdminLoadBalancerAddressPool[] $addressPools
*/
public function setAddressPools($addressPools)
{
$this->addressPools = $addressPools;
}
/**
* @return BareMetalAdminLoadBalancerAddressPool[]
*/
public function getAddressPools()
{
return $this->addressPools;
}
/**
* Required. BGP autonomous system number (ASN) of the cluster. This field can
* be updated after cluster creation.
*
* @param string $asn
*/
public function setAsn($asn)
{
$this->asn = $asn;
}
/**
* @return string
*/
public function getAsn()
{
return $this->asn;
}
/**
* Required. The list of BGP peers that the cluster will connect to. At least
* one peer must be configured for each control plane node. Control plane
* nodes will connect to these peers to advertise the control plane VIP. The
* Services load balancer also uses these peers by default. This field can be
* updated after cluster creation.
*
* @param BareMetalAdminBgpPeerConfig[] $bgpPeerConfigs
*/
public function setBgpPeerConfigs($bgpPeerConfigs)
{
$this->bgpPeerConfigs = $bgpPeerConfigs;
}
/**
* @return BareMetalAdminBgpPeerConfig[]
*/
public function getBgpPeerConfigs()
{
return $this->bgpPeerConfigs;
}
/**
* Specifies the node pool running data plane load balancing. L2 connectivity
* is required among nodes in this pool. If missing, the control plane node
* pool is used for data plane load balancing.
*
* @param BareMetalAdminLoadBalancerNodePoolConfig $loadBalancerNodePoolConfig
*/
public function setLoadBalancerNodePoolConfig(BareMetalAdminLoadBalancerNodePoolConfig $loadBalancerNodePoolConfig)
{
$this->loadBalancerNodePoolConfig = $loadBalancerNodePoolConfig;
}
/**
* @return BareMetalAdminLoadBalancerNodePoolConfig
*/
public function getLoadBalancerNodePoolConfig()
{
return $this->loadBalancerNodePoolConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminBgpLbConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminBgpLbConfig');

View File

@@ -0,0 +1,101 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminBgpPeerConfig extends \Google\Collection
{
protected $collection_key = 'controlPlaneNodes';
/**
* Required. BGP autonomous system number (ASN) for the network that contains
* the external peer device.
*
* @var string
*/
public $asn;
/**
* The IP address of the control plane node that connects to the external
* peer. If you don't specify any control plane nodes, all control plane nodes
* can connect to the external peer. If you specify one or more IP addresses,
* only the nodes specified participate in peering sessions.
*
* @var string[]
*/
public $controlPlaneNodes;
/**
* Required. The IP address of the external peer device.
*
* @var string
*/
public $ipAddress;
/**
* Required. BGP autonomous system number (ASN) for the network that contains
* the external peer device.
*
* @param string $asn
*/
public function setAsn($asn)
{
$this->asn = $asn;
}
/**
* @return string
*/
public function getAsn()
{
return $this->asn;
}
/**
* The IP address of the control plane node that connects to the external
* peer. If you don't specify any control plane nodes, all control plane nodes
* can connect to the external peer. If you specify one or more IP addresses,
* only the nodes specified participate in peering sessions.
*
* @param string[] $controlPlaneNodes
*/
public function setControlPlaneNodes($controlPlaneNodes)
{
$this->controlPlaneNodes = $controlPlaneNodes;
}
/**
* @return string[]
*/
public function getControlPlaneNodes()
{
return $this->controlPlaneNodes;
}
/**
* Required. The IP address of the external peer device.
*
* @param string $ipAddress
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminBgpPeerConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminBgpPeerConfig');

View File

@@ -0,0 +1,673 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminCluster extends \Google\Model
{
/**
* Not set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The PROVISIONING state indicates the cluster is being created.
*/
public const STATE_PROVISIONING = 'PROVISIONING';
/**
* The RUNNING state indicates the cluster has been created and is fully
* usable.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The RECONCILING state indicates that the cluster is being updated. It
* remains available, but potentially with degraded performance.
*/
public const STATE_RECONCILING = 'RECONCILING';
/**
* The STOPPING state indicates the cluster is being deleted.
*/
public const STATE_STOPPING = 'STOPPING';
/**
* The ERROR state indicates the cluster is in a broken unrecoverable state.
*/
public const STATE_ERROR = 'ERROR';
/**
* The DEGRADED state indicates the cluster requires user action to restore
* full functionality.
*/
public const STATE_DEGRADED = 'DEGRADED';
/**
* Annotations on the bare metal admin cluster. This field has the same
* restrictions as Kubernetes annotations. The total size of all keys and
* values combined is limited to 256k. Key can have 2 segments: prefix
* (optional) and name (required), separated by a slash (/). Prefix must be a
* DNS subdomain. Name must be 63 characters or less, begin and end with
* alphanumerics, with dashes (-), underscores (_), dots (.), and
* alphanumerics between.
*
* @var string[]
*/
public $annotations;
/**
* The Anthos clusters on bare metal version for the bare metal admin cluster.
*
* @var string
*/
public $bareMetalVersion;
protected $binaryAuthorizationType = BinaryAuthorization::class;
protected $binaryAuthorizationDataType = '';
protected $clusterOperationsType = BareMetalAdminClusterOperationsConfig::class;
protected $clusterOperationsDataType = '';
protected $controlPlaneType = BareMetalAdminControlPlaneConfig::class;
protected $controlPlaneDataType = '';
/**
* Output only. The time at which this bare metal admin cluster was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time at which this bare metal admin cluster was deleted.
* If the resource is not deleted, this must be empty
*
* @var string
*/
public $deleteTime;
/**
* A human readable description of this bare metal admin cluster.
*
* @var string
*/
public $description;
/**
* Output only. The IP address name of bare metal admin cluster's API server.
*
* @var string
*/
public $endpoint;
/**
* This checksum is computed by the server based on the value of other fields,
* and may be sent on update and delete requests to ensure the client has an
* up-to-date value before proceeding. Allows clients to perform consistent
* read-modify-writes through optimistic concurrency control.
*
* @var string
*/
public $etag;
protected $fleetType = Fleet::class;
protected $fleetDataType = '';
protected $loadBalancerType = BareMetalAdminLoadBalancerConfig::class;
protected $loadBalancerDataType = '';
/**
* Output only. The object name of the bare metal cluster custom resource.
* This field is used to support conflicting names when enrolling existing
* clusters to the API. When used as a part of cluster enrollment, this field
* will differ from the ID in the resource name. For new clusters, this field
* will match the user provided cluster name and be visible in the last
* component of the resource name. It is not modifiable. All users should use
* this name to access their cluster using gkectl or kubectl and should expect
* to see the local name when viewing admin cluster controller logs.
*
* @var string
*/
public $localName;
protected $maintenanceConfigType = BareMetalAdminMaintenanceConfig::class;
protected $maintenanceConfigDataType = '';
protected $maintenanceStatusType = BareMetalAdminMaintenanceStatus::class;
protected $maintenanceStatusDataType = '';
/**
* Immutable. The bare metal admin cluster resource name.
*
* @var string
*/
public $name;
protected $networkConfigType = BareMetalAdminNetworkConfig::class;
protected $networkConfigDataType = '';
protected $nodeAccessConfigType = BareMetalAdminNodeAccessConfig::class;
protected $nodeAccessConfigDataType = '';
protected $nodeConfigType = BareMetalAdminWorkloadNodeConfig::class;
protected $nodeConfigDataType = '';
protected $osEnvironmentConfigType = BareMetalAdminOsEnvironmentConfig::class;
protected $osEnvironmentConfigDataType = '';
protected $proxyType = BareMetalAdminProxyConfig::class;
protected $proxyDataType = '';
/**
* Output only. If set, there are currently changes in flight to the bare
* metal Admin Cluster.
*
* @var bool
*/
public $reconciling;
protected $securityConfigType = BareMetalAdminSecurityConfig::class;
protected $securityConfigDataType = '';
/**
* Output only. The current state of the bare metal admin cluster.
*
* @var string
*/
public $state;
protected $statusType = ResourceStatus::class;
protected $statusDataType = '';
protected $storageType = BareMetalAdminStorageConfig::class;
protected $storageDataType = '';
/**
* Output only. The unique identifier of the bare metal admin cluster.
*
* @var string
*/
public $uid;
/**
* Output only. The time at which this bare metal admin cluster was last
* updated.
*
* @var string
*/
public $updateTime;
protected $validationCheckType = ValidationCheck::class;
protected $validationCheckDataType = '';
/**
* Annotations on the bare metal admin cluster. This field has the same
* restrictions as Kubernetes annotations. The total size of all keys and
* values combined is limited to 256k. Key can have 2 segments: prefix
* (optional) and name (required), separated by a slash (/). Prefix must be a
* DNS subdomain. Name must be 63 characters or less, begin and end with
* alphanumerics, with dashes (-), underscores (_), dots (.), and
* alphanumerics between.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* The Anthos clusters on bare metal version for the bare metal admin cluster.
*
* @param string $bareMetalVersion
*/
public function setBareMetalVersion($bareMetalVersion)
{
$this->bareMetalVersion = $bareMetalVersion;
}
/**
* @return string
*/
public function getBareMetalVersion()
{
return $this->bareMetalVersion;
}
/**
* Binary Authorization related configurations.
*
* @param BinaryAuthorization $binaryAuthorization
*/
public function setBinaryAuthorization(BinaryAuthorization $binaryAuthorization)
{
$this->binaryAuthorization = $binaryAuthorization;
}
/**
* @return BinaryAuthorization
*/
public function getBinaryAuthorization()
{
return $this->binaryAuthorization;
}
/**
* Cluster operations configuration.
*
* @param BareMetalAdminClusterOperationsConfig $clusterOperations
*/
public function setClusterOperations(BareMetalAdminClusterOperationsConfig $clusterOperations)
{
$this->clusterOperations = $clusterOperations;
}
/**
* @return BareMetalAdminClusterOperationsConfig
*/
public function getClusterOperations()
{
return $this->clusterOperations;
}
/**
* Control plane configuration.
*
* @param BareMetalAdminControlPlaneConfig $controlPlane
*/
public function setControlPlane(BareMetalAdminControlPlaneConfig $controlPlane)
{
$this->controlPlane = $controlPlane;
}
/**
* @return BareMetalAdminControlPlaneConfig
*/
public function getControlPlane()
{
return $this->controlPlane;
}
/**
* Output only. The time at which this bare metal admin cluster was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time at which this bare metal admin cluster was deleted.
* If the resource is not deleted, this must be empty
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* A human readable description of this bare metal admin cluster.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. The IP address name of bare metal admin cluster's API server.
*
* @param string $endpoint
*/
public function setEndpoint($endpoint)
{
$this->endpoint = $endpoint;
}
/**
* @return string
*/
public function getEndpoint()
{
return $this->endpoint;
}
/**
* This checksum is computed by the server based on the value of other fields,
* and may be sent on update and delete requests to ensure the client has an
* up-to-date value before proceeding. Allows clients to perform consistent
* read-modify-writes through optimistic concurrency control.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. Fleet configuration for the cluster.
*
* @param Fleet $fleet
*/
public function setFleet(Fleet $fleet)
{
$this->fleet = $fleet;
}
/**
* @return Fleet
*/
public function getFleet()
{
return $this->fleet;
}
/**
* Load balancer configuration.
*
* @param BareMetalAdminLoadBalancerConfig $loadBalancer
*/
public function setLoadBalancer(BareMetalAdminLoadBalancerConfig $loadBalancer)
{
$this->loadBalancer = $loadBalancer;
}
/**
* @return BareMetalAdminLoadBalancerConfig
*/
public function getLoadBalancer()
{
return $this->loadBalancer;
}
/**
* Output only. The object name of the bare metal cluster custom resource.
* This field is used to support conflicting names when enrolling existing
* clusters to the API. When used as a part of cluster enrollment, this field
* will differ from the ID in the resource name. For new clusters, this field
* will match the user provided cluster name and be visible in the last
* component of the resource name. It is not modifiable. All users should use
* this name to access their cluster using gkectl or kubectl and should expect
* to see the local name when viewing admin cluster controller logs.
*
* @param string $localName
*/
public function setLocalName($localName)
{
$this->localName = $localName;
}
/**
* @return string
*/
public function getLocalName()
{
return $this->localName;
}
/**
* Maintenance configuration.
*
* @param BareMetalAdminMaintenanceConfig $maintenanceConfig
*/
public function setMaintenanceConfig(BareMetalAdminMaintenanceConfig $maintenanceConfig)
{
$this->maintenanceConfig = $maintenanceConfig;
}
/**
* @return BareMetalAdminMaintenanceConfig
*/
public function getMaintenanceConfig()
{
return $this->maintenanceConfig;
}
/**
* Output only. MaintenanceStatus representing state of maintenance.
*
* @param BareMetalAdminMaintenanceStatus $maintenanceStatus
*/
public function setMaintenanceStatus(BareMetalAdminMaintenanceStatus $maintenanceStatus)
{
$this->maintenanceStatus = $maintenanceStatus;
}
/**
* @return BareMetalAdminMaintenanceStatus
*/
public function getMaintenanceStatus()
{
return $this->maintenanceStatus;
}
/**
* Immutable. The bare metal admin cluster resource name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Network configuration.
*
* @param BareMetalAdminNetworkConfig $networkConfig
*/
public function setNetworkConfig(BareMetalAdminNetworkConfig $networkConfig)
{
$this->networkConfig = $networkConfig;
}
/**
* @return BareMetalAdminNetworkConfig
*/
public function getNetworkConfig()
{
return $this->networkConfig;
}
/**
* Node access related configurations.
*
* @param BareMetalAdminNodeAccessConfig $nodeAccessConfig
*/
public function setNodeAccessConfig(BareMetalAdminNodeAccessConfig $nodeAccessConfig)
{
$this->nodeAccessConfig = $nodeAccessConfig;
}
/**
* @return BareMetalAdminNodeAccessConfig
*/
public function getNodeAccessConfig()
{
return $this->nodeAccessConfig;
}
/**
* Workload node configuration.
*
* @param BareMetalAdminWorkloadNodeConfig $nodeConfig
*/
public function setNodeConfig(BareMetalAdminWorkloadNodeConfig $nodeConfig)
{
$this->nodeConfig = $nodeConfig;
}
/**
* @return BareMetalAdminWorkloadNodeConfig
*/
public function getNodeConfig()
{
return $this->nodeConfig;
}
/**
* OS environment related configurations.
*
* @param BareMetalAdminOsEnvironmentConfig $osEnvironmentConfig
*/
public function setOsEnvironmentConfig(BareMetalAdminOsEnvironmentConfig $osEnvironmentConfig)
{
$this->osEnvironmentConfig = $osEnvironmentConfig;
}
/**
* @return BareMetalAdminOsEnvironmentConfig
*/
public function getOsEnvironmentConfig()
{
return $this->osEnvironmentConfig;
}
/**
* Proxy configuration.
*
* @param BareMetalAdminProxyConfig $proxy
*/
public function setProxy(BareMetalAdminProxyConfig $proxy)
{
$this->proxy = $proxy;
}
/**
* @return BareMetalAdminProxyConfig
*/
public function getProxy()
{
return $this->proxy;
}
/**
* Output only. If set, there are currently changes in flight to the bare
* metal Admin Cluster.
*
* @param bool $reconciling
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* Security related configuration.
*
* @param BareMetalAdminSecurityConfig $securityConfig
*/
public function setSecurityConfig(BareMetalAdminSecurityConfig $securityConfig)
{
$this->securityConfig = $securityConfig;
}
/**
* @return BareMetalAdminSecurityConfig
*/
public function getSecurityConfig()
{
return $this->securityConfig;
}
/**
* Output only. The current state of the bare metal admin cluster.
*
* Accepted values: STATE_UNSPECIFIED, PROVISIONING, RUNNING, RECONCILING,
* STOPPING, ERROR, DEGRADED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. ResourceStatus representing detailed cluster status.
*
* @param ResourceStatus $status
*/
public function setStatus(ResourceStatus $status)
{
$this->status = $status;
}
/**
* @return ResourceStatus
*/
public function getStatus()
{
return $this->status;
}
/**
* Storage configuration.
*
* @param BareMetalAdminStorageConfig $storage
*/
public function setStorage(BareMetalAdminStorageConfig $storage)
{
$this->storage = $storage;
}
/**
* @return BareMetalAdminStorageConfig
*/
public function getStorage()
{
return $this->storage;
}
/**
* Output only. The unique identifier of the bare metal admin cluster.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The time at which this bare metal admin cluster was last
* updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. ValidationCheck representing the result of the preflight
* check.
*
* @param ValidationCheck $validationCheck
*/
public function setValidationCheck(ValidationCheck $validationCheck)
{
$this->validationCheck = $validationCheck;
}
/**
* @return ValidationCheck
*/
public function getValidationCheck()
{
return $this->validationCheck;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminCluster::class, 'Google_Service_GKEOnPrem_BareMetalAdminCluster');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminClusterOperationsConfig extends \Google\Model
{
/**
* Whether collection of application logs/metrics should be enabled (in
* addition to system logs/metrics).
*
* @var bool
*/
public $enableApplicationLogs;
/**
* Whether collection of application logs/metrics should be enabled (in
* addition to system logs/metrics).
*
* @param bool $enableApplicationLogs
*/
public function setEnableApplicationLogs($enableApplicationLogs)
{
$this->enableApplicationLogs = $enableApplicationLogs;
}
/**
* @return bool
*/
public function getEnableApplicationLogs()
{
return $this->enableApplicationLogs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminClusterOperationsConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminClusterOperationsConfig');

View File

@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminControlPlaneConfig extends \Google\Collection
{
protected $collection_key = 'apiServerArgs';
protected $apiServerArgsType = BareMetalAdminApiServerArgument::class;
protected $apiServerArgsDataType = 'array';
protected $controlPlaneNodePoolConfigType = BareMetalAdminControlPlaneNodePoolConfig::class;
protected $controlPlaneNodePoolConfigDataType = '';
/**
* Customizes the default API server args. Only a subset of customized flags
* are supported. Please refer to the API server documentation below to know
* the exact format: https://kubernetes.io/docs/reference/command-line-tools-
* reference/kube-apiserver/
*
* @param BareMetalAdminApiServerArgument[] $apiServerArgs
*/
public function setApiServerArgs($apiServerArgs)
{
$this->apiServerArgs = $apiServerArgs;
}
/**
* @return BareMetalAdminApiServerArgument[]
*/
public function getApiServerArgs()
{
return $this->apiServerArgs;
}
/**
* Required. Configures the node pool running the control plane. If specified
* the corresponding NodePool will be created for the cluster's control plane.
* The NodePool will have the same name and namespace as the cluster.
*
* @param BareMetalAdminControlPlaneNodePoolConfig $controlPlaneNodePoolConfig
*/
public function setControlPlaneNodePoolConfig(BareMetalAdminControlPlaneNodePoolConfig $controlPlaneNodePoolConfig)
{
$this->controlPlaneNodePoolConfig = $controlPlaneNodePoolConfig;
}
/**
* @return BareMetalAdminControlPlaneNodePoolConfig
*/
public function getControlPlaneNodePoolConfig()
{
return $this->controlPlaneNodePoolConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminControlPlaneConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminControlPlaneConfig');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminControlPlaneNodePoolConfig extends \Google\Model
{
protected $nodePoolConfigType = BareMetalNodePoolConfig::class;
protected $nodePoolConfigDataType = '';
/**
* Required. The generic configuration for a node pool running the control
* plane.
*
* @param BareMetalNodePoolConfig $nodePoolConfig
*/
public function setNodePoolConfig(BareMetalNodePoolConfig $nodePoolConfig)
{
$this->nodePoolConfig = $nodePoolConfig;
}
/**
* @return BareMetalNodePoolConfig
*/
public function getNodePoolConfig()
{
return $this->nodePoolConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminControlPlaneNodePoolConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminControlPlaneNodePoolConfig');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminDrainedMachine extends \Google\Model
{
/**
* Drained machine IP address.
*
* @var string
*/
public $nodeIp;
/**
* Drained machine IP address.
*
* @param string $nodeIp
*/
public function setNodeIp($nodeIp)
{
$this->nodeIp = $nodeIp;
}
/**
* @return string
*/
public function getNodeIp()
{
return $this->nodeIp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminDrainedMachine::class, 'Google_Service_GKEOnPrem_BareMetalAdminDrainedMachine');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminDrainingMachine extends \Google\Model
{
/**
* Draining machine IP address.
*
* @var string
*/
public $nodeIp;
/**
* The count of pods yet to drain.
*
* @var int
*/
public $podCount;
/**
* Draining machine IP address.
*
* @param string $nodeIp
*/
public function setNodeIp($nodeIp)
{
$this->nodeIp = $nodeIp;
}
/**
* @return string
*/
public function getNodeIp()
{
return $this->nodeIp;
}
/**
* The count of pods yet to drain.
*
* @param int $podCount
*/
public function setPodCount($podCount)
{
$this->podCount = $podCount;
}
/**
* @return int
*/
public function getPodCount()
{
return $this->podCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminDrainingMachine::class, 'Google_Service_GKEOnPrem_BareMetalAdminDrainingMachine');

View File

@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminIslandModeCidrConfig extends \Google\Collection
{
protected $collection_key = 'serviceAddressCidrBlocks';
/**
* Required. All pods in the cluster are assigned an RFC1918 IPv4 address from
* these ranges. This field cannot be changed after creation.
*
* @var string[]
*/
public $podAddressCidrBlocks;
/**
* Required. All services in the cluster are assigned an RFC1918 IPv4 address
* from these ranges. This field cannot be changed after creation.
*
* @var string[]
*/
public $serviceAddressCidrBlocks;
/**
* Required. All pods in the cluster are assigned an RFC1918 IPv4 address from
* these ranges. This field cannot be changed after creation.
*
* @param string[] $podAddressCidrBlocks
*/
public function setPodAddressCidrBlocks($podAddressCidrBlocks)
{
$this->podAddressCidrBlocks = $podAddressCidrBlocks;
}
/**
* @return string[]
*/
public function getPodAddressCidrBlocks()
{
return $this->podAddressCidrBlocks;
}
/**
* Required. All services in the cluster are assigned an RFC1918 IPv4 address
* from these ranges. This field cannot be changed after creation.
*
* @param string[] $serviceAddressCidrBlocks
*/
public function setServiceAddressCidrBlocks($serviceAddressCidrBlocks)
{
$this->serviceAddressCidrBlocks = $serviceAddressCidrBlocks;
}
/**
* @return string[]
*/
public function getServiceAddressCidrBlocks()
{
return $this->serviceAddressCidrBlocks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminIslandModeCidrConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminIslandModeCidrConfig');

View File

@@ -0,0 +1,119 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminLoadBalancerAddressPool extends \Google\Collection
{
protected $collection_key = 'addresses';
/**
* Required. The addresses that are part of this pool. Each address must be
* either in the CIDR form (1.2.3.0/24) or range form (1.2.3.1-1.2.3.5).
*
* @var string[]
*/
public $addresses;
/**
* If true, avoid using IPs ending in .0 or .255. This avoids buggy consumer
* devices mistakenly dropping IPv4 traffic for those special IP addresses.
*
* @var bool
*/
public $avoidBuggyIps;
/**
* If true, prevent IP addresses from being automatically assigned.
*
* @var bool
*/
public $manualAssign;
/**
* Required. The name of the address pool.
*
* @var string
*/
public $pool;
/**
* Required. The addresses that are part of this pool. Each address must be
* either in the CIDR form (1.2.3.0/24) or range form (1.2.3.1-1.2.3.5).
*
* @param string[] $addresses
*/
public function setAddresses($addresses)
{
$this->addresses = $addresses;
}
/**
* @return string[]
*/
public function getAddresses()
{
return $this->addresses;
}
/**
* If true, avoid using IPs ending in .0 or .255. This avoids buggy consumer
* devices mistakenly dropping IPv4 traffic for those special IP addresses.
*
* @param bool $avoidBuggyIps
*/
public function setAvoidBuggyIps($avoidBuggyIps)
{
$this->avoidBuggyIps = $avoidBuggyIps;
}
/**
* @return bool
*/
public function getAvoidBuggyIps()
{
return $this->avoidBuggyIps;
}
/**
* If true, prevent IP addresses from being automatically assigned.
*
* @param bool $manualAssign
*/
public function setManualAssign($manualAssign)
{
$this->manualAssign = $manualAssign;
}
/**
* @return bool
*/
public function getManualAssign()
{
return $this->manualAssign;
}
/**
* Required. The name of the address pool.
*
* @param string $pool
*/
public function setPool($pool)
{
$this->pool = $pool;
}
/**
* @return string
*/
public function getPool()
{
return $this->pool;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminLoadBalancerAddressPool::class, 'Google_Service_GKEOnPrem_BareMetalAdminLoadBalancerAddressPool');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminLoadBalancerConfig extends \Google\Model
{
protected $bgpLbConfigType = BareMetalAdminBgpLbConfig::class;
protected $bgpLbConfigDataType = '';
protected $manualLbConfigType = BareMetalAdminManualLbConfig::class;
protected $manualLbConfigDataType = '';
protected $portConfigType = BareMetalAdminPortConfig::class;
protected $portConfigDataType = '';
protected $vipConfigType = BareMetalAdminVipConfig::class;
protected $vipConfigDataType = '';
/**
* Configuration for BGP typed load balancers.
*
* @param BareMetalAdminBgpLbConfig $bgpLbConfig
*/
public function setBgpLbConfig(BareMetalAdminBgpLbConfig $bgpLbConfig)
{
$this->bgpLbConfig = $bgpLbConfig;
}
/**
* @return BareMetalAdminBgpLbConfig
*/
public function getBgpLbConfig()
{
return $this->bgpLbConfig;
}
/**
* Manually configured load balancers.
*
* @param BareMetalAdminManualLbConfig $manualLbConfig
*/
public function setManualLbConfig(BareMetalAdminManualLbConfig $manualLbConfig)
{
$this->manualLbConfig = $manualLbConfig;
}
/**
* @return BareMetalAdminManualLbConfig
*/
public function getManualLbConfig()
{
return $this->manualLbConfig;
}
/**
* Configures the ports that the load balancer will listen on.
*
* @param BareMetalAdminPortConfig $portConfig
*/
public function setPortConfig(BareMetalAdminPortConfig $portConfig)
{
$this->portConfig = $portConfig;
}
/**
* @return BareMetalAdminPortConfig
*/
public function getPortConfig()
{
return $this->portConfig;
}
/**
* The VIPs used by the load balancer.
*
* @param BareMetalAdminVipConfig $vipConfig
*/
public function setVipConfig(BareMetalAdminVipConfig $vipConfig)
{
$this->vipConfig = $vipConfig;
}
/**
* @return BareMetalAdminVipConfig
*/
public function getVipConfig()
{
return $this->vipConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminLoadBalancerConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminLoadBalancerConfig');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminLoadBalancerNodePoolConfig extends \Google\Model
{
protected $nodePoolConfigType = BareMetalNodePoolConfig::class;
protected $nodePoolConfigDataType = '';
/**
* The generic configuration for a node pool running a load balancer.
*
* @param BareMetalNodePoolConfig $nodePoolConfig
*/
public function setNodePoolConfig(BareMetalNodePoolConfig $nodePoolConfig)
{
$this->nodePoolConfig = $nodePoolConfig;
}
/**
* @return BareMetalNodePoolConfig
*/
public function getNodePoolConfig()
{
return $this->nodePoolConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminLoadBalancerNodePoolConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminLoadBalancerNodePoolConfig');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminMachineDrainStatus extends \Google\Collection
{
protected $collection_key = 'drainingMachines';
protected $drainedMachinesType = BareMetalAdminDrainedMachine::class;
protected $drainedMachinesDataType = 'array';
protected $drainingMachinesType = BareMetalAdminDrainingMachine::class;
protected $drainingMachinesDataType = 'array';
/**
* The list of drained machines.
*
* @param BareMetalAdminDrainedMachine[] $drainedMachines
*/
public function setDrainedMachines($drainedMachines)
{
$this->drainedMachines = $drainedMachines;
}
/**
* @return BareMetalAdminDrainedMachine[]
*/
public function getDrainedMachines()
{
return $this->drainedMachines;
}
/**
* The list of draning machines.
*
* @param BareMetalAdminDrainingMachine[] $drainingMachines
*/
public function setDrainingMachines($drainingMachines)
{
$this->drainingMachines = $drainingMachines;
}
/**
* @return BareMetalAdminDrainingMachine[]
*/
public function getDrainingMachines()
{
return $this->drainingMachines;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminMachineDrainStatus::class, 'Google_Service_GKEOnPrem_BareMetalAdminMachineDrainStatus');

View File

@@ -0,0 +1,55 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminMaintenanceConfig extends \Google\Collection
{
protected $collection_key = 'maintenanceAddressCidrBlocks';
/**
* Required. All IPv4 address from these ranges will be placed into
* maintenance mode. Nodes in maintenance mode will be cordoned and drained.
* When both of these are true, the "baremetal.cluster.gke.io/maintenance"
* annotation will be set on the node resource.
*
* @var string[]
*/
public $maintenanceAddressCidrBlocks;
/**
* Required. All IPv4 address from these ranges will be placed into
* maintenance mode. Nodes in maintenance mode will be cordoned and drained.
* When both of these are true, the "baremetal.cluster.gke.io/maintenance"
* annotation will be set on the node resource.
*
* @param string[] $maintenanceAddressCidrBlocks
*/
public function setMaintenanceAddressCidrBlocks($maintenanceAddressCidrBlocks)
{
$this->maintenanceAddressCidrBlocks = $maintenanceAddressCidrBlocks;
}
/**
* @return string[]
*/
public function getMaintenanceAddressCidrBlocks()
{
return $this->maintenanceAddressCidrBlocks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminMaintenanceConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminMaintenanceConfig');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminMaintenanceStatus extends \Google\Model
{
protected $machineDrainStatusType = BareMetalAdminMachineDrainStatus::class;
protected $machineDrainStatusDataType = '';
/**
* Represents the status of draining and drained machine nodes. This is used
* to show the progress of cluster upgrade.
*
* @param BareMetalAdminMachineDrainStatus $machineDrainStatus
*/
public function setMachineDrainStatus(BareMetalAdminMachineDrainStatus $machineDrainStatus)
{
$this->machineDrainStatus = $machineDrainStatus;
}
/**
* @return BareMetalAdminMachineDrainStatus
*/
public function getMachineDrainStatus()
{
return $this->machineDrainStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminMaintenanceStatus::class, 'Google_Service_GKEOnPrem_BareMetalAdminMaintenanceStatus');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminManualLbConfig extends \Google\Model
{
/**
* Whether manual load balancing is enabled.
*
* @var bool
*/
public $enabled;
/**
* Whether manual load balancing is enabled.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminManualLbConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminManualLbConfig');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminMultipleNetworkInterfacesConfig extends \Google\Model
{
/**
* Whether to enable multiple network interfaces for your pods. When set
* network_config.advanced_networking is automatically set to true.
*
* @var bool
*/
public $enabled;
/**
* Whether to enable multiple network interfaces for your pods. When set
* network_config.advanced_networking is automatically set to true.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminMultipleNetworkInterfacesConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminMultipleNetworkInterfacesConfig');

View File

@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminNetworkConfig extends \Google\Model
{
/**
* Enables the use of advanced Anthos networking features, such as Bundled
* Load Balancing with BGP or the egress NAT gateway. Setting configuration
* for advanced networking features will automatically set this flag.
*
* @var bool
*/
public $advancedNetworking;
protected $islandModeCidrType = BareMetalAdminIslandModeCidrConfig::class;
protected $islandModeCidrDataType = '';
protected $multipleNetworkInterfacesConfigType = BareMetalAdminMultipleNetworkInterfacesConfig::class;
protected $multipleNetworkInterfacesConfigDataType = '';
/**
* Enables the use of advanced Anthos networking features, such as Bundled
* Load Balancing with BGP or the egress NAT gateway. Setting configuration
* for advanced networking features will automatically set this flag.
*
* @param bool $advancedNetworking
*/
public function setAdvancedNetworking($advancedNetworking)
{
$this->advancedNetworking = $advancedNetworking;
}
/**
* @return bool
*/
public function getAdvancedNetworking()
{
return $this->advancedNetworking;
}
/**
* Configuration for Island mode CIDR.
*
* @param BareMetalAdminIslandModeCidrConfig $islandModeCidr
*/
public function setIslandModeCidr(BareMetalAdminIslandModeCidrConfig $islandModeCidr)
{
$this->islandModeCidr = $islandModeCidr;
}
/**
* @return BareMetalAdminIslandModeCidrConfig
*/
public function getIslandModeCidr()
{
return $this->islandModeCidr;
}
/**
* Configuration for multiple network interfaces.
*
* @param BareMetalAdminMultipleNetworkInterfacesConfig $multipleNetworkInterfacesConfig
*/
public function setMultipleNetworkInterfacesConfig(BareMetalAdminMultipleNetworkInterfacesConfig $multipleNetworkInterfacesConfig)
{
$this->multipleNetworkInterfacesConfig = $multipleNetworkInterfacesConfig;
}
/**
* @return BareMetalAdminMultipleNetworkInterfacesConfig
*/
public function getMultipleNetworkInterfacesConfig()
{
return $this->multipleNetworkInterfacesConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminNetworkConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminNetworkConfig');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminNodeAccessConfig extends \Google\Model
{
/**
* Required. LoginUser is the user name used to access node machines. It
* defaults to "root" if not set.
*
* @var string
*/
public $loginUser;
/**
* Required. LoginUser is the user name used to access node machines. It
* defaults to "root" if not set.
*
* @param string $loginUser
*/
public function setLoginUser($loginUser)
{
$this->loginUser = $loginUser;
}
/**
* @return string
*/
public function getLoginUser()
{
return $this->loginUser;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminNodeAccessConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminNodeAccessConfig');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminOsEnvironmentConfig extends \Google\Model
{
/**
* Whether the package repo should be added when initializing bare metal
* machines.
*
* @var bool
*/
public $packageRepoExcluded;
/**
* Whether the package repo should be added when initializing bare metal
* machines.
*
* @param bool $packageRepoExcluded
*/
public function setPackageRepoExcluded($packageRepoExcluded)
{
$this->packageRepoExcluded = $packageRepoExcluded;
}
/**
* @return bool
*/
public function getPackageRepoExcluded()
{
return $this->packageRepoExcluded;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminOsEnvironmentConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminOsEnvironmentConfig');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminPortConfig extends \Google\Model
{
/**
* The port that control plane hosted load balancers will listen on.
*
* @var int
*/
public $controlPlaneLoadBalancerPort;
/**
* The port that control plane hosted load balancers will listen on.
*
* @param int $controlPlaneLoadBalancerPort
*/
public function setControlPlaneLoadBalancerPort($controlPlaneLoadBalancerPort)
{
$this->controlPlaneLoadBalancerPort = $controlPlaneLoadBalancerPort;
}
/**
* @return int
*/
public function getControlPlaneLoadBalancerPort()
{
return $this->controlPlaneLoadBalancerPort;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminPortConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminPortConfig');

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminProxyConfig extends \Google\Collection
{
protected $collection_key = 'noProxy';
/**
* A list of IPs, hostnames, and domains that should skip the proxy. Examples:
* ["127.0.0.1", "example.com", ".corp", "localhost"].
*
* @var string[]
*/
public $noProxy;
/**
* Required. Specifies the address of your proxy server. Examples:
* `http://domain` WARNING: Do not provide credentials in the format
* `http://(username:password@)domain` these will be rejected by the server.
*
* @var string
*/
public $uri;
/**
* A list of IPs, hostnames, and domains that should skip the proxy. Examples:
* ["127.0.0.1", "example.com", ".corp", "localhost"].
*
* @param string[] $noProxy
*/
public function setNoProxy($noProxy)
{
$this->noProxy = $noProxy;
}
/**
* @return string[]
*/
public function getNoProxy()
{
return $this->noProxy;
}
/**
* Required. Specifies the address of your proxy server. Examples:
* `http://domain` WARNING: Do not provide credentials in the format
* `http://(username:password@)domain` these will be rejected by the server.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminProxyConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminProxyConfig');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminSecurityConfig extends \Google\Model
{
protected $authorizationType = Authorization::class;
protected $authorizationDataType = '';
/**
* Configures user access to the admin cluster.
*
* @param Authorization $authorization
*/
public function setAuthorization(Authorization $authorization)
{
$this->authorization = $authorization;
}
/**
* @return Authorization
*/
public function getAuthorization()
{
return $this->authorization;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminSecurityConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminSecurityConfig');

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminStorageConfig extends \Google\Model
{
protected $lvpNodeMountsConfigType = BareMetalLvpConfig::class;
protected $lvpNodeMountsConfigDataType = '';
protected $lvpShareConfigType = BareMetalLvpShareConfig::class;
protected $lvpShareConfigDataType = '';
/**
* Required. Specifies the config for local PersistentVolumes backed by
* mounted node disks. These disks need to be formatted and mounted by the
* user, which can be done before or after cluster creation.
*
* @param BareMetalLvpConfig $lvpNodeMountsConfig
*/
public function setLvpNodeMountsConfig(BareMetalLvpConfig $lvpNodeMountsConfig)
{
$this->lvpNodeMountsConfig = $lvpNodeMountsConfig;
}
/**
* @return BareMetalLvpConfig
*/
public function getLvpNodeMountsConfig()
{
return $this->lvpNodeMountsConfig;
}
/**
* Required. Specifies the config for local PersistentVolumes backed by
* subdirectories in a shared filesystem. These subdirectores are
* automatically created during cluster creation.
*
* @param BareMetalLvpShareConfig $lvpShareConfig
*/
public function setLvpShareConfig(BareMetalLvpShareConfig $lvpShareConfig)
{
$this->lvpShareConfig = $lvpShareConfig;
}
/**
* @return BareMetalLvpShareConfig
*/
public function getLvpShareConfig()
{
return $this->lvpShareConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminStorageConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminStorageConfig');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminVipConfig extends \Google\Model
{
/**
* The VIP which you previously set aside for the Kubernetes API of this bare
* metal admin cluster.
*
* @var string
*/
public $controlPlaneVip;
/**
* The VIP which you previously set aside for the Kubernetes API of this bare
* metal admin cluster.
*
* @param string $controlPlaneVip
*/
public function setControlPlaneVip($controlPlaneVip)
{
$this->controlPlaneVip = $controlPlaneVip;
}
/**
* @return string
*/
public function getControlPlaneVip()
{
return $this->controlPlaneVip;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminVipConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminVipConfig');

View File

@@ -0,0 +1,56 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalAdminWorkloadNodeConfig extends \Google\Model
{
/**
* The maximum number of pods a node can run. The size of the CIDR range
* assigned to the node will be derived from this parameter. By default 110
* Pods are created per Node. Upper bound is 250 for both HA and non-HA admin
* cluster. Lower bound is 64 for non-HA admin cluster and 32 for HA admin
* cluster.
*
* @var string
*/
public $maxPodsPerNode;
/**
* The maximum number of pods a node can run. The size of the CIDR range
* assigned to the node will be derived from this parameter. By default 110
* Pods are created per Node. Upper bound is 250 for both HA and non-HA admin
* cluster. Lower bound is 64 for non-HA admin cluster and 32 for HA admin
* cluster.
*
* @param string $maxPodsPerNode
*/
public function setMaxPodsPerNode($maxPodsPerNode)
{
$this->maxPodsPerNode = $maxPodsPerNode;
}
/**
* @return string
*/
public function getMaxPodsPerNode()
{
return $this->maxPodsPerNode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalAdminWorkloadNodeConfig::class, 'Google_Service_GKEOnPrem_BareMetalAdminWorkloadNodeConfig');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalApiServerArgument extends \Google\Model
{
/**
* Required. The argument name as it appears on the API Server command line,
* make sure to remove the leading dashes.
*
* @var string
*/
public $argument;
/**
* Required. The value of the arg as it will be passed to the API Server
* command line.
*
* @var string
*/
public $value;
/**
* Required. The argument name as it appears on the API Server command line,
* make sure to remove the leading dashes.
*
* @param string $argument
*/
public function setArgument($argument)
{
$this->argument = $argument;
}
/**
* @return string
*/
public function getArgument()
{
return $this->argument;
}
/**
* Required. The value of the arg as it will be passed to the API Server
* command line.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalApiServerArgument::class, 'Google_Service_GKEOnPrem_BareMetalApiServerArgument');

View File

@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalBgpLbConfig extends \Google\Collection
{
protected $collection_key = 'bgpPeerConfigs';
protected $addressPoolsType = BareMetalLoadBalancerAddressPool::class;
protected $addressPoolsDataType = 'array';
/**
* Required. BGP autonomous system number (ASN) of the cluster. This field can
* be updated after cluster creation.
*
* @var string
*/
public $asn;
protected $bgpPeerConfigsType = BareMetalBgpPeerConfig::class;
protected $bgpPeerConfigsDataType = 'array';
protected $loadBalancerNodePoolConfigType = BareMetalLoadBalancerNodePoolConfig::class;
protected $loadBalancerNodePoolConfigDataType = '';
/**
* Required. AddressPools is a list of non-overlapping IP pools used by load
* balancer typed services. All addresses must be routable to load balancer
* nodes. IngressVIP must be included in the pools.
*
* @param BareMetalLoadBalancerAddressPool[] $addressPools
*/
public function setAddressPools($addressPools)
{
$this->addressPools = $addressPools;
}
/**
* @return BareMetalLoadBalancerAddressPool[]
*/
public function getAddressPools()
{
return $this->addressPools;
}
/**
* Required. BGP autonomous system number (ASN) of the cluster. This field can
* be updated after cluster creation.
*
* @param string $asn
*/
public function setAsn($asn)
{
$this->asn = $asn;
}
/**
* @return string
*/
public function getAsn()
{
return $this->asn;
}
/**
* Required. The list of BGP peers that the cluster will connect to. At least
* one peer must be configured for each control plane node. Control plane
* nodes will connect to these peers to advertise the control plane VIP. The
* Services load balancer also uses these peers by default. This field can be
* updated after cluster creation.
*
* @param BareMetalBgpPeerConfig[] $bgpPeerConfigs
*/
public function setBgpPeerConfigs($bgpPeerConfigs)
{
$this->bgpPeerConfigs = $bgpPeerConfigs;
}
/**
* @return BareMetalBgpPeerConfig[]
*/
public function getBgpPeerConfigs()
{
return $this->bgpPeerConfigs;
}
/**
* Specifies the node pool running data plane load balancing. L2 connectivity
* is required among nodes in this pool. If missing, the control plane node
* pool is used for data plane load balancing.
*
* @param BareMetalLoadBalancerNodePoolConfig $loadBalancerNodePoolConfig
*/
public function setLoadBalancerNodePoolConfig(BareMetalLoadBalancerNodePoolConfig $loadBalancerNodePoolConfig)
{
$this->loadBalancerNodePoolConfig = $loadBalancerNodePoolConfig;
}
/**
* @return BareMetalLoadBalancerNodePoolConfig
*/
public function getLoadBalancerNodePoolConfig()
{
return $this->loadBalancerNodePoolConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalBgpLbConfig::class, 'Google_Service_GKEOnPrem_BareMetalBgpLbConfig');

View File

@@ -0,0 +1,101 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalBgpPeerConfig extends \Google\Collection
{
protected $collection_key = 'controlPlaneNodes';
/**
* Required. BGP autonomous system number (ASN) for the network that contains
* the external peer device.
*
* @var string
*/
public $asn;
/**
* The IP address of the control plane node that connects to the external
* peer. If you don't specify any control plane nodes, all control plane nodes
* can connect to the external peer. If you specify one or more IP addresses,
* only the nodes specified participate in peering sessions.
*
* @var string[]
*/
public $controlPlaneNodes;
/**
* Required. The IP address of the external peer device.
*
* @var string
*/
public $ipAddress;
/**
* Required. BGP autonomous system number (ASN) for the network that contains
* the external peer device.
*
* @param string $asn
*/
public function setAsn($asn)
{
$this->asn = $asn;
}
/**
* @return string
*/
public function getAsn()
{
return $this->asn;
}
/**
* The IP address of the control plane node that connects to the external
* peer. If you don't specify any control plane nodes, all control plane nodes
* can connect to the external peer. If you specify one or more IP addresses,
* only the nodes specified participate in peering sessions.
*
* @param string[] $controlPlaneNodes
*/
public function setControlPlaneNodes($controlPlaneNodes)
{
$this->controlPlaneNodes = $controlPlaneNodes;
}
/**
* @return string[]
*/
public function getControlPlaneNodes()
{
return $this->controlPlaneNodes;
}
/**
* Required. The IP address of the external peer device.
*
* @param string $ipAddress
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalBgpPeerConfig::class, 'Google_Service_GKEOnPrem_BareMetalBgpPeerConfig');

View File

@@ -0,0 +1,760 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalCluster extends \Google\Model
{
/**
* Not set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The PROVISIONING state indicates the cluster is being created.
*/
public const STATE_PROVISIONING = 'PROVISIONING';
/**
* The RUNNING state indicates the cluster has been created and is fully
* usable.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The RECONCILING state indicates that the cluster is being updated. It
* remains available, but potentially with degraded performance.
*/
public const STATE_RECONCILING = 'RECONCILING';
/**
* The STOPPING state indicates the cluster is being deleted.
*/
public const STATE_STOPPING = 'STOPPING';
/**
* The ERROR state indicates the cluster is in a broken unrecoverable state.
*/
public const STATE_ERROR = 'ERROR';
/**
* The DEGRADED state indicates the cluster requires user action to restore
* full functionality.
*/
public const STATE_DEGRADED = 'DEGRADED';
/**
* Required. The admin cluster this bare metal user cluster belongs to. This
* is the full resource name of the admin cluster's fleet membership.
*
* @var string
*/
public $adminClusterMembership;
/**
* Output only. The resource name of the bare metal admin cluster managing
* this user cluster.
*
* @var string
*/
public $adminClusterName;
/**
* Annotations on the bare metal user cluster. This field has the same
* restrictions as Kubernetes annotations. The total size of all keys and
* values combined is limited to 256k. Key can have 2 segments: prefix
* (optional) and name (required), separated by a slash (/). Prefix must be a
* DNS subdomain. Name must be 63 characters or less, begin and end with
* alphanumerics, with dashes (-), underscores (_), dots (.), and
* alphanumerics between.
*
* @var string[]
*/
public $annotations;
/**
* Required. The Anthos clusters on bare metal version for your user cluster.
*
* @var string
*/
public $bareMetalVersion;
protected $binaryAuthorizationType = BinaryAuthorization::class;
protected $binaryAuthorizationDataType = '';
protected $clusterOperationsType = BareMetalClusterOperationsConfig::class;
protected $clusterOperationsDataType = '';
protected $controlPlaneType = BareMetalControlPlaneConfig::class;
protected $controlPlaneDataType = '';
/**
* Output only. The time when the bare metal user cluster was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time when the bare metal user cluster was deleted. If the
* resource is not deleted, this must be empty
*
* @var string
*/
public $deleteTime;
/**
* A human readable description of this bare metal user cluster.
*
* @var string
*/
public $description;
/**
* Output only. The IP address of the bare metal user cluster's API server.
*
* @var string
*/
public $endpoint;
/**
* Output only. This checksum is computed by the server based on the value of
* other fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding. Allows clients to perform
* consistent read-modify-writes through optimistic concurrency control.
*
* @var string
*/
public $etag;
protected $fleetType = Fleet::class;
protected $fleetDataType = '';
protected $loadBalancerType = BareMetalLoadBalancerConfig::class;
protected $loadBalancerDataType = '';
/**
* Output only. The object name of the bare metal user cluster custom resource
* on the associated admin cluster. This field is used to support conflicting
* names when enrolling existing clusters to the API. When used as a part of
* cluster enrollment, this field will differ from the name in the resource
* name. For new clusters, this field will match the user provided cluster
* name and be visible in the last component of the resource name. It is not
* modifiable. When the local name and cluster name differ, the local name is
* used in the admin cluster controller logs. You use the cluster name when
* accessing the cluster using bmctl and kubectl.
*
* @var string
*/
public $localName;
/**
* Output only. The namespace of the cluster.
*
* @var string
*/
public $localNamespace;
protected $maintenanceConfigType = BareMetalMaintenanceConfig::class;
protected $maintenanceConfigDataType = '';
protected $maintenanceStatusType = BareMetalMaintenanceStatus::class;
protected $maintenanceStatusDataType = '';
/**
* Immutable. The bare metal user cluster resource name.
*
* @var string
*/
public $name;
protected $networkConfigType = BareMetalNetworkConfig::class;
protected $networkConfigDataType = '';
protected $nodeAccessConfigType = BareMetalNodeAccessConfig::class;
protected $nodeAccessConfigDataType = '';
protected $nodeConfigType = BareMetalWorkloadNodeConfig::class;
protected $nodeConfigDataType = '';
protected $osEnvironmentConfigType = BareMetalOsEnvironmentConfig::class;
protected $osEnvironmentConfigDataType = '';
protected $proxyType = BareMetalProxyConfig::class;
protected $proxyDataType = '';
/**
* Output only. If set, there are currently changes in flight to the bare
* metal user cluster.
*
* @var bool
*/
public $reconciling;
protected $securityConfigType = BareMetalSecurityConfig::class;
protected $securityConfigDataType = '';
/**
* Output only. The current state of the bare metal user cluster.
*
* @var string
*/
public $state;
protected $statusType = ResourceStatus::class;
protected $statusDataType = '';
protected $storageType = BareMetalStorageConfig::class;
protected $storageDataType = '';
/**
* Output only. The unique identifier of the bare metal user cluster.
*
* @var string
*/
public $uid;
/**
* Output only. The time when the bare metal user cluster was last updated.
*
* @var string
*/
public $updateTime;
protected $upgradePolicyType = BareMetalClusterUpgradePolicy::class;
protected $upgradePolicyDataType = '';
protected $validationCheckType = ValidationCheck::class;
protected $validationCheckDataType = '';
/**
* Required. The admin cluster this bare metal user cluster belongs to. This
* is the full resource name of the admin cluster's fleet membership.
*
* @param string $adminClusterMembership
*/
public function setAdminClusterMembership($adminClusterMembership)
{
$this->adminClusterMembership = $adminClusterMembership;
}
/**
* @return string
*/
public function getAdminClusterMembership()
{
return $this->adminClusterMembership;
}
/**
* Output only. The resource name of the bare metal admin cluster managing
* this user cluster.
*
* @param string $adminClusterName
*/
public function setAdminClusterName($adminClusterName)
{
$this->adminClusterName = $adminClusterName;
}
/**
* @return string
*/
public function getAdminClusterName()
{
return $this->adminClusterName;
}
/**
* Annotations on the bare metal user cluster. This field has the same
* restrictions as Kubernetes annotations. The total size of all keys and
* values combined is limited to 256k. Key can have 2 segments: prefix
* (optional) and name (required), separated by a slash (/). Prefix must be a
* DNS subdomain. Name must be 63 characters or less, begin and end with
* alphanumerics, with dashes (-), underscores (_), dots (.), and
* alphanumerics between.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Required. The Anthos clusters on bare metal version for your user cluster.
*
* @param string $bareMetalVersion
*/
public function setBareMetalVersion($bareMetalVersion)
{
$this->bareMetalVersion = $bareMetalVersion;
}
/**
* @return string
*/
public function getBareMetalVersion()
{
return $this->bareMetalVersion;
}
/**
* Binary Authorization related configurations.
*
* @param BinaryAuthorization $binaryAuthorization
*/
public function setBinaryAuthorization(BinaryAuthorization $binaryAuthorization)
{
$this->binaryAuthorization = $binaryAuthorization;
}
/**
* @return BinaryAuthorization
*/
public function getBinaryAuthorization()
{
return $this->binaryAuthorization;
}
/**
* Cluster operations configuration.
*
* @param BareMetalClusterOperationsConfig $clusterOperations
*/
public function setClusterOperations(BareMetalClusterOperationsConfig $clusterOperations)
{
$this->clusterOperations = $clusterOperations;
}
/**
* @return BareMetalClusterOperationsConfig
*/
public function getClusterOperations()
{
return $this->clusterOperations;
}
/**
* Required. Control plane configuration.
*
* @param BareMetalControlPlaneConfig $controlPlane
*/
public function setControlPlane(BareMetalControlPlaneConfig $controlPlane)
{
$this->controlPlane = $controlPlane;
}
/**
* @return BareMetalControlPlaneConfig
*/
public function getControlPlane()
{
return $this->controlPlane;
}
/**
* Output only. The time when the bare metal user cluster was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time when the bare metal user cluster was deleted. If the
* resource is not deleted, this must be empty
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* A human readable description of this bare metal user cluster.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. The IP address of the bare metal user cluster's API server.
*
* @param string $endpoint
*/
public function setEndpoint($endpoint)
{
$this->endpoint = $endpoint;
}
/**
* @return string
*/
public function getEndpoint()
{
return $this->endpoint;
}
/**
* Output only. This checksum is computed by the server based on the value of
* other fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding. Allows clients to perform
* consistent read-modify-writes through optimistic concurrency control.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. Fleet configuration for the cluster.
*
* @param Fleet $fleet
*/
public function setFleet(Fleet $fleet)
{
$this->fleet = $fleet;
}
/**
* @return Fleet
*/
public function getFleet()
{
return $this->fleet;
}
/**
* Required. Load balancer configuration.
*
* @param BareMetalLoadBalancerConfig $loadBalancer
*/
public function setLoadBalancer(BareMetalLoadBalancerConfig $loadBalancer)
{
$this->loadBalancer = $loadBalancer;
}
/**
* @return BareMetalLoadBalancerConfig
*/
public function getLoadBalancer()
{
return $this->loadBalancer;
}
/**
* Output only. The object name of the bare metal user cluster custom resource
* on the associated admin cluster. This field is used to support conflicting
* names when enrolling existing clusters to the API. When used as a part of
* cluster enrollment, this field will differ from the name in the resource
* name. For new clusters, this field will match the user provided cluster
* name and be visible in the last component of the resource name. It is not
* modifiable. When the local name and cluster name differ, the local name is
* used in the admin cluster controller logs. You use the cluster name when
* accessing the cluster using bmctl and kubectl.
*
* @param string $localName
*/
public function setLocalName($localName)
{
$this->localName = $localName;
}
/**
* @return string
*/
public function getLocalName()
{
return $this->localName;
}
/**
* Output only. The namespace of the cluster.
*
* @param string $localNamespace
*/
public function setLocalNamespace($localNamespace)
{
$this->localNamespace = $localNamespace;
}
/**
* @return string
*/
public function getLocalNamespace()
{
return $this->localNamespace;
}
/**
* Maintenance configuration.
*
* @param BareMetalMaintenanceConfig $maintenanceConfig
*/
public function setMaintenanceConfig(BareMetalMaintenanceConfig $maintenanceConfig)
{
$this->maintenanceConfig = $maintenanceConfig;
}
/**
* @return BareMetalMaintenanceConfig
*/
public function getMaintenanceConfig()
{
return $this->maintenanceConfig;
}
/**
* Output only. Status of on-going maintenance tasks.
*
* @param BareMetalMaintenanceStatus $maintenanceStatus
*/
public function setMaintenanceStatus(BareMetalMaintenanceStatus $maintenanceStatus)
{
$this->maintenanceStatus = $maintenanceStatus;
}
/**
* @return BareMetalMaintenanceStatus
*/
public function getMaintenanceStatus()
{
return $this->maintenanceStatus;
}
/**
* Immutable. The bare metal user cluster resource name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Network configuration.
*
* @param BareMetalNetworkConfig $networkConfig
*/
public function setNetworkConfig(BareMetalNetworkConfig $networkConfig)
{
$this->networkConfig = $networkConfig;
}
/**
* @return BareMetalNetworkConfig
*/
public function getNetworkConfig()
{
return $this->networkConfig;
}
/**
* Node access related configurations.
*
* @param BareMetalNodeAccessConfig $nodeAccessConfig
*/
public function setNodeAccessConfig(BareMetalNodeAccessConfig $nodeAccessConfig)
{
$this->nodeAccessConfig = $nodeAccessConfig;
}
/**
* @return BareMetalNodeAccessConfig
*/
public function getNodeAccessConfig()
{
return $this->nodeAccessConfig;
}
/**
* Workload node configuration.
*
* @param BareMetalWorkloadNodeConfig $nodeConfig
*/
public function setNodeConfig(BareMetalWorkloadNodeConfig $nodeConfig)
{
$this->nodeConfig = $nodeConfig;
}
/**
* @return BareMetalWorkloadNodeConfig
*/
public function getNodeConfig()
{
return $this->nodeConfig;
}
/**
* OS environment related configurations.
*
* @param BareMetalOsEnvironmentConfig $osEnvironmentConfig
*/
public function setOsEnvironmentConfig(BareMetalOsEnvironmentConfig $osEnvironmentConfig)
{
$this->osEnvironmentConfig = $osEnvironmentConfig;
}
/**
* @return BareMetalOsEnvironmentConfig
*/
public function getOsEnvironmentConfig()
{
return $this->osEnvironmentConfig;
}
/**
* Proxy configuration.
*
* @param BareMetalProxyConfig $proxy
*/
public function setProxy(BareMetalProxyConfig $proxy)
{
$this->proxy = $proxy;
}
/**
* @return BareMetalProxyConfig
*/
public function getProxy()
{
return $this->proxy;
}
/**
* Output only. If set, there are currently changes in flight to the bare
* metal user cluster.
*
* @param bool $reconciling
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* Security related setting configuration.
*
* @param BareMetalSecurityConfig $securityConfig
*/
public function setSecurityConfig(BareMetalSecurityConfig $securityConfig)
{
$this->securityConfig = $securityConfig;
}
/**
* @return BareMetalSecurityConfig
*/
public function getSecurityConfig()
{
return $this->securityConfig;
}
/**
* Output only. The current state of the bare metal user cluster.
*
* Accepted values: STATE_UNSPECIFIED, PROVISIONING, RUNNING, RECONCILING,
* STOPPING, ERROR, DEGRADED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Detailed cluster status.
*
* @param ResourceStatus $status
*/
public function setStatus(ResourceStatus $status)
{
$this->status = $status;
}
/**
* @return ResourceStatus
*/
public function getStatus()
{
return $this->status;
}
/**
* Required. Storage configuration.
*
* @param BareMetalStorageConfig $storage
*/
public function setStorage(BareMetalStorageConfig $storage)
{
$this->storage = $storage;
}
/**
* @return BareMetalStorageConfig
*/
public function getStorage()
{
return $this->storage;
}
/**
* Output only. The unique identifier of the bare metal user cluster.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The time when the bare metal user cluster was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* The cluster upgrade policy.
*
* @param BareMetalClusterUpgradePolicy $upgradePolicy
*/
public function setUpgradePolicy(BareMetalClusterUpgradePolicy $upgradePolicy)
{
$this->upgradePolicy = $upgradePolicy;
}
/**
* @return BareMetalClusterUpgradePolicy
*/
public function getUpgradePolicy()
{
return $this->upgradePolicy;
}
/**
* Output only. The result of the preflight check.
*
* @param ValidationCheck $validationCheck
*/
public function setValidationCheck(ValidationCheck $validationCheck)
{
$this->validationCheck = $validationCheck;
}
/**
* @return ValidationCheck
*/
public function getValidationCheck()
{
return $this->validationCheck;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalCluster::class, 'Google_Service_GKEOnPrem_BareMetalCluster');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalClusterOperationsConfig extends \Google\Model
{
/**
* Whether collection of application logs/metrics should be enabled (in
* addition to system logs/metrics).
*
* @var bool
*/
public $enableApplicationLogs;
/**
* Whether collection of application logs/metrics should be enabled (in
* addition to system logs/metrics).
*
* @param bool $enableApplicationLogs
*/
public function setEnableApplicationLogs($enableApplicationLogs)
{
$this->enableApplicationLogs = $enableApplicationLogs;
}
/**
* @return bool
*/
public function getEnableApplicationLogs()
{
return $this->enableApplicationLogs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalClusterOperationsConfig::class, 'Google_Service_GKEOnPrem_BareMetalClusterOperationsConfig');

View File

@@ -0,0 +1,86 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalClusterUpgradePolicy extends \Google\Model
{
/**
* No upgrade policy selected.
*/
public const POLICY_NODE_POOL_POLICY_UNSPECIFIED = 'NODE_POOL_POLICY_UNSPECIFIED';
/**
* Upgrade worker node pools sequentially.
*/
public const POLICY_SERIAL = 'SERIAL';
/**
* Upgrade all worker node pools in parallel.
*/
public const POLICY_CONCURRENT = 'CONCURRENT';
/**
* Output only. Pause is used to show the upgrade pause status. It's view only
* for now.
*
* @var bool
*/
public $pause;
/**
* Specifies which upgrade policy to use.
*
* @var string
*/
public $policy;
/**
* Output only. Pause is used to show the upgrade pause status. It's view only
* for now.
*
* @param bool $pause
*/
public function setPause($pause)
{
$this->pause = $pause;
}
/**
* @return bool
*/
public function getPause()
{
return $this->pause;
}
/**
* Specifies which upgrade policy to use.
*
* Accepted values: NODE_POOL_POLICY_UNSPECIFIED, SERIAL, CONCURRENT
*
* @param self::POLICY_* $policy
*/
public function setPolicy($policy)
{
$this->policy = $policy;
}
/**
* @return self::POLICY_*
*/
public function getPolicy()
{
return $this->policy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalClusterUpgradePolicy::class, 'Google_Service_GKEOnPrem_BareMetalClusterUpgradePolicy');

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalControlPlaneConfig extends \Google\Collection
{
protected $collection_key = 'apiServerArgs';
protected $apiServerArgsType = BareMetalApiServerArgument::class;
protected $apiServerArgsDataType = 'array';
protected $controlPlaneNodePoolConfigType = BareMetalControlPlaneNodePoolConfig::class;
protected $controlPlaneNodePoolConfigDataType = '';
/**
* Customizes the default API server args. Only a subset of customized flags
* are supported. For the exact format, refer to the [API server
* documentation](https://kubernetes.io/docs/reference/command-line-tools-
* reference/kube-apiserver/).
*
* @param BareMetalApiServerArgument[] $apiServerArgs
*/
public function setApiServerArgs($apiServerArgs)
{
$this->apiServerArgs = $apiServerArgs;
}
/**
* @return BareMetalApiServerArgument[]
*/
public function getApiServerArgs()
{
return $this->apiServerArgs;
}
/**
* Required. Configures the node pool running the control plane.
*
* @param BareMetalControlPlaneNodePoolConfig $controlPlaneNodePoolConfig
*/
public function setControlPlaneNodePoolConfig(BareMetalControlPlaneNodePoolConfig $controlPlaneNodePoolConfig)
{
$this->controlPlaneNodePoolConfig = $controlPlaneNodePoolConfig;
}
/**
* @return BareMetalControlPlaneNodePoolConfig
*/
public function getControlPlaneNodePoolConfig()
{
return $this->controlPlaneNodePoolConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalControlPlaneConfig::class, 'Google_Service_GKEOnPrem_BareMetalControlPlaneConfig');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalControlPlaneNodePoolConfig extends \Google\Model
{
protected $nodePoolConfigType = BareMetalNodePoolConfig::class;
protected $nodePoolConfigDataType = '';
/**
* Required. The generic configuration for a node pool running the control
* plane.
*
* @param BareMetalNodePoolConfig $nodePoolConfig
*/
public function setNodePoolConfig(BareMetalNodePoolConfig $nodePoolConfig)
{
$this->nodePoolConfig = $nodePoolConfig;
}
/**
* @return BareMetalNodePoolConfig
*/
public function getNodePoolConfig()
{
return $this->nodePoolConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalControlPlaneNodePoolConfig::class, 'Google_Service_GKEOnPrem_BareMetalControlPlaneNodePoolConfig');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalDrainedMachine extends \Google\Model
{
/**
* Drained machine IP address.
*
* @var string
*/
public $nodeIp;
/**
* Drained machine IP address.
*
* @param string $nodeIp
*/
public function setNodeIp($nodeIp)
{
$this->nodeIp = $nodeIp;
}
/**
* @return string
*/
public function getNodeIp()
{
return $this->nodeIp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalDrainedMachine::class, 'Google_Service_GKEOnPrem_BareMetalDrainedMachine');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalDrainingMachine extends \Google\Model
{
/**
* Draining machine IP address.
*
* @var string
*/
public $nodeIp;
/**
* The count of pods yet to drain.
*
* @var int
*/
public $podCount;
/**
* Draining machine IP address.
*
* @param string $nodeIp
*/
public function setNodeIp($nodeIp)
{
$this->nodeIp = $nodeIp;
}
/**
* @return string
*/
public function getNodeIp()
{
return $this->nodeIp;
}
/**
* The count of pods yet to drain.
*
* @param int $podCount
*/
public function setPodCount($podCount)
{
$this->podCount = $podCount;
}
/**
* @return int
*/
public function getPodCount()
{
return $this->podCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalDrainingMachine::class, 'Google_Service_GKEOnPrem_BareMetalDrainingMachine');

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalIslandModeCidrConfig extends \Google\Collection
{
protected $collection_key = 'serviceAddressCidrBlocks';
/**
* Required. All pods in the cluster are assigned an RFC1918 IPv4 address from
* these ranges. This field cannot be changed after creation.
*
* @var string[]
*/
public $podAddressCidrBlocks;
/**
* Required. All services in the cluster are assigned an RFC1918 IPv4 address
* from these ranges. This field is mutable after creation starting with
* version 1.15.
*
* @var string[]
*/
public $serviceAddressCidrBlocks;
/**
* Required. All pods in the cluster are assigned an RFC1918 IPv4 address from
* these ranges. This field cannot be changed after creation.
*
* @param string[] $podAddressCidrBlocks
*/
public function setPodAddressCidrBlocks($podAddressCidrBlocks)
{
$this->podAddressCidrBlocks = $podAddressCidrBlocks;
}
/**
* @return string[]
*/
public function getPodAddressCidrBlocks()
{
return $this->podAddressCidrBlocks;
}
/**
* Required. All services in the cluster are assigned an RFC1918 IPv4 address
* from these ranges. This field is mutable after creation starting with
* version 1.15.
*
* @param string[] $serviceAddressCidrBlocks
*/
public function setServiceAddressCidrBlocks($serviceAddressCidrBlocks)
{
$this->serviceAddressCidrBlocks = $serviceAddressCidrBlocks;
}
/**
* @return string[]
*/
public function getServiceAddressCidrBlocks()
{
return $this->serviceAddressCidrBlocks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalIslandModeCidrConfig::class, 'Google_Service_GKEOnPrem_BareMetalIslandModeCidrConfig');

View File

@@ -0,0 +1,108 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalKubeletConfig extends \Google\Model
{
/**
* The maximum size of bursty pulls, temporarily allows pulls to burst to this
* number, while still not exceeding registry_pull_qps. The value must not be
* a negative number. Updating this field may impact scalability by changing
* the amount of traffic produced by image pulls. Defaults to 10.
*
* @var int
*/
public $registryBurst;
/**
* The limit of registry pulls per second. Setting this value to 0 means no
* limit. Updating this field may impact scalability by changing the amount of
* traffic produced by image pulls. Defaults to 5.
*
* @var int
*/
public $registryPullQps;
/**
* Prevents the Kubelet from pulling multiple images at a time. We recommend
* *not* changing the default value on nodes that run docker daemon with
* version < 1.9 or an Another Union File System (Aufs) storage backend. Issue
* https://github.com/kubernetes/kubernetes/issues/10959 has more details.
*
* @var bool
*/
public $serializeImagePullsDisabled;
/**
* The maximum size of bursty pulls, temporarily allows pulls to burst to this
* number, while still not exceeding registry_pull_qps. The value must not be
* a negative number. Updating this field may impact scalability by changing
* the amount of traffic produced by image pulls. Defaults to 10.
*
* @param int $registryBurst
*/
public function setRegistryBurst($registryBurst)
{
$this->registryBurst = $registryBurst;
}
/**
* @return int
*/
public function getRegistryBurst()
{
return $this->registryBurst;
}
/**
* The limit of registry pulls per second. Setting this value to 0 means no
* limit. Updating this field may impact scalability by changing the amount of
* traffic produced by image pulls. Defaults to 5.
*
* @param int $registryPullQps
*/
public function setRegistryPullQps($registryPullQps)
{
$this->registryPullQps = $registryPullQps;
}
/**
* @return int
*/
public function getRegistryPullQps()
{
return $this->registryPullQps;
}
/**
* Prevents the Kubelet from pulling multiple images at a time. We recommend
* *not* changing the default value on nodes that run docker daemon with
* version < 1.9 or an Another Union File System (Aufs) storage backend. Issue
* https://github.com/kubernetes/kubernetes/issues/10959 has more details.
*
* @param bool $serializeImagePullsDisabled
*/
public function setSerializeImagePullsDisabled($serializeImagePullsDisabled)
{
$this->serializeImagePullsDisabled = $serializeImagePullsDisabled;
}
/**
* @return bool
*/
public function getSerializeImagePullsDisabled()
{
return $this->serializeImagePullsDisabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalKubeletConfig::class, 'Google_Service_GKEOnPrem_BareMetalKubeletConfig');

View File

@@ -0,0 +1,119 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalLoadBalancerAddressPool extends \Google\Collection
{
protected $collection_key = 'addresses';
/**
* Required. The addresses that are part of this pool. Each address must be
* either in the CIDR form (1.2.3.0/24) or range form (1.2.3.1-1.2.3.5).
*
* @var string[]
*/
public $addresses;
/**
* If true, avoid using IPs ending in .0 or .255. This avoids buggy consumer
* devices mistakenly dropping IPv4 traffic for those special IP addresses.
*
* @var bool
*/
public $avoidBuggyIps;
/**
* If true, prevent IP addresses from being automatically assigned.
*
* @var bool
*/
public $manualAssign;
/**
* Required. The name of the address pool.
*
* @var string
*/
public $pool;
/**
* Required. The addresses that are part of this pool. Each address must be
* either in the CIDR form (1.2.3.0/24) or range form (1.2.3.1-1.2.3.5).
*
* @param string[] $addresses
*/
public function setAddresses($addresses)
{
$this->addresses = $addresses;
}
/**
* @return string[]
*/
public function getAddresses()
{
return $this->addresses;
}
/**
* If true, avoid using IPs ending in .0 or .255. This avoids buggy consumer
* devices mistakenly dropping IPv4 traffic for those special IP addresses.
*
* @param bool $avoidBuggyIps
*/
public function setAvoidBuggyIps($avoidBuggyIps)
{
$this->avoidBuggyIps = $avoidBuggyIps;
}
/**
* @return bool
*/
public function getAvoidBuggyIps()
{
return $this->avoidBuggyIps;
}
/**
* If true, prevent IP addresses from being automatically assigned.
*
* @param bool $manualAssign
*/
public function setManualAssign($manualAssign)
{
$this->manualAssign = $manualAssign;
}
/**
* @return bool
*/
public function getManualAssign()
{
return $this->manualAssign;
}
/**
* Required. The name of the address pool.
*
* @param string $pool
*/
public function setPool($pool)
{
$this->pool = $pool;
}
/**
* @return string
*/
public function getPool()
{
return $this->pool;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalLoadBalancerAddressPool::class, 'Google_Service_GKEOnPrem_BareMetalLoadBalancerAddressPool');

View File

@@ -0,0 +1,117 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalLoadBalancerConfig extends \Google\Model
{
protected $bgpLbConfigType = BareMetalBgpLbConfig::class;
protected $bgpLbConfigDataType = '';
protected $manualLbConfigType = BareMetalManualLbConfig::class;
protected $manualLbConfigDataType = '';
protected $metalLbConfigType = BareMetalMetalLbConfig::class;
protected $metalLbConfigDataType = '';
protected $portConfigType = BareMetalPortConfig::class;
protected $portConfigDataType = '';
protected $vipConfigType = BareMetalVipConfig::class;
protected $vipConfigDataType = '';
/**
* Configuration for BGP typed load balancers. When set
* network_config.advanced_networking is automatically set to true.
*
* @param BareMetalBgpLbConfig $bgpLbConfig
*/
public function setBgpLbConfig(BareMetalBgpLbConfig $bgpLbConfig)
{
$this->bgpLbConfig = $bgpLbConfig;
}
/**
* @return BareMetalBgpLbConfig
*/
public function getBgpLbConfig()
{
return $this->bgpLbConfig;
}
/**
* Manually configured load balancers.
*
* @param BareMetalManualLbConfig $manualLbConfig
*/
public function setManualLbConfig(BareMetalManualLbConfig $manualLbConfig)
{
$this->manualLbConfig = $manualLbConfig;
}
/**
* @return BareMetalManualLbConfig
*/
public function getManualLbConfig()
{
return $this->manualLbConfig;
}
/**
* Configuration for MetalLB load balancers.
*
* @param BareMetalMetalLbConfig $metalLbConfig
*/
public function setMetalLbConfig(BareMetalMetalLbConfig $metalLbConfig)
{
$this->metalLbConfig = $metalLbConfig;
}
/**
* @return BareMetalMetalLbConfig
*/
public function getMetalLbConfig()
{
return $this->metalLbConfig;
}
/**
* Configures the ports that the load balancer will listen on.
*
* @param BareMetalPortConfig $portConfig
*/
public function setPortConfig(BareMetalPortConfig $portConfig)
{
$this->portConfig = $portConfig;
}
/**
* @return BareMetalPortConfig
*/
public function getPortConfig()
{
return $this->portConfig;
}
/**
* The VIPs used by the load balancer.
*
* @param BareMetalVipConfig $vipConfig
*/
public function setVipConfig(BareMetalVipConfig $vipConfig)
{
$this->vipConfig = $vipConfig;
}
/**
* @return BareMetalVipConfig
*/
public function getVipConfig()
{
return $this->vipConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalLoadBalancerConfig::class, 'Google_Service_GKEOnPrem_BareMetalLoadBalancerConfig');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalLoadBalancerNodePoolConfig extends \Google\Model
{
protected $nodePoolConfigType = BareMetalNodePoolConfig::class;
protected $nodePoolConfigDataType = '';
/**
* The generic configuration for a node pool running a load balancer.
*
* @param BareMetalNodePoolConfig $nodePoolConfig
*/
public function setNodePoolConfig(BareMetalNodePoolConfig $nodePoolConfig)
{
$this->nodePoolConfig = $nodePoolConfig;
}
/**
* @return BareMetalNodePoolConfig
*/
public function getNodePoolConfig()
{
return $this->nodePoolConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalLoadBalancerNodePoolConfig::class, 'Google_Service_GKEOnPrem_BareMetalLoadBalancerNodePoolConfig');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalLvpConfig extends \Google\Model
{
/**
* Required. The host machine path.
*
* @var string
*/
public $path;
/**
* Required. The StorageClass name that PVs will be created with.
*
* @var string
*/
public $storageClass;
/**
* Required. The host machine path.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Required. The StorageClass name that PVs will be created with.
*
* @param string $storageClass
*/
public function setStorageClass($storageClass)
{
$this->storageClass = $storageClass;
}
/**
* @return string
*/
public function getStorageClass()
{
return $this->storageClass;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalLvpConfig::class, 'Google_Service_GKEOnPrem_BareMetalLvpConfig');

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalLvpShareConfig extends \Google\Model
{
protected $lvpConfigType = BareMetalLvpConfig::class;
protected $lvpConfigDataType = '';
/**
* The number of subdirectories to create under path.
*
* @var int
*/
public $sharedPathPvCount;
/**
* Required. Defines the machine path and storage class for the LVP Share.
*
* @param BareMetalLvpConfig $lvpConfig
*/
public function setLvpConfig(BareMetalLvpConfig $lvpConfig)
{
$this->lvpConfig = $lvpConfig;
}
/**
* @return BareMetalLvpConfig
*/
public function getLvpConfig()
{
return $this->lvpConfig;
}
/**
* The number of subdirectories to create under path.
*
* @param int $sharedPathPvCount
*/
public function setSharedPathPvCount($sharedPathPvCount)
{
$this->sharedPathPvCount = $sharedPathPvCount;
}
/**
* @return int
*/
public function getSharedPathPvCount()
{
return $this->sharedPathPvCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalLvpShareConfig::class, 'Google_Service_GKEOnPrem_BareMetalLvpShareConfig');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalMachineDrainStatus extends \Google\Collection
{
protected $collection_key = 'drainingMachines';
protected $drainedMachinesType = BareMetalDrainedMachine::class;
protected $drainedMachinesDataType = 'array';
protected $drainingMachinesType = BareMetalDrainingMachine::class;
protected $drainingMachinesDataType = 'array';
/**
* The list of drained machines.
*
* @param BareMetalDrainedMachine[] $drainedMachines
*/
public function setDrainedMachines($drainedMachines)
{
$this->drainedMachines = $drainedMachines;
}
/**
* @return BareMetalDrainedMachine[]
*/
public function getDrainedMachines()
{
return $this->drainedMachines;
}
/**
* The list of draning machines.
*
* @param BareMetalDrainingMachine[] $drainingMachines
*/
public function setDrainingMachines($drainingMachines)
{
$this->drainingMachines = $drainingMachines;
}
/**
* @return BareMetalDrainingMachine[]
*/
public function getDrainingMachines()
{
return $this->drainingMachines;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalMachineDrainStatus::class, 'Google_Service_GKEOnPrem_BareMetalMachineDrainStatus');

View File

@@ -0,0 +1,55 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalMaintenanceConfig extends \Google\Collection
{
protected $collection_key = 'maintenanceAddressCidrBlocks';
/**
* Required. All IPv4 address from these ranges will be placed into
* maintenance mode. Nodes in maintenance mode will be cordoned and drained.
* When both of these are true, the "baremetal.cluster.gke.io/maintenance"
* annotation will be set on the node resource.
*
* @var string[]
*/
public $maintenanceAddressCidrBlocks;
/**
* Required. All IPv4 address from these ranges will be placed into
* maintenance mode. Nodes in maintenance mode will be cordoned and drained.
* When both of these are true, the "baremetal.cluster.gke.io/maintenance"
* annotation will be set on the node resource.
*
* @param string[] $maintenanceAddressCidrBlocks
*/
public function setMaintenanceAddressCidrBlocks($maintenanceAddressCidrBlocks)
{
$this->maintenanceAddressCidrBlocks = $maintenanceAddressCidrBlocks;
}
/**
* @return string[]
*/
public function getMaintenanceAddressCidrBlocks()
{
return $this->maintenanceAddressCidrBlocks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalMaintenanceConfig::class, 'Google_Service_GKEOnPrem_BareMetalMaintenanceConfig');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalMaintenanceStatus extends \Google\Model
{
protected $machineDrainStatusType = BareMetalMachineDrainStatus::class;
protected $machineDrainStatusDataType = '';
/**
* The maintenance status of node machines.
*
* @param BareMetalMachineDrainStatus $machineDrainStatus
*/
public function setMachineDrainStatus(BareMetalMachineDrainStatus $machineDrainStatus)
{
$this->machineDrainStatus = $machineDrainStatus;
}
/**
* @return BareMetalMachineDrainStatus
*/
public function getMachineDrainStatus()
{
return $this->machineDrainStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalMaintenanceStatus::class, 'Google_Service_GKEOnPrem_BareMetalMaintenanceStatus');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalManualLbConfig extends \Google\Model
{
/**
* Whether manual load balancing is enabled.
*
* @var bool
*/
public $enabled;
/**
* Whether manual load balancing is enabled.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalManualLbConfig::class, 'Google_Service_GKEOnPrem_BareMetalManualLbConfig');

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalMetalLbConfig extends \Google\Collection
{
protected $collection_key = 'addressPools';
protected $addressPoolsType = BareMetalLoadBalancerAddressPool::class;
protected $addressPoolsDataType = 'array';
protected $loadBalancerNodePoolConfigType = BareMetalLoadBalancerNodePoolConfig::class;
protected $loadBalancerNodePoolConfigDataType = '';
/**
* Required. AddressPools is a list of non-overlapping IP pools used by load
* balancer typed services. All addresses must be routable to load balancer
* nodes. IngressVIP must be included in the pools.
*
* @param BareMetalLoadBalancerAddressPool[] $addressPools
*/
public function setAddressPools($addressPools)
{
$this->addressPools = $addressPools;
}
/**
* @return BareMetalLoadBalancerAddressPool[]
*/
public function getAddressPools()
{
return $this->addressPools;
}
/**
* Specifies the node pool running the load balancer. L2 connectivity is
* required among nodes in this pool. If missing, the control plane node pool
* is used as the load balancer pool.
*
* @param BareMetalLoadBalancerNodePoolConfig $loadBalancerNodePoolConfig
*/
public function setLoadBalancerNodePoolConfig(BareMetalLoadBalancerNodePoolConfig $loadBalancerNodePoolConfig)
{
$this->loadBalancerNodePoolConfig = $loadBalancerNodePoolConfig;
}
/**
* @return BareMetalLoadBalancerNodePoolConfig
*/
public function getLoadBalancerNodePoolConfig()
{
return $this->loadBalancerNodePoolConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalMetalLbConfig::class, 'Google_Service_GKEOnPrem_BareMetalMetalLbConfig');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalMultipleNetworkInterfacesConfig extends \Google\Model
{
/**
* Whether to enable multiple network interfaces for your pods. When set
* network_config.advanced_networking is automatically set to true.
*
* @var bool
*/
public $enabled;
/**
* Whether to enable multiple network interfaces for your pods. When set
* network_config.advanced_networking is automatically set to true.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalMultipleNetworkInterfacesConfig::class, 'Google_Service_GKEOnPrem_BareMetalMultipleNetworkInterfacesConfig');

View File

@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalNetworkConfig extends \Google\Model
{
/**
* Enables the use of advanced Anthos networking features, such as Bundled
* Load Balancing with BGP or the egress NAT gateway. Setting configuration
* for advanced networking features will automatically set this flag.
*
* @var bool
*/
public $advancedNetworking;
protected $islandModeCidrType = BareMetalIslandModeCidrConfig::class;
protected $islandModeCidrDataType = '';
protected $multipleNetworkInterfacesConfigType = BareMetalMultipleNetworkInterfacesConfig::class;
protected $multipleNetworkInterfacesConfigDataType = '';
protected $srIovConfigType = BareMetalSrIovConfig::class;
protected $srIovConfigDataType = '';
/**
* Enables the use of advanced Anthos networking features, such as Bundled
* Load Balancing with BGP or the egress NAT gateway. Setting configuration
* for advanced networking features will automatically set this flag.
*
* @param bool $advancedNetworking
*/
public function setAdvancedNetworking($advancedNetworking)
{
$this->advancedNetworking = $advancedNetworking;
}
/**
* @return bool
*/
public function getAdvancedNetworking()
{
return $this->advancedNetworking;
}
/**
* Configuration for island mode CIDR. In an island-mode network, nodes have
* unique IP addresses, but pods don't have unique addresses across clusters.
* This doesn't cause problems because pods in one cluster never directly
* communicate with pods in another cluster. Instead, there are gateways that
* mediate between a pod in one cluster and a pod in another cluster.
*
* @param BareMetalIslandModeCidrConfig $islandModeCidr
*/
public function setIslandModeCidr(BareMetalIslandModeCidrConfig $islandModeCidr)
{
$this->islandModeCidr = $islandModeCidr;
}
/**
* @return BareMetalIslandModeCidrConfig
*/
public function getIslandModeCidr()
{
return $this->islandModeCidr;
}
/**
* Configuration for multiple network interfaces.
*
* @param BareMetalMultipleNetworkInterfacesConfig $multipleNetworkInterfacesConfig
*/
public function setMultipleNetworkInterfacesConfig(BareMetalMultipleNetworkInterfacesConfig $multipleNetworkInterfacesConfig)
{
$this->multipleNetworkInterfacesConfig = $multipleNetworkInterfacesConfig;
}
/**
* @return BareMetalMultipleNetworkInterfacesConfig
*/
public function getMultipleNetworkInterfacesConfig()
{
return $this->multipleNetworkInterfacesConfig;
}
/**
* Configuration for SR-IOV.
*
* @param BareMetalSrIovConfig $srIovConfig
*/
public function setSrIovConfig(BareMetalSrIovConfig $srIovConfig)
{
$this->srIovConfig = $srIovConfig;
}
/**
* @return BareMetalSrIovConfig
*/
public function getSrIovConfig()
{
return $this->srIovConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalNetworkConfig::class, 'Google_Service_GKEOnPrem_BareMetalNetworkConfig');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalNodeAccessConfig extends \Google\Model
{
/**
* LoginUser is the user name used to access node machines. It defaults to
* "root" if not set.
*
* @var string
*/
public $loginUser;
/**
* LoginUser is the user name used to access node machines. It defaults to
* "root" if not set.
*
* @param string $loginUser
*/
public function setLoginUser($loginUser)
{
$this->loginUser = $loginUser;
}
/**
* @return string
*/
public function getLoginUser()
{
return $this->loginUser;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalNodeAccessConfig::class, 'Google_Service_GKEOnPrem_BareMetalNodeAccessConfig');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalNodeConfig extends \Google\Model
{
/**
* The labels assigned to this node. An object containing a list of key/value
* pairs. The labels here, unioned with the labels set on
* BareMetalNodePoolConfig are the set of labels that will be applied to the
* node. If there are any conflicts, the BareMetalNodeConfig labels take
* precedence. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
*
* @var string[]
*/
public $labels;
/**
* The default IPv4 address for SSH access and Kubernetes node. Example:
* 192.168.0.1
*
* @var string
*/
public $nodeIp;
/**
* The labels assigned to this node. An object containing a list of key/value
* pairs. The labels here, unioned with the labels set on
* BareMetalNodePoolConfig are the set of labels that will be applied to the
* node. If there are any conflicts, the BareMetalNodeConfig labels take
* precedence. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The default IPv4 address for SSH access and Kubernetes node. Example:
* 192.168.0.1
*
* @param string $nodeIp
*/
public function setNodeIp($nodeIp)
{
$this->nodeIp = $nodeIp;
}
/**
* @return string
*/
public function getNodeIp()
{
return $this->nodeIp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalNodeConfig::class, 'Google_Service_GKEOnPrem_BareMetalNodeConfig');

View File

@@ -0,0 +1,357 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalNodePool extends \Google\Model
{
/**
* Not set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The PROVISIONING state indicates the bare metal node pool is being created.
*/
public const STATE_PROVISIONING = 'PROVISIONING';
/**
* The RUNNING state indicates the bare metal node pool has been created and
* is fully usable.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The RECONCILING state indicates that the bare metal node pool is being
* updated. It remains available, but potentially with degraded performance.
*/
public const STATE_RECONCILING = 'RECONCILING';
/**
* The STOPPING state indicates the bare metal node pool is being deleted.
*/
public const STATE_STOPPING = 'STOPPING';
/**
* The ERROR state indicates the bare metal node pool is in a broken
* unrecoverable state.
*/
public const STATE_ERROR = 'ERROR';
/**
* The DEGRADED state indicates the bare metal node pool requires user action
* to restore full functionality.
*/
public const STATE_DEGRADED = 'DEGRADED';
/**
* Annotations on the bare metal node pool. This field has the same
* restrictions as Kubernetes annotations. The total size of all keys and
* values combined is limited to 256k. Key can have 2 segments: prefix
* (optional) and name (required), separated by a slash (/). Prefix must be a
* DNS subdomain. Name must be 63 characters or less, begin and end with
* alphanumerics, with dashes (-), underscores (_), dots (.), and
* alphanumerics between.
*
* @var string[]
*/
public $annotations;
/**
* Output only. The time at which this bare metal node pool was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time at which this bare metal node pool was deleted. If
* the resource is not deleted, this must be empty
*
* @var string
*/
public $deleteTime;
/**
* The display name for the bare metal node pool.
*
* @var string
*/
public $displayName;
/**
* This checksum is computed by the server based on the value of other fields,
* and may be sent on update and delete requests to ensure the client has an
* up-to-date value before proceeding. Allows clients to perform consistent
* read-modify-writes through optimistic concurrency control.
*
* @var string
*/
public $etag;
/**
* Immutable. The bare metal node pool resource name.
*
* @var string
*/
public $name;
protected $nodePoolConfigType = BareMetalNodePoolConfig::class;
protected $nodePoolConfigDataType = '';
/**
* Output only. If set, there are currently changes in flight to the bare
* metal node pool.
*
* @var bool
*/
public $reconciling;
/**
* Output only. The current state of the bare metal node pool.
*
* @var string
*/
public $state;
protected $statusType = ResourceStatus::class;
protected $statusDataType = '';
/**
* Output only. The unique identifier of the bare metal node pool.
*
* @var string
*/
public $uid;
/**
* Output only. The time at which this bare metal node pool was last updated.
*
* @var string
*/
public $updateTime;
protected $upgradePolicyType = BareMetalNodePoolUpgradePolicy::class;
protected $upgradePolicyDataType = '';
/**
* Annotations on the bare metal node pool. This field has the same
* restrictions as Kubernetes annotations. The total size of all keys and
* values combined is limited to 256k. Key can have 2 segments: prefix
* (optional) and name (required), separated by a slash (/). Prefix must be a
* DNS subdomain. Name must be 63 characters or less, begin and end with
* alphanumerics, with dashes (-), underscores (_), dots (.), and
* alphanumerics between.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. The time at which this bare metal node pool was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time at which this bare metal node pool was deleted. If
* the resource is not deleted, this must be empty
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* The display name for the bare metal node pool.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* This checksum is computed by the server based on the value of other fields,
* and may be sent on update and delete requests to ensure the client has an
* up-to-date value before proceeding. Allows clients to perform consistent
* read-modify-writes through optimistic concurrency control.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Immutable. The bare metal node pool resource name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Node pool configuration.
*
* @param BareMetalNodePoolConfig $nodePoolConfig
*/
public function setNodePoolConfig(BareMetalNodePoolConfig $nodePoolConfig)
{
$this->nodePoolConfig = $nodePoolConfig;
}
/**
* @return BareMetalNodePoolConfig
*/
public function getNodePoolConfig()
{
return $this->nodePoolConfig;
}
/**
* Output only. If set, there are currently changes in flight to the bare
* metal node pool.
*
* @param bool $reconciling
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* Output only. The current state of the bare metal node pool.
*
* Accepted values: STATE_UNSPECIFIED, PROVISIONING, RUNNING, RECONCILING,
* STOPPING, ERROR, DEGRADED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. ResourceStatus representing the detailed node pool status.
*
* @param ResourceStatus $status
*/
public function setStatus(ResourceStatus $status)
{
$this->status = $status;
}
/**
* @return ResourceStatus
*/
public function getStatus()
{
return $this->status;
}
/**
* Output only. The unique identifier of the bare metal node pool.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The time at which this bare metal node pool was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* The worker node pool upgrade policy.
*
* @param BareMetalNodePoolUpgradePolicy $upgradePolicy
*/
public function setUpgradePolicy(BareMetalNodePoolUpgradePolicy $upgradePolicy)
{
$this->upgradePolicy = $upgradePolicy;
}
/**
* @return BareMetalNodePoolUpgradePolicy
*/
public function getUpgradePolicy()
{
return $this->upgradePolicy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalNodePool::class, 'Google_Service_GKEOnPrem_BareMetalNodePool');

View File

@@ -0,0 +1,139 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalNodePoolConfig extends \Google\Collection
{
/**
* No operating system runtime selected.
*/
public const OPERATING_SYSTEM_OPERATING_SYSTEM_UNSPECIFIED = 'OPERATING_SYSTEM_UNSPECIFIED';
/**
* Linux operating system.
*/
public const OPERATING_SYSTEM_LINUX = 'LINUX';
protected $collection_key = 'taints';
protected $kubeletConfigType = BareMetalKubeletConfig::class;
protected $kubeletConfigDataType = '';
/**
* The labels assigned to nodes of this node pool. An object containing a list
* of key/value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count":
* "3" }.
*
* @var string[]
*/
public $labels;
protected $nodeConfigsType = BareMetalNodeConfig::class;
protected $nodeConfigsDataType = 'array';
/**
* Specifies the nodes operating system (default: LINUX).
*
* @var string
*/
public $operatingSystem;
protected $taintsType = NodeTaint::class;
protected $taintsDataType = 'array';
/**
* The modifiable kubelet configurations for the bare metal machines.
*
* @param BareMetalKubeletConfig $kubeletConfig
*/
public function setKubeletConfig(BareMetalKubeletConfig $kubeletConfig)
{
$this->kubeletConfig = $kubeletConfig;
}
/**
* @return BareMetalKubeletConfig
*/
public function getKubeletConfig()
{
return $this->kubeletConfig;
}
/**
* The labels assigned to nodes of this node pool. An object containing a list
* of key/value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count":
* "3" }.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Required. The list of machine addresses in the bare metal node pool.
*
* @param BareMetalNodeConfig[] $nodeConfigs
*/
public function setNodeConfigs($nodeConfigs)
{
$this->nodeConfigs = $nodeConfigs;
}
/**
* @return BareMetalNodeConfig[]
*/
public function getNodeConfigs()
{
return $this->nodeConfigs;
}
/**
* Specifies the nodes operating system (default: LINUX).
*
* Accepted values: OPERATING_SYSTEM_UNSPECIFIED, LINUX
*
* @param self::OPERATING_SYSTEM_* $operatingSystem
*/
public function setOperatingSystem($operatingSystem)
{
$this->operatingSystem = $operatingSystem;
}
/**
* @return self::OPERATING_SYSTEM_*
*/
public function getOperatingSystem()
{
return $this->operatingSystem;
}
/**
* The initial taints assigned to nodes of this node pool.
*
* @param NodeTaint[] $taints
*/
public function setTaints($taints)
{
$this->taints = $taints;
}
/**
* @return NodeTaint[]
*/
public function getTaints()
{
return $this->taints;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalNodePoolConfig::class, 'Google_Service_GKEOnPrem_BareMetalNodePoolConfig');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalNodePoolUpgradePolicy extends \Google\Model
{
protected $parallelUpgradeConfigType = BareMetalParallelUpgradeConfig::class;
protected $parallelUpgradeConfigDataType = '';
/**
* The parallel upgrade settings for worker node pools.
*
* @param BareMetalParallelUpgradeConfig $parallelUpgradeConfig
*/
public function setParallelUpgradeConfig(BareMetalParallelUpgradeConfig $parallelUpgradeConfig)
{
$this->parallelUpgradeConfig = $parallelUpgradeConfig;
}
/**
* @return BareMetalParallelUpgradeConfig
*/
public function getParallelUpgradeConfig()
{
return $this->parallelUpgradeConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalNodePoolUpgradePolicy::class, 'Google_Service_GKEOnPrem_BareMetalNodePoolUpgradePolicy');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalOsEnvironmentConfig extends \Google\Model
{
/**
* Whether the package repo should not be included when initializing bare
* metal machines.
*
* @var bool
*/
public $packageRepoExcluded;
/**
* Whether the package repo should not be included when initializing bare
* metal machines.
*
* @param bool $packageRepoExcluded
*/
public function setPackageRepoExcluded($packageRepoExcluded)
{
$this->packageRepoExcluded = $packageRepoExcluded;
}
/**
* @return bool
*/
public function getPackageRepoExcluded()
{
return $this->packageRepoExcluded;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalOsEnvironmentConfig::class, 'Google_Service_GKEOnPrem_BareMetalOsEnvironmentConfig');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalParallelUpgradeConfig extends \Google\Model
{
/**
* The maximum number of nodes that can be upgraded at once.
*
* @var int
*/
public $concurrentNodes;
/**
* The minimum number of nodes that should be healthy and available during an
* upgrade. If set to the default value of 0, it is possible that none of the
* nodes will be available during an upgrade.
*
* @var int
*/
public $minimumAvailableNodes;
/**
* The maximum number of nodes that can be upgraded at once.
*
* @param int $concurrentNodes
*/
public function setConcurrentNodes($concurrentNodes)
{
$this->concurrentNodes = $concurrentNodes;
}
/**
* @return int
*/
public function getConcurrentNodes()
{
return $this->concurrentNodes;
}
/**
* The minimum number of nodes that should be healthy and available during an
* upgrade. If set to the default value of 0, it is possible that none of the
* nodes will be available during an upgrade.
*
* @param int $minimumAvailableNodes
*/
public function setMinimumAvailableNodes($minimumAvailableNodes)
{
$this->minimumAvailableNodes = $minimumAvailableNodes;
}
/**
* @return int
*/
public function getMinimumAvailableNodes()
{
return $this->minimumAvailableNodes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalParallelUpgradeConfig::class, 'Google_Service_GKEOnPrem_BareMetalParallelUpgradeConfig');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalPortConfig extends \Google\Model
{
/**
* The port that control plane hosted load balancers will listen on.
*
* @var int
*/
public $controlPlaneLoadBalancerPort;
/**
* The port that control plane hosted load balancers will listen on.
*
* @param int $controlPlaneLoadBalancerPort
*/
public function setControlPlaneLoadBalancerPort($controlPlaneLoadBalancerPort)
{
$this->controlPlaneLoadBalancerPort = $controlPlaneLoadBalancerPort;
}
/**
* @return int
*/
public function getControlPlaneLoadBalancerPort()
{
return $this->controlPlaneLoadBalancerPort;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalPortConfig::class, 'Google_Service_GKEOnPrem_BareMetalPortConfig');

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalProxyConfig extends \Google\Collection
{
protected $collection_key = 'noProxy';
/**
* A list of IPs, hostnames, and domains that should skip the proxy. Examples:
* ["127.0.0.1", "example.com", ".corp", "localhost"].
*
* @var string[]
*/
public $noProxy;
/**
* Required. Specifies the address of your proxy server. Examples:
* `http://domain` Do not provide credentials in the format
* `http://(username:password@)domain` these will be rejected by the server.
*
* @var string
*/
public $uri;
/**
* A list of IPs, hostnames, and domains that should skip the proxy. Examples:
* ["127.0.0.1", "example.com", ".corp", "localhost"].
*
* @param string[] $noProxy
*/
public function setNoProxy($noProxy)
{
$this->noProxy = $noProxy;
}
/**
* @return string[]
*/
public function getNoProxy()
{
return $this->noProxy;
}
/**
* Required. Specifies the address of your proxy server. Examples:
* `http://domain` Do not provide credentials in the format
* `http://(username:password@)domain` these will be rejected by the server.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalProxyConfig::class, 'Google_Service_GKEOnPrem_BareMetalProxyConfig');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalSecurityConfig extends \Google\Model
{
protected $authorizationType = Authorization::class;
protected $authorizationDataType = '';
/**
* Configures user access to the user cluster.
*
* @param Authorization $authorization
*/
public function setAuthorization(Authorization $authorization)
{
$this->authorization = $authorization;
}
/**
* @return Authorization
*/
public function getAuthorization()
{
return $this->authorization;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalSecurityConfig::class, 'Google_Service_GKEOnPrem_BareMetalSecurityConfig');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalSrIovConfig extends \Google\Model
{
/**
* Whether to install the SR-IOV operator.
*
* @var bool
*/
public $enabled;
/**
* Whether to install the SR-IOV operator.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalSrIovConfig::class, 'Google_Service_GKEOnPrem_BareMetalSrIovConfig');

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalStorageConfig extends \Google\Model
{
protected $lvpNodeMountsConfigType = BareMetalLvpConfig::class;
protected $lvpNodeMountsConfigDataType = '';
protected $lvpShareConfigType = BareMetalLvpShareConfig::class;
protected $lvpShareConfigDataType = '';
/**
* Required. Specifies the config for local PersistentVolumes backed by
* mounted node disks. These disks need to be formatted and mounted by the
* user, which can be done before or after cluster creation.
*
* @param BareMetalLvpConfig $lvpNodeMountsConfig
*/
public function setLvpNodeMountsConfig(BareMetalLvpConfig $lvpNodeMountsConfig)
{
$this->lvpNodeMountsConfig = $lvpNodeMountsConfig;
}
/**
* @return BareMetalLvpConfig
*/
public function getLvpNodeMountsConfig()
{
return $this->lvpNodeMountsConfig;
}
/**
* Required. Specifies the config for local PersistentVolumes backed by
* subdirectories in a shared filesystem. These subdirectores are
* automatically created during cluster creation.
*
* @param BareMetalLvpShareConfig $lvpShareConfig
*/
public function setLvpShareConfig(BareMetalLvpShareConfig $lvpShareConfig)
{
$this->lvpShareConfig = $lvpShareConfig;
}
/**
* @return BareMetalLvpShareConfig
*/
public function getLvpShareConfig()
{
return $this->lvpShareConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalStorageConfig::class, 'Google_Service_GKEOnPrem_BareMetalStorageConfig');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalVersionInfo extends \Google\Collection
{
protected $collection_key = 'dependencies';
protected $dependenciesType = UpgradeDependency::class;
protected $dependenciesDataType = 'array';
/**
* If set, the cluster dependencies (e.g. the admin cluster, other user
* clusters managed by the same admin cluster, version skew policy, etc) must
* be upgraded before this version can be installed or upgraded to.
*
* @var bool
*/
public $hasDependencies;
/**
* Version number e.g. 1.13.1.
*
* @var string
*/
public $version;
/**
* The list of upgrade dependencies for this version.
*
* @param UpgradeDependency[] $dependencies
*/
public function setDependencies($dependencies)
{
$this->dependencies = $dependencies;
}
/**
* @return UpgradeDependency[]
*/
public function getDependencies()
{
return $this->dependencies;
}
/**
* If set, the cluster dependencies (e.g. the admin cluster, other user
* clusters managed by the same admin cluster, version skew policy, etc) must
* be upgraded before this version can be installed or upgraded to.
*
* @param bool $hasDependencies
*/
public function setHasDependencies($hasDependencies)
{
$this->hasDependencies = $hasDependencies;
}
/**
* @return bool
*/
public function getHasDependencies()
{
return $this->hasDependencies;
}
/**
* Version number e.g. 1.13.1.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalVersionInfo::class, 'Google_Service_GKEOnPrem_BareMetalVersionInfo');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalVipConfig extends \Google\Model
{
/**
* The VIP which you previously set aside for the Kubernetes API of this bare
* metal user cluster.
*
* @var string
*/
public $controlPlaneVip;
/**
* The VIP which you previously set aside for ingress traffic into this bare
* metal user cluster.
*
* @var string
*/
public $ingressVip;
/**
* The VIP which you previously set aside for the Kubernetes API of this bare
* metal user cluster.
*
* @param string $controlPlaneVip
*/
public function setControlPlaneVip($controlPlaneVip)
{
$this->controlPlaneVip = $controlPlaneVip;
}
/**
* @return string
*/
public function getControlPlaneVip()
{
return $this->controlPlaneVip;
}
/**
* The VIP which you previously set aside for ingress traffic into this bare
* metal user cluster.
*
* @param string $ingressVip
*/
public function setIngressVip($ingressVip)
{
$this->ingressVip = $ingressVip;
}
/**
* @return string
*/
public function getIngressVip()
{
return $this->ingressVip;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalVipConfig::class, 'Google_Service_GKEOnPrem_BareMetalVipConfig');

View File

@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BareMetalWorkloadNodeConfig extends \Google\Model
{
/**
* No container runtime selected.
*/
public const CONTAINER_RUNTIME_CONTAINER_RUNTIME_UNSPECIFIED = 'CONTAINER_RUNTIME_UNSPECIFIED';
/**
* Containerd runtime.
*/
public const CONTAINER_RUNTIME_CONTAINERD = 'CONTAINERD';
/**
* Specifies which container runtime will be used.
*
* @var string
*/
public $containerRuntime;
/**
* The maximum number of pods a node can run. The size of the CIDR range
* assigned to the node will be derived from this parameter.
*
* @var string
*/
public $maxPodsPerNode;
/**
* Specifies which container runtime will be used.
*
* Accepted values: CONTAINER_RUNTIME_UNSPECIFIED, CONTAINERD
*
* @param self::CONTAINER_RUNTIME_* $containerRuntime
*/
public function setContainerRuntime($containerRuntime)
{
$this->containerRuntime = $containerRuntime;
}
/**
* @return self::CONTAINER_RUNTIME_*
*/
public function getContainerRuntime()
{
return $this->containerRuntime;
}
/**
* The maximum number of pods a node can run. The size of the CIDR range
* assigned to the node will be derived from this parameter.
*
* @param string $maxPodsPerNode
*/
public function setMaxPodsPerNode($maxPodsPerNode)
{
$this->maxPodsPerNode = $maxPodsPerNode;
}
/**
* @return string
*/
public function getMaxPodsPerNode()
{
return $this->maxPodsPerNode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BareMetalWorkloadNodeConfig::class, 'Google_Service_GKEOnPrem_BareMetalWorkloadNodeConfig');

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class BinaryAuthorization extends \Google\Model
{
/**
* Default value
*/
public const EVALUATION_MODE_EVALUATION_MODE_UNSPECIFIED = 'EVALUATION_MODE_UNSPECIFIED';
/**
* Disable BinaryAuthorization
*/
public const EVALUATION_MODE_DISABLED = 'DISABLED';
/**
* Enforce Kubernetes admission requests with BinaryAuthorization using the
* project's singleton policy.
*/
public const EVALUATION_MODE_PROJECT_SINGLETON_POLICY_ENFORCE = 'PROJECT_SINGLETON_POLICY_ENFORCE';
/**
* Mode of operation for binauthz policy evaluation. If unspecified, defaults
* to DISABLED.
*
* @var string
*/
public $evaluationMode;
/**
* Mode of operation for binauthz policy evaluation. If unspecified, defaults
* to DISABLED.
*
* Accepted values: EVALUATION_MODE_UNSPECIFIED, DISABLED,
* PROJECT_SINGLETON_POLICY_ENFORCE
*
* @param self::EVALUATION_MODE_* $evaluationMode
*/
public function setEvaluationMode($evaluationMode)
{
$this->evaluationMode = $evaluationMode;
}
/**
* @return self::EVALUATION_MODE_*
*/
public function getEvaluationMode()
{
return $this->evaluationMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BinaryAuthorization::class, 'Google_Service_GKEOnPrem_BinaryAuthorization');

View File

@@ -0,0 +1,216 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @var string[]
*/
public $members;
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @var string
*/
public $role;
/**
* The condition that is associated with this binding. If the condition
* evaluates to `true`, then this binding applies to the current request. If
* the condition evaluates to `false`, then this binding does not apply to the
* current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding. To learn which
* resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param Expr $condition
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_GKEOnPrem_Binding');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_GKEOnPrem_CancelOperationRequest');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class ClusterUser extends \Google\Model
{
/**
* Required. The name of the user, e.g. `my-gcp-id@gmail.com`.
*
* @var string
*/
public $username;
/**
* Required. The name of the user, e.g. `my-gcp-id@gmail.com`.
*
* @param string $username
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterUser::class, 'Google_Service_GKEOnPrem_ClusterUser');

View File

@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class EnrollBareMetalAdminClusterRequest extends \Google\Model
{
/**
* User provided OnePlatform identifier that is used as part of the resource
* name. This must be unique among all GKE on-prem clusters within a project
* and location and will return a 409 if the cluster already exists.
* (https://tools.ietf.org/html/rfc1123) format.
*
* @var string
*/
public $bareMetalAdminClusterId;
/**
* Required. This is the full resource name of this admin cluster's fleet
* membership.
*
* @var string
*/
public $membership;
/**
* User provided OnePlatform identifier that is used as part of the resource
* name. This must be unique among all GKE on-prem clusters within a project
* and location and will return a 409 if the cluster already exists.
* (https://tools.ietf.org/html/rfc1123) format.
*
* @param string $bareMetalAdminClusterId
*/
public function setBareMetalAdminClusterId($bareMetalAdminClusterId)
{
$this->bareMetalAdminClusterId = $bareMetalAdminClusterId;
}
/**
* @return string
*/
public function getBareMetalAdminClusterId()
{
return $this->bareMetalAdminClusterId;
}
/**
* Required. This is the full resource name of this admin cluster's fleet
* membership.
*
* @param string $membership
*/
public function setMembership($membership)
{
$this->membership = $membership;
}
/**
* @return string
*/
public function getMembership()
{
return $this->membership;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnrollBareMetalAdminClusterRequest::class, 'Google_Service_GKEOnPrem_EnrollBareMetalAdminClusterRequest');

View File

@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class EnrollBareMetalClusterRequest extends \Google\Model
{
/**
* Required. The admin cluster this bare metal user cluster belongs to. This
* is the full resource name of the admin cluster's fleet membership. In the
* future, references to other resource types might be allowed if admin
* clusters are modeled as their own resources.
*
* @var string
*/
public $adminClusterMembership;
/**
* User provided OnePlatform identifier that is used as part of the resource
* name. This must be unique among all bare metal clusters within a project
* and location and will return a 409 if the cluster already exists.
* (https://tools.ietf.org/html/rfc1123) format.
*
* @var string
*/
public $bareMetalClusterId;
/**
* Optional. The object name of the bare metal cluster custom resource on the
* associated admin cluster. This field is used to support conflicting
* resource names when enrolling existing clusters to the API. When not
* provided, this field will resolve to the bare_metal_cluster_id. Otherwise,
* it must match the object name of the bare metal cluster custom resource. It
* is not modifiable outside / beyond the enrollment operation.
*
* @var string
*/
public $localName;
/**
* Optional. The namespace of the cluster.
*
* @var string
*/
public $localNamespace;
/**
* Required. The admin cluster this bare metal user cluster belongs to. This
* is the full resource name of the admin cluster's fleet membership. In the
* future, references to other resource types might be allowed if admin
* clusters are modeled as their own resources.
*
* @param string $adminClusterMembership
*/
public function setAdminClusterMembership($adminClusterMembership)
{
$this->adminClusterMembership = $adminClusterMembership;
}
/**
* @return string
*/
public function getAdminClusterMembership()
{
return $this->adminClusterMembership;
}
/**
* User provided OnePlatform identifier that is used as part of the resource
* name. This must be unique among all bare metal clusters within a project
* and location and will return a 409 if the cluster already exists.
* (https://tools.ietf.org/html/rfc1123) format.
*
* @param string $bareMetalClusterId
*/
public function setBareMetalClusterId($bareMetalClusterId)
{
$this->bareMetalClusterId = $bareMetalClusterId;
}
/**
* @return string
*/
public function getBareMetalClusterId()
{
return $this->bareMetalClusterId;
}
/**
* Optional. The object name of the bare metal cluster custom resource on the
* associated admin cluster. This field is used to support conflicting
* resource names when enrolling existing clusters to the API. When not
* provided, this field will resolve to the bare_metal_cluster_id. Otherwise,
* it must match the object name of the bare metal cluster custom resource. It
* is not modifiable outside / beyond the enrollment operation.
*
* @param string $localName
*/
public function setLocalName($localName)
{
$this->localName = $localName;
}
/**
* @return string
*/
public function getLocalName()
{
return $this->localName;
}
/**
* Optional. The namespace of the cluster.
*
* @param string $localNamespace
*/
public function setLocalNamespace($localNamespace)
{
$this->localNamespace = $localNamespace;
}
/**
* @return string
*/
public function getLocalNamespace()
{
return $this->localNamespace;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnrollBareMetalClusterRequest::class, 'Google_Service_GKEOnPrem_EnrollBareMetalClusterRequest');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class EnrollBareMetalNodePoolRequest extends \Google\Model
{
/**
* User provided OnePlatform identifier that is used as part of the resource
* name. (https://tools.ietf.org/html/rfc1123) format.
*
* @var string
*/
public $bareMetalNodePoolId;
/**
* If set, only validate the request, but do not actually enroll the node
* pool.
*
* @var bool
*/
public $validateOnly;
/**
* User provided OnePlatform identifier that is used as part of the resource
* name. (https://tools.ietf.org/html/rfc1123) format.
*
* @param string $bareMetalNodePoolId
*/
public function setBareMetalNodePoolId($bareMetalNodePoolId)
{
$this->bareMetalNodePoolId = $bareMetalNodePoolId;
}
/**
* @return string
*/
public function getBareMetalNodePoolId()
{
return $this->bareMetalNodePoolId;
}
/**
* If set, only validate the request, but do not actually enroll the node
* pool.
*
* @param bool $validateOnly
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnrollBareMetalNodePoolRequest::class, 'Google_Service_GKEOnPrem_EnrollBareMetalNodePoolRequest');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class EnrollBareMetalStandaloneNodePoolRequest extends \Google\Model
{
/**
* @var string
*/
public $bareMetalStandaloneNodePoolId;
/**
* @var bool
*/
public $validateOnly;
/**
* @param string
*/
public function setBareMetalStandaloneNodePoolId($bareMetalStandaloneNodePoolId)
{
$this->bareMetalStandaloneNodePoolId = $bareMetalStandaloneNodePoolId;
}
/**
* @return string
*/
public function getBareMetalStandaloneNodePoolId()
{
return $this->bareMetalStandaloneNodePoolId;
}
/**
* @param bool
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnrollBareMetalStandaloneNodePoolRequest::class, 'Google_Service_GKEOnPrem_EnrollBareMetalStandaloneNodePoolRequest');

View File

@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class EnrollVmwareAdminClusterRequest extends \Google\Model
{
/**
* Required. This is the full resource name of this admin cluster's fleet
* membership.
*
* @var string
*/
public $membership;
/**
* User provided OnePlatform identifier that is used as part of the resource
* name. This must be unique among all GKE on-prem clusters within a project
* and location and will return a 409 if the cluster already exists.
* (https://tools.ietf.org/html/rfc1123) format.
*
* @var string
*/
public $vmwareAdminClusterId;
/**
* Required. This is the full resource name of this admin cluster's fleet
* membership.
*
* @param string $membership
*/
public function setMembership($membership)
{
$this->membership = $membership;
}
/**
* @return string
*/
public function getMembership()
{
return $this->membership;
}
/**
* User provided OnePlatform identifier that is used as part of the resource
* name. This must be unique among all GKE on-prem clusters within a project
* and location and will return a 409 if the cluster already exists.
* (https://tools.ietf.org/html/rfc1123) format.
*
* @param string $vmwareAdminClusterId
*/
public function setVmwareAdminClusterId($vmwareAdminClusterId)
{
$this->vmwareAdminClusterId = $vmwareAdminClusterId;
}
/**
* @return string
*/
public function getVmwareAdminClusterId()
{
return $this->vmwareAdminClusterId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnrollVmwareAdminClusterRequest::class, 'Google_Service_GKEOnPrem_EnrollVmwareAdminClusterRequest');

View File

@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class EnrollVmwareClusterRequest extends \Google\Model
{
/**
* Required. The admin cluster this VMware user cluster belongs to. This is
* the full resource name of the admin cluster's fleet membership. In the
* future, references to other resource types might be allowed if admin
* clusters are modeled as their own resources.
*
* @var string
*/
public $adminClusterMembership;
/**
* Optional. The object name of the VMware OnPremUserCluster custom resource
* on the associated admin cluster. This field is used to support conflicting
* resource names when enrolling existing clusters to the API. When not
* provided, this field will resolve to the vmware_cluster_id. Otherwise, it
* must match the object name of the VMware OnPremUserCluster custom resource.
* It is not modifiable outside / beyond the enrollment operation.
*
* @var string
*/
public $localName;
/**
* Validate the request without actually doing any updates.
*
* @var bool
*/
public $validateOnly;
/**
* User provided OnePlatform identifier that is used as part of the resource
* name. This must be unique among all GKE on-prem clusters within a project
* and location and will return a 409 if the cluster already exists.
* (https://tools.ietf.org/html/rfc1123) format.
*
* @var string
*/
public $vmwareClusterId;
/**
* Required. The admin cluster this VMware user cluster belongs to. This is
* the full resource name of the admin cluster's fleet membership. In the
* future, references to other resource types might be allowed if admin
* clusters are modeled as their own resources.
*
* @param string $adminClusterMembership
*/
public function setAdminClusterMembership($adminClusterMembership)
{
$this->adminClusterMembership = $adminClusterMembership;
}
/**
* @return string
*/
public function getAdminClusterMembership()
{
return $this->adminClusterMembership;
}
/**
* Optional. The object name of the VMware OnPremUserCluster custom resource
* on the associated admin cluster. This field is used to support conflicting
* resource names when enrolling existing clusters to the API. When not
* provided, this field will resolve to the vmware_cluster_id. Otherwise, it
* must match the object name of the VMware OnPremUserCluster custom resource.
* It is not modifiable outside / beyond the enrollment operation.
*
* @param string $localName
*/
public function setLocalName($localName)
{
$this->localName = $localName;
}
/**
* @return string
*/
public function getLocalName()
{
return $this->localName;
}
/**
* Validate the request without actually doing any updates.
*
* @param bool $validateOnly
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
/**
* User provided OnePlatform identifier that is used as part of the resource
* name. This must be unique among all GKE on-prem clusters within a project
* and location and will return a 409 if the cluster already exists.
* (https://tools.ietf.org/html/rfc1123) format.
*
* @param string $vmwareClusterId
*/
public function setVmwareClusterId($vmwareClusterId)
{
$this->vmwareClusterId = $vmwareClusterId;
}
/**
* @return string
*/
public function getVmwareClusterId()
{
return $this->vmwareClusterId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnrollVmwareClusterRequest::class, 'Google_Service_GKEOnPrem_EnrollVmwareClusterRequest');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class EnrollVmwareNodePoolRequest extends \Google\Model
{
/**
* The target node pool id to be enrolled.
*
* @var string
*/
public $vmwareNodePoolId;
/**
* The target node pool id to be enrolled.
*
* @param string $vmwareNodePoolId
*/
public function setVmwareNodePoolId($vmwareNodePoolId)
{
$this->vmwareNodePoolId = $vmwareNodePoolId;
}
/**
* @return string
*/
public function getVmwareNodePoolId()
{
return $this->vmwareNodePoolId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnrollVmwareNodePoolRequest::class, 'Google_Service_GKEOnPrem_EnrollVmwareNodePoolRequest');

View File

@@ -0,0 +1,122 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class Expr extends \Google\Model
{
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @var string
*/
public $description;
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @var string
*/
public $expression;
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @var string
*/
public $location;
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @var string
*/
public $title;
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_GKEOnPrem_Expr');

View File

@@ -0,0 +1,52 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class Fleet extends \Google\Model
{
/**
* Output only. The name of the managed fleet Membership resource associated
* to this cluster. Membership names are formatted as
* `projects//locations//memberships/`.
*
* @var string
*/
public $membership;
/**
* Output only. The name of the managed fleet Membership resource associated
* to this cluster. Membership names are formatted as
* `projects//locations//memberships/`.
*
* @param string $membership
*/
public function setMembership($membership)
{
$this->membership = $membership;
}
/**
* @return string
*/
public function getMembership()
{
return $this->membership;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Fleet::class, 'Google_Service_GKEOnPrem_Fleet');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class GkeonpremEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GkeonpremEmpty::class, 'Google_Service_GKEOnPrem_GkeonpremEmpty');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class ListBareMetalAdminClustersResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $bareMetalAdminClustersType = BareMetalAdminCluster::class;
protected $bareMetalAdminClustersDataType = 'array';
/**
* A token identifying a page of results the server should return. If the
* token is not empty this means that more results are available and should be
* retrieved by repeating the request with the provided page token.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of bare metal admin cluster.
*
* @param BareMetalAdminCluster[] $bareMetalAdminClusters
*/
public function setBareMetalAdminClusters($bareMetalAdminClusters)
{
$this->bareMetalAdminClusters = $bareMetalAdminClusters;
}
/**
* @return BareMetalAdminCluster[]
*/
public function getBareMetalAdminClusters()
{
return $this->bareMetalAdminClusters;
}
/**
* A token identifying a page of results the server should return. If the
* token is not empty this means that more results are available and should be
* retrieved by repeating the request with the provided page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBareMetalAdminClustersResponse::class, 'Google_Service_GKEOnPrem_ListBareMetalAdminClustersResponse');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class ListBareMetalClustersResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $bareMetalClustersType = BareMetalCluster::class;
protected $bareMetalClustersDataType = 'array';
/**
* A token identifying a page of results the server should return. If the
* token is not empty this means that more results are available and should be
* retrieved by repeating the request with the provided page token.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of bare metal Clusters.
*
* @param BareMetalCluster[] $bareMetalClusters
*/
public function setBareMetalClusters($bareMetalClusters)
{
$this->bareMetalClusters = $bareMetalClusters;
}
/**
* @return BareMetalCluster[]
*/
public function getBareMetalClusters()
{
return $this->bareMetalClusters;
}
/**
* A token identifying a page of results the server should return. If the
* token is not empty this means that more results are available and should be
* retrieved by repeating the request with the provided page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBareMetalClustersResponse::class, 'Google_Service_GKEOnPrem_ListBareMetalClustersResponse');

View File

@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class ListBareMetalNodePoolsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $bareMetalNodePoolsType = BareMetalNodePool::class;
protected $bareMetalNodePoolsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The node pools from the specified parent resource.
*
* @param BareMetalNodePool[] $bareMetalNodePools
*/
public function setBareMetalNodePools($bareMetalNodePools)
{
$this->bareMetalNodePools = $bareMetalNodePools;
}
/**
* @return BareMetalNodePool[]
*/
public function getBareMetalNodePools()
{
return $this->bareMetalNodePools;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBareMetalNodePoolsResponse::class, 'Google_Service_GKEOnPrem_ListBareMetalNodePoolsResponse');

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_GKEOnPrem_ListLocationsResponse');

View File

@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_GKEOnPrem_ListOperationsResponse');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class ListVmwareAdminClustersResponse extends \Google\Collection
{
protected $collection_key = 'vmwareAdminClusters';
/**
* A token identifying a page of results the server should return. If the
* token is not empty this means that more results are available and should be
* retrieved by repeating the request with the provided page token.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
protected $vmwareAdminClustersType = VmwareAdminCluster::class;
protected $vmwareAdminClustersDataType = 'array';
/**
* A token identifying a page of results the server should return. If the
* token is not empty this means that more results are available and should be
* retrieved by repeating the request with the provided page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* The list of VMware admin cluster.
*
* @param VmwareAdminCluster[] $vmwareAdminClusters
*/
public function setVmwareAdminClusters($vmwareAdminClusters)
{
$this->vmwareAdminClusters = $vmwareAdminClusters;
}
/**
* @return VmwareAdminCluster[]
*/
public function getVmwareAdminClusters()
{
return $this->vmwareAdminClusters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListVmwareAdminClustersResponse::class, 'Google_Service_GKEOnPrem_ListVmwareAdminClustersResponse');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class ListVmwareClustersResponse extends \Google\Collection
{
protected $collection_key = 'vmwareClusters';
/**
* A token identifying a page of results the server should return. If the
* token is not empty this means that more results are available and should be
* retrieved by repeating the request with the provided page token.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
protected $vmwareClustersType = VmwareCluster::class;
protected $vmwareClustersDataType = 'array';
/**
* A token identifying a page of results the server should return. If the
* token is not empty this means that more results are available and should be
* retrieved by repeating the request with the provided page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* The list of VMware Cluster.
*
* @param VmwareCluster[] $vmwareClusters
*/
public function setVmwareClusters($vmwareClusters)
{
$this->vmwareClusters = $vmwareClusters;
}
/**
* @return VmwareCluster[]
*/
public function getVmwareClusters()
{
return $this->vmwareClusters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListVmwareClustersResponse::class, 'Google_Service_GKEOnPrem_ListVmwareClustersResponse');

View File

@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class ListVmwareNodePoolsResponse extends \Google\Collection
{
protected $collection_key = 'vmwareNodePools';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
protected $vmwareNodePoolsType = VmwareNodePool::class;
protected $vmwareNodePoolsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* The node pools from the specified parent resource.
*
* @param VmwareNodePool[] $vmwareNodePools
*/
public function setVmwareNodePools($vmwareNodePools)
{
$this->vmwareNodePools = $vmwareNodePools;
}
/**
* @return VmwareNodePool[]
*/
public function getVmwareNodePools()
{
return $this->vmwareNodePools;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListVmwareNodePoolsResponse::class, 'Google_Service_GKEOnPrem_ListVmwareNodePoolsResponse');

View File

@@ -0,0 +1,144 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_GKEOnPrem_Location');

View File

@@ -0,0 +1,168 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class Metric extends \Google\Model
{
/**
* Not set.
*/
public const METRIC_METRIC_ID_UNSPECIFIED = 'METRIC_ID_UNSPECIFIED';
/**
* The total number of nodes being actuated.
*/
public const METRIC_NODES_TOTAL = 'NODES_TOTAL';
/**
* The number of nodes draining.
*/
public const METRIC_NODES_DRAINING = 'NODES_DRAINING';
/**
* The number of nodes actively upgrading.
*/
public const METRIC_NODES_UPGRADING = 'NODES_UPGRADING';
/**
* The number of nodes to be upgraded.
*/
public const METRIC_NODES_PENDING_UPGRADE = 'NODES_PENDING_UPGRADE';
/**
* The number of nodes upgraded.
*/
public const METRIC_NODES_UPGRADED = 'NODES_UPGRADED';
/**
* The number of nodes to fail actuation.
*/
public const METRIC_NODES_FAILED = 'NODES_FAILED';
/**
* The number of nodes healthy.
*/
public const METRIC_NODES_HEALTHY = 'NODES_HEALTHY';
/**
* The number of nodes reconciling.
*/
public const METRIC_NODES_RECONCILING = 'NODES_RECONCILING';
/**
* The number of nodes in maintenance mode.
*/
public const METRIC_NODES_IN_MAINTENANCE = 'NODES_IN_MAINTENANCE';
/**
* The number of completed preflight checks.
*/
public const METRIC_PREFLIGHTS_COMPLETED = 'PREFLIGHTS_COMPLETED';
/**
* The number of preflight checks running.
*/
public const METRIC_PREFLIGHTS_RUNNING = 'PREFLIGHTS_RUNNING';
/**
* The number of preflight checks failed.
*/
public const METRIC_PREFLIGHTS_FAILED = 'PREFLIGHTS_FAILED';
/**
* The total number of preflight checks.
*/
public const METRIC_PREFLIGHTS_TOTAL = 'PREFLIGHTS_TOTAL';
/**
* For metrics with floating point value.
*
* @var
*/
public $doubleValue;
/**
* For metrics with integer value.
*
* @var string
*/
public $intValue;
/**
* Required. The metric name.
*
* @var string
*/
public $metric;
/**
* For metrics with custom values (ratios, visual progress, etc.).
*
* @var string
*/
public $stringValue;
public function setDoubleValue($doubleValue)
{
$this->doubleValue = $doubleValue;
}
public function getDoubleValue()
{
return $this->doubleValue;
}
/**
* For metrics with integer value.
*
* @param string $intValue
*/
public function setIntValue($intValue)
{
$this->intValue = $intValue;
}
/**
* @return string
*/
public function getIntValue()
{
return $this->intValue;
}
/**
* Required. The metric name.
*
* Accepted values: METRIC_ID_UNSPECIFIED, NODES_TOTAL, NODES_DRAINING,
* NODES_UPGRADING, NODES_PENDING_UPGRADE, NODES_UPGRADED, NODES_FAILED,
* NODES_HEALTHY, NODES_RECONCILING, NODES_IN_MAINTENANCE,
* PREFLIGHTS_COMPLETED, PREFLIGHTS_RUNNING, PREFLIGHTS_FAILED,
* PREFLIGHTS_TOTAL
*
* @param self::METRIC_* $metric
*/
public function setMetric($metric)
{
$this->metric = $metric;
}
/**
* @return self::METRIC_*
*/
public function getMetric()
{
return $this->metric;
}
/**
* For metrics with custom values (ratios, visual progress, etc.).
*
* @param string $stringValue
*/
public function setStringValue($stringValue)
{
$this->stringValue = $stringValue;
}
/**
* @return string
*/
public function getStringValue()
{
return $this->stringValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Metric::class, 'Google_Service_GKEOnPrem_Metric');

View File

@@ -0,0 +1,117 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class NodeTaint extends \Google\Model
{
/**
* Not set.
*/
public const EFFECT_EFFECT_UNSPECIFIED = 'EFFECT_UNSPECIFIED';
/**
* Do not allow new pods to schedule onto the node unless they tolerate the
* taint, but allow all pods submitted to Kubelet without going through the
* scheduler to start, and allow all already-running pods to continue running.
* Enforced by the scheduler.
*/
public const EFFECT_NO_SCHEDULE = 'NO_SCHEDULE';
/**
* Like TaintEffectNoSchedule, but the scheduler tries not to schedule new
* pods onto the node, rather than prohibiting new pods from scheduling onto
* the node entirely. Enforced by the scheduler.
*/
public const EFFECT_PREFER_NO_SCHEDULE = 'PREFER_NO_SCHEDULE';
/**
* Evict any already-running pods that do not tolerate the taint. Currently
* enforced by NodeController.
*/
public const EFFECT_NO_EXECUTE = 'NO_EXECUTE';
/**
* The taint effect.
*
* @var string
*/
public $effect;
/**
* Key associated with the effect.
*
* @var string
*/
public $key;
/**
* Value associated with the effect.
*
* @var string
*/
public $value;
/**
* The taint effect.
*
* Accepted values: EFFECT_UNSPECIFIED, NO_SCHEDULE, PREFER_NO_SCHEDULE,
* NO_EXECUTE
*
* @param self::EFFECT_* $effect
*/
public function setEffect($effect)
{
$this->effect = $effect;
}
/**
* @return self::EFFECT_*
*/
public function getEffect()
{
return $this->effect;
}
/**
* Key associated with the effect.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* Value associated with the effect.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NodeTaint::class, 'Google_Service_GKEOnPrem_NodeTaint');

View File

@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_GKEOnPrem_Operation');

View File

@@ -0,0 +1,279 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class OperationMetadata extends \Google\Model
{
/**
* Not set.
*/
public const TYPE_OPERATION_TYPE_UNSPECIFIED = 'OPERATION_TYPE_UNSPECIFIED';
/**
* The resource is being created.
*/
public const TYPE_CREATE = 'CREATE';
/**
* The resource is being deleted.
*/
public const TYPE_DELETE = 'DELETE';
/**
* The resource is being updated.
*/
public const TYPE_UPDATE = 'UPDATE';
/**
* The resource is being upgraded.
*/
public const TYPE_UPGRADE = 'UPGRADE';
/**
* The platform is being upgraded.
*/
public const TYPE_PLATFORM_UPGRADE = 'PLATFORM_UPGRADE';
/**
* Output only. API version used to start the operation.
*
* @var string
*/
public $apiVersion;
/**
* Output only. Denotes if the local managing cluster's control plane is
* currently disconnected. This is expected to occur temporarily during self-
* managed cluster upgrades.
*
* @var bool
*/
public $controlPlaneDisconnected;
/**
* Output only. The time the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time the operation finished running.
*
* @var string
*/
public $endTime;
protected $progressType = OperationProgress::class;
protected $progressDataType = '';
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have successfully been cancelled have
* [Operation.error] value with a [google.rpc.Status.code] of 1, corresponding
* to `Code.CANCELLED`.
*
* @var bool
*/
public $requestedCancellation;
/**
* Output only. Human-readable status of the operation, if any.
*
* @var string
*/
public $statusMessage;
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @var string
*/
public $target;
/**
* Output only. Type of operation being executed.
*
* @var string
*/
public $type;
/**
* Output only. Name of the verb executed by the operation.
*
* @var string
*/
public $verb;
/**
* Output only. API version used to start the operation.
*
* @param string $apiVersion
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* Output only. Denotes if the local managing cluster's control plane is
* currently disconnected. This is expected to occur temporarily during self-
* managed cluster upgrades.
*
* @param bool $controlPlaneDisconnected
*/
public function setControlPlaneDisconnected($controlPlaneDisconnected)
{
$this->controlPlaneDisconnected = $controlPlaneDisconnected;
}
/**
* @return bool
*/
public function getControlPlaneDisconnected()
{
return $this->controlPlaneDisconnected;
}
/**
* Output only. The time the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time the operation finished running.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. Detailed progress information for the operation.
*
* @param OperationProgress $progress
*/
public function setProgress(OperationProgress $progress)
{
$this->progress = $progress;
}
/**
* @return OperationProgress
*/
public function getProgress()
{
return $this->progress;
}
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have successfully been cancelled have
* [Operation.error] value with a [google.rpc.Status.code] of 1, corresponding
* to `Code.CANCELLED`.
*
* @param bool $requestedCancellation
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* Output only. Human-readable status of the operation, if any.
*
* @param string $statusMessage
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Output only. Type of operation being executed.
*
* Accepted values: OPERATION_TYPE_UNSPECIFIED, CREATE, DELETE, UPDATE,
* UPGRADE, PLATFORM_UPGRADE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Output only. Name of the verb executed by the operation.
*
* @param string $verb
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_GKEOnPrem_OperationMetadata');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class OperationProgress extends \Google\Collection
{
protected $collection_key = 'stages';
protected $stagesType = OperationStage::class;
protected $stagesDataType = 'array';
/**
* The stages of the operation.
*
* @param OperationStage[] $stages
*/
public function setStages($stages)
{
$this->stages = $stages;
}
/**
* @return OperationStage[]
*/
public function getStages()
{
return $this->stages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationProgress::class, 'Google_Service_GKEOnPrem_OperationProgress');

View File

@@ -0,0 +1,182 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class OperationStage extends \Google\Collection
{
/**
* Not set.
*/
public const STAGE_STAGE_UNSPECIFIED = 'STAGE_UNSPECIFIED';
/**
* Preflight checks are running.
*/
public const STAGE_PREFLIGHT_CHECK = 'PREFLIGHT_CHECK';
/**
* Resource is being configured.
*/
public const STAGE_CONFIGURE = 'CONFIGURE';
/**
* Resource is being deployed.
*/
public const STAGE_DEPLOY = 'DEPLOY';
/**
* Waiting for the resource to become healthy.
*/
public const STAGE_HEALTH_CHECK = 'HEALTH_CHECK';
/**
* Resource is being updated.
*/
public const STAGE_UPDATE = 'UPDATE';
/**
* Not set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The stage is pending.
*/
public const STATE_PENDING = 'PENDING';
/**
* The stage is running
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The stage has completed successfully.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The stage has failed.
*/
public const STATE_FAILED = 'FAILED';
protected $collection_key = 'metrics';
/**
* Time the stage ended.
*
* @var string
*/
public $endTime;
protected $metricsType = Metric::class;
protected $metricsDataType = 'array';
/**
* The high-level stage of the operation.
*
* @var string
*/
public $stage;
/**
* Time the stage started.
*
* @var string
*/
public $startTime;
/**
* Output only. State of the stage.
*
* @var string
*/
public $state;
/**
* Time the stage ended.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Progress metric bundle.
*
* @param Metric[] $metrics
*/
public function setMetrics($metrics)
{
$this->metrics = $metrics;
}
/**
* @return Metric[]
*/
public function getMetrics()
{
return $this->metrics;
}
/**
* The high-level stage of the operation.
*
* Accepted values: STAGE_UNSPECIFIED, PREFLIGHT_CHECK, CONFIGURE, DEPLOY,
* HEALTH_CHECK, UPDATE
*
* @param self::STAGE_* $stage
*/
public function setStage($stage)
{
$this->stage = $stage;
}
/**
* @return self::STAGE_*
*/
public function getStage()
{
return $this->stage;
}
/**
* Time the stage started.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Output only. State of the stage.
*
* Accepted values: STATE_UNSPECIFIED, PENDING, RUNNING, SUCCEEDED, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationStage::class, 'Google_Service_GKEOnPrem_OperationStage');

View File

@@ -0,0 +1,147 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @var string
*/
public $etag;
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @var int
*/
public $version;
/**
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal. The
* `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of
* these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
* different roles to `user:alice@example.com`, and not to any other
* principal, then you can add another 1,450 principals to the `bindings` in
* the `Policy`.
*
* @param Binding[] $bindings
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param int $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_GKEOnPrem_Policy');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class QueryBareMetalAdminVersionConfigResponse extends \Google\Collection
{
protected $collection_key = 'versions';
protected $versionsType = BareMetalVersionInfo::class;
protected $versionsDataType = 'array';
/**
* List of available versions to install or to upgrade to.
*
* @param BareMetalVersionInfo[] $versions
*/
public function setVersions($versions)
{
$this->versions = $versions;
}
/**
* @return BareMetalVersionInfo[]
*/
public function getVersions()
{
return $this->versions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryBareMetalAdminVersionConfigResponse::class, 'Google_Service_GKEOnPrem_QueryBareMetalAdminVersionConfigResponse');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class QueryBareMetalVersionConfigResponse extends \Google\Collection
{
protected $collection_key = 'versions';
protected $versionsType = BareMetalVersionInfo::class;
protected $versionsDataType = 'array';
/**
* List of available versions to install or to upgrade to.
*
* @param BareMetalVersionInfo[] $versions
*/
public function setVersions($versions)
{
$this->versions = $versions;
}
/**
* @return BareMetalVersionInfo[]
*/
public function getVersions()
{
return $this->versions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryBareMetalVersionConfigResponse::class, 'Google_Service_GKEOnPrem_QueryBareMetalVersionConfigResponse');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GKEOnPrem;
class QueryVmwareVersionConfigResponse extends \Google\Collection
{
protected $collection_key = 'versions';
protected $versionsType = VmwareVersionInfo::class;
protected $versionsDataType = 'array';
/**
* List of available versions to install or to upgrade to.
*
* @param VmwareVersionInfo[] $versions
*/
public function setVersions($versions)
{
$this->versions = $versions;
}
/**
* @return VmwareVersionInfo[]
*/
public function getVersions()
{
return $this->versions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryVmwareVersionConfigResponse::class, 'Google_Service_GKEOnPrem_QueryVmwareVersionConfigResponse');

Some files were not shown because too many files have changed in this diff Show More