Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -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\Networkconnectivity;
class AcceptHubSpokeRequest extends \Google\Model
{
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $spokeUri;
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param string
*/
public function setSpokeUri($spokeUri)
{
$this->spokeUri = $spokeUri;
}
/**
* @return string
*/
public function getSpokeUri()
{
return $this->spokeUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceptHubSpokeRequest::class, 'Google_Service_Networkconnectivity_AcceptHubSpokeRequest');
@@ -0,0 +1,42 @@
<?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\Networkconnectivity;
class AcceptHubSpokeResponse extends \Google\Model
{
protected $spokeType = Spoke::class;
protected $spokeDataType = '';
/**
* @param Spoke
*/
public function setSpoke(Spoke $spoke)
{
$this->spoke = $spoke;
}
/**
* @return Spoke
*/
public function getSpoke()
{
return $this->spoke;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceptHubSpokeResponse::class, 'Google_Service_Networkconnectivity_AcceptHubSpokeResponse');
@@ -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\Networkconnectivity;
class AcceptSpokeRequest extends \Google\Model
{
/**
* @var string
*/
public $requestId;
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceptSpokeRequest::class, 'Google_Service_Networkconnectivity_AcceptSpokeRequest');
@@ -0,0 +1,60 @@
<?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\Networkconnectivity;
class AttributeValue extends \Google\Model
{
public $boolValue;
public $intValue;
protected $stringValueType = TruncatableString::class;
protected $stringValueDataType = '';
public function setBoolValue($boolValue)
{
$this->boolValue = $boolValue;
}
public function getBoolValue()
{
return $this->boolValue;
}
public function setIntValue($intValue)
{
$this->intValue = $intValue;
}
public function getIntValue()
{
return $this->intValue;
}
/**
* @param TruncatableString
*/
public function setStringValue(TruncatableString $stringValue)
{
$this->stringValue = $stringValue;
}
/**
* @return TruncatableString
*/
public function getStringValue()
{
return $this->stringValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttributeValue::class, 'Google_Service_Networkconnectivity_AttributeValue');
@@ -0,0 +1,51 @@
<?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\Networkconnectivity;
class Attributes extends \Google\Model
{
protected $attributeMapType = AttributeValue::class;
protected $attributeMapDataType = 'map';
public $droppedAttributesCount;
/**
* @param AttributeValue[]
*/
public function setAttributeMap($attributeMap)
{
$this->attributeMap = $attributeMap;
}
/**
* @return AttributeValue[]
*/
public function getAttributeMap()
{
return $this->attributeMap;
}
public function setDroppedAttributesCount($droppedAttributesCount)
{
$this->droppedAttributesCount = $droppedAttributesCount;
}
public function getDroppedAttributesCount()
{
return $this->droppedAttributesCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Attributes::class, 'Google_Service_Networkconnectivity_Attributes');
@@ -0,0 +1,61 @@
<?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\Networkconnectivity;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* @var string
*/
public $service;
/**
* @param AuditLogConfig[]
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* @param string
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_Networkconnectivity_AuditConfig');
@@ -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\Networkconnectivity;
class AuditLogConfig extends \Google\Collection
{
protected $collection_key = 'exemptedMembers';
/**
* @var string[]
*/
public $exemptedMembers;
/**
* @var string
*/
public $logType;
/**
* @param string[]
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* @param string
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return string
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_Networkconnectivity_AuditLogConfig');
@@ -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\Networkconnectivity;
class AutoAccept extends \Google\Collection
{
protected $collection_key = 'autoAcceptProjects';
/**
* @var string[]
*/
public $autoAcceptProjects;
/**
* @param string[]
*/
public function setAutoAcceptProjects($autoAcceptProjects)
{
$this->autoAcceptProjects = $autoAcceptProjects;
}
/**
* @return string[]
*/
public function getAutoAcceptProjects()
{
return $this->autoAcceptProjects;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoAccept::class, 'Google_Service_Networkconnectivity_AutoAccept');
@@ -0,0 +1,43 @@
<?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\Networkconnectivity;
class BillingView extends \Google\Collection
{
protected $collection_key = 'reportRequests';
protected $reportRequestsType = ReportRequest::class;
protected $reportRequestsDataType = 'array';
/**
* @param ReportRequest[]
*/
public function setReportRequests($reportRequests)
{
$this->reportRequests = $reportRequests;
}
/**
* @return ReportRequest[]
*/
public function getReportRequests()
{
return $this->reportRequests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingView::class, 'Google_Service_Networkconnectivity_BillingView');
@@ -0,0 +1,79 @@
<?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\Networkconnectivity;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* @param string
*/
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_Networkconnectivity_Binding');
@@ -0,0 +1,188 @@
<?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\Networkconnectivity;
class ConsumerPscConfig extends \Google\Model
{
/**
* @var string
*/
public $consumerInstanceProject;
/**
* @var bool
*/
public $disableGlobalAccess;
/**
* @var string
*/
public $ipVersion;
/**
* @var string
*/
public $network;
/**
* @var string
*/
public $producerInstanceId;
/**
* @var string[]
*/
public $producerInstanceMetadata;
/**
* @var string
*/
public $project;
/**
* @var string[]
*/
public $serviceAttachmentIpAddressMap;
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setConsumerInstanceProject($consumerInstanceProject)
{
$this->consumerInstanceProject = $consumerInstanceProject;
}
/**
* @return string
*/
public function getConsumerInstanceProject()
{
return $this->consumerInstanceProject;
}
/**
* @param bool
*/
public function setDisableGlobalAccess($disableGlobalAccess)
{
$this->disableGlobalAccess = $disableGlobalAccess;
}
/**
* @return bool
*/
public function getDisableGlobalAccess()
{
return $this->disableGlobalAccess;
}
/**
* @param string
*/
public function setIpVersion($ipVersion)
{
$this->ipVersion = $ipVersion;
}
/**
* @return string
*/
public function getIpVersion()
{
return $this->ipVersion;
}
/**
* @param string
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* @param string
*/
public function setProducerInstanceId($producerInstanceId)
{
$this->producerInstanceId = $producerInstanceId;
}
/**
* @return string
*/
public function getProducerInstanceId()
{
return $this->producerInstanceId;
}
/**
* @param string[]
*/
public function setProducerInstanceMetadata($producerInstanceMetadata)
{
$this->producerInstanceMetadata = $producerInstanceMetadata;
}
/**
* @return string[]
*/
public function getProducerInstanceMetadata()
{
return $this->producerInstanceMetadata;
}
/**
* @param string
*/
public function setProject($project)
{
$this->project = $project;
}
/**
* @return string
*/
public function getProject()
{
return $this->project;
}
/**
* @param string[]
*/
public function setServiceAttachmentIpAddressMap($serviceAttachmentIpAddressMap)
{
$this->serviceAttachmentIpAddressMap = $serviceAttachmentIpAddressMap;
}
/**
* @return string[]
*/
public function getServiceAttachmentIpAddressMap()
{
return $this->serviceAttachmentIpAddressMap;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConsumerPscConfig::class, 'Google_Service_Networkconnectivity_ConsumerPscConfig');
@@ -0,0 +1,291 @@
<?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\Networkconnectivity;
class ConsumerPscConnection extends \Google\Model
{
protected $errorDataType = '';
protected $errorInfoType = GoogleRpcErrorInfo::class;
protected $errorInfoDataType = '';
/**
* @var string
*/
public $errorType;
/**
* @var string
*/
public $forwardingRule;
/**
* @var string
*/
public $gceOperation;
/**
* @var string
*/
public $ip;
/**
* @var string
*/
public $ipVersion;
/**
* @var string
*/
public $network;
/**
* @var string
*/
public $producerInstanceId;
/**
* @var string[]
*/
public $producerInstanceMetadata;
/**
* @var string
*/
public $project;
/**
* @var string
*/
public $pscConnectionId;
/**
* @var string
*/
public $selectedSubnetwork;
/**
* @var string
*/
public $serviceAttachmentUri;
/**
* @var string
*/
public $state;
/**
* @param GoogleRpcStatus
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* @param GoogleRpcErrorInfo
*/
public function setErrorInfo(GoogleRpcErrorInfo $errorInfo)
{
$this->errorInfo = $errorInfo;
}
/**
* @return GoogleRpcErrorInfo
*/
public function getErrorInfo()
{
return $this->errorInfo;
}
/**
* @param string
*/
public function setErrorType($errorType)
{
$this->errorType = $errorType;
}
/**
* @return string
*/
public function getErrorType()
{
return $this->errorType;
}
/**
* @param string
*/
public function setForwardingRule($forwardingRule)
{
$this->forwardingRule = $forwardingRule;
}
/**
* @return string
*/
public function getForwardingRule()
{
return $this->forwardingRule;
}
/**
* @param string
*/
public function setGceOperation($gceOperation)
{
$this->gceOperation = $gceOperation;
}
/**
* @return string
*/
public function getGceOperation()
{
return $this->gceOperation;
}
/**
* @param string
*/
public function setIp($ip)
{
$this->ip = $ip;
}
/**
* @return string
*/
public function getIp()
{
return $this->ip;
}
/**
* @param string
*/
public function setIpVersion($ipVersion)
{
$this->ipVersion = $ipVersion;
}
/**
* @return string
*/
public function getIpVersion()
{
return $this->ipVersion;
}
/**
* @param string
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* @param string
*/
public function setProducerInstanceId($producerInstanceId)
{
$this->producerInstanceId = $producerInstanceId;
}
/**
* @return string
*/
public function getProducerInstanceId()
{
return $this->producerInstanceId;
}
/**
* @param string[]
*/
public function setProducerInstanceMetadata($producerInstanceMetadata)
{
$this->producerInstanceMetadata = $producerInstanceMetadata;
}
/**
* @return string[]
*/
public function getProducerInstanceMetadata()
{
return $this->producerInstanceMetadata;
}
/**
* @param string
*/
public function setProject($project)
{
$this->project = $project;
}
/**
* @return string
*/
public function getProject()
{
return $this->project;
}
/**
* @param string
*/
public function setPscConnectionId($pscConnectionId)
{
$this->pscConnectionId = $pscConnectionId;
}
/**
* @return string
*/
public function getPscConnectionId()
{
return $this->pscConnectionId;
}
/**
* @param string
*/
public function setSelectedSubnetwork($selectedSubnetwork)
{
$this->selectedSubnetwork = $selectedSubnetwork;
}
/**
* @return string
*/
public function getSelectedSubnetwork()
{
return $this->selectedSubnetwork;
}
/**
* @param string
*/
public function setServiceAttachmentUri($serviceAttachmentUri)
{
$this->serviceAttachmentUri = $serviceAttachmentUri;
}
/**
* @return string
*/
public function getServiceAttachmentUri()
{
return $this->serviceAttachmentUri;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConsumerPscConnection::class, 'Google_Service_Networkconnectivity_ConsumerPscConnection');
@@ -0,0 +1,145 @@
<?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\Networkconnectivity;
class Distribution extends \Google\Collection
{
protected $collection_key = 'exemplars';
public $bucketCounts;
public $count;
protected $exemplarsType = Exemplar::class;
protected $exemplarsDataType = 'array';
protected $explicitBucketsType = ExplicitBuckets::class;
protected $explicitBucketsDataType = '';
protected $exponentialBucketsType = ExponentialBuckets::class;
protected $exponentialBucketsDataType = '';
protected $linearBucketsType = LinearBuckets::class;
protected $linearBucketsDataType = '';
public $maximum;
public $mean;
public $minimum;
public $sumOfSquaredDeviation;
public function setBucketCounts($bucketCounts)
{
$this->bucketCounts = $bucketCounts;
}
public function getBucketCounts()
{
return $this->bucketCounts;
}
public function setCount($count)
{
$this->count = $count;
}
public function getCount()
{
return $this->count;
}
/**
* @param Exemplar[]
*/
public function setExemplars($exemplars)
{
$this->exemplars = $exemplars;
}
/**
* @return Exemplar[]
*/
public function getExemplars()
{
return $this->exemplars;
}
/**
* @param ExplicitBuckets
*/
public function setExplicitBuckets(ExplicitBuckets $explicitBuckets)
{
$this->explicitBuckets = $explicitBuckets;
}
/**
* @return ExplicitBuckets
*/
public function getExplicitBuckets()
{
return $this->explicitBuckets;
}
/**
* @param ExponentialBuckets
*/
public function setExponentialBuckets(ExponentialBuckets $exponentialBuckets)
{
$this->exponentialBuckets = $exponentialBuckets;
}
/**
* @return ExponentialBuckets
*/
public function getExponentialBuckets()
{
return $this->exponentialBuckets;
}
/**
* @param LinearBuckets
*/
public function setLinearBuckets(LinearBuckets $linearBuckets)
{
$this->linearBuckets = $linearBuckets;
}
/**
* @return LinearBuckets
*/
public function getLinearBuckets()
{
return $this->linearBuckets;
}
public function setMaximum($maximum)
{
$this->maximum = $maximum;
}
public function getMaximum()
{
return $this->maximum;
}
public function setMean($mean)
{
$this->mean = $mean;
}
public function getMean()
{
return $this->mean;
}
public function setMinimum($minimum)
{
$this->minimum = $minimum;
}
public function getMinimum()
{
return $this->minimum;
}
public function setSumOfSquaredDeviation($sumOfSquaredDeviation)
{
$this->sumOfSquaredDeviation = $sumOfSquaredDeviation;
}
public function getSumOfSquaredDeviation()
{
return $this->sumOfSquaredDeviation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Distribution::class, 'Google_Service_Networkconnectivity_Distribution');
@@ -0,0 +1,54 @@
<?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\Networkconnectivity;
class Exemplar extends \Google\Collection
{
protected $collection_key = 'attachments';
public $attachments;
public $timestamp;
public $value;
public function setAttachments($attachments)
{
$this->attachments = $attachments;
}
public function getAttachments()
{
return $this->attachments;
}
public function setTimestamp($timestamp)
{
$this->timestamp = $timestamp;
}
public function getTimestamp()
{
return $this->timestamp;
}
public function setValue($value)
{
$this->value = $value;
}
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Exemplar::class, 'Google_Service_Networkconnectivity_Exemplar');
@@ -0,0 +1,36 @@
<?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\Networkconnectivity;
class ExplicitBuckets extends \Google\Collection
{
protected $collection_key = 'bounds';
public $bounds;
public function setBounds($bounds)
{
$this->bounds = $bounds;
}
public function getBounds()
{
return $this->bounds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExplicitBuckets::class, 'Google_Service_Networkconnectivity_ExplicitBuckets');
@@ -0,0 +1,53 @@
<?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\Networkconnectivity;
class ExponentialBuckets extends \Google\Model
{
public $growthFactor;
public $numFiniteBuckets;
public $scale;
public function setGrowthFactor($growthFactor)
{
$this->growthFactor = $growthFactor;
}
public function getGrowthFactor()
{
return $this->growthFactor;
}
public function setNumFiniteBuckets($numFiniteBuckets)
{
$this->numFiniteBuckets = $numFiniteBuckets;
}
public function getNumFiniteBuckets()
{
return $this->numFiniteBuckets;
}
public function setScale($scale)
{
$this->scale = $scale;
}
public function getScale()
{
return $this->scale;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExponentialBuckets::class, 'Google_Service_Networkconnectivity_ExponentialBuckets');
@@ -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\Networkconnectivity;
class Expr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
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_Networkconnectivity_Expr');
@@ -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\Networkconnectivity;
class Filter extends \Google\Model
{
/**
* @var string
*/
public $destRange;
/**
* @var string
*/
public $ipProtocol;
/**
* @var string
*/
public $protocolVersion;
/**
* @var string
*/
public $srcRange;
/**
* @param string
*/
public function setDestRange($destRange)
{
$this->destRange = $destRange;
}
/**
* @return string
*/
public function getDestRange()
{
return $this->destRange;
}
/**
* @param string
*/
public function setIpProtocol($ipProtocol)
{
$this->ipProtocol = $ipProtocol;
}
/**
* @return string
*/
public function getIpProtocol()
{
return $this->ipProtocol;
}
/**
* @param string
*/
public function setProtocolVersion($protocolVersion)
{
$this->protocolVersion = $protocolVersion;
}
/**
* @return string
*/
public function getProtocolVersion()
{
return $this->protocolVersion;
}
/**
* @param string
*/
public function setSrcRange($srcRange)
{
$this->srcRange = $srcRange;
}
/**
* @return string
*/
public function getSrcRange()
{
return $this->srcRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Filter::class, 'Google_Service_Networkconnectivity_Filter');
@@ -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\Networkconnectivity;
class GoogleLongrunningCancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningCancelOperationRequest::class, 'Google_Service_Networkconnectivity_GoogleLongrunningCancelOperationRequest');
@@ -0,0 +1,61 @@
<?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\Networkconnectivity;
class GoogleLongrunningListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = GoogleLongrunningOperation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleLongrunningOperation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return GoogleLongrunningOperation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningListOperationsResponse::class, 'Google_Service_Networkconnectivity_GoogleLongrunningListOperationsResponse');
@@ -0,0 +1,114 @@
<?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\Networkconnectivity;
class GoogleLongrunningOperation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = GoogleRpcStatus::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param GoogleRpcStatus
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
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(GoogleLongrunningOperation::class, 'Google_Service_Networkconnectivity_GoogleLongrunningOperation');
@@ -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\Networkconnectivity;
class GoogleRpcErrorInfo extends \Google\Model
{
/**
* @var string
*/
public $domain;
/**
* @var string[]
*/
public $metadata;
/**
* @var string
*/
public $reason;
/**
* @param string
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* @param string[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return string[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleRpcErrorInfo::class, 'Google_Service_Networkconnectivity_GoogleRpcErrorInfo');
@@ -0,0 +1,81 @@
<?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\Networkconnectivity;
class GoogleRpcStatus extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleRpcStatus::class, 'Google_Service_Networkconnectivity_GoogleRpcStatus');
@@ -0,0 +1,186 @@
<?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\Networkconnectivity;
class Group extends \Google\Model
{
protected $autoAcceptType = AutoAccept::class;
protected $autoAcceptDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $routeTable;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $uid;
/**
* @var string
*/
public $updateTime;
/**
* @param AutoAccept
*/
public function setAutoAccept(AutoAccept $autoAccept)
{
$this->autoAccept = $autoAccept;
}
/**
* @return AutoAccept
*/
public function getAutoAccept()
{
return $this->autoAccept;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setRouteTable($routeTable)
{
$this->routeTable = $routeTable;
}
/**
* @return string
*/
public function getRouteTable()
{
return $this->routeTable;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Group::class, 'Google_Service_Networkconnectivity_Group');
@@ -0,0 +1,161 @@
<?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\Networkconnectivity;
class HttpRequest extends \Google\Model
{
public $cacheFillBytes;
public $cacheHit;
public $cacheLookup;
public $cacheValidatedWithOriginServer;
public $latency;
public $protocol;
public $referer;
public $remoteIp;
public $requestMethod;
public $requestSize;
public $requestUrl;
public $responseSize;
public $serverIp;
public $status;
public $userAgent;
public function setCacheFillBytes($cacheFillBytes)
{
$this->cacheFillBytes = $cacheFillBytes;
}
public function getCacheFillBytes()
{
return $this->cacheFillBytes;
}
public function setCacheHit($cacheHit)
{
$this->cacheHit = $cacheHit;
}
public function getCacheHit()
{
return $this->cacheHit;
}
public function setCacheLookup($cacheLookup)
{
$this->cacheLookup = $cacheLookup;
}
public function getCacheLookup()
{
return $this->cacheLookup;
}
public function setCacheValidatedWithOriginServer($cacheValidatedWithOriginServer)
{
$this->cacheValidatedWithOriginServer = $cacheValidatedWithOriginServer;
}
public function getCacheValidatedWithOriginServer()
{
return $this->cacheValidatedWithOriginServer;
}
public function setLatency($latency)
{
$this->latency = $latency;
}
public function getLatency()
{
return $this->latency;
}
public function setProtocol($protocol)
{
$this->protocol = $protocol;
}
public function getProtocol()
{
return $this->protocol;
}
public function setReferer($referer)
{
$this->referer = $referer;
}
public function getReferer()
{
return $this->referer;
}
public function setRemoteIp($remoteIp)
{
$this->remoteIp = $remoteIp;
}
public function getRemoteIp()
{
return $this->remoteIp;
}
public function setRequestMethod($requestMethod)
{
$this->requestMethod = $requestMethod;
}
public function getRequestMethod()
{
return $this->requestMethod;
}
public function setRequestSize($requestSize)
{
$this->requestSize = $requestSize;
}
public function getRequestSize()
{
return $this->requestSize;
}
public function setRequestUrl($requestUrl)
{
$this->requestUrl = $requestUrl;
}
public function getRequestUrl()
{
return $this->requestUrl;
}
public function setResponseSize($responseSize)
{
$this->responseSize = $responseSize;
}
public function getResponseSize()
{
return $this->responseSize;
}
public function setServerIp($serverIp)
{
$this->serverIp = $serverIp;
}
public function getServerIp()
{
return $this->serverIp;
}
public function setStatus($status)
{
$this->status = $status;
}
public function getStatus()
{
return $this->status;
}
public function setUserAgent($userAgent)
{
$this->userAgent = $userAgent;
}
public function getUserAgent()
{
return $this->userAgent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRequest::class, 'Google_Service_Networkconnectivity_HttpRequest');
@@ -0,0 +1,257 @@
<?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\Networkconnectivity;
class Hub extends \Google\Collection
{
protected $collection_key = 'routingVpcs';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var bool
*/
public $exportPsc;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $policyMode;
/**
* @var string
*/
public $presetTopology;
/**
* @var string[]
*/
public $routeTables;
protected $routingVpcsType = RoutingVPC::class;
protected $routingVpcsDataType = 'array';
protected $spokeSummaryType = SpokeSummary::class;
protected $spokeSummaryDataType = '';
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $uniqueId;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param bool
*/
public function setExportPsc($exportPsc)
{
$this->exportPsc = $exportPsc;
}
/**
* @return bool
*/
public function getExportPsc()
{
return $this->exportPsc;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPolicyMode($policyMode)
{
$this->policyMode = $policyMode;
}
/**
* @return string
*/
public function getPolicyMode()
{
return $this->policyMode;
}
/**
* @param string
*/
public function setPresetTopology($presetTopology)
{
$this->presetTopology = $presetTopology;
}
/**
* @return string
*/
public function getPresetTopology()
{
return $this->presetTopology;
}
/**
* @param string[]
*/
public function setRouteTables($routeTables)
{
$this->routeTables = $routeTables;
}
/**
* @return string[]
*/
public function getRouteTables()
{
return $this->routeTables;
}
/**
* @param RoutingVPC[]
*/
public function setRoutingVpcs($routingVpcs)
{
$this->routingVpcs = $routingVpcs;
}
/**
* @return RoutingVPC[]
*/
public function getRoutingVpcs()
{
return $this->routingVpcs;
}
/**
* @param SpokeSummary
*/
public function setSpokeSummary(SpokeSummary $spokeSummary)
{
$this->spokeSummary = $spokeSummary;
}
/**
* @return SpokeSummary
*/
public function getSpokeSummary()
{
return $this->spokeSummary;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setUniqueId($uniqueId)
{
$this->uniqueId = $uniqueId;
}
/**
* @return string
*/
public function getUniqueId()
{
return $this->uniqueId;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Hub::class, 'Google_Service_Networkconnectivity_Hub');
@@ -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\Networkconnectivity;
class HubStatusEntry extends \Google\Model
{
/**
* @var int
*/
public $count;
/**
* @var string
*/
public $groupBy;
protected $pscPropagationStatusType = PscPropagationStatus::class;
protected $pscPropagationStatusDataType = '';
/**
* @param int
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* @param string
*/
public function setGroupBy($groupBy)
{
$this->groupBy = $groupBy;
}
/**
* @return string
*/
public function getGroupBy()
{
return $this->groupBy;
}
/**
* @param PscPropagationStatus
*/
public function setPscPropagationStatus(PscPropagationStatus $pscPropagationStatus)
{
$this->pscPropagationStatus = $pscPropagationStatus;
}
/**
* @return PscPropagationStatus
*/
public function getPscPropagationStatus()
{
return $this->pscPropagationStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HubStatusEntry::class, 'Google_Service_Networkconnectivity_HubStatusEntry');
@@ -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\Networkconnectivity;
class InterconnectAttachment extends \Google\Model
{
/**
* @var string
*/
public $region;
/**
* @param string
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InterconnectAttachment::class, 'Google_Service_Networkconnectivity_InterconnectAttachment');
@@ -0,0 +1,277 @@
<?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\Networkconnectivity;
class InternalRange extends \Google\Collection
{
protected $collection_key = 'users';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $ipCidrRange;
/**
* @var string[]
*/
public $labels;
protected $migrationType = Migration::class;
protected $migrationDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $network;
/**
* @var string[]
*/
public $overlaps;
/**
* @var string
*/
public $peering;
/**
* @var int
*/
public $prefixLength;
/**
* @var string[]
*/
public $targetCidrRange;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $usage;
/**
* @var string[]
*/
public $users;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setIpCidrRange($ipCidrRange)
{
$this->ipCidrRange = $ipCidrRange;
}
/**
* @return string
*/
public function getIpCidrRange()
{
return $this->ipCidrRange;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param Migration
*/
public function setMigration(Migration $migration)
{
$this->migration = $migration;
}
/**
* @return Migration
*/
public function getMigration()
{
return $this->migration;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* @param string[]
*/
public function setOverlaps($overlaps)
{
$this->overlaps = $overlaps;
}
/**
* @return string[]
*/
public function getOverlaps()
{
return $this->overlaps;
}
/**
* @param string
*/
public function setPeering($peering)
{
$this->peering = $peering;
}
/**
* @return string
*/
public function getPeering()
{
return $this->peering;
}
/**
* @param int
*/
public function setPrefixLength($prefixLength)
{
$this->prefixLength = $prefixLength;
}
/**
* @return int
*/
public function getPrefixLength()
{
return $this->prefixLength;
}
/**
* @param string[]
*/
public function setTargetCidrRange($targetCidrRange)
{
$this->targetCidrRange = $targetCidrRange;
}
/**
* @return string[]
*/
public function getTargetCidrRange()
{
return $this->targetCidrRange;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setUsage($usage)
{
$this->usage = $usage;
}
/**
* @return string
*/
public function getUsage()
{
return $this->usage;
}
/**
* @param string[]
*/
public function setUsers($users)
{
$this->users = $users;
}
/**
* @return string[]
*/
public function getUsers()
{
return $this->users;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InternalRange::class, 'Google_Service_Networkconnectivity_InternalRange');
@@ -0,0 +1,53 @@
<?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\Networkconnectivity;
class LinearBuckets extends \Google\Model
{
public $numFiniteBuckets;
public $offset;
public $width;
public function setNumFiniteBuckets($numFiniteBuckets)
{
$this->numFiniteBuckets = $numFiniteBuckets;
}
public function getNumFiniteBuckets()
{
return $this->numFiniteBuckets;
}
public function setOffset($offset)
{
$this->offset = $offset;
}
public function getOffset()
{
return $this->offset;
}
public function setWidth($width)
{
$this->width = $width;
}
public function getWidth()
{
return $this->width;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LinearBuckets::class, 'Google_Service_Networkconnectivity_LinearBuckets');
@@ -0,0 +1,99 @@
<?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\Networkconnectivity;
class LinkedInterconnectAttachments extends \Google\Collection
{
protected $collection_key = 'uris';
/**
* @var string[]
*/
public $includeImportRanges;
/**
* @var bool
*/
public $siteToSiteDataTransfer;
/**
* @var string[]
*/
public $uris;
/**
* @var string
*/
public $vpcNetwork;
/**
* @param string[]
*/
public function setIncludeImportRanges($includeImportRanges)
{
$this->includeImportRanges = $includeImportRanges;
}
/**
* @return string[]
*/
public function getIncludeImportRanges()
{
return $this->includeImportRanges;
}
/**
* @param bool
*/
public function setSiteToSiteDataTransfer($siteToSiteDataTransfer)
{
$this->siteToSiteDataTransfer = $siteToSiteDataTransfer;
}
/**
* @return bool
*/
public function getSiteToSiteDataTransfer()
{
return $this->siteToSiteDataTransfer;
}
/**
* @param string[]
*/
public function setUris($uris)
{
$this->uris = $uris;
}
/**
* @return string[]
*/
public function getUris()
{
return $this->uris;
}
/**
* @param string
*/
public function setVpcNetwork($vpcNetwork)
{
$this->vpcNetwork = $vpcNetwork;
}
/**
* @return string
*/
public function getVpcNetwork()
{
return $this->vpcNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LinkedInterconnectAttachments::class, 'Google_Service_Networkconnectivity_LinkedInterconnectAttachments');
@@ -0,0 +1,135 @@
<?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\Networkconnectivity;
class LinkedProducerVpcNetwork extends \Google\Collection
{
protected $collection_key = 'includeExportRanges';
/**
* @var string[]
*/
public $excludeExportRanges;
/**
* @var string[]
*/
public $includeExportRanges;
/**
* @var string
*/
public $network;
/**
* @var string
*/
public $peering;
/**
* @var string
*/
public $producerNetwork;
/**
* @var string
*/
public $serviceConsumerVpcSpoke;
/**
* @param string[]
*/
public function setExcludeExportRanges($excludeExportRanges)
{
$this->excludeExportRanges = $excludeExportRanges;
}
/**
* @return string[]
*/
public function getExcludeExportRanges()
{
return $this->excludeExportRanges;
}
/**
* @param string[]
*/
public function setIncludeExportRanges($includeExportRanges)
{
$this->includeExportRanges = $includeExportRanges;
}
/**
* @return string[]
*/
public function getIncludeExportRanges()
{
return $this->includeExportRanges;
}
/**
* @param string
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* @param string
*/
public function setPeering($peering)
{
$this->peering = $peering;
}
/**
* @return string
*/
public function getPeering()
{
return $this->peering;
}
/**
* @param string
*/
public function setProducerNetwork($producerNetwork)
{
$this->producerNetwork = $producerNetwork;
}
/**
* @return string
*/
public function getProducerNetwork()
{
return $this->producerNetwork;
}
/**
* @param string
*/
public function setServiceConsumerVpcSpoke($serviceConsumerVpcSpoke)
{
$this->serviceConsumerVpcSpoke = $serviceConsumerVpcSpoke;
}
/**
* @return string
*/
public function getServiceConsumerVpcSpoke()
{
return $this->serviceConsumerVpcSpoke;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LinkedProducerVpcNetwork::class, 'Google_Service_Networkconnectivity_LinkedProducerVpcNetwork');
@@ -0,0 +1,97 @@
<?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\Networkconnectivity;
class LinkedRouterApplianceInstances extends \Google\Collection
{
protected $collection_key = 'instances';
/**
* @var string[]
*/
public $includeImportRanges;
protected $instancesType = RouterApplianceInstance::class;
protected $instancesDataType = 'array';
/**
* @var bool
*/
public $siteToSiteDataTransfer;
/**
* @var string
*/
public $vpcNetwork;
/**
* @param string[]
*/
public function setIncludeImportRanges($includeImportRanges)
{
$this->includeImportRanges = $includeImportRanges;
}
/**
* @return string[]
*/
public function getIncludeImportRanges()
{
return $this->includeImportRanges;
}
/**
* @param RouterApplianceInstance[]
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return RouterApplianceInstance[]
*/
public function getInstances()
{
return $this->instances;
}
/**
* @param bool
*/
public function setSiteToSiteDataTransfer($siteToSiteDataTransfer)
{
$this->siteToSiteDataTransfer = $siteToSiteDataTransfer;
}
/**
* @return bool
*/
public function getSiteToSiteDataTransfer()
{
return $this->siteToSiteDataTransfer;
}
/**
* @param string
*/
public function setVpcNetwork($vpcNetwork)
{
$this->vpcNetwork = $vpcNetwork;
}
/**
* @return string
*/
public function getVpcNetwork()
{
return $this->vpcNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LinkedRouterApplianceInstances::class, 'Google_Service_Networkconnectivity_LinkedRouterApplianceInstances');
@@ -0,0 +1,99 @@
<?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\Networkconnectivity;
class LinkedVpcNetwork extends \Google\Collection
{
protected $collection_key = 'producerVpcSpokes';
/**
* @var string[]
*/
public $excludeExportRanges;
/**
* @var string[]
*/
public $includeExportRanges;
/**
* @var string[]
*/
public $producerVpcSpokes;
/**
* @var string
*/
public $uri;
/**
* @param string[]
*/
public function setExcludeExportRanges($excludeExportRanges)
{
$this->excludeExportRanges = $excludeExportRanges;
}
/**
* @return string[]
*/
public function getExcludeExportRanges()
{
return $this->excludeExportRanges;
}
/**
* @param string[]
*/
public function setIncludeExportRanges($includeExportRanges)
{
$this->includeExportRanges = $includeExportRanges;
}
/**
* @return string[]
*/
public function getIncludeExportRanges()
{
return $this->includeExportRanges;
}
/**
* @param string[]
*/
public function setProducerVpcSpokes($producerVpcSpokes)
{
$this->producerVpcSpokes = $producerVpcSpokes;
}
/**
* @return string[]
*/
public function getProducerVpcSpokes()
{
return $this->producerVpcSpokes;
}
/**
* @param string
*/
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(LinkedVpcNetwork::class, 'Google_Service_Networkconnectivity_LinkedVpcNetwork');
@@ -0,0 +1,99 @@
<?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\Networkconnectivity;
class LinkedVpnTunnels extends \Google\Collection
{
protected $collection_key = 'uris';
/**
* @var string[]
*/
public $includeImportRanges;
/**
* @var bool
*/
public $siteToSiteDataTransfer;
/**
* @var string[]
*/
public $uris;
/**
* @var string
*/
public $vpcNetwork;
/**
* @param string[]
*/
public function setIncludeImportRanges($includeImportRanges)
{
$this->includeImportRanges = $includeImportRanges;
}
/**
* @return string[]
*/
public function getIncludeImportRanges()
{
return $this->includeImportRanges;
}
/**
* @param bool
*/
public function setSiteToSiteDataTransfer($siteToSiteDataTransfer)
{
$this->siteToSiteDataTransfer = $siteToSiteDataTransfer;
}
/**
* @return bool
*/
public function getSiteToSiteDataTransfer()
{
return $this->siteToSiteDataTransfer;
}
/**
* @param string[]
*/
public function setUris($uris)
{
$this->uris = $uris;
}
/**
* @return string[]
*/
public function getUris()
{
return $this->uris;
}
/**
* @param string
*/
public function setVpcNetwork($vpcNetwork)
{
$this->vpcNetwork = $vpcNetwork;
}
/**
* @return string
*/
public function getVpcNetwork()
{
return $this->vpcNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LinkedVpnTunnels::class, 'Google_Service_Networkconnectivity_LinkedVpnTunnels');
@@ -0,0 +1,79 @@
<?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\Networkconnectivity;
class ListGroupsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $groupsType = Group::class;
protected $groupsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param Group[]
*/
public function setGroups($groups)
{
$this->groups = $groups;
}
/**
* @return Group[]
*/
public function getGroups()
{
return $this->groups;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
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(ListGroupsResponse::class, 'Google_Service_Networkconnectivity_ListGroupsResponse');
@@ -0,0 +1,79 @@
<?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\Networkconnectivity;
class ListHubSpokesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $spokesType = Spoke::class;
protected $spokesDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Spoke[]
*/
public function setSpokes($spokes)
{
$this->spokes = $spokes;
}
/**
* @return Spoke[]
*/
public function getSpokes()
{
return $this->spokes;
}
/**
* @param string[]
*/
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(ListHubSpokesResponse::class, 'Google_Service_Networkconnectivity_ListHubSpokesResponse');
@@ -0,0 +1,79 @@
<?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\Networkconnectivity;
class ListHubsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $hubsType = Hub::class;
protected $hubsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param Hub[]
*/
public function setHubs($hubs)
{
$this->hubs = $hubs;
}
/**
* @return Hub[]
*/
public function getHubs()
{
return $this->hubs;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
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(ListHubsResponse::class, 'Google_Service_Networkconnectivity_ListHubsResponse');
@@ -0,0 +1,79 @@
<?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\Networkconnectivity;
class ListInternalRangesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $internalRangesType = InternalRange::class;
protected $internalRangesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param InternalRange[]
*/
public function setInternalRanges($internalRanges)
{
$this->internalRanges = $internalRanges;
}
/**
* @return InternalRange[]
*/
public function getInternalRanges()
{
return $this->internalRanges;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
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(ListInternalRangesResponse::class, 'Google_Service_Networkconnectivity_ListInternalRangesResponse');
@@ -0,0 +1,61 @@
<?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\Networkconnectivity;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Location[]
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* @param string
*/
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_Networkconnectivity_ListLocationsResponse');
@@ -0,0 +1,79 @@
<?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\Networkconnectivity;
class ListPolicyBasedRoutesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $policyBasedRoutesType = PolicyBasedRoute::class;
protected $policyBasedRoutesDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param PolicyBasedRoute[]
*/
public function setPolicyBasedRoutes($policyBasedRoutes)
{
$this->policyBasedRoutes = $policyBasedRoutes;
}
/**
* @return PolicyBasedRoute[]
*/
public function getPolicyBasedRoutes()
{
return $this->policyBasedRoutes;
}
/**
* @param string[]
*/
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(ListPolicyBasedRoutesResponse::class, 'Google_Service_Networkconnectivity_ListPolicyBasedRoutesResponse');
@@ -0,0 +1,79 @@
<?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\Networkconnectivity;
class ListRegionalEndpointsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $regionalEndpointsType = RegionalEndpoint::class;
protected $regionalEndpointsDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param RegionalEndpoint[]
*/
public function setRegionalEndpoints($regionalEndpoints)
{
$this->regionalEndpoints = $regionalEndpoints;
}
/**
* @return RegionalEndpoint[]
*/
public function getRegionalEndpoints()
{
return $this->regionalEndpoints;
}
/**
* @param string[]
*/
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(ListRegionalEndpointsResponse::class, 'Google_Service_Networkconnectivity_ListRegionalEndpointsResponse');
@@ -0,0 +1,79 @@
<?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\Networkconnectivity;
class ListRouteTablesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $routeTablesType = RouteTable::class;
protected $routeTablesDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param RouteTable[]
*/
public function setRouteTables($routeTables)
{
$this->routeTables = $routeTables;
}
/**
* @return RouteTable[]
*/
public function getRouteTables()
{
return $this->routeTables;
}
/**
* @param string[]
*/
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(ListRouteTablesResponse::class, 'Google_Service_Networkconnectivity_ListRouteTablesResponse');
@@ -0,0 +1,79 @@
<?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\Networkconnectivity;
class ListRoutesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $routesType = Route::class;
protected $routesDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Route[]
*/
public function setRoutes($routes)
{
$this->routes = $routes;
}
/**
* @return Route[]
*/
public function getRoutes()
{
return $this->routes;
}
/**
* @param string[]
*/
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(ListRoutesResponse::class, 'Google_Service_Networkconnectivity_ListRoutesResponse');
@@ -0,0 +1,79 @@
<?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\Networkconnectivity;
class ListServiceClassesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $serviceClassesType = ServiceClass::class;
protected $serviceClassesDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param ServiceClass[]
*/
public function setServiceClasses($serviceClasses)
{
$this->serviceClasses = $serviceClasses;
}
/**
* @return ServiceClass[]
*/
public function getServiceClasses()
{
return $this->serviceClasses;
}
/**
* @param string[]
*/
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(ListServiceClassesResponse::class, 'Google_Service_Networkconnectivity_ListServiceClassesResponse');
@@ -0,0 +1,79 @@
<?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\Networkconnectivity;
class ListServiceConnectionMapsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $serviceConnectionMapsType = ServiceConnectionMap::class;
protected $serviceConnectionMapsDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param ServiceConnectionMap[]
*/
public function setServiceConnectionMaps($serviceConnectionMaps)
{
$this->serviceConnectionMaps = $serviceConnectionMaps;
}
/**
* @return ServiceConnectionMap[]
*/
public function getServiceConnectionMaps()
{
return $this->serviceConnectionMaps;
}
/**
* @param string[]
*/
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(ListServiceConnectionMapsResponse::class, 'Google_Service_Networkconnectivity_ListServiceConnectionMapsResponse');
@@ -0,0 +1,79 @@
<?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\Networkconnectivity;
class ListServiceConnectionPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $serviceConnectionPoliciesType = ServiceConnectionPolicy::class;
protected $serviceConnectionPoliciesDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param ServiceConnectionPolicy[]
*/
public function setServiceConnectionPolicies($serviceConnectionPolicies)
{
$this->serviceConnectionPolicies = $serviceConnectionPolicies;
}
/**
* @return ServiceConnectionPolicy[]
*/
public function getServiceConnectionPolicies()
{
return $this->serviceConnectionPolicies;
}
/**
* @param string[]
*/
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(ListServiceConnectionPoliciesResponse::class, 'Google_Service_Networkconnectivity_ListServiceConnectionPoliciesResponse');
@@ -0,0 +1,79 @@
<?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\Networkconnectivity;
class ListServiceConnectionTokensResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $serviceConnectionTokensType = ServiceConnectionToken::class;
protected $serviceConnectionTokensDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param ServiceConnectionToken[]
*/
public function setServiceConnectionTokens($serviceConnectionTokens)
{
$this->serviceConnectionTokens = $serviceConnectionTokens;
}
/**
* @return ServiceConnectionToken[]
*/
public function getServiceConnectionTokens()
{
return $this->serviceConnectionTokens;
}
/**
* @param string[]
*/
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(ListServiceConnectionTokensResponse::class, 'Google_Service_Networkconnectivity_ListServiceConnectionTokensResponse');
@@ -0,0 +1,79 @@
<?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\Networkconnectivity;
class ListSpokesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $spokesType = Spoke::class;
protected $spokesDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Spoke[]
*/
public function setSpokes($spokes)
{
$this->spokes = $spokes;
}
/**
* @return Spoke[]
*/
public function getSpokes()
{
return $this->spokes;
}
/**
* @param string[]
*/
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(ListSpokesResponse::class, 'Google_Service_Networkconnectivity_ListSpokesResponse');
@@ -0,0 +1,116 @@
<?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\Networkconnectivity;
class Location extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $locationId;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
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_Networkconnectivity_Location');
@@ -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\Networkconnectivity;
class LocationMetadata extends \Google\Collection
{
protected $collection_key = 'locationFeatures';
/**
* @var string[]
*/
public $locationFeatures;
/**
* @param string[]
*/
public function setLocationFeatures($locationFeatures)
{
$this->locationFeatures = $locationFeatures;
}
/**
* @return string[]
*/
public function getLocationFeatures()
{
return $this->locationFeatures;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationMetadata::class, 'Google_Service_Networkconnectivity_LocationMetadata');
@@ -0,0 +1,155 @@
<?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\Networkconnectivity;
class LogEntry extends \Google\Model
{
protected $httpRequestType = HttpRequest::class;
protected $httpRequestDataType = '';
public $insertId;
public $labels;
public $name;
protected $operationType = LogEntryOperation::class;
protected $operationDataType = '';
public $protoPayload;
public $severity;
protected $sourceLocationType = LogEntrySourceLocation::class;
protected $sourceLocationDataType = '';
public $structPayload;
public $textPayload;
public $timestamp;
public $trace;
/**
* @param HttpRequest
*/
public function setHttpRequest(HttpRequest $httpRequest)
{
$this->httpRequest = $httpRequest;
}
/**
* @return HttpRequest
*/
public function getHttpRequest()
{
return $this->httpRequest;
}
public function setInsertId($insertId)
{
$this->insertId = $insertId;
}
public function getInsertId()
{
return $this->insertId;
}
public function setLabels($labels)
{
$this->labels = $labels;
}
public function getLabels()
{
return $this->labels;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
/**
* @param LogEntryOperation
*/
public function setOperation(LogEntryOperation $operation)
{
$this->operation = $operation;
}
/**
* @return LogEntryOperation
*/
public function getOperation()
{
return $this->operation;
}
public function setProtoPayload($protoPayload)
{
$this->protoPayload = $protoPayload;
}
public function getProtoPayload()
{
return $this->protoPayload;
}
public function setSeverity($severity)
{
$this->severity = $severity;
}
public function getSeverity()
{
return $this->severity;
}
/**
* @param LogEntrySourceLocation
*/
public function setSourceLocation(LogEntrySourceLocation $sourceLocation)
{
$this->sourceLocation = $sourceLocation;
}
/**
* @return LogEntrySourceLocation
*/
public function getSourceLocation()
{
return $this->sourceLocation;
}
public function setStructPayload($structPayload)
{
$this->structPayload = $structPayload;
}
public function getStructPayload()
{
return $this->structPayload;
}
public function setTextPayload($textPayload)
{
$this->textPayload = $textPayload;
}
public function getTextPayload()
{
return $this->textPayload;
}
public function setTimestamp($timestamp)
{
$this->timestamp = $timestamp;
}
public function getTimestamp()
{
return $this->timestamp;
}
public function setTrace($trace)
{
$this->trace = $trace;
}
public function getTrace()
{
return $this->trace;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogEntry::class, 'Google_Service_Networkconnectivity_LogEntry');
@@ -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\Networkconnectivity;
class LogEntryOperation extends \Google\Model
{
public $first;
public $id;
public $last;
public $producer;
public function setFirst($first)
{
$this->first = $first;
}
public function getFirst()
{
return $this->first;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setLast($last)
{
$this->last = $last;
}
public function getLast()
{
return $this->last;
}
public function setProducer($producer)
{
$this->producer = $producer;
}
public function getProducer()
{
return $this->producer;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogEntryOperation::class, 'Google_Service_Networkconnectivity_LogEntryOperation');
@@ -0,0 +1,53 @@
<?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\Networkconnectivity;
class LogEntrySourceLocation extends \Google\Model
{
public $file;
public $function;
public $line;
public function setFile($file)
{
$this->file = $file;
}
public function getFile()
{
return $this->file;
}
public function setFunction($function)
{
$this->function = $function;
}
public function getFunction()
{
return $this->function;
}
public function setLine($line)
{
$this->line = $line;
}
public function getLine()
{
return $this->line;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogEntrySourceLocation::class, 'Google_Service_Networkconnectivity_LogEntrySourceLocation');
@@ -0,0 +1,121 @@
<?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\Networkconnectivity;
class MetricValue extends \Google\Model
{
public $boolValue;
protected $distributionValueType = Distribution::class;
protected $distributionValueDataType = '';
public $doubleValue;
public $endTime;
public $int64Value;
public $labels;
protected $moneyValueType = Money::class;
protected $moneyValueDataType = '';
public $startTime;
public $stringValue;
public function setBoolValue($boolValue)
{
$this->boolValue = $boolValue;
}
public function getBoolValue()
{
return $this->boolValue;
}
/**
* @param Distribution
*/
public function setDistributionValue(Distribution $distributionValue)
{
$this->distributionValue = $distributionValue;
}
/**
* @return Distribution
*/
public function getDistributionValue()
{
return $this->distributionValue;
}
public function setDoubleValue($doubleValue)
{
$this->doubleValue = $doubleValue;
}
public function getDoubleValue()
{
return $this->doubleValue;
}
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
public function getEndTime()
{
return $this->endTime;
}
public function setInt64Value($int64Value)
{
$this->int64Value = $int64Value;
}
public function getInt64Value()
{
return $this->int64Value;
}
public function setLabels($labels)
{
$this->labels = $labels;
}
public function getLabels()
{
return $this->labels;
}
/**
* @param Money
*/
public function setMoneyValue(Money $moneyValue)
{
$this->moneyValue = $moneyValue;
}
/**
* @return Money
*/
public function getMoneyValue()
{
return $this->moneyValue;
}
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
public function getStartTime()
{
return $this->startTime;
}
public function setStringValue($stringValue)
{
$this->stringValue = $stringValue;
}
public function getStringValue()
{
return $this->stringValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetricValue::class, 'Google_Service_Networkconnectivity_MetricValue');
@@ -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\Networkconnectivity;
class MetricValueSet extends \Google\Collection
{
protected $collection_key = 'metricValues';
public $metricName;
protected $metricValuesType = MetricValue::class;
protected $metricValuesDataType = 'array';
public function setMetricName($metricName)
{
$this->metricName = $metricName;
}
public function getMetricName()
{
return $this->metricName;
}
/**
* @param MetricValue[]
*/
public function setMetricValues($metricValues)
{
$this->metricValues = $metricValues;
}
/**
* @return MetricValue[]
*/
public function getMetricValues()
{
return $this->metricValues;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetricValueSet::class, 'Google_Service_Networkconnectivity_MetricValueSet');
@@ -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\Networkconnectivity;
class Migration extends \Google\Model
{
/**
* @var string
*/
public $source;
/**
* @var string
*/
public $target;
/**
* @param string
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Migration::class, 'Google_Service_Networkconnectivity_Migration');
@@ -0,0 +1,53 @@
<?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\Networkconnectivity;
class Money extends \Google\Model
{
public $currencyCode;
public $nanos;
public $units;
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
public function getCurrencyCode()
{
return $this->currencyCode;
}
public function setNanos($nanos)
{
$this->nanos = $nanos;
}
public function getNanos()
{
return $this->nanos;
}
public function setUnits($units)
{
$this->units = $units;
}
public function getUnits()
{
return $this->units;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Money::class, 'Google_Service_Networkconnectivity_Money');
@@ -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\Networkconnectivity;
class NetworkconnectivityEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkconnectivityEmpty::class, 'Google_Service_Networkconnectivity_NetworkconnectivityEmpty');
@@ -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\Networkconnectivity;
class NextHopInterconnectAttachment extends \Google\Model
{
/**
* @var bool
*/
public $siteToSiteDataTransfer;
/**
* @var string
*/
public $uri;
/**
* @var string
*/
public $vpcNetwork;
/**
* @param bool
*/
public function setSiteToSiteDataTransfer($siteToSiteDataTransfer)
{
$this->siteToSiteDataTransfer = $siteToSiteDataTransfer;
}
/**
* @return bool
*/
public function getSiteToSiteDataTransfer()
{
return $this->siteToSiteDataTransfer;
}
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
/**
* @param string
*/
public function setVpcNetwork($vpcNetwork)
{
$this->vpcNetwork = $vpcNetwork;
}
/**
* @return string
*/
public function getVpcNetwork()
{
return $this->vpcNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NextHopInterconnectAttachment::class, 'Google_Service_Networkconnectivity_NextHopInterconnectAttachment');
@@ -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\Networkconnectivity;
class NextHopRouterApplianceInstance extends \Google\Model
{
/**
* @var bool
*/
public $siteToSiteDataTransfer;
/**
* @var string
*/
public $uri;
/**
* @var string
*/
public $vpcNetwork;
/**
* @param bool
*/
public function setSiteToSiteDataTransfer($siteToSiteDataTransfer)
{
$this->siteToSiteDataTransfer = $siteToSiteDataTransfer;
}
/**
* @return bool
*/
public function getSiteToSiteDataTransfer()
{
return $this->siteToSiteDataTransfer;
}
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
/**
* @param string
*/
public function setVpcNetwork($vpcNetwork)
{
$this->vpcNetwork = $vpcNetwork;
}
/**
* @return string
*/
public function getVpcNetwork()
{
return $this->vpcNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NextHopRouterApplianceInstance::class, 'Google_Service_Networkconnectivity_NextHopRouterApplianceInstance');
@@ -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\Networkconnectivity;
class NextHopVPNTunnel extends \Google\Model
{
/**
* @var bool
*/
public $siteToSiteDataTransfer;
/**
* @var string
*/
public $uri;
/**
* @var string
*/
public $vpcNetwork;
/**
* @param bool
*/
public function setSiteToSiteDataTransfer($siteToSiteDataTransfer)
{
$this->siteToSiteDataTransfer = $siteToSiteDataTransfer;
}
/**
* @return bool
*/
public function getSiteToSiteDataTransfer()
{
return $this->siteToSiteDataTransfer;
}
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
/**
* @param string
*/
public function setVpcNetwork($vpcNetwork)
{
$this->vpcNetwork = $vpcNetwork;
}
/**
* @return string
*/
public function getVpcNetwork()
{
return $this->vpcNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NextHopVPNTunnel::class, 'Google_Service_Networkconnectivity_NextHopVPNTunnel');
@@ -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\Networkconnectivity;
class NextHopVpcNetwork extends \Google\Model
{
/**
* @var string
*/
public $uri;
/**
* @param string
*/
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(NextHopVpcNetwork::class, 'Google_Service_Networkconnectivity_NextHopVpcNetwork');
@@ -0,0 +1,188 @@
<?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\Networkconnectivity;
class Operation extends \Google\Collection
{
protected $collection_key = 'traceSpans';
public $consumerId;
public $endTime;
public $extensions;
public $importance;
public $labels;
protected $logEntriesType = LogEntry::class;
protected $logEntriesDataType = 'array';
protected $metricValueSetsType = MetricValueSet::class;
protected $metricValueSetsDataType = 'array';
public $operationId;
public $operationName;
protected $quotaPropertiesType = QuotaProperties::class;
protected $quotaPropertiesDataType = '';
protected $resourcesType = ResourceInfo::class;
protected $resourcesDataType = 'array';
public $startTime;
protected $traceSpansType = TraceSpan::class;
protected $traceSpansDataType = 'array';
public $userLabels;
public function setConsumerId($consumerId)
{
$this->consumerId = $consumerId;
}
public function getConsumerId()
{
return $this->consumerId;
}
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
public function getEndTime()
{
return $this->endTime;
}
public function setExtensions($extensions)
{
$this->extensions = $extensions;
}
public function getExtensions()
{
return $this->extensions;
}
public function setImportance($importance)
{
$this->importance = $importance;
}
public function getImportance()
{
return $this->importance;
}
public function setLabels($labels)
{
$this->labels = $labels;
}
public function getLabels()
{
return $this->labels;
}
/**
* @param LogEntry[]
*/
public function setLogEntries($logEntries)
{
$this->logEntries = $logEntries;
}
/**
* @return LogEntry[]
*/
public function getLogEntries()
{
return $this->logEntries;
}
/**
* @param MetricValueSet[]
*/
public function setMetricValueSets($metricValueSets)
{
$this->metricValueSets = $metricValueSets;
}
/**
* @return MetricValueSet[]
*/
public function getMetricValueSets()
{
return $this->metricValueSets;
}
public function setOperationId($operationId)
{
$this->operationId = $operationId;
}
public function getOperationId()
{
return $this->operationId;
}
public function setOperationName($operationName)
{
$this->operationName = $operationName;
}
public function getOperationName()
{
return $this->operationName;
}
/**
* @param QuotaProperties
*/
public function setQuotaProperties(QuotaProperties $quotaProperties)
{
$this->quotaProperties = $quotaProperties;
}
/**
* @return QuotaProperties
*/
public function getQuotaProperties()
{
return $this->quotaProperties;
}
/**
* @param ResourceInfo[]
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return ResourceInfo[]
*/
public function getResources()
{
return $this->resources;
}
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
public function getStartTime()
{
return $this->startTime;
}
/**
* @param TraceSpan[]
*/
public function setTraceSpans($traceSpans)
{
$this->traceSpans = $traceSpans;
}
/**
* @return TraceSpan[]
*/
public function getTraceSpans()
{
return $this->traceSpans;
}
public function setUserLabels($userLabels)
{
$this->userLabels = $userLabels;
}
public function getUserLabels()
{
return $this->userLabels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_Networkconnectivity_Operation');
@@ -0,0 +1,152 @@
<?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\Networkconnectivity;
class OperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $endTime;
/**
* @var bool
*/
public $requestedCancellation;
/**
* @var string
*/
public $statusMessage;
/**
* @var string
*/
public $target;
/**
* @var string
*/
public $verb;
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param bool
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* @param string
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* @param string
*/
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_Networkconnectivity_OperationMetadata');
@@ -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\Networkconnectivity;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* @var string
*/
public $etag;
/**
* @var int
*/
public $version;
/**
* @param AuditConfig[]
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* @param Binding[]
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param int
*/
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_Networkconnectivity_Policy');
@@ -0,0 +1,289 @@
<?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\Networkconnectivity;
class PolicyBasedRoute extends \Google\Collection
{
protected $collection_key = 'warnings';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
protected $filterType = Filter::class;
protected $filterDataType = '';
protected $interconnectAttachmentType = InterconnectAttachment::class;
protected $interconnectAttachmentDataType = '';
/**
* @var string
*/
public $kind;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $network;
/**
* @var string
*/
public $nextHopIlbIp;
/**
* @var string
*/
public $nextHopOtherRoutes;
/**
* @var int
*/
public $priority;
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $updateTime;
protected $virtualMachineType = VirtualMachine::class;
protected $virtualMachineDataType = '';
protected $warningsType = Warnings::class;
protected $warningsDataType = 'array';
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param Filter
*/
public function setFilter(Filter $filter)
{
$this->filter = $filter;
}
/**
* @return Filter
*/
public function getFilter()
{
return $this->filter;
}
/**
* @param InterconnectAttachment
*/
public function setInterconnectAttachment(InterconnectAttachment $interconnectAttachment)
{
$this->interconnectAttachment = $interconnectAttachment;
}
/**
* @return InterconnectAttachment
*/
public function getInterconnectAttachment()
{
return $this->interconnectAttachment;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* @param string
*/
public function setNextHopIlbIp($nextHopIlbIp)
{
$this->nextHopIlbIp = $nextHopIlbIp;
}
/**
* @return string
*/
public function getNextHopIlbIp()
{
return $this->nextHopIlbIp;
}
/**
* @param string
*/
public function setNextHopOtherRoutes($nextHopOtherRoutes)
{
$this->nextHopOtherRoutes = $nextHopOtherRoutes;
}
/**
* @return string
*/
public function getNextHopOtherRoutes()
{
return $this->nextHopOtherRoutes;
}
/**
* @param int
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return int
*/
public function getPriority()
{
return $this->priority;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param VirtualMachine
*/
public function setVirtualMachine(VirtualMachine $virtualMachine)
{
$this->virtualMachine = $virtualMachine;
}
/**
* @return VirtualMachine
*/
public function getVirtualMachine()
{
return $this->virtualMachine;
}
/**
* @param Warnings[]
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return Warnings[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PolicyBasedRoute::class, 'Google_Service_Networkconnectivity_PolicyBasedRoute');
@@ -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\Networkconnectivity;
class ProducerPscConfig extends \Google\Model
{
/**
* @var string
*/
public $serviceAttachmentUri;
/**
* @param string
*/
public function setServiceAttachmentUri($serviceAttachmentUri)
{
$this->serviceAttachmentUri = $serviceAttachmentUri;
}
/**
* @return string
*/
public function getServiceAttachmentUri()
{
return $this->serviceAttachmentUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProducerPscConfig::class, 'Google_Service_Networkconnectivity_ProducerPscConfig');
@@ -0,0 +1,99 @@
<?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\Networkconnectivity;
class PscConfig extends \Google\Collection
{
protected $collection_key = 'subnetworks';
/**
* @var string[]
*/
public $allowedGoogleProducersResourceHierarchyLevel;
/**
* @var string
*/
public $limit;
/**
* @var string
*/
public $producerInstanceLocation;
/**
* @var string[]
*/
public $subnetworks;
/**
* @param string[]
*/
public function setAllowedGoogleProducersResourceHierarchyLevel($allowedGoogleProducersResourceHierarchyLevel)
{
$this->allowedGoogleProducersResourceHierarchyLevel = $allowedGoogleProducersResourceHierarchyLevel;
}
/**
* @return string[]
*/
public function getAllowedGoogleProducersResourceHierarchyLevel()
{
return $this->allowedGoogleProducersResourceHierarchyLevel;
}
/**
* @param string
*/
public function setLimit($limit)
{
$this->limit = $limit;
}
/**
* @return string
*/
public function getLimit()
{
return $this->limit;
}
/**
* @param string
*/
public function setProducerInstanceLocation($producerInstanceLocation)
{
$this->producerInstanceLocation = $producerInstanceLocation;
}
/**
* @return string
*/
public function getProducerInstanceLocation()
{
return $this->producerInstanceLocation;
}
/**
* @param string[]
*/
public function setSubnetworks($subnetworks)
{
$this->subnetworks = $subnetworks;
}
/**
* @return string[]
*/
public function getSubnetworks()
{
return $this->subnetworks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PscConfig::class, 'Google_Service_Networkconnectivity_PscConfig');
@@ -0,0 +1,273 @@
<?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\Networkconnectivity;
class PscConnection extends \Google\Model
{
/**
* @var string
*/
public $consumerAddress;
/**
* @var string
*/
public $consumerForwardingRule;
/**
* @var string
*/
public $consumerTargetProject;
protected $errorDataType = '';
protected $errorInfoType = GoogleRpcErrorInfo::class;
protected $errorInfoDataType = '';
/**
* @var string
*/
public $errorType;
/**
* @var string
*/
public $gceOperation;
/**
* @var string
*/
public $ipVersion;
/**
* @var string
*/
public $producerInstanceId;
/**
* @var string[]
*/
public $producerInstanceMetadata;
/**
* @var string
*/
public $pscConnectionId;
/**
* @var string
*/
public $selectedSubnetwork;
/**
* @var string
*/
public $serviceClass;
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setConsumerAddress($consumerAddress)
{
$this->consumerAddress = $consumerAddress;
}
/**
* @return string
*/
public function getConsumerAddress()
{
return $this->consumerAddress;
}
/**
* @param string
*/
public function setConsumerForwardingRule($consumerForwardingRule)
{
$this->consumerForwardingRule = $consumerForwardingRule;
}
/**
* @return string
*/
public function getConsumerForwardingRule()
{
return $this->consumerForwardingRule;
}
/**
* @param string
*/
public function setConsumerTargetProject($consumerTargetProject)
{
$this->consumerTargetProject = $consumerTargetProject;
}
/**
* @return string
*/
public function getConsumerTargetProject()
{
return $this->consumerTargetProject;
}
/**
* @param GoogleRpcStatus
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* @param GoogleRpcErrorInfo
*/
public function setErrorInfo(GoogleRpcErrorInfo $errorInfo)
{
$this->errorInfo = $errorInfo;
}
/**
* @return GoogleRpcErrorInfo
*/
public function getErrorInfo()
{
return $this->errorInfo;
}
/**
* @param string
*/
public function setErrorType($errorType)
{
$this->errorType = $errorType;
}
/**
* @return string
*/
public function getErrorType()
{
return $this->errorType;
}
/**
* @param string
*/
public function setGceOperation($gceOperation)
{
$this->gceOperation = $gceOperation;
}
/**
* @return string
*/
public function getGceOperation()
{
return $this->gceOperation;
}
/**
* @param string
*/
public function setIpVersion($ipVersion)
{
$this->ipVersion = $ipVersion;
}
/**
* @return string
*/
public function getIpVersion()
{
return $this->ipVersion;
}
/**
* @param string
*/
public function setProducerInstanceId($producerInstanceId)
{
$this->producerInstanceId = $producerInstanceId;
}
/**
* @return string
*/
public function getProducerInstanceId()
{
return $this->producerInstanceId;
}
/**
* @param string[]
*/
public function setProducerInstanceMetadata($producerInstanceMetadata)
{
$this->producerInstanceMetadata = $producerInstanceMetadata;
}
/**
* @return string[]
*/
public function getProducerInstanceMetadata()
{
return $this->producerInstanceMetadata;
}
/**
* @param string
*/
public function setPscConnectionId($pscConnectionId)
{
$this->pscConnectionId = $pscConnectionId;
}
/**
* @return string
*/
public function getPscConnectionId()
{
return $this->pscConnectionId;
}
/**
* @param string
*/
public function setSelectedSubnetwork($selectedSubnetwork)
{
$this->selectedSubnetwork = $selectedSubnetwork;
}
/**
* @return string
*/
public function getSelectedSubnetwork()
{
return $this->selectedSubnetwork;
}
/**
* @param string
*/
public function setServiceClass($serviceClass)
{
$this->serviceClass = $serviceClass;
}
/**
* @return string
*/
public function getServiceClass()
{
return $this->serviceClass;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PscConnection::class, 'Google_Service_Networkconnectivity_PscConnection');
@@ -0,0 +1,152 @@
<?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\Networkconnectivity;
class PscPropagationStatus extends \Google\Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $sourceForwardingRule;
/**
* @var string
*/
public $sourceGroup;
/**
* @var string
*/
public $sourceSpoke;
/**
* @var string
*/
public $targetGroup;
/**
* @var string
*/
public $targetSpoke;
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* @param string
*/
public function setSourceForwardingRule($sourceForwardingRule)
{
$this->sourceForwardingRule = $sourceForwardingRule;
}
/**
* @return string
*/
public function getSourceForwardingRule()
{
return $this->sourceForwardingRule;
}
/**
* @param string
*/
public function setSourceGroup($sourceGroup)
{
$this->sourceGroup = $sourceGroup;
}
/**
* @return string
*/
public function getSourceGroup()
{
return $this->sourceGroup;
}
/**
* @param string
*/
public function setSourceSpoke($sourceSpoke)
{
$this->sourceSpoke = $sourceSpoke;
}
/**
* @return string
*/
public function getSourceSpoke()
{
return $this->sourceSpoke;
}
/**
* @param string
*/
public function setTargetGroup($targetGroup)
{
$this->targetGroup = $targetGroup;
}
/**
* @return string
*/
public function getTargetGroup()
{
return $this->targetGroup;
}
/**
* @param string
*/
public function setTargetSpoke($targetSpoke)
{
$this->targetSpoke = $targetSpoke;
}
/**
* @return string
*/
public function getTargetSpoke()
{
return $this->targetSpoke;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PscPropagationStatus::class, 'Google_Service_Networkconnectivity_PscPropagationStatus');
@@ -0,0 +1,61 @@
<?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\Networkconnectivity;
class QueryHubStatusResponse extends \Google\Collection
{
protected $collection_key = 'hubStatusEntries';
protected $hubStatusEntriesType = HubStatusEntry::class;
protected $hubStatusEntriesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param HubStatusEntry[]
*/
public function setHubStatusEntries($hubStatusEntries)
{
$this->hubStatusEntries = $hubStatusEntries;
}
/**
* @return HubStatusEntry[]
*/
public function getHubStatusEntries()
{
return $this->hubStatusEntries;
}
/**
* @param string
*/
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(QueryHubStatusResponse::class, 'Google_Service_Networkconnectivity_QueryHubStatusResponse');
@@ -0,0 +1,35 @@
<?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\Networkconnectivity;
class QuotaProperties extends \Google\Model
{
public $quotaMode;
public function setQuotaMode($quotaMode)
{
$this->quotaMode = $quotaMode;
}
public function getQuotaMode()
{
return $this->quotaMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QuotaProperties::class, 'Google_Service_Networkconnectivity_QuotaProperties');
@@ -0,0 +1,242 @@
<?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\Networkconnectivity;
class RegionalEndpoint extends \Google\Model
{
/**
* @var string
*/
public $accessType;
/**
* @var string
*/
public $address;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $ipAddress;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $network;
/**
* @var string
*/
public $pscForwardingRule;
/**
* @var string
*/
public $subnetwork;
/**
* @var string
*/
public $targetGoogleApi;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setAccessType($accessType)
{
$this->accessType = $accessType;
}
/**
* @return string
*/
public function getAccessType()
{
return $this->accessType;
}
/**
* @param string
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* @param string
*/
public function setPscForwardingRule($pscForwardingRule)
{
$this->pscForwardingRule = $pscForwardingRule;
}
/**
* @return string
*/
public function getPscForwardingRule()
{
return $this->pscForwardingRule;
}
/**
* @param string
*/
public function setSubnetwork($subnetwork)
{
$this->subnetwork = $subnetwork;
}
/**
* @return string
*/
public function getSubnetwork()
{
return $this->subnetwork;
}
/**
* @param string
*/
public function setTargetGoogleApi($targetGoogleApi)
{
$this->targetGoogleApi = $targetGoogleApi;
}
/**
* @return string
*/
public function getTargetGoogleApi()
{
return $this->targetGoogleApi;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RegionalEndpoint::class, 'Google_Service_Networkconnectivity_RegionalEndpoint');
@@ -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\Networkconnectivity;
class RejectHubSpokeRequest extends \Google\Model
{
/**
* @var string
*/
public $details;
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $spokeUri;
/**
* @param string
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param string
*/
public function setSpokeUri($spokeUri)
{
$this->spokeUri = $spokeUri;
}
/**
* @return string
*/
public function getSpokeUri()
{
return $this->spokeUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RejectHubSpokeRequest::class, 'Google_Service_Networkconnectivity_RejectHubSpokeRequest');
@@ -0,0 +1,42 @@
<?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\Networkconnectivity;
class RejectHubSpokeResponse extends \Google\Model
{
protected $spokeType = Spoke::class;
protected $spokeDataType = '';
/**
* @param Spoke
*/
public function setSpoke(Spoke $spoke)
{
$this->spoke = $spoke;
}
/**
* @return Spoke
*/
public function getSpoke()
{
return $this->spoke;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RejectHubSpokeResponse::class, 'Google_Service_Networkconnectivity_RejectHubSpokeResponse');
@@ -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\Networkconnectivity;
class RejectSpokeRequest extends \Google\Model
{
/**
* @var string
*/
public $details;
/**
* @var string
*/
public $requestId;
/**
* @param string
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RejectSpokeRequest::class, 'Google_Service_Networkconnectivity_RejectSpokeRequest');
@@ -0,0 +1,61 @@
<?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\Networkconnectivity;
class ReportRequest extends \Google\Collection
{
protected $collection_key = 'operations';
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
public $serviceConfigId;
public $serviceName;
/**
* @param Operation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
public function setServiceConfigId($serviceConfigId)
{
$this->serviceConfigId = $serviceConfigId;
}
public function getServiceConfigId()
{
return $this->serviceConfigId;
}
public function setServiceName($serviceName)
{
$this->serviceName = $serviceName;
}
public function getServiceName()
{
return $this->serviceName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportRequest::class, 'Google_Service_Networkconnectivity_ReportRequest');
@@ -0,0 +1,33 @@
<?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\Networkconnectivity\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $projects = $networkconnectivityService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Networkconnectivity_Resource_Projects');
@@ -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\Networkconnectivity\Resource;
use Google\Service\Networkconnectivity\ListLocationsResponse;
use Google\Service\Networkconnectivity\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $locations = $networkconnectivityService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Lists information about the supported locations for this service.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocations');
@@ -0,0 +1,165 @@
<?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\Networkconnectivity\Resource;
use Google\Service\Networkconnectivity\GoogleLongrunningOperation;
use Google\Service\Networkconnectivity\InternalRange;
use Google\Service\Networkconnectivity\ListInternalRangesResponse;
/**
* The "internalRanges" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $internalRanges = $networkconnectivityService->projects_locations_internalRanges;
* </code>
*/
class ProjectsLocationsInternalRanges extends \Google\Service\Resource
{
/**
* Creates a new internal range in a given project and location.
* (internalRanges.create)
*
* @param string $parent Required. The parent resource's name of the internal
* range.
* @param InternalRange $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string internalRangeId Optional. Resource ID (i.e. 'foo' in
* '[...]/projects/p/locations/l/internalRanges/foo') See
* https://google.aip.dev/122#resource-id-segments Unique per location.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, InternalRange $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes a single internal range. (internalRanges.delete)
*
* @param string $name Required. The name of the internal range to delete.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets details of a single internal range. (internalRanges.get)
*
* @param string $name Required. Name of the InternalRange to get.
* @param array $optParams Optional parameters.
* @return InternalRange
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], InternalRange::class);
}
/**
* Lists internal ranges in a given project and location.
* (internalRanges.listProjectsLocationsInternalRanges)
*
* @param string $parent Required. The parent resource's name.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter expression that filters the results listed
* in the response.
* @opt_param string orderBy Sort the results by a certain order.
* @opt_param int pageSize The maximum number of results per page that should be
* returned.
* @opt_param string pageToken The page token.
* @return ListInternalRangesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsInternalRanges($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListInternalRangesResponse::class);
}
/**
* Updates the parameters of a single internal range. (internalRanges.patch)
*
* @param string $name Immutable. The name of an internal range. Format:
* projects/{project}/locations/{location}/internalRanges/{internal_range} See:
* https://google.aip.dev/122#fields-representing-resource-names
* @param InternalRange $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the InternalRange resource by the update. The
* fields specified in the update_mask are relative to the resource, not the
* full request. A field will be overwritten if it is in the mask. If the user
* does not provide a mask then all fields will be overwritten.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, InternalRange $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsInternalRanges::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocationsInternalRanges');
@@ -0,0 +1,33 @@
<?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\Networkconnectivity\Resource;
/**
* The "global" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $global = $networkconnectivityService->projects_locations_global;
* </code>
*/
class ProjectsLocationsNetworkconnectivityGlobal extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsNetworkconnectivityGlobal::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocationsNetworkconnectivityGlobal');
@@ -0,0 +1,347 @@
<?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\Networkconnectivity\Resource;
use Google\Service\Networkconnectivity\AcceptHubSpokeRequest;
use Google\Service\Networkconnectivity\GoogleLongrunningOperation;
use Google\Service\Networkconnectivity\Hub;
use Google\Service\Networkconnectivity\ListHubSpokesResponse;
use Google\Service\Networkconnectivity\ListHubsResponse;
use Google\Service\Networkconnectivity\Policy;
use Google\Service\Networkconnectivity\QueryHubStatusResponse;
use Google\Service\Networkconnectivity\RejectHubSpokeRequest;
use Google\Service\Networkconnectivity\SetIamPolicyRequest;
use Google\Service\Networkconnectivity\TestIamPermissionsRequest;
use Google\Service\Networkconnectivity\TestIamPermissionsResponse;
/**
* The "hubs" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $hubs = $networkconnectivityService->projects_locations_global_hubs;
* </code>
*/
class ProjectsLocationsNetworkconnectivityGlobalHubs extends \Google\Service\Resource
{
/**
* Accepts a proposal to attach a Network Connectivity Center spoke to a hub.
* (hubs.acceptSpoke)
*
* @param string $name Required. The name of the hub into which to accept the
* spoke.
* @param AcceptHubSpokeRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function acceptSpoke($name, AcceptHubSpokeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('acceptSpoke', [$params], GoogleLongrunningOperation::class);
}
/**
* Creates a new Network Connectivity Center hub in the specified project.
* (hubs.create)
*
* @param string $parent Required. The parent resource.
* @param Hub $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string hubId Required. A unique identifier for the hub.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that a request doesn't result in creation of duplicate
* commitments for at least 60 minutes. For example, consider a situation where
* you make an initial request and the request times out. If you make the
* request again with the same request ID, the server can check to see whether
* the original operation was received. If it was, the server ignores the second
* request. This behavior prevents clients from mistakenly creating duplicate
* commitments. The request ID must be a valid UUID, with the exception that
* zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, Hub $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes a Network Connectivity Center hub. (hubs.delete)
*
* @param string $name Required. The name of the hub to delete.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that a request doesn't result in creation of duplicate
* commitments for at least 60 minutes. For example, consider a situation where
* you make an initial request and the request times out. If you make the
* request again with the same request ID, the server can check to see whether
* the original operation was received. If it was, the server ignores the second
* request. This behavior prevents clients from mistakenly creating duplicate
* commitments. The request ID must be a valid UUID, with the exception that
* zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets details about a Network Connectivity Center hub. (hubs.get)
*
* @param string $name Required. The name of the hub resource to get.
* @param array $optParams Optional parameters.
* @return Hub
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Hub::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (hubs.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists the Network Connectivity Center hubs associated with a given project.
* (hubs.listProjectsLocationsNetworkconnectivityGlobalHubs)
*
* @param string $parent Required. The parent resource's name.
* @param array $optParams Optional parameters.
*
* @opt_param string filter An expression that filters the list of results.
* @opt_param string orderBy Sort the results by a certain order.
* @opt_param int pageSize The maximum number of results per page to return.
* @opt_param string pageToken The page token.
* @return ListHubsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsNetworkconnectivityGlobalHubs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListHubsResponse::class);
}
/**
* Lists the Network Connectivity Center spokes associated with a specified hub
* and location. The list includes both spokes that are attached to the hub and
* spokes that have been proposed but not yet accepted. (hubs.listSpokes)
*
* @param string $name Required. The name of the hub.
* @param array $optParams Optional parameters.
*
* @opt_param string filter An expression that filters the list of results.
* @opt_param string orderBy Sort the results by name or create_time.
* @opt_param int pageSize The maximum number of results to return per page.
* @opt_param string pageToken The page token.
* @opt_param string spokeLocations A list of locations. Specify one of the
* following: `[global]`, a single region (for example, `[us-central1]`), or a
* combination of values (for example, `[global, us-central1, us-west1]`). If
* the spoke_locations field is populated, the list of results includes only
* spokes in the specified location. If the spoke_locations field is not
* populated, the list of results includes spokes in all locations.
* @opt_param string view The view of the spoke to return. The view that you use
* determines which spoke fields are included in the response.
* @return ListHubSpokesResponse
* @throws \Google\Service\Exception
*/
public function listSpokes($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('listSpokes', [$params], ListHubSpokesResponse::class);
}
/**
* Updates the description and/or labels of a Network Connectivity Center hub.
* (hubs.patch)
*
* @param string $name Immutable. The name of the hub. Hub names must be unique.
* They use the following form:
* `projects/{project_number}/locations/global/hubs/{hub_id}`
* @param Hub $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that a request doesn't result in creation of duplicate
* commitments for at least 60 minutes. For example, consider a situation where
* you make an initial request and the request times out. If you make the
* request again with the same request ID, the server can check to see whether
* the original operation was received. If it was, the server ignores the second
* request. This behavior prevents clients from mistakenly creating duplicate
* commitments. The request ID must be a valid UUID, with the exception that
* zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. In the case of an update to an
* existing hub, field mask is used to specify the fields to be overwritten. The
* fields specified in the update_mask are relative to the resource, not the
* full request. A field is overwritten if it is in the mask. If the user does
* not provide a mask, then all fields are overwritten.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, Hub $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
/**
* Query PSC propagation status the status of a Network Connectivity Center hub.
* (hubs.queryStatus)
*
* @param string $name Required. The name of the hub.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. An expression that filters the list of
* results. The filter can be used to filter the results by the following
* fields: * psc_propagation_status.source_spoke *
* psc_propagation_status.source_group *
* psc_propagation_status.source_forwarding_rule *
* psc_propagation_status.target_spoke * psc_propagation_status.target_group *
* psc_propagation_status.code * psc_propagation_status.message
* @opt_param string groupBy Optional. A field that counts are grouped by. A
* comma-separated list of any of these fields: *
* psc_propagation_status.source_spoke * psc_propagation_status.source_group *
* psc_propagation_status.source_forwarding_rule *
* psc_propagation_status.target_spoke * psc_propagation_status.target_group *
* psc_propagation_status.code
* @opt_param string orderBy Optional. Sort the results in the ascending order
* by specific fields returned in the response. A comma-separated list of any of
* these fields: * psc_propagation_status.source_spoke *
* psc_propagation_status.source_group *
* psc_propagation_status.source_forwarding_rule *
* psc_propagation_status.target_spoke * psc_propagation_status.target_group *
* psc_propagation_status.code If `group_by` is set, the value of the `order_by`
* field must be the same as or a subset of the `group_by` field.
* @opt_param int pageSize Optional. The maximum number of results to return per
* page.
* @opt_param string pageToken Optional. The page token.
* @return QueryHubStatusResponse
* @throws \Google\Service\Exception
*/
public function queryStatus($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('queryStatus', [$params], QueryHubStatusResponse::class);
}
/**
* Rejects a Network Connectivity Center spoke from being attached to a hub. If
* the spoke was previously in the `ACTIVE` state, it transitions to the
* `INACTIVE` state and is no longer able to connect to other spokes that are
* attached to the hub. (hubs.rejectSpoke)
*
* @param string $name Required. The name of the hub from which to reject the
* spoke.
* @param RejectHubSpokeRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function rejectSpoke($name, RejectHubSpokeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rejectSpoke', [$params], GoogleLongrunningOperation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (hubs.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning. (hubs.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsNetworkconnectivityGlobalHubs::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocationsNetworkconnectivityGlobalHubs');
@@ -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\Networkconnectivity\Resource;
use Google\Service\Networkconnectivity\GoogleLongrunningOperation;
use Google\Service\Networkconnectivity\Group;
use Google\Service\Networkconnectivity\ListGroupsResponse;
use Google\Service\Networkconnectivity\Policy;
use Google\Service\Networkconnectivity\SetIamPolicyRequest;
use Google\Service\Networkconnectivity\TestIamPermissionsRequest;
use Google\Service\Networkconnectivity\TestIamPermissionsResponse;
/**
* The "groups" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $groups = $networkconnectivityService->projects_locations_global_hubs_groups;
* </code>
*/
class ProjectsLocationsNetworkconnectivityGlobalHubsGroups extends \Google\Service\Resource
{
/**
* Gets details about a Network Connectivity Center group. (groups.get)
*
* @param string $name Required. The name of the route table resource.
* @param array $optParams Optional parameters.
* @return Group
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Group::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (groups.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists groups in a given hub.
* (groups.listProjectsLocationsNetworkconnectivityGlobalHubsGroups)
*
* @param string $parent Required. The parent resource's name.
* @param array $optParams Optional parameters.
*
* @opt_param string filter An expression that filters the list of results.
* @opt_param string orderBy Sort the results by a certain order.
* @opt_param int pageSize The maximum number of results to return per page.
* @opt_param string pageToken The page token.
* @return ListGroupsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsNetworkconnectivityGlobalHubsGroups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGroupsResponse::class);
}
/**
* Updates the parameters of a Network Connectivity Center group. (groups.patch)
*
* @param string $name Immutable. The name of the group. Group names must be
* unique. They use the following form:
* `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`
* @param Group $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that a request doesn't result in creation of duplicate
* commitments for at least 60 minutes. For example, consider a situation where
* you make an initial request and the request times out. If you make the
* request again with the same request ID, the server can check to see whether
* the original operation was received. If it was, the server ignores the second
* request. This behavior prevents clients from mistakenly creating duplicate
* commitments. The request ID must be a valid UUID, with the exception that
* zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. In the case of an update to an
* existing group, field mask is used to specify the fields to be overwritten.
* The fields specified in the update_mask are relative to the resource, not the
* full request. A field is overwritten if it is in the mask. If the user does
* not provide a mask, then all fields are overwritten.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, Group $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (groups.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning. (groups.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsNetworkconnectivityGlobalHubsGroups::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocationsNetworkconnectivityGlobalHubsGroups');
@@ -0,0 +1,71 @@
<?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\Networkconnectivity\Resource;
use Google\Service\Networkconnectivity\ListRouteTablesResponse;
use Google\Service\Networkconnectivity\RouteTable;
/**
* The "routeTables" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $routeTables = $networkconnectivityService->projects_locations_global_hubs_routeTables;
* </code>
*/
class ProjectsLocationsNetworkconnectivityGlobalHubsRouteTables extends \Google\Service\Resource
{
/**
* Gets details about a Network Connectivity Center route table.
* (routeTables.get)
*
* @param string $name Required. The name of the route table resource.
* @param array $optParams Optional parameters.
* @return RouteTable
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], RouteTable::class);
}
/**
* Lists route tables in a given hub.
* (routeTables.listProjectsLocationsNetworkconnectivityGlobalHubsRouteTables)
*
* @param string $parent Required. The parent resource's name.
* @param array $optParams Optional parameters.
*
* @opt_param string filter An expression that filters the list of results.
* @opt_param string orderBy Sort the results by a certain order.
* @opt_param int pageSize The maximum number of results to return per page.
* @opt_param string pageToken The page token.
* @return ListRouteTablesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsNetworkconnectivityGlobalHubsRouteTables($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRouteTablesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsNetworkconnectivityGlobalHubsRouteTables::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocationsNetworkconnectivityGlobalHubsRouteTables');
@@ -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\Networkconnectivity\Resource;
use Google\Service\Networkconnectivity\ListRoutesResponse;
use Google\Service\Networkconnectivity\Route;
/**
* The "routes" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $routes = $networkconnectivityService->projects_locations_global_hubs_routeTables_routes;
* </code>
*/
class ProjectsLocationsNetworkconnectivityGlobalHubsRouteTablesRoutes extends \Google\Service\Resource
{
/**
* Gets details about the specified route. (routes.get)
*
* @param string $name Required. The name of the route resource.
* @param array $optParams Optional parameters.
* @return Route
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Route::class);
}
/**
* Lists routes in a given route table.
* (routes.listProjectsLocationsNetworkconnectivityGlobalHubsRouteTablesRoutes)
*
* @param string $parent Required. The parent resource's name.
* @param array $optParams Optional parameters.
*
* @opt_param string filter An expression that filters the list of results.
* @opt_param string orderBy Sort the results by a certain order.
* @opt_param int pageSize The maximum number of results to return per page.
* @opt_param string pageToken The page token.
* @return ListRoutesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsNetworkconnectivityGlobalHubsRouteTablesRoutes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRoutesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsNetworkconnectivityGlobalHubsRouteTablesRoutes::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocationsNetworkconnectivityGlobalHubsRouteTablesRoutes');
@@ -0,0 +1,210 @@
<?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\Networkconnectivity\Resource;
use Google\Service\Networkconnectivity\GoogleLongrunningOperation;
use Google\Service\Networkconnectivity\ListPolicyBasedRoutesResponse;
use Google\Service\Networkconnectivity\Policy;
use Google\Service\Networkconnectivity\PolicyBasedRoute;
use Google\Service\Networkconnectivity\SetIamPolicyRequest;
use Google\Service\Networkconnectivity\TestIamPermissionsRequest;
use Google\Service\Networkconnectivity\TestIamPermissionsResponse;
/**
* The "policyBasedRoutes" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $policyBasedRoutes = $networkconnectivityService->projects_locations_global_policyBasedRoutes;
* </code>
*/
class ProjectsLocationsNetworkconnectivityGlobalPolicyBasedRoutes extends \Google\Service\Resource
{
/**
* Creates a new policy-based route in a given project and location.
* (policyBasedRoutes.create)
*
* @param string $parent Required. The parent resource's name of the
* PolicyBasedRoute.
* @param PolicyBasedRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string policyBasedRouteId Required. Unique id for the policy-based
* route to create.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes since the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, ignores the second request. This prevents clients from
* accidentally creating duplicate commitments. The request ID must be a valid
* UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, PolicyBasedRoute $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes a single policy-based route. (policyBasedRoutes.delete)
*
* @param string $name Required. Name of the policy-based route resource to
* delete.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, ignores the second request. This prevents clients from
* accidentally creating duplicate commitments. The request ID must be a valid
* UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets details of a single policy-based route. (policyBasedRoutes.get)
*
* @param string $name Required. Name of the PolicyBasedRoute resource to get.
* @param array $optParams Optional parameters.
* @return PolicyBasedRoute
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PolicyBasedRoute::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (policyBasedRoutes.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists policy-based routes in a given project and location. (policyBasedRoutes
* .listProjectsLocationsNetworkconnectivityGlobalPolicyBasedRoutes)
*
* @param string $parent Required. The parent resource's name.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter expression that filters the results listed
* in the response.
* @opt_param string orderBy Sort the results by a certain order.
* @opt_param int pageSize The maximum number of results per page that should be
* returned.
* @opt_param string pageToken The page token.
* @return ListPolicyBasedRoutesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsNetworkconnectivityGlobalPolicyBasedRoutes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPolicyBasedRoutesResponse::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (policyBasedRoutes.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (policyBasedRoutes.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsNetworkconnectivityGlobalPolicyBasedRoutes::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocationsNetworkconnectivityGlobalPolicyBasedRoutes');
@@ -0,0 +1,114 @@
<?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\Networkconnectivity\Resource;
use Google\Service\Networkconnectivity\GoogleLongrunningCancelOperationRequest;
use Google\Service\Networkconnectivity\GoogleLongrunningListOperationsResponse;
use Google\Service\Networkconnectivity\GoogleLongrunningOperation;
use Google\Service\Networkconnectivity\NetworkconnectivityEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $operations = $networkconnectivityService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param GoogleLongrunningCancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return NetworkconnectivityEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, GoogleLongrunningCancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], NetworkconnectivityEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return NetworkconnectivityEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], NetworkconnectivityEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return GoogleLongrunningListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleLongrunningListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocationsOperations');
@@ -0,0 +1,133 @@
<?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\Networkconnectivity\Resource;
use Google\Service\Networkconnectivity\GoogleLongrunningOperation;
use Google\Service\Networkconnectivity\ListRegionalEndpointsResponse;
use Google\Service\Networkconnectivity\RegionalEndpoint;
/**
* The "regionalEndpoints" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $regionalEndpoints = $networkconnectivityService->projects_locations_regionalEndpoints;
* </code>
*/
class ProjectsLocationsRegionalEndpoints extends \Google\Service\Resource
{
/**
* Creates a new RegionalEndpoint in a given project and location.
* (regionalEndpoints.create)
*
* @param string $parent Required. The parent resource's name of the
* RegionalEndpoint.
* @param RegionalEndpoint $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string regionalEndpointId Required. Unique id of the Regional
* Endpoint to be created.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes since the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if the original operation with the same request ID was
* received, and if so, ignores the second request. This prevents clients from
* accidentally creating duplicate commitments. The request ID must be a valid
* UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, RegionalEndpoint $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes a single RegionalEndpoint. (regionalEndpoints.delete)
*
* @param string $name Required. The name of the RegionalEndpoint to delete.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes since the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if the original operation with the same request ID was
* received, and if so, ignores the second request. This prevents clients from
* accidentally creating duplicate commitments. The request ID must be a valid
* UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets details of a single RegionalEndpoint. (regionalEndpoints.get)
*
* @param string $name Required. Name of the RegionalEndpoint resource to get.
* Format: `projects/{project}/locations/{location}/regionalEndpoints/{regional_
* endpoint}`
* @param array $optParams Optional parameters.
* @return RegionalEndpoint
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], RegionalEndpoint::class);
}
/**
* Lists RegionalEndpoints in a given project and location.
* (regionalEndpoints.listProjectsLocationsRegionalEndpoints)
*
* @param string $parent Required. The parent resource's name of the
* RegionalEndpoint.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter expression that filters the results listed
* in the response.
* @opt_param string orderBy Sort the results by a certain order.
* @opt_param int pageSize Requested page size. Server may return fewer items
* than requested. If unspecified, server will pick an appropriate default.
* @opt_param string pageToken A page token.
* @return ListRegionalEndpointsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRegionalEndpoints($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRegionalEndpointsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRegionalEndpoints::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocationsRegionalEndpoints');
@@ -0,0 +1,215 @@
<?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\Networkconnectivity\Resource;
use Google\Service\Networkconnectivity\GoogleLongrunningOperation;
use Google\Service\Networkconnectivity\ListServiceClassesResponse;
use Google\Service\Networkconnectivity\Policy;
use Google\Service\Networkconnectivity\ServiceClass;
use Google\Service\Networkconnectivity\SetIamPolicyRequest;
use Google\Service\Networkconnectivity\TestIamPermissionsRequest;
use Google\Service\Networkconnectivity\TestIamPermissionsResponse;
/**
* The "serviceClasses" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $serviceClasses = $networkconnectivityService->projects_locations_serviceClasses;
* </code>
*/
class ProjectsLocationsServiceClasses extends \Google\Service\Resource
{
/**
* Deletes a single ServiceClass. (serviceClasses.delete)
*
* @param string $name Required. The name of the ServiceClass to delete.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The etag is computed by the server, and may
* be sent on update and delete requests to ensure the client has an up-to-date
* value before proceeding.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets details of a single ServiceClass. (serviceClasses.get)
*
* @param string $name Required. Name of the ServiceClass to get.
* @param array $optParams Optional parameters.
* @return ServiceClass
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServiceClass::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (serviceClasses.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists ServiceClasses in a given project and location.
* (serviceClasses.listProjectsLocationsServiceClasses)
*
* @param string $parent Required. The parent resource's name. ex.
* projects/123/locations/us-east1
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter expression that filters the results listed
* in the response.
* @opt_param string orderBy Sort the results by a certain order.
* @opt_param int pageSize The maximum number of results per page that should be
* returned.
* @opt_param string pageToken The page token.
* @return ListServiceClassesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsServiceClasses($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServiceClassesResponse::class);
}
/**
* Updates the parameters of a single ServiceClass. (serviceClasses.patch)
*
* @param string $name Immutable. The name of a ServiceClass resource. Format:
* projects/{project}/locations/{location}/serviceClasses/{service_class} See:
* https://google.aip.dev/122#fields-representing-resource-names
* @param ServiceClass $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the ServiceClass resource by the update. The
* fields specified in the update_mask are relative to the resource, not the
* full request. A field will be overwritten if it is in the mask. If the user
* does not provide a mask then all fields will be overwritten.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, ServiceClass $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (serviceClasses.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (serviceClasses.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsServiceClasses::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocationsServiceClasses');
@@ -0,0 +1,250 @@
<?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\Networkconnectivity\Resource;
use Google\Service\Networkconnectivity\GoogleLongrunningOperation;
use Google\Service\Networkconnectivity\ListServiceConnectionMapsResponse;
use Google\Service\Networkconnectivity\Policy;
use Google\Service\Networkconnectivity\ServiceConnectionMap;
use Google\Service\Networkconnectivity\SetIamPolicyRequest;
use Google\Service\Networkconnectivity\TestIamPermissionsRequest;
use Google\Service\Networkconnectivity\TestIamPermissionsResponse;
/**
* The "serviceConnectionMaps" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $serviceConnectionMaps = $networkconnectivityService->projects_locations_serviceConnectionMaps;
* </code>
*/
class ProjectsLocationsServiceConnectionMaps extends \Google\Service\Resource
{
/**
* Creates a new ServiceConnectionMap in a given project and location.
* (serviceConnectionMaps.create)
*
* @param string $parent Required. The parent resource's name of the
* ServiceConnectionMap. ex. projects/123/locations/us-east1
* @param ServiceConnectionMap $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string serviceConnectionMapId Optional. Resource ID (i.e. 'foo' in
* '[...]/projects/p/locations/l/serviceConnectionMaps/foo') See
* https://google.aip.dev/122#resource-id-segments Unique per location. If one
* is not provided, one will be generated.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, ServiceConnectionMap $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes a single ServiceConnectionMap. (serviceConnectionMaps.delete)
*
* @param string $name Required. The name of the ServiceConnectionMap to delete.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The etag is computed by the server, and may
* be sent on update and delete requests to ensure the client has an up-to-date
* value before proceeding.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets details of a single ServiceConnectionMap. (serviceConnectionMaps.get)
*
* @param string $name Required. Name of the ServiceConnectionMap to get.
* @param array $optParams Optional parameters.
* @return ServiceConnectionMap
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServiceConnectionMap::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (serviceConnectionMaps.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists ServiceConnectionMaps in a given project and location.
* (serviceConnectionMaps.listProjectsLocationsServiceConnectionMaps)
*
* @param string $parent Required. The parent resource's name. ex.
* projects/123/locations/us-east1
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter expression that filters the results listed
* in the response.
* @opt_param string orderBy Sort the results by a certain order.
* @opt_param int pageSize The maximum number of results per page that should be
* returned.
* @opt_param string pageToken The page token.
* @return ListServiceConnectionMapsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsServiceConnectionMaps($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServiceConnectionMapsResponse::class);
}
/**
* Updates the parameters of a single ServiceConnectionMap.
* (serviceConnectionMaps.patch)
*
* @param string $name Immutable. The name of a ServiceConnectionMap. Format: pr
* ojects/{project}/locations/{location}/serviceConnectionMaps/{service_connecti
* on_map} See: https://google.aip.dev/122#fields-representing-resource-names
* @param ServiceConnectionMap $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the ServiceConnectionMap resource by the update.
* The fields specified in the update_mask are relative to the resource, not the
* full request. A field will be overwritten if it is in the mask. If the user
* does not provide a mask then all fields will be overwritten.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, ServiceConnectionMap $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (serviceConnectionMaps.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (serviceConnectionMaps.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsServiceConnectionMaps::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocationsServiceConnectionMaps');
@@ -0,0 +1,252 @@
<?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\Networkconnectivity\Resource;
use Google\Service\Networkconnectivity\GoogleLongrunningOperation;
use Google\Service\Networkconnectivity\ListServiceConnectionPoliciesResponse;
use Google\Service\Networkconnectivity\Policy;
use Google\Service\Networkconnectivity\ServiceConnectionPolicy;
use Google\Service\Networkconnectivity\SetIamPolicyRequest;
use Google\Service\Networkconnectivity\TestIamPermissionsRequest;
use Google\Service\Networkconnectivity\TestIamPermissionsResponse;
/**
* The "serviceConnectionPolicies" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $serviceConnectionPolicies = $networkconnectivityService->projects_locations_serviceConnectionPolicies;
* </code>
*/
class ProjectsLocationsServiceConnectionPolicies extends \Google\Service\Resource
{
/**
* Creates a new ServiceConnectionPolicy in a given project and location.
* (serviceConnectionPolicies.create)
*
* @param string $parent Required. The parent resource's name of the
* ServiceConnectionPolicy. ex. projects/123/locations/us-east1
* @param ServiceConnectionPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string serviceConnectionPolicyId Optional. Resource ID (i.e. 'foo'
* in '[...]/projects/p/locations/l/serviceConnectionPolicies/foo') See
* https://google.aip.dev/122#resource-id-segments Unique per location.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, ServiceConnectionPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes a single ServiceConnectionPolicy. (serviceConnectionPolicies.delete)
*
* @param string $name Required. The name of the ServiceConnectionPolicy to
* delete.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The etag is computed by the server, and may
* be sent on update and delete requests to ensure the client has an up-to-date
* value before proceeding.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets details of a single ServiceConnectionPolicy.
* (serviceConnectionPolicies.get)
*
* @param string $name Required. Name of the ServiceConnectionPolicy to get.
* @param array $optParams Optional parameters.
* @return ServiceConnectionPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServiceConnectionPolicy::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (serviceConnectionPolicies.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists ServiceConnectionPolicies in a given project and location.
* (serviceConnectionPolicies.listProjectsLocationsServiceConnectionPolicies)
*
* @param string $parent Required. The parent resource's name. ex.
* projects/123/locations/us-east1
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter expression that filters the results listed
* in the response.
* @opt_param string orderBy Sort the results by a certain order.
* @opt_param int pageSize The maximum number of results per page that should be
* returned.
* @opt_param string pageToken The page token.
* @return ListServiceConnectionPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsServiceConnectionPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServiceConnectionPoliciesResponse::class);
}
/**
* Updates the parameters of a single ServiceConnectionPolicy.
* (serviceConnectionPolicies.patch)
*
* @param string $name Immutable. The name of a ServiceConnectionPolicy. Format:
* projects/{project}/locations/{location}/serviceConnectionPolicies/{service_co
* nnection_policy} See: https://google.aip.dev/122#fields-representing-
* resource-names
* @param ServiceConnectionPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the ServiceConnectionPolicy resource by the
* update. The fields specified in the update_mask are relative to the resource,
* not the full request. A field will be overwritten if it is in the mask. If
* the user does not provide a mask then all fields will be overwritten.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, ServiceConnectionPolicy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (serviceConnectionPolicies.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (serviceConnectionPolicies.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsServiceConnectionPolicies::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocationsServiceConnectionPolicies');
@@ -0,0 +1,138 @@
<?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\Networkconnectivity\Resource;
use Google\Service\Networkconnectivity\GoogleLongrunningOperation;
use Google\Service\Networkconnectivity\ListServiceConnectionTokensResponse;
use Google\Service\Networkconnectivity\ServiceConnectionToken;
/**
* The "serviceConnectionTokens" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $serviceConnectionTokens = $networkconnectivityService->projects_locations_serviceConnectionTokens;
* </code>
*/
class ProjectsLocationsServiceConnectionTokens extends \Google\Service\Resource
{
/**
* Creates a new ServiceConnectionToken in a given project and location.
* (serviceConnectionTokens.create)
*
* @param string $parent Required. The parent resource's name of the
* ServiceConnectionToken. ex. projects/123/locations/us-east1
* @param ServiceConnectionToken $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string serviceConnectionTokenId Optional. Resource ID (i.e. 'foo'
* in '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See
* https://google.aip.dev/122#resource-id-segments Unique per location. If one
* is not provided, one will be generated.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, ServiceConnectionToken $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes a single ServiceConnectionToken. (serviceConnectionTokens.delete)
*
* @param string $name Required. The name of the ServiceConnectionToken to
* delete.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The etag is computed by the server, and may
* be sent on update and delete requests to ensure the client has an up-to-date
* value before proceeding.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets details of a single ServiceConnectionToken.
* (serviceConnectionTokens.get)
*
* @param string $name Required. Name of the ServiceConnectionToken to get.
* @param array $optParams Optional parameters.
* @return ServiceConnectionToken
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServiceConnectionToken::class);
}
/**
* Lists ServiceConnectionTokens in a given project and location.
* (serviceConnectionTokens.listProjectsLocationsServiceConnectionTokens)
*
* @param string $parent Required. The parent resource's name. ex.
* projects/123/locations/us-east1
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter expression that filters the results listed
* in the response.
* @opt_param string orderBy Sort the results by a certain order.
* @opt_param int pageSize The maximum number of results per page that should be
* returned.
* @opt_param string pageToken The page token.
* @return ListServiceConnectionTokensResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsServiceConnectionTokens($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServiceConnectionTokensResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsServiceConnectionTokens::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocationsServiceConnectionTokens');
@@ -0,0 +1,236 @@
<?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\Networkconnectivity\Resource;
use Google\Service\Networkconnectivity\GoogleLongrunningOperation;
use Google\Service\Networkconnectivity\ListSpokesResponse;
use Google\Service\Networkconnectivity\Policy;
use Google\Service\Networkconnectivity\SetIamPolicyRequest;
use Google\Service\Networkconnectivity\Spoke;
use Google\Service\Networkconnectivity\TestIamPermissionsRequest;
use Google\Service\Networkconnectivity\TestIamPermissionsResponse;
/**
* The "spokes" collection of methods.
* Typical usage is:
* <code>
* $networkconnectivityService = new Google\Service\Networkconnectivity(...);
* $spokes = $networkconnectivityService->projects_locations_spokes;
* </code>
*/
class ProjectsLocationsSpokes extends \Google\Service\Resource
{
/**
* Creates a Network Connectivity Center spoke. (spokes.create)
*
* @param string $parent Required. The parent resource.
* @param Spoke $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that a request doesn't result in creation of duplicate
* commitments for at least 60 minutes. For example, consider a situation where
* you make an initial request and the request times out. If you make the
* request again with the same request ID, the server can check to see whether
* the original operation was received. If it was, the server ignores the second
* request. This behavior prevents clients from mistakenly creating duplicate
* commitments. The request ID must be a valid UUID, with the exception that
* zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @opt_param string spokeId Required. Unique id for the spoke to create.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, Spoke $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes a Network Connectivity Center spoke. (spokes.delete)
*
* @param string $name Required. The name of the spoke to delete.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that a request doesn't result in creation of duplicate
* commitments for at least 60 minutes. For example, consider a situation where
* you make an initial request and the request times out. If you make the
* request again with the same request ID, the server can check to see whether
* the original operation was received. If it was, the server ignores the second
* request. This behavior prevents clients from mistakenly creating duplicate
* commitments. The request ID must be a valid UUID, with the exception that
* zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets details about a Network Connectivity Center spoke. (spokes.get)
*
* @param string $name Required. The name of the spoke resource.
* @param array $optParams Optional parameters.
* @return Spoke
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Spoke::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (spokes.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists the Network Connectivity Center spokes in a specified project and
* location. (spokes.listProjectsLocationsSpokes)
*
* @param string $parent Required. The parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter An expression that filters the list of results.
* @opt_param string orderBy Sort the results by a certain order.
* @opt_param int pageSize The maximum number of results to return per page.
* @opt_param string pageToken The page token.
* @return ListSpokesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsSpokes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSpokesResponse::class);
}
/**
* Updates the parameters of a Network Connectivity Center spoke. (spokes.patch)
*
* @param string $name Immutable. The name of the spoke. Spoke names must be
* unique. They use the following form:
* `projects/{project_number}/locations/{region}/spokes/{spoke_id}`
* @param Spoke $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that a request doesn't result in creation of duplicate
* commitments for at least 60 minutes. For example, consider a situation where
* you make an initial request and the request times out. If you make the
* request again with the same request ID, the server can check to see whether
* the original operation was received. If it was, the server ignores the second
* request. This behavior prevents clients from mistakenly creating duplicate
* commitments. The request ID must be a valid UUID, with the exception that
* zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. In the case of an update to an
* existing spoke, field mask is used to specify the fields to be overwritten.
* The fields specified in the update_mask are relative to the resource, not the
* full request. A field is overwritten if it is in the mask. If the user does
* not provide a mask, then all fields are overwritten.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, Spoke $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (spokes.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning. (spokes.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsSpokes::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocationsSpokes');
@@ -0,0 +1,53 @@
<?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\Networkconnectivity;
class ResourceInfo extends \Google\Model
{
public $resourceContainer;
public $resourceLocation;
public $resourceName;
public function setResourceContainer($resourceContainer)
{
$this->resourceContainer = $resourceContainer;
}
public function getResourceContainer()
{
return $this->resourceContainer;
}
public function setResourceLocation($resourceLocation)
{
$this->resourceLocation = $resourceLocation;
}
public function getResourceLocation()
{
return $this->resourceLocation;
}
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
public function getResourceName()
{
return $this->resourceName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceInfo::class, 'Google_Service_Networkconnectivity_ResourceInfo');
@@ -0,0 +1,306 @@
<?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\Networkconnectivity;
class Route extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $ipCidrRange;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $name;
protected $nextHopInterconnectAttachmentType = NextHopInterconnectAttachment::class;
protected $nextHopInterconnectAttachmentDataType = '';
protected $nextHopRouterApplianceInstanceType = NextHopRouterApplianceInstance::class;
protected $nextHopRouterApplianceInstanceDataType = '';
protected $nextHopVpcNetworkType = NextHopVpcNetwork::class;
protected $nextHopVpcNetworkDataType = '';
protected $nextHopVpnTunnelType = NextHopVPNTunnel::class;
protected $nextHopVpnTunnelDataType = '';
/**
* @var string
*/
public $priority;
/**
* @var string
*/
public $spoke;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $uid;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setIpCidrRange($ipCidrRange)
{
$this->ipCidrRange = $ipCidrRange;
}
/**
* @return string
*/
public function getIpCidrRange()
{
return $this->ipCidrRange;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param NextHopInterconnectAttachment
*/
public function setNextHopInterconnectAttachment(NextHopInterconnectAttachment $nextHopInterconnectAttachment)
{
$this->nextHopInterconnectAttachment = $nextHopInterconnectAttachment;
}
/**
* @return NextHopInterconnectAttachment
*/
public function getNextHopInterconnectAttachment()
{
return $this->nextHopInterconnectAttachment;
}
/**
* @param NextHopRouterApplianceInstance
*/
public function setNextHopRouterApplianceInstance(NextHopRouterApplianceInstance $nextHopRouterApplianceInstance)
{
$this->nextHopRouterApplianceInstance = $nextHopRouterApplianceInstance;
}
/**
* @return NextHopRouterApplianceInstance
*/
public function getNextHopRouterApplianceInstance()
{
return $this->nextHopRouterApplianceInstance;
}
/**
* @param NextHopVpcNetwork
*/
public function setNextHopVpcNetwork(NextHopVpcNetwork $nextHopVpcNetwork)
{
$this->nextHopVpcNetwork = $nextHopVpcNetwork;
}
/**
* @return NextHopVpcNetwork
*/
public function getNextHopVpcNetwork()
{
return $this->nextHopVpcNetwork;
}
/**
* @param NextHopVPNTunnel
*/
public function setNextHopVpnTunnel(NextHopVPNTunnel $nextHopVpnTunnel)
{
$this->nextHopVpnTunnel = $nextHopVpnTunnel;
}
/**
* @return NextHopVPNTunnel
*/
public function getNextHopVpnTunnel()
{
return $this->nextHopVpnTunnel;
}
/**
* @param string
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return string
*/
public function getPriority()
{
return $this->priority;
}
/**
* @param string
*/
public function setSpoke($spoke)
{
$this->spoke = $spoke;
}
/**
* @return string
*/
public function getSpoke()
{
return $this->spoke;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Route::class, 'Google_Service_Networkconnectivity_Route');
@@ -0,0 +1,152 @@
<?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\Networkconnectivity;
class RouteTable extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $uid;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RouteTable::class, 'Google_Service_Networkconnectivity_RouteTable');
@@ -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\Networkconnectivity;
class RouterApplianceInstance extends \Google\Model
{
/**
* @var string
*/
public $ipAddress;
/**
* @var string
*/
public $virtualMachine;
/**
* @param string
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* @param string
*/
public function setVirtualMachine($virtualMachine)
{
$this->virtualMachine = $virtualMachine;
}
/**
* @return string
*/
public function getVirtualMachine()
{
return $this->virtualMachine;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RouterApplianceInstance::class, 'Google_Service_Networkconnectivity_RouterApplianceInstance');
@@ -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\Networkconnectivity;
class RoutingVPC extends \Google\Model
{
/**
* @var bool
*/
public $requiredForNewSiteToSiteDataTransferSpokes;
/**
* @var string
*/
public $uri;
/**
* @param bool
*/
public function setRequiredForNewSiteToSiteDataTransferSpokes($requiredForNewSiteToSiteDataTransferSpokes)
{
$this->requiredForNewSiteToSiteDataTransferSpokes = $requiredForNewSiteToSiteDataTransferSpokes;
}
/**
* @return bool
*/
public function getRequiredForNewSiteToSiteDataTransferSpokes()
{
return $this->requiredForNewSiteToSiteDataTransferSpokes;
}
/**
* @param string
*/
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(RoutingVPC::class, 'Google_Service_Networkconnectivity_RoutingVPC');
@@ -0,0 +1,152 @@
<?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\Networkconnectivity;
class ServiceClass extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $etag;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $serviceClass;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setServiceClass($serviceClass)
{
$this->serviceClass = $serviceClass;
}
/**
* @return string
*/
public function getServiceClass()
{
return $this->serviceClass;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceClass::class, 'Google_Service_Networkconnectivity_ServiceClass');

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