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,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\NetworkServices;
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_NetworkServices_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\NetworkServices;
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_NetworkServices_AuditLogConfig');
@@ -0,0 +1,261 @@
<?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\NetworkServices;
class AuthzExtension extends \Google\Collection
{
protected $collection_key = 'forwardHeaders';
/**
* @var string
*/
public $authority;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var bool
*/
public $failOpen;
/**
* @var string[]
*/
public $forwardHeaders;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $loadBalancingScheme;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $service;
/**
* @var string
*/
public $timeout;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $wireFormat;
/**
* @param string
*/
public function setAuthority($authority)
{
$this->authority = $authority;
}
/**
* @return string
*/
public function getAuthority()
{
return $this->authority;
}
/**
* @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 setFailOpen($failOpen)
{
$this->failOpen = $failOpen;
}
/**
* @return bool
*/
public function getFailOpen()
{
return $this->failOpen;
}
/**
* @param string[]
*/
public function setForwardHeaders($forwardHeaders)
{
$this->forwardHeaders = $forwardHeaders;
}
/**
* @return string[]
*/
public function getForwardHeaders()
{
return $this->forwardHeaders;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLoadBalancingScheme($loadBalancingScheme)
{
$this->loadBalancingScheme = $loadBalancingScheme;
}
/**
* @return string
*/
public function getLoadBalancingScheme()
{
return $this->loadBalancingScheme;
}
/**
* @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 string
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* @param string
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setWireFormat($wireFormat)
{
$this->wireFormat = $wireFormat;
}
/**
* @return string
*/
public function getWireFormat()
{
return $this->wireFormat;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthzExtension::class, 'Google_Service_NetworkServices_AuthzExtension');
@@ -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\NetworkServices;
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_NetworkServices_Binding');
@@ -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\NetworkServices;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_NetworkServices_CancelOperationRequest');
@@ -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\NetworkServices;
class EndpointMatcher extends \Google\Model
{
protected $metadataLabelMatcherType = EndpointMatcherMetadataLabelMatcher::class;
protected $metadataLabelMatcherDataType = '';
/**
* @param EndpointMatcherMetadataLabelMatcher
*/
public function setMetadataLabelMatcher(EndpointMatcherMetadataLabelMatcher $metadataLabelMatcher)
{
$this->metadataLabelMatcher = $metadataLabelMatcher;
}
/**
* @return EndpointMatcherMetadataLabelMatcher
*/
public function getMetadataLabelMatcher()
{
return $this->metadataLabelMatcher;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EndpointMatcher::class, 'Google_Service_NetworkServices_EndpointMatcher');
@@ -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\NetworkServices;
class EndpointMatcherMetadataLabelMatcher extends \Google\Collection
{
protected $collection_key = 'metadataLabels';
/**
* @var string
*/
public $metadataLabelMatchCriteria;
protected $metadataLabelsType = EndpointMatcherMetadataLabelMatcherMetadataLabels::class;
protected $metadataLabelsDataType = 'array';
/**
* @param string
*/
public function setMetadataLabelMatchCriteria($metadataLabelMatchCriteria)
{
$this->metadataLabelMatchCriteria = $metadataLabelMatchCriteria;
}
/**
* @return string
*/
public function getMetadataLabelMatchCriteria()
{
return $this->metadataLabelMatchCriteria;
}
/**
* @param EndpointMatcherMetadataLabelMatcherMetadataLabels[]
*/
public function setMetadataLabels($metadataLabels)
{
$this->metadataLabels = $metadataLabels;
}
/**
* @return EndpointMatcherMetadataLabelMatcherMetadataLabels[]
*/
public function getMetadataLabels()
{
return $this->metadataLabels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EndpointMatcherMetadataLabelMatcher::class, 'Google_Service_NetworkServices_EndpointMatcherMetadataLabelMatcher');
@@ -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\NetworkServices;
class EndpointMatcherMetadataLabelMatcherMetadataLabels extends \Google\Model
{
/**
* @var string
*/
public $labelName;
/**
* @var string
*/
public $labelValue;
/**
* @param string
*/
public function setLabelName($labelName)
{
$this->labelName = $labelName;
}
/**
* @return string
*/
public function getLabelName()
{
return $this->labelName;
}
/**
* @param string
*/
public function setLabelValue($labelValue)
{
$this->labelValue = $labelValue;
}
/**
* @return string
*/
public function getLabelValue()
{
return $this->labelValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EndpointMatcherMetadataLabelMatcherMetadataLabels::class, 'Google_Service_NetworkServices_EndpointMatcherMetadataLabelMatcherMetadataLabels');
@@ -0,0 +1,220 @@
<?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\NetworkServices;
class EndpointPolicy extends \Google\Model
{
/**
* @var string
*/
public $authorizationPolicy;
/**
* @var string
*/
public $clientTlsPolicy;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
protected $endpointMatcherType = EndpointMatcher::class;
protected $endpointMatcherDataType = '';
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $serverTlsPolicy;
protected $trafficPortSelectorType = TrafficPortSelector::class;
protected $trafficPortSelectorDataType = '';
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setAuthorizationPolicy($authorizationPolicy)
{
$this->authorizationPolicy = $authorizationPolicy;
}
/**
* @return string
*/
public function getAuthorizationPolicy()
{
return $this->authorizationPolicy;
}
/**
* @param string
*/
public function setClientTlsPolicy($clientTlsPolicy)
{
$this->clientTlsPolicy = $clientTlsPolicy;
}
/**
* @return string
*/
public function getClientTlsPolicy()
{
return $this->clientTlsPolicy;
}
/**
* @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 EndpointMatcher
*/
public function setEndpointMatcher(EndpointMatcher $endpointMatcher)
{
$this->endpointMatcher = $endpointMatcher;
}
/**
* @return EndpointMatcher
*/
public function getEndpointMatcher()
{
return $this->endpointMatcher;
}
/**
* @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 setServerTlsPolicy($serverTlsPolicy)
{
$this->serverTlsPolicy = $serverTlsPolicy;
}
/**
* @return string
*/
public function getServerTlsPolicy()
{
return $this->serverTlsPolicy;
}
/**
* @param TrafficPortSelector
*/
public function setTrafficPortSelector(TrafficPortSelector $trafficPortSelector)
{
$this->trafficPortSelector = $trafficPortSelector;
}
/**
* @return TrafficPortSelector
*/
public function getTrafficPortSelector()
{
return $this->trafficPortSelector;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @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(EndpointPolicy::class, 'Google_Service_NetworkServices_EndpointPolicy');
@@ -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\NetworkServices;
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_NetworkServices_Expr');
@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ExtensionChain extends \Google\Collection
{
protected $collection_key = 'extensions';
protected $extensionsType = ExtensionChainExtension::class;
protected $extensionsDataType = 'array';
protected $matchConditionType = ExtensionChainMatchCondition::class;
protected $matchConditionDataType = '';
/**
* @var string
*/
public $name;
/**
* @param ExtensionChainExtension[]
*/
public function setExtensions($extensions)
{
$this->extensions = $extensions;
}
/**
* @return ExtensionChainExtension[]
*/
public function getExtensions()
{
return $this->extensions;
}
/**
* @param ExtensionChainMatchCondition
*/
public function setMatchCondition(ExtensionChainMatchCondition $matchCondition)
{
$this->matchCondition = $matchCondition;
}
/**
* @return ExtensionChainMatchCondition
*/
public function getMatchCondition()
{
return $this->matchCondition;
}
/**
* @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(ExtensionChain::class, 'Google_Service_NetworkServices_ExtensionChain');
@@ -0,0 +1,171 @@
<?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\NetworkServices;
class ExtensionChainExtension extends \Google\Collection
{
protected $collection_key = 'supportedEvents';
/**
* @var string
*/
public $authority;
/**
* @var bool
*/
public $failOpen;
/**
* @var string[]
*/
public $forwardHeaders;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $service;
/**
* @var string[]
*/
public $supportedEvents;
/**
* @var string
*/
public $timeout;
/**
* @param string
*/
public function setAuthority($authority)
{
$this->authority = $authority;
}
/**
* @return string
*/
public function getAuthority()
{
return $this->authority;
}
/**
* @param bool
*/
public function setFailOpen($failOpen)
{
$this->failOpen = $failOpen;
}
/**
* @return bool
*/
public function getFailOpen()
{
return $this->failOpen;
}
/**
* @param string[]
*/
public function setForwardHeaders($forwardHeaders)
{
$this->forwardHeaders = $forwardHeaders;
}
/**
* @return string[]
*/
public function getForwardHeaders()
{
return $this->forwardHeaders;
}
/**
* @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 string
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* @param string[]
*/
public function setSupportedEvents($supportedEvents)
{
$this->supportedEvents = $supportedEvents;
}
/**
* @return string[]
*/
public function getSupportedEvents()
{
return $this->supportedEvents;
}
/**
* @param string
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExtensionChainExtension::class, 'Google_Service_NetworkServices_ExtensionChainExtension');
@@ -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\NetworkServices;
class ExtensionChainMatchCondition extends \Google\Model
{
/**
* @var string
*/
public $celExpression;
/**
* @param string
*/
public function setCelExpression($celExpression)
{
$this->celExpression = $celExpression;
}
/**
* @return string
*/
public function getCelExpression()
{
return $this->celExpression;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExtensionChainMatchCondition::class, 'Google_Service_NetworkServices_ExtensionChainMatchCondition');
@@ -0,0 +1,351 @@
<?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\NetworkServices;
class Gateway extends \Google\Collection
{
protected $collection_key = 'ports';
/**
* @var string[]
*/
public $addresses;
/**
* @var string[]
*/
public $certificateUrls;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $envoyHeaders;
/**
* @var string
*/
public $gatewaySecurityPolicy;
/**
* @var string
*/
public $ipVersion;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $network;
/**
* @var int[]
*/
public $ports;
/**
* @var string
*/
public $routingMode;
/**
* @var string
*/
public $scope;
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $serverTlsPolicy;
/**
* @var string
*/
public $subnetwork;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $updateTime;
/**
* @param string[]
*/
public function setAddresses($addresses)
{
$this->addresses = $addresses;
}
/**
* @return string[]
*/
public function getAddresses()
{
return $this->addresses;
}
/**
* @param string[]
*/
public function setCertificateUrls($certificateUrls)
{
$this->certificateUrls = $certificateUrls;
}
/**
* @return string[]
*/
public function getCertificateUrls()
{
return $this->certificateUrls;
}
/**
* @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 setEnvoyHeaders($envoyHeaders)
{
$this->envoyHeaders = $envoyHeaders;
}
/**
* @return string
*/
public function getEnvoyHeaders()
{
return $this->envoyHeaders;
}
/**
* @param string
*/
public function setGatewaySecurityPolicy($gatewaySecurityPolicy)
{
$this->gatewaySecurityPolicy = $gatewaySecurityPolicy;
}
/**
* @return string
*/
public function getGatewaySecurityPolicy()
{
return $this->gatewaySecurityPolicy;
}
/**
* @param string
*/
public function setIpVersion($ipVersion)
{
$this->ipVersion = $ipVersion;
}
/**
* @return string
*/
public function getIpVersion()
{
return $this->ipVersion;
}
/**
* @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 int[]
*/
public function setPorts($ports)
{
$this->ports = $ports;
}
/**
* @return int[]
*/
public function getPorts()
{
return $this->ports;
}
/**
* @param string
*/
public function setRoutingMode($routingMode)
{
$this->routingMode = $routingMode;
}
/**
* @return string
*/
public function getRoutingMode()
{
return $this->routingMode;
}
/**
* @param string
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return string
*/
public function getScope()
{
return $this->scope;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
public function setServerTlsPolicy($serverTlsPolicy)
{
$this->serverTlsPolicy = $serverTlsPolicy;
}
/**
* @return string
*/
public function getServerTlsPolicy()
{
return $this->serverTlsPolicy;
}
/**
* @param string
*/
public function setSubnetwork($subnetwork)
{
$this->subnetwork = $subnetwork;
}
/**
* @return string
*/
public function getSubnetwork()
{
return $this->subnetwork;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @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(Gateway::class, 'Google_Service_NetworkServices_Gateway');
@@ -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\NetworkServices;
class GatewayRouteView extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $routeId;
/**
* @var string
*/
public $routeLocation;
/**
* @var string
*/
public $routeProjectNumber;
/**
* @var string
*/
public $routeType;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setRouteId($routeId)
{
$this->routeId = $routeId;
}
/**
* @return string
*/
public function getRouteId()
{
return $this->routeId;
}
/**
* @param string
*/
public function setRouteLocation($routeLocation)
{
$this->routeLocation = $routeLocation;
}
/**
* @return string
*/
public function getRouteLocation()
{
return $this->routeLocation;
}
/**
* @param string
*/
public function setRouteProjectNumber($routeProjectNumber)
{
$this->routeProjectNumber = $routeProjectNumber;
}
/**
* @return string
*/
public function getRouteProjectNumber()
{
return $this->routeProjectNumber;
}
/**
* @param string
*/
public function setRouteType($routeType)
{
$this->routeType = $routeType;
}
/**
* @return string
*/
public function getRouteType()
{
return $this->routeType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GatewayRouteView::class, 'Google_Service_NetworkServices_GatewayRouteView');
@@ -0,0 +1,205 @@
<?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\NetworkServices;
class GrpcRoute extends \Google\Collection
{
protected $collection_key = 'rules';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string[]
*/
public $gateways;
/**
* @var string[]
*/
public $hostnames;
/**
* @var string[]
*/
public $labels;
/**
* @var string[]
*/
public $meshes;
/**
* @var string
*/
public $name;
protected $rulesType = GrpcRouteRouteRule::class;
protected $rulesDataType = 'array';
/**
* @var string
*/
public $selfLink;
/**
* @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 setGateways($gateways)
{
$this->gateways = $gateways;
}
/**
* @return string[]
*/
public function getGateways()
{
return $this->gateways;
}
/**
* @param string[]
*/
public function setHostnames($hostnames)
{
$this->hostnames = $hostnames;
}
/**
* @return string[]
*/
public function getHostnames()
{
return $this->hostnames;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string[]
*/
public function setMeshes($meshes)
{
$this->meshes = $meshes;
}
/**
* @return string[]
*/
public function getMeshes()
{
return $this->meshes;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param GrpcRouteRouteRule[]
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return GrpcRouteRouteRule[]
*/
public function getRules()
{
return $this->rules;
}
/**
* @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;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRoute::class, 'Google_Service_NetworkServices_GrpcRoute');
@@ -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\NetworkServices;
class GrpcRouteDestination extends \Google\Model
{
/**
* @var string
*/
public $serviceName;
/**
* @var int
*/
public $weight;
/**
* @param string
*/
public function setServiceName($serviceName)
{
$this->serviceName = $serviceName;
}
/**
* @return string
*/
public function getServiceName()
{
return $this->serviceName;
}
/**
* @param int
*/
public function setWeight($weight)
{
$this->weight = $weight;
}
/**
* @return int
*/
public function getWeight()
{
return $this->weight;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteDestination::class, 'Google_Service_NetworkServices_GrpcRouteDestination');
@@ -0,0 +1,58 @@
<?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\NetworkServices;
class GrpcRouteFaultInjectionPolicy extends \Google\Model
{
protected $abortType = GrpcRouteFaultInjectionPolicyAbort::class;
protected $abortDataType = '';
protected $delayType = GrpcRouteFaultInjectionPolicyDelay::class;
protected $delayDataType = '';
/**
* @param GrpcRouteFaultInjectionPolicyAbort
*/
public function setAbort(GrpcRouteFaultInjectionPolicyAbort $abort)
{
$this->abort = $abort;
}
/**
* @return GrpcRouteFaultInjectionPolicyAbort
*/
public function getAbort()
{
return $this->abort;
}
/**
* @param GrpcRouteFaultInjectionPolicyDelay
*/
public function setDelay(GrpcRouteFaultInjectionPolicyDelay $delay)
{
$this->delay = $delay;
}
/**
* @return GrpcRouteFaultInjectionPolicyDelay
*/
public function getDelay()
{
return $this->delay;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteFaultInjectionPolicy::class, 'Google_Service_NetworkServices_GrpcRouteFaultInjectionPolicy');
@@ -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\NetworkServices;
class GrpcRouteFaultInjectionPolicyAbort extends \Google\Model
{
/**
* @var int
*/
public $httpStatus;
/**
* @var int
*/
public $percentage;
/**
* @param int
*/
public function setHttpStatus($httpStatus)
{
$this->httpStatus = $httpStatus;
}
/**
* @return int
*/
public function getHttpStatus()
{
return $this->httpStatus;
}
/**
* @param int
*/
public function setPercentage($percentage)
{
$this->percentage = $percentage;
}
/**
* @return int
*/
public function getPercentage()
{
return $this->percentage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteFaultInjectionPolicyAbort::class, 'Google_Service_NetworkServices_GrpcRouteFaultInjectionPolicyAbort');
@@ -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\NetworkServices;
class GrpcRouteFaultInjectionPolicyDelay extends \Google\Model
{
/**
* @var string
*/
public $fixedDelay;
/**
* @var int
*/
public $percentage;
/**
* @param string
*/
public function setFixedDelay($fixedDelay)
{
$this->fixedDelay = $fixedDelay;
}
/**
* @return string
*/
public function getFixedDelay()
{
return $this->fixedDelay;
}
/**
* @param int
*/
public function setPercentage($percentage)
{
$this->percentage = $percentage;
}
/**
* @return int
*/
public function getPercentage()
{
return $this->percentage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteFaultInjectionPolicyDelay::class, 'Google_Service_NetworkServices_GrpcRouteFaultInjectionPolicyDelay');
@@ -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\NetworkServices;
class GrpcRouteHeaderMatch extends \Google\Model
{
/**
* @var string
*/
public $key;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteHeaderMatch::class, 'Google_Service_NetworkServices_GrpcRouteHeaderMatch');
@@ -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\NetworkServices;
class GrpcRouteMethodMatch extends \Google\Model
{
/**
* @var bool
*/
public $caseSensitive;
/**
* @var string
*/
public $grpcMethod;
/**
* @var string
*/
public $grpcService;
/**
* @var string
*/
public $type;
/**
* @param bool
*/
public function setCaseSensitive($caseSensitive)
{
$this->caseSensitive = $caseSensitive;
}
/**
* @return bool
*/
public function getCaseSensitive()
{
return $this->caseSensitive;
}
/**
* @param string
*/
public function setGrpcMethod($grpcMethod)
{
$this->grpcMethod = $grpcMethod;
}
/**
* @return string
*/
public function getGrpcMethod()
{
return $this->grpcMethod;
}
/**
* @param string
*/
public function setGrpcService($grpcService)
{
$this->grpcService = $grpcService;
}
/**
* @return string
*/
public function getGrpcService()
{
return $this->grpcService;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteMethodMatch::class, 'Google_Service_NetworkServices_GrpcRouteMethodMatch');
@@ -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\NetworkServices;
class GrpcRouteRetryPolicy extends \Google\Collection
{
protected $collection_key = 'retryConditions';
/**
* @var string
*/
public $numRetries;
/**
* @var string[]
*/
public $retryConditions;
/**
* @param string
*/
public function setNumRetries($numRetries)
{
$this->numRetries = $numRetries;
}
/**
* @return string
*/
public function getNumRetries()
{
return $this->numRetries;
}
/**
* @param string[]
*/
public function setRetryConditions($retryConditions)
{
$this->retryConditions = $retryConditions;
}
/**
* @return string[]
*/
public function getRetryConditions()
{
return $this->retryConditions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteRetryPolicy::class, 'Google_Service_NetworkServices_GrpcRouteRetryPolicy');
@@ -0,0 +1,127 @@
<?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\NetworkServices;
class GrpcRouteRouteAction extends \Google\Collection
{
protected $collection_key = 'destinations';
protected $destinationsType = GrpcRouteDestination::class;
protected $destinationsDataType = 'array';
protected $faultInjectionPolicyType = GrpcRouteFaultInjectionPolicy::class;
protected $faultInjectionPolicyDataType = '';
/**
* @var string
*/
public $idleTimeout;
protected $retryPolicyType = GrpcRouteRetryPolicy::class;
protected $retryPolicyDataType = '';
protected $statefulSessionAffinityType = GrpcRouteStatefulSessionAffinityPolicy::class;
protected $statefulSessionAffinityDataType = '';
/**
* @var string
*/
public $timeout;
/**
* @param GrpcRouteDestination[]
*/
public function setDestinations($destinations)
{
$this->destinations = $destinations;
}
/**
* @return GrpcRouteDestination[]
*/
public function getDestinations()
{
return $this->destinations;
}
/**
* @param GrpcRouteFaultInjectionPolicy
*/
public function setFaultInjectionPolicy(GrpcRouteFaultInjectionPolicy $faultInjectionPolicy)
{
$this->faultInjectionPolicy = $faultInjectionPolicy;
}
/**
* @return GrpcRouteFaultInjectionPolicy
*/
public function getFaultInjectionPolicy()
{
return $this->faultInjectionPolicy;
}
/**
* @param string
*/
public function setIdleTimeout($idleTimeout)
{
$this->idleTimeout = $idleTimeout;
}
/**
* @return string
*/
public function getIdleTimeout()
{
return $this->idleTimeout;
}
/**
* @param GrpcRouteRetryPolicy
*/
public function setRetryPolicy(GrpcRouteRetryPolicy $retryPolicy)
{
$this->retryPolicy = $retryPolicy;
}
/**
* @return GrpcRouteRetryPolicy
*/
public function getRetryPolicy()
{
return $this->retryPolicy;
}
/**
* @param GrpcRouteStatefulSessionAffinityPolicy
*/
public function setStatefulSessionAffinity(GrpcRouteStatefulSessionAffinityPolicy $statefulSessionAffinity)
{
$this->statefulSessionAffinity = $statefulSessionAffinity;
}
/**
* @return GrpcRouteStatefulSessionAffinityPolicy
*/
public function getStatefulSessionAffinity()
{
return $this->statefulSessionAffinity;
}
/**
* @param string
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteRouteAction::class, 'Google_Service_NetworkServices_GrpcRouteRouteAction');
@@ -0,0 +1,59 @@
<?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\NetworkServices;
class GrpcRouteRouteMatch extends \Google\Collection
{
protected $collection_key = 'headers';
protected $headersType = GrpcRouteHeaderMatch::class;
protected $headersDataType = 'array';
protected $methodType = GrpcRouteMethodMatch::class;
protected $methodDataType = '';
/**
* @param GrpcRouteHeaderMatch[]
*/
public function setHeaders($headers)
{
$this->headers = $headers;
}
/**
* @return GrpcRouteHeaderMatch[]
*/
public function getHeaders()
{
return $this->headers;
}
/**
* @param GrpcRouteMethodMatch
*/
public function setMethod(GrpcRouteMethodMatch $method)
{
$this->method = $method;
}
/**
* @return GrpcRouteMethodMatch
*/
public function getMethod()
{
return $this->method;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteRouteMatch::class, 'Google_Service_NetworkServices_GrpcRouteRouteMatch');
@@ -0,0 +1,59 @@
<?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\NetworkServices;
class GrpcRouteRouteRule extends \Google\Collection
{
protected $collection_key = 'matches';
protected $actionType = GrpcRouteRouteAction::class;
protected $actionDataType = '';
protected $matchesType = GrpcRouteRouteMatch::class;
protected $matchesDataType = 'array';
/**
* @param GrpcRouteRouteAction
*/
public function setAction(GrpcRouteRouteAction $action)
{
$this->action = $action;
}
/**
* @return GrpcRouteRouteAction
*/
public function getAction()
{
return $this->action;
}
/**
* @param GrpcRouteRouteMatch[]
*/
public function setMatches($matches)
{
$this->matches = $matches;
}
/**
* @return GrpcRouteRouteMatch[]
*/
public function getMatches()
{
return $this->matches;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteRouteRule::class, 'Google_Service_NetworkServices_GrpcRouteRouteRule');
@@ -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\NetworkServices;
class GrpcRouteStatefulSessionAffinityPolicy extends \Google\Model
{
/**
* @var string
*/
public $cookieTtl;
/**
* @param string
*/
public function setCookieTtl($cookieTtl)
{
$this->cookieTtl = $cookieTtl;
}
/**
* @return string
*/
public function getCookieTtl()
{
return $this->cookieTtl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteStatefulSessionAffinityPolicy::class, 'Google_Service_NetworkServices_GrpcRouteStatefulSessionAffinityPolicy');
@@ -0,0 +1,205 @@
<?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\NetworkServices;
class HttpRoute extends \Google\Collection
{
protected $collection_key = 'rules';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string[]
*/
public $gateways;
/**
* @var string[]
*/
public $hostnames;
/**
* @var string[]
*/
public $labels;
/**
* @var string[]
*/
public $meshes;
/**
* @var string
*/
public $name;
protected $rulesType = HttpRouteRouteRule::class;
protected $rulesDataType = 'array';
/**
* @var string
*/
public $selfLink;
/**
* @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 setGateways($gateways)
{
$this->gateways = $gateways;
}
/**
* @return string[]
*/
public function getGateways()
{
return $this->gateways;
}
/**
* @param string[]
*/
public function setHostnames($hostnames)
{
$this->hostnames = $hostnames;
}
/**
* @return string[]
*/
public function getHostnames()
{
return $this->hostnames;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string[]
*/
public function setMeshes($meshes)
{
$this->meshes = $meshes;
}
/**
* @return string[]
*/
public function getMeshes()
{
return $this->meshes;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param HttpRouteRouteRule[]
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return HttpRouteRouteRule[]
*/
public function getRules()
{
return $this->rules;
}
/**
* @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;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRoute::class, 'Google_Service_NetworkServices_HttpRoute');
@@ -0,0 +1,171 @@
<?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\NetworkServices;
class HttpRouteCorsPolicy extends \Google\Collection
{
protected $collection_key = 'exposeHeaders';
/**
* @var bool
*/
public $allowCredentials;
/**
* @var string[]
*/
public $allowHeaders;
/**
* @var string[]
*/
public $allowMethods;
/**
* @var string[]
*/
public $allowOriginRegexes;
/**
* @var string[]
*/
public $allowOrigins;
/**
* @var bool
*/
public $disabled;
/**
* @var string[]
*/
public $exposeHeaders;
/**
* @var string
*/
public $maxAge;
/**
* @param bool
*/
public function setAllowCredentials($allowCredentials)
{
$this->allowCredentials = $allowCredentials;
}
/**
* @return bool
*/
public function getAllowCredentials()
{
return $this->allowCredentials;
}
/**
* @param string[]
*/
public function setAllowHeaders($allowHeaders)
{
$this->allowHeaders = $allowHeaders;
}
/**
* @return string[]
*/
public function getAllowHeaders()
{
return $this->allowHeaders;
}
/**
* @param string[]
*/
public function setAllowMethods($allowMethods)
{
$this->allowMethods = $allowMethods;
}
/**
* @return string[]
*/
public function getAllowMethods()
{
return $this->allowMethods;
}
/**
* @param string[]
*/
public function setAllowOriginRegexes($allowOriginRegexes)
{
$this->allowOriginRegexes = $allowOriginRegexes;
}
/**
* @return string[]
*/
public function getAllowOriginRegexes()
{
return $this->allowOriginRegexes;
}
/**
* @param string[]
*/
public function setAllowOrigins($allowOrigins)
{
$this->allowOrigins = $allowOrigins;
}
/**
* @return string[]
*/
public function getAllowOrigins()
{
return $this->allowOrigins;
}
/**
* @param bool
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* @param string[]
*/
public function setExposeHeaders($exposeHeaders)
{
$this->exposeHeaders = $exposeHeaders;
}
/**
* @return string[]
*/
public function getExposeHeaders()
{
return $this->exposeHeaders;
}
/**
* @param string
*/
public function setMaxAge($maxAge)
{
$this->maxAge = $maxAge;
}
/**
* @return string
*/
public function getMaxAge()
{
return $this->maxAge;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteCorsPolicy::class, 'Google_Service_NetworkServices_HttpRouteCorsPolicy');
@@ -0,0 +1,94 @@
<?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\NetworkServices;
class HttpRouteDestination extends \Google\Model
{
protected $requestHeaderModifierType = HttpRouteHeaderModifier::class;
protected $requestHeaderModifierDataType = '';
protected $responseHeaderModifierType = HttpRouteHeaderModifier::class;
protected $responseHeaderModifierDataType = '';
/**
* @var string
*/
public $serviceName;
/**
* @var int
*/
public $weight;
/**
* @param HttpRouteHeaderModifier
*/
public function setRequestHeaderModifier(HttpRouteHeaderModifier $requestHeaderModifier)
{
$this->requestHeaderModifier = $requestHeaderModifier;
}
/**
* @return HttpRouteHeaderModifier
*/
public function getRequestHeaderModifier()
{
return $this->requestHeaderModifier;
}
/**
* @param HttpRouteHeaderModifier
*/
public function setResponseHeaderModifier(HttpRouteHeaderModifier $responseHeaderModifier)
{
$this->responseHeaderModifier = $responseHeaderModifier;
}
/**
* @return HttpRouteHeaderModifier
*/
public function getResponseHeaderModifier()
{
return $this->responseHeaderModifier;
}
/**
* @param string
*/
public function setServiceName($serviceName)
{
$this->serviceName = $serviceName;
}
/**
* @return string
*/
public function getServiceName()
{
return $this->serviceName;
}
/**
* @param int
*/
public function setWeight($weight)
{
$this->weight = $weight;
}
/**
* @return int
*/
public function getWeight()
{
return $this->weight;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteDestination::class, 'Google_Service_NetworkServices_HttpRouteDestination');
@@ -0,0 +1,58 @@
<?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\NetworkServices;
class HttpRouteFaultInjectionPolicy extends \Google\Model
{
protected $abortType = HttpRouteFaultInjectionPolicyAbort::class;
protected $abortDataType = '';
protected $delayType = HttpRouteFaultInjectionPolicyDelay::class;
protected $delayDataType = '';
/**
* @param HttpRouteFaultInjectionPolicyAbort
*/
public function setAbort(HttpRouteFaultInjectionPolicyAbort $abort)
{
$this->abort = $abort;
}
/**
* @return HttpRouteFaultInjectionPolicyAbort
*/
public function getAbort()
{
return $this->abort;
}
/**
* @param HttpRouteFaultInjectionPolicyDelay
*/
public function setDelay(HttpRouteFaultInjectionPolicyDelay $delay)
{
$this->delay = $delay;
}
/**
* @return HttpRouteFaultInjectionPolicyDelay
*/
public function getDelay()
{
return $this->delay;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteFaultInjectionPolicy::class, 'Google_Service_NetworkServices_HttpRouteFaultInjectionPolicy');
@@ -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\NetworkServices;
class HttpRouteFaultInjectionPolicyAbort extends \Google\Model
{
/**
* @var int
*/
public $httpStatus;
/**
* @var int
*/
public $percentage;
/**
* @param int
*/
public function setHttpStatus($httpStatus)
{
$this->httpStatus = $httpStatus;
}
/**
* @return int
*/
public function getHttpStatus()
{
return $this->httpStatus;
}
/**
* @param int
*/
public function setPercentage($percentage)
{
$this->percentage = $percentage;
}
/**
* @return int
*/
public function getPercentage()
{
return $this->percentage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteFaultInjectionPolicyAbort::class, 'Google_Service_NetworkServices_HttpRouteFaultInjectionPolicyAbort');
@@ -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\NetworkServices;
class HttpRouteFaultInjectionPolicyDelay extends \Google\Model
{
/**
* @var string
*/
public $fixedDelay;
/**
* @var int
*/
public $percentage;
/**
* @param string
*/
public function setFixedDelay($fixedDelay)
{
$this->fixedDelay = $fixedDelay;
}
/**
* @return string
*/
public function getFixedDelay()
{
return $this->fixedDelay;
}
/**
* @param int
*/
public function setPercentage($percentage)
{
$this->percentage = $percentage;
}
/**
* @return int
*/
public function getPercentage()
{
return $this->percentage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteFaultInjectionPolicyDelay::class, 'Google_Service_NetworkServices_HttpRouteFaultInjectionPolicyDelay');
@@ -0,0 +1,168 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteHeaderMatch extends \Google\Model
{
/**
* @var string
*/
public $exactMatch;
/**
* @var string
*/
public $header;
/**
* @var bool
*/
public $invertMatch;
/**
* @var string
*/
public $prefixMatch;
/**
* @var bool
*/
public $presentMatch;
protected $rangeMatchType = HttpRouteHeaderMatchIntegerRange::class;
protected $rangeMatchDataType = '';
/**
* @var string
*/
public $regexMatch;
/**
* @var string
*/
public $suffixMatch;
/**
* @param string
*/
public function setExactMatch($exactMatch)
{
$this->exactMatch = $exactMatch;
}
/**
* @return string
*/
public function getExactMatch()
{
return $this->exactMatch;
}
/**
* @param string
*/
public function setHeader($header)
{
$this->header = $header;
}
/**
* @return string
*/
public function getHeader()
{
return $this->header;
}
/**
* @param bool
*/
public function setInvertMatch($invertMatch)
{
$this->invertMatch = $invertMatch;
}
/**
* @return bool
*/
public function getInvertMatch()
{
return $this->invertMatch;
}
/**
* @param string
*/
public function setPrefixMatch($prefixMatch)
{
$this->prefixMatch = $prefixMatch;
}
/**
* @return string
*/
public function getPrefixMatch()
{
return $this->prefixMatch;
}
/**
* @param bool
*/
public function setPresentMatch($presentMatch)
{
$this->presentMatch = $presentMatch;
}
/**
* @return bool
*/
public function getPresentMatch()
{
return $this->presentMatch;
}
/**
* @param HttpRouteHeaderMatchIntegerRange
*/
public function setRangeMatch(HttpRouteHeaderMatchIntegerRange $rangeMatch)
{
$this->rangeMatch = $rangeMatch;
}
/**
* @return HttpRouteHeaderMatchIntegerRange
*/
public function getRangeMatch()
{
return $this->rangeMatch;
}
/**
* @param string
*/
public function setRegexMatch($regexMatch)
{
$this->regexMatch = $regexMatch;
}
/**
* @return string
*/
public function getRegexMatch()
{
return $this->regexMatch;
}
/**
* @param string
*/
public function setSuffixMatch($suffixMatch)
{
$this->suffixMatch = $suffixMatch;
}
/**
* @return string
*/
public function getSuffixMatch()
{
return $this->suffixMatch;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteHeaderMatch::class, 'Google_Service_NetworkServices_HttpRouteHeaderMatch');
@@ -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\NetworkServices;
class HttpRouteHeaderMatchIntegerRange extends \Google\Model
{
/**
* @var int
*/
public $end;
/**
* @var int
*/
public $start;
/**
* @param int
*/
public function setEnd($end)
{
$this->end = $end;
}
/**
* @return int
*/
public function getEnd()
{
return $this->end;
}
/**
* @param int
*/
public function setStart($start)
{
$this->start = $start;
}
/**
* @return int
*/
public function getStart()
{
return $this->start;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteHeaderMatchIntegerRange::class, 'Google_Service_NetworkServices_HttpRouteHeaderMatchIntegerRange');
@@ -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\NetworkServices;
class HttpRouteHeaderModifier extends \Google\Collection
{
protected $collection_key = 'remove';
/**
* @var string[]
*/
public $add;
/**
* @var string[]
*/
public $remove;
/**
* @var string[]
*/
public $set;
/**
* @param string[]
*/
public function setAdd($add)
{
$this->add = $add;
}
/**
* @return string[]
*/
public function getAdd()
{
return $this->add;
}
/**
* @param string[]
*/
public function setRemove($remove)
{
$this->remove = $remove;
}
/**
* @return string[]
*/
public function getRemove()
{
return $this->remove;
}
/**
* @param string[]
*/
public function setSet($set)
{
$this->set = $set;
}
/**
* @return string[]
*/
public function getSet()
{
return $this->set;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteHeaderModifier::class, 'Google_Service_NetworkServices_HttpRouteHeaderModifier');
@@ -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\NetworkServices;
class HttpRouteHttpDirectResponse extends \Google\Model
{
/**
* @var string
*/
public $bytesBody;
/**
* @var int
*/
public $status;
/**
* @var string
*/
public $stringBody;
/**
* @param string
*/
public function setBytesBody($bytesBody)
{
$this->bytesBody = $bytesBody;
}
/**
* @return string
*/
public function getBytesBody()
{
return $this->bytesBody;
}
/**
* @param int
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return int
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string
*/
public function setStringBody($stringBody)
{
$this->stringBody = $stringBody;
}
/**
* @return string
*/
public function getStringBody()
{
return $this->stringBody;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteHttpDirectResponse::class, 'Google_Service_NetworkServices_HttpRouteHttpDirectResponse');
@@ -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\NetworkServices;
class HttpRouteQueryParameterMatch extends \Google\Model
{
/**
* @var string
*/
public $exactMatch;
/**
* @var bool
*/
public $presentMatch;
/**
* @var string
*/
public $queryParameter;
/**
* @var string
*/
public $regexMatch;
/**
* @param string
*/
public function setExactMatch($exactMatch)
{
$this->exactMatch = $exactMatch;
}
/**
* @return string
*/
public function getExactMatch()
{
return $this->exactMatch;
}
/**
* @param bool
*/
public function setPresentMatch($presentMatch)
{
$this->presentMatch = $presentMatch;
}
/**
* @return bool
*/
public function getPresentMatch()
{
return $this->presentMatch;
}
/**
* @param string
*/
public function setQueryParameter($queryParameter)
{
$this->queryParameter = $queryParameter;
}
/**
* @return string
*/
public function getQueryParameter()
{
return $this->queryParameter;
}
/**
* @param string
*/
public function setRegexMatch($regexMatch)
{
$this->regexMatch = $regexMatch;
}
/**
* @return string
*/
public function getRegexMatch()
{
return $this->regexMatch;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteQueryParameterMatch::class, 'Google_Service_NetworkServices_HttpRouteQueryParameterMatch');
@@ -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\NetworkServices;
class HttpRouteRedirect extends \Google\Model
{
/**
* @var string
*/
public $hostRedirect;
/**
* @var bool
*/
public $httpsRedirect;
/**
* @var string
*/
public $pathRedirect;
/**
* @var int
*/
public $portRedirect;
/**
* @var string
*/
public $prefixRewrite;
/**
* @var string
*/
public $responseCode;
/**
* @var bool
*/
public $stripQuery;
/**
* @param string
*/
public function setHostRedirect($hostRedirect)
{
$this->hostRedirect = $hostRedirect;
}
/**
* @return string
*/
public function getHostRedirect()
{
return $this->hostRedirect;
}
/**
* @param bool
*/
public function setHttpsRedirect($httpsRedirect)
{
$this->httpsRedirect = $httpsRedirect;
}
/**
* @return bool
*/
public function getHttpsRedirect()
{
return $this->httpsRedirect;
}
/**
* @param string
*/
public function setPathRedirect($pathRedirect)
{
$this->pathRedirect = $pathRedirect;
}
/**
* @return string
*/
public function getPathRedirect()
{
return $this->pathRedirect;
}
/**
* @param int
*/
public function setPortRedirect($portRedirect)
{
$this->portRedirect = $portRedirect;
}
/**
* @return int
*/
public function getPortRedirect()
{
return $this->portRedirect;
}
/**
* @param string
*/
public function setPrefixRewrite($prefixRewrite)
{
$this->prefixRewrite = $prefixRewrite;
}
/**
* @return string
*/
public function getPrefixRewrite()
{
return $this->prefixRewrite;
}
/**
* @param string
*/
public function setResponseCode($responseCode)
{
$this->responseCode = $responseCode;
}
/**
* @return string
*/
public function getResponseCode()
{
return $this->responseCode;
}
/**
* @param bool
*/
public function setStripQuery($stripQuery)
{
$this->stripQuery = $stripQuery;
}
/**
* @return bool
*/
public function getStripQuery()
{
return $this->stripQuery;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteRedirect::class, 'Google_Service_NetworkServices_HttpRouteRedirect');
@@ -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\NetworkServices;
class HttpRouteRequestMirrorPolicy extends \Google\Model
{
protected $destinationType = HttpRouteDestination::class;
protected $destinationDataType = '';
/**
* @var float
*/
public $mirrorPercent;
/**
* @param HttpRouteDestination
*/
public function setDestination(HttpRouteDestination $destination)
{
$this->destination = $destination;
}
/**
* @return HttpRouteDestination
*/
public function getDestination()
{
return $this->destination;
}
/**
* @param float
*/
public function setMirrorPercent($mirrorPercent)
{
$this->mirrorPercent = $mirrorPercent;
}
/**
* @return float
*/
public function getMirrorPercent()
{
return $this->mirrorPercent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteRequestMirrorPolicy::class, 'Google_Service_NetworkServices_HttpRouteRequestMirrorPolicy');
@@ -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\NetworkServices;
class HttpRouteRetryPolicy extends \Google\Collection
{
protected $collection_key = 'retryConditions';
/**
* @var int
*/
public $numRetries;
/**
* @var string
*/
public $perTryTimeout;
/**
* @var string[]
*/
public $retryConditions;
/**
* @param int
*/
public function setNumRetries($numRetries)
{
$this->numRetries = $numRetries;
}
/**
* @return int
*/
public function getNumRetries()
{
return $this->numRetries;
}
/**
* @param string
*/
public function setPerTryTimeout($perTryTimeout)
{
$this->perTryTimeout = $perTryTimeout;
}
/**
* @return string
*/
public function getPerTryTimeout()
{
return $this->perTryTimeout;
}
/**
* @param string[]
*/
public function setRetryConditions($retryConditions)
{
$this->retryConditions = $retryConditions;
}
/**
* @return string[]
*/
public function getRetryConditions()
{
return $this->retryConditions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteRetryPolicy::class, 'Google_Service_NetworkServices_HttpRouteRetryPolicy');
@@ -0,0 +1,239 @@
<?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\NetworkServices;
class HttpRouteRouteAction extends \Google\Collection
{
protected $collection_key = 'destinations';
protected $corsPolicyType = HttpRouteCorsPolicy::class;
protected $corsPolicyDataType = '';
protected $destinationsType = HttpRouteDestination::class;
protected $destinationsDataType = 'array';
protected $directResponseType = HttpRouteHttpDirectResponse::class;
protected $directResponseDataType = '';
protected $faultInjectionPolicyType = HttpRouteFaultInjectionPolicy::class;
protected $faultInjectionPolicyDataType = '';
/**
* @var string
*/
public $idleTimeout;
protected $redirectType = HttpRouteRedirect::class;
protected $redirectDataType = '';
protected $requestHeaderModifierType = HttpRouteHeaderModifier::class;
protected $requestHeaderModifierDataType = '';
protected $requestMirrorPolicyType = HttpRouteRequestMirrorPolicy::class;
protected $requestMirrorPolicyDataType = '';
protected $responseHeaderModifierType = HttpRouteHeaderModifier::class;
protected $responseHeaderModifierDataType = '';
protected $retryPolicyType = HttpRouteRetryPolicy::class;
protected $retryPolicyDataType = '';
protected $statefulSessionAffinityType = HttpRouteStatefulSessionAffinityPolicy::class;
protected $statefulSessionAffinityDataType = '';
/**
* @var string
*/
public $timeout;
protected $urlRewriteType = HttpRouteURLRewrite::class;
protected $urlRewriteDataType = '';
/**
* @param HttpRouteCorsPolicy
*/
public function setCorsPolicy(HttpRouteCorsPolicy $corsPolicy)
{
$this->corsPolicy = $corsPolicy;
}
/**
* @return HttpRouteCorsPolicy
*/
public function getCorsPolicy()
{
return $this->corsPolicy;
}
/**
* @param HttpRouteDestination[]
*/
public function setDestinations($destinations)
{
$this->destinations = $destinations;
}
/**
* @return HttpRouteDestination[]
*/
public function getDestinations()
{
return $this->destinations;
}
/**
* @param HttpRouteHttpDirectResponse
*/
public function setDirectResponse(HttpRouteHttpDirectResponse $directResponse)
{
$this->directResponse = $directResponse;
}
/**
* @return HttpRouteHttpDirectResponse
*/
public function getDirectResponse()
{
return $this->directResponse;
}
/**
* @param HttpRouteFaultInjectionPolicy
*/
public function setFaultInjectionPolicy(HttpRouteFaultInjectionPolicy $faultInjectionPolicy)
{
$this->faultInjectionPolicy = $faultInjectionPolicy;
}
/**
* @return HttpRouteFaultInjectionPolicy
*/
public function getFaultInjectionPolicy()
{
return $this->faultInjectionPolicy;
}
/**
* @param string
*/
public function setIdleTimeout($idleTimeout)
{
$this->idleTimeout = $idleTimeout;
}
/**
* @return string
*/
public function getIdleTimeout()
{
return $this->idleTimeout;
}
/**
* @param HttpRouteRedirect
*/
public function setRedirect(HttpRouteRedirect $redirect)
{
$this->redirect = $redirect;
}
/**
* @return HttpRouteRedirect
*/
public function getRedirect()
{
return $this->redirect;
}
/**
* @param HttpRouteHeaderModifier
*/
public function setRequestHeaderModifier(HttpRouteHeaderModifier $requestHeaderModifier)
{
$this->requestHeaderModifier = $requestHeaderModifier;
}
/**
* @return HttpRouteHeaderModifier
*/
public function getRequestHeaderModifier()
{
return $this->requestHeaderModifier;
}
/**
* @param HttpRouteRequestMirrorPolicy
*/
public function setRequestMirrorPolicy(HttpRouteRequestMirrorPolicy $requestMirrorPolicy)
{
$this->requestMirrorPolicy = $requestMirrorPolicy;
}
/**
* @return HttpRouteRequestMirrorPolicy
*/
public function getRequestMirrorPolicy()
{
return $this->requestMirrorPolicy;
}
/**
* @param HttpRouteHeaderModifier
*/
public function setResponseHeaderModifier(HttpRouteHeaderModifier $responseHeaderModifier)
{
$this->responseHeaderModifier = $responseHeaderModifier;
}
/**
* @return HttpRouteHeaderModifier
*/
public function getResponseHeaderModifier()
{
return $this->responseHeaderModifier;
}
/**
* @param HttpRouteRetryPolicy
*/
public function setRetryPolicy(HttpRouteRetryPolicy $retryPolicy)
{
$this->retryPolicy = $retryPolicy;
}
/**
* @return HttpRouteRetryPolicy
*/
public function getRetryPolicy()
{
return $this->retryPolicy;
}
/**
* @param HttpRouteStatefulSessionAffinityPolicy
*/
public function setStatefulSessionAffinity(HttpRouteStatefulSessionAffinityPolicy $statefulSessionAffinity)
{
$this->statefulSessionAffinity = $statefulSessionAffinity;
}
/**
* @return HttpRouteStatefulSessionAffinityPolicy
*/
public function getStatefulSessionAffinity()
{
return $this->statefulSessionAffinity;
}
/**
* @param string
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
/**
* @param HttpRouteURLRewrite
*/
public function setUrlRewrite(HttpRouteURLRewrite $urlRewrite)
{
$this->urlRewrite = $urlRewrite;
}
/**
* @return HttpRouteURLRewrite
*/
public function getUrlRewrite()
{
return $this->urlRewrite;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteRouteAction::class, 'Google_Service_NetworkServices_HttpRouteRouteAction');
@@ -0,0 +1,131 @@
<?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\NetworkServices;
class HttpRouteRouteMatch extends \Google\Collection
{
protected $collection_key = 'queryParameters';
/**
* @var string
*/
public $fullPathMatch;
protected $headersType = HttpRouteHeaderMatch::class;
protected $headersDataType = 'array';
/**
* @var bool
*/
public $ignoreCase;
/**
* @var string
*/
public $prefixMatch;
protected $queryParametersType = HttpRouteQueryParameterMatch::class;
protected $queryParametersDataType = 'array';
/**
* @var string
*/
public $regexMatch;
/**
* @param string
*/
public function setFullPathMatch($fullPathMatch)
{
$this->fullPathMatch = $fullPathMatch;
}
/**
* @return string
*/
public function getFullPathMatch()
{
return $this->fullPathMatch;
}
/**
* @param HttpRouteHeaderMatch[]
*/
public function setHeaders($headers)
{
$this->headers = $headers;
}
/**
* @return HttpRouteHeaderMatch[]
*/
public function getHeaders()
{
return $this->headers;
}
/**
* @param bool
*/
public function setIgnoreCase($ignoreCase)
{
$this->ignoreCase = $ignoreCase;
}
/**
* @return bool
*/
public function getIgnoreCase()
{
return $this->ignoreCase;
}
/**
* @param string
*/
public function setPrefixMatch($prefixMatch)
{
$this->prefixMatch = $prefixMatch;
}
/**
* @return string
*/
public function getPrefixMatch()
{
return $this->prefixMatch;
}
/**
* @param HttpRouteQueryParameterMatch[]
*/
public function setQueryParameters($queryParameters)
{
$this->queryParameters = $queryParameters;
}
/**
* @return HttpRouteQueryParameterMatch[]
*/
public function getQueryParameters()
{
return $this->queryParameters;
}
/**
* @param string
*/
public function setRegexMatch($regexMatch)
{
$this->regexMatch = $regexMatch;
}
/**
* @return string
*/
public function getRegexMatch()
{
return $this->regexMatch;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteRouteMatch::class, 'Google_Service_NetworkServices_HttpRouteRouteMatch');
@@ -0,0 +1,59 @@
<?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\NetworkServices;
class HttpRouteRouteRule extends \Google\Collection
{
protected $collection_key = 'matches';
protected $actionType = HttpRouteRouteAction::class;
protected $actionDataType = '';
protected $matchesType = HttpRouteRouteMatch::class;
protected $matchesDataType = 'array';
/**
* @param HttpRouteRouteAction
*/
public function setAction(HttpRouteRouteAction $action)
{
$this->action = $action;
}
/**
* @return HttpRouteRouteAction
*/
public function getAction()
{
return $this->action;
}
/**
* @param HttpRouteRouteMatch[]
*/
public function setMatches($matches)
{
$this->matches = $matches;
}
/**
* @return HttpRouteRouteMatch[]
*/
public function getMatches()
{
return $this->matches;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteRouteRule::class, 'Google_Service_NetworkServices_HttpRouteRouteRule');
@@ -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\NetworkServices;
class HttpRouteStatefulSessionAffinityPolicy extends \Google\Model
{
/**
* @var string
*/
public $cookieTtl;
/**
* @param string
*/
public function setCookieTtl($cookieTtl)
{
$this->cookieTtl = $cookieTtl;
}
/**
* @return string
*/
public function getCookieTtl()
{
return $this->cookieTtl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteStatefulSessionAffinityPolicy::class, 'Google_Service_NetworkServices_HttpRouteStatefulSessionAffinityPolicy');
@@ -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\NetworkServices;
class HttpRouteURLRewrite extends \Google\Model
{
/**
* @var string
*/
public $hostRewrite;
/**
* @var string
*/
public $pathPrefixRewrite;
/**
* @param string
*/
public function setHostRewrite($hostRewrite)
{
$this->hostRewrite = $hostRewrite;
}
/**
* @return string
*/
public function getHostRewrite()
{
return $this->hostRewrite;
}
/**
* @param string
*/
public function setPathPrefixRewrite($pathPrefixRewrite)
{
$this->pathPrefixRewrite = $pathPrefixRewrite;
}
/**
* @return string
*/
public function getPathPrefixRewrite()
{
return $this->pathPrefixRewrite;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteURLRewrite::class, 'Google_Service_NetworkServices_HttpRouteURLRewrite');
@@ -0,0 +1,187 @@
<?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\NetworkServices;
class LbRouteExtension extends \Google\Collection
{
protected $collection_key = 'forwardingRules';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
protected $extensionChainsType = ExtensionChain::class;
protected $extensionChainsDataType = 'array';
/**
* @var string[]
*/
public $forwardingRules;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $loadBalancingScheme;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @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 ExtensionChain[]
*/
public function setExtensionChains($extensionChains)
{
$this->extensionChains = $extensionChains;
}
/**
* @return ExtensionChain[]
*/
public function getExtensionChains()
{
return $this->extensionChains;
}
/**
* @param string[]
*/
public function setForwardingRules($forwardingRules)
{
$this->forwardingRules = $forwardingRules;
}
/**
* @return string[]
*/
public function getForwardingRules()
{
return $this->forwardingRules;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLoadBalancingScheme($loadBalancingScheme)
{
$this->loadBalancingScheme = $loadBalancingScheme;
}
/**
* @return string
*/
public function getLoadBalancingScheme()
{
return $this->loadBalancingScheme;
}
/**
* @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 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(LbRouteExtension::class, 'Google_Service_NetworkServices_LbRouteExtension');
@@ -0,0 +1,187 @@
<?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\NetworkServices;
class LbTrafficExtension extends \Google\Collection
{
protected $collection_key = 'forwardingRules';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
protected $extensionChainsType = ExtensionChain::class;
protected $extensionChainsDataType = 'array';
/**
* @var string[]
*/
public $forwardingRules;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $loadBalancingScheme;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @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 ExtensionChain[]
*/
public function setExtensionChains($extensionChains)
{
$this->extensionChains = $extensionChains;
}
/**
* @return ExtensionChain[]
*/
public function getExtensionChains()
{
return $this->extensionChains;
}
/**
* @param string[]
*/
public function setForwardingRules($forwardingRules)
{
$this->forwardingRules = $forwardingRules;
}
/**
* @return string[]
*/
public function getForwardingRules()
{
return $this->forwardingRules;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLoadBalancingScheme($loadBalancingScheme)
{
$this->loadBalancingScheme = $loadBalancingScheme;
}
/**
* @return string
*/
public function getLoadBalancingScheme()
{
return $this->loadBalancingScheme;
}
/**
* @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 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(LbTrafficExtension::class, 'Google_Service_NetworkServices_LbTrafficExtension');
@@ -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\NetworkServices;
class ListAuthzExtensionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $authzExtensionsType = AuthzExtension::class;
protected $authzExtensionsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param AuthzExtension[]
*/
public function setAuthzExtensions($authzExtensions)
{
$this->authzExtensions = $authzExtensions;
}
/**
* @return AuthzExtension[]
*/
public function getAuthzExtensions()
{
return $this->authzExtensions;
}
/**
* @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(ListAuthzExtensionsResponse::class, 'Google_Service_NetworkServices_ListAuthzExtensionsResponse');
@@ -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\NetworkServices;
class ListEndpointPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'endpointPolicies';
protected $endpointPoliciesType = EndpointPolicy::class;
protected $endpointPoliciesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param EndpointPolicy[]
*/
public function setEndpointPolicies($endpointPolicies)
{
$this->endpointPolicies = $endpointPolicies;
}
/**
* @return EndpointPolicy[]
*/
public function getEndpointPolicies()
{
return $this->endpointPolicies;
}
/**
* @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(ListEndpointPoliciesResponse::class, 'Google_Service_NetworkServices_ListEndpointPoliciesResponse');
@@ -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\NetworkServices;
class ListGatewayRouteViewsResponse extends \Google\Collection
{
protected $collection_key = 'gatewayRouteViews';
protected $gatewayRouteViewsType = GatewayRouteView::class;
protected $gatewayRouteViewsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param GatewayRouteView[]
*/
public function setGatewayRouteViews($gatewayRouteViews)
{
$this->gatewayRouteViews = $gatewayRouteViews;
}
/**
* @return GatewayRouteView[]
*/
public function getGatewayRouteViews()
{
return $this->gatewayRouteViews;
}
/**
* @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(ListGatewayRouteViewsResponse::class, 'Google_Service_NetworkServices_ListGatewayRouteViewsResponse');
@@ -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\NetworkServices;
class ListGatewaysResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $gatewaysType = Gateway::class;
protected $gatewaysDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param Gateway[]
*/
public function setGateways($gateways)
{
$this->gateways = $gateways;
}
/**
* @return Gateway[]
*/
public function getGateways()
{
return $this->gateways;
}
/**
* @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(ListGatewaysResponse::class, 'Google_Service_NetworkServices_ListGatewaysResponse');
@@ -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\NetworkServices;
class ListGrpcRoutesResponse extends \Google\Collection
{
protected $collection_key = 'grpcRoutes';
protected $grpcRoutesType = GrpcRoute::class;
protected $grpcRoutesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param GrpcRoute[]
*/
public function setGrpcRoutes($grpcRoutes)
{
$this->grpcRoutes = $grpcRoutes;
}
/**
* @return GrpcRoute[]
*/
public function getGrpcRoutes()
{
return $this->grpcRoutes;
}
/**
* @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(ListGrpcRoutesResponse::class, 'Google_Service_NetworkServices_ListGrpcRoutesResponse');
@@ -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\NetworkServices;
class ListHttpRoutesResponse extends \Google\Collection
{
protected $collection_key = 'httpRoutes';
protected $httpRoutesType = HttpRoute::class;
protected $httpRoutesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param HttpRoute[]
*/
public function setHttpRoutes($httpRoutes)
{
$this->httpRoutes = $httpRoutes;
}
/**
* @return HttpRoute[]
*/
public function getHttpRoutes()
{
return $this->httpRoutes;
}
/**
* @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(ListHttpRoutesResponse::class, 'Google_Service_NetworkServices_ListHttpRoutesResponse');
@@ -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\NetworkServices;
class ListLbRouteExtensionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $lbRouteExtensionsType = LbRouteExtension::class;
protected $lbRouteExtensionsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param LbRouteExtension[]
*/
public function setLbRouteExtensions($lbRouteExtensions)
{
$this->lbRouteExtensions = $lbRouteExtensions;
}
/**
* @return LbRouteExtension[]
*/
public function getLbRouteExtensions()
{
return $this->lbRouteExtensions;
}
/**
* @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(ListLbRouteExtensionsResponse::class, 'Google_Service_NetworkServices_ListLbRouteExtensionsResponse');
@@ -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\NetworkServices;
class ListLbTrafficExtensionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $lbTrafficExtensionsType = LbTrafficExtension::class;
protected $lbTrafficExtensionsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param LbTrafficExtension[]
*/
public function setLbTrafficExtensions($lbTrafficExtensions)
{
$this->lbTrafficExtensions = $lbTrafficExtensions;
}
/**
* @return LbTrafficExtension[]
*/
public function getLbTrafficExtensions()
{
return $this->lbTrafficExtensions;
}
/**
* @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(ListLbTrafficExtensionsResponse::class, 'Google_Service_NetworkServices_ListLbTrafficExtensionsResponse');
@@ -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\NetworkServices;
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_NetworkServices_ListLocationsResponse');
@@ -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\NetworkServices;
class ListMeshRouteViewsResponse extends \Google\Collection
{
protected $collection_key = 'meshRouteViews';
protected $meshRouteViewsType = MeshRouteView::class;
protected $meshRouteViewsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param MeshRouteView[]
*/
public function setMeshRouteViews($meshRouteViews)
{
$this->meshRouteViews = $meshRouteViews;
}
/**
* @return MeshRouteView[]
*/
public function getMeshRouteViews()
{
return $this->meshRouteViews;
}
/**
* @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(ListMeshRouteViewsResponse::class, 'Google_Service_NetworkServices_ListMeshRouteViewsResponse');
@@ -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\NetworkServices;
class ListMeshesResponse extends \Google\Collection
{
protected $collection_key = 'meshes';
protected $meshesType = Mesh::class;
protected $meshesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Mesh[]
*/
public function setMeshes($meshes)
{
$this->meshes = $meshes;
}
/**
* @return Mesh[]
*/
public function getMeshes()
{
return $this->meshes;
}
/**
* @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(ListMeshesResponse::class, 'Google_Service_NetworkServices_ListMeshesResponse');
@@ -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\NetworkServices;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Operation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_NetworkServices_ListOperationsResponse');
@@ -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\NetworkServices;
class ListServiceBindingsResponse extends \Google\Collection
{
protected $collection_key = 'serviceBindings';
/**
* @var string
*/
public $nextPageToken;
protected $serviceBindingsType = ServiceBinding::class;
protected $serviceBindingsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param ServiceBinding[]
*/
public function setServiceBindings($serviceBindings)
{
$this->serviceBindings = $serviceBindings;
}
/**
* @return ServiceBinding[]
*/
public function getServiceBindings()
{
return $this->serviceBindings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListServiceBindingsResponse::class, 'Google_Service_NetworkServices_ListServiceBindingsResponse');
@@ -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\NetworkServices;
class ListServiceLbPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'serviceLbPolicies';
/**
* @var string
*/
public $nextPageToken;
protected $serviceLbPoliciesType = ServiceLbPolicy::class;
protected $serviceLbPoliciesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param ServiceLbPolicy[]
*/
public function setServiceLbPolicies($serviceLbPolicies)
{
$this->serviceLbPolicies = $serviceLbPolicies;
}
/**
* @return ServiceLbPolicy[]
*/
public function getServiceLbPolicies()
{
return $this->serviceLbPolicies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListServiceLbPoliciesResponse::class, 'Google_Service_NetworkServices_ListServiceLbPoliciesResponse');
@@ -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\NetworkServices;
class ListTcpRoutesResponse extends \Google\Collection
{
protected $collection_key = 'tcpRoutes';
/**
* @var string
*/
public $nextPageToken;
protected $tcpRoutesType = TcpRoute::class;
protected $tcpRoutesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param TcpRoute[]
*/
public function setTcpRoutes($tcpRoutes)
{
$this->tcpRoutes = $tcpRoutes;
}
/**
* @return TcpRoute[]
*/
public function getTcpRoutes()
{
return $this->tcpRoutes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTcpRoutesResponse::class, 'Google_Service_NetworkServices_ListTcpRoutesResponse');
@@ -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\NetworkServices;
class ListTlsRoutesResponse extends \Google\Collection
{
protected $collection_key = 'tlsRoutes';
/**
* @var string
*/
public $nextPageToken;
protected $tlsRoutesType = TlsRoute::class;
protected $tlsRoutesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param TlsRoute[]
*/
public function setTlsRoutes($tlsRoutes)
{
$this->tlsRoutes = $tlsRoutes;
}
/**
* @return TlsRoute[]
*/
public function getTlsRoutes()
{
return $this->tlsRoutes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTlsRoutesResponse::class, 'Google_Service_NetworkServices_ListTlsRoutesResponse');
@@ -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\NetworkServices;
class ListWasmPluginVersionsResponse extends \Google\Collection
{
protected $collection_key = 'wasmPluginVersions';
/**
* @var string
*/
public $nextPageToken;
protected $wasmPluginVersionsType = WasmPluginVersion::class;
protected $wasmPluginVersionsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param WasmPluginVersion[]
*/
public function setWasmPluginVersions($wasmPluginVersions)
{
$this->wasmPluginVersions = $wasmPluginVersions;
}
/**
* @return WasmPluginVersion[]
*/
public function getWasmPluginVersions()
{
return $this->wasmPluginVersions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListWasmPluginVersionsResponse::class, 'Google_Service_NetworkServices_ListWasmPluginVersionsResponse');
@@ -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\NetworkServices;
class ListWasmPluginsResponse extends \Google\Collection
{
protected $collection_key = 'wasmPlugins';
/**
* @var string
*/
public $nextPageToken;
protected $wasmPluginsType = WasmPlugin::class;
protected $wasmPluginsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param WasmPlugin[]
*/
public function setWasmPlugins($wasmPlugins)
{
$this->wasmPlugins = $wasmPlugins;
}
/**
* @return WasmPlugin[]
*/
public function getWasmPlugins()
{
return $this->wasmPlugins;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListWasmPluginsResponse::class, 'Google_Service_NetworkServices_ListWasmPluginsResponse');
@@ -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\NetworkServices;
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_NetworkServices_Location');
@@ -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\NetworkServices;
class LoggingConfig extends \Google\Model
{
/**
* @var string
*/
public $logSeverity;
/**
* @param string
*/
public function setLogSeverity($logSeverity)
{
$this->logSeverity = $logSeverity;
}
/**
* @return string
*/
public function getLogSeverity()
{
return $this->logSeverity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LoggingConfig::class, 'Google_Service_NetworkServices_LoggingConfig');
@@ -0,0 +1,170 @@
<?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\NetworkServices;
class Mesh extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $envoyHeaders;
/**
* @var int
*/
public $interceptionPort;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $selfLink;
/**
* @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 setEnvoyHeaders($envoyHeaders)
{
$this->envoyHeaders = $envoyHeaders;
}
/**
* @return string
*/
public function getEnvoyHeaders()
{
return $this->envoyHeaders;
}
/**
* @param int
*/
public function setInterceptionPort($interceptionPort)
{
$this->interceptionPort = $interceptionPort;
}
/**
* @return int
*/
public function getInterceptionPort()
{
return $this->interceptionPort;
}
/**
* @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 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;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Mesh::class, 'Google_Service_NetworkServices_Mesh');
@@ -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\NetworkServices;
class MeshRouteView extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $routeId;
/**
* @var string
*/
public $routeLocation;
/**
* @var string
*/
public $routeProjectNumber;
/**
* @var string
*/
public $routeType;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setRouteId($routeId)
{
$this->routeId = $routeId;
}
/**
* @return string
*/
public function getRouteId()
{
return $this->routeId;
}
/**
* @param string
*/
public function setRouteLocation($routeLocation)
{
$this->routeLocation = $routeLocation;
}
/**
* @return string
*/
public function getRouteLocation()
{
return $this->routeLocation;
}
/**
* @param string
*/
public function setRouteProjectNumber($routeProjectNumber)
{
$this->routeProjectNumber = $routeProjectNumber;
}
/**
* @return string
*/
public function getRouteProjectNumber()
{
return $this->routeProjectNumber;
}
/**
* @param string
*/
public function setRouteType($routeType)
{
$this->routeType = $routeType;
}
/**
* @return string
*/
public function getRouteType()
{
return $this->routeType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MeshRouteView::class, 'Google_Service_NetworkServices_MeshRouteView');
@@ -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\NetworkServices;
class NetworkservicesEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkservicesEmpty::class, 'Google_Service_NetworkServices_NetworkservicesEmpty');
@@ -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\NetworkServices;
class Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::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 Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
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(Operation::class, 'Google_Service_NetworkServices_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\NetworkServices;
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_NetworkServices_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\NetworkServices;
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_NetworkServices_Policy');
@@ -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\NetworkServices\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $projects = $networkservicesService->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_NetworkServices_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\NetworkServices\Resource;
use Google\Service\NetworkServices\ListLocationsResponse;
use Google\Service\NetworkServices\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $locations = $networkservicesService->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_NetworkServices_Resource_ProjectsLocations');
@@ -0,0 +1,173 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\AuthzExtension;
use Google\Service\NetworkServices\ListAuthzExtensionsResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "authzExtensions" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $authzExtensions = $networkservicesService->projects_locations_authzExtensions;
* </code>
*/
class ProjectsLocationsAuthzExtensions extends \Google\Service\Resource
{
/**
* Creates a new `AuthzExtension` resource in a given project and location.
* (authzExtensions.create)
*
* @param string $parent Required. The parent resource of the `AuthzExtension`
* resource. Must be in the format `projects/{project}/locations/{location}`.
* @param AuthzExtension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string authzExtensionId Required. User-provided ID of the
* `AuthzExtension` resource 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 can 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 Operation
* @throws \Google\Service\Exception
*/
public function create($parent, AuthzExtension $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified `AuthzExtension` resource. (authzExtensions.delete)
*
* @param string $name Required. The name of the `AuthzExtension` resource to
* delete. Must be in the format
* `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
* @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 can 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 Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of the specified `AuthzExtension` resource.
* (authzExtensions.get)
*
* @param string $name Required. A name of the `AuthzExtension` resource to get.
* Must be in the format
* `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
* @param array $optParams Optional parameters.
* @return AuthzExtension
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AuthzExtension::class);
}
/**
* Lists `AuthzExtension` resources in a given project and location.
* (authzExtensions.listProjectsLocationsAuthzExtensions)
*
* @param string $parent Required. The project and location from which the
* `AuthzExtension` resources are listed, specified in the following format:
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint for how to order the results.
* @opt_param int pageSize Optional. Requested page size. The server might
* return fewer items than requested. If unspecified, the server picks an
* appropriate default.
* @opt_param string pageToken Optional. A token identifying a page of results
* that the server returns.
* @return ListAuthzExtensionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsAuthzExtensions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAuthzExtensionsResponse::class);
}
/**
* Updates the parameters of the specified `AuthzExtension` resource.
* (authzExtensions.patch)
*
* @param string $name Required. Identifier. Name of the `AuthzExtension`
* resource in the following format:
* `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
* @param AuthzExtension $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 can 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).
* @opt_param string updateMask Required. Used to specify the fields to be
* overwritten in the `AuthzExtension` resource by the update. 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
* specify a mask, then all fields are overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, AuthzExtension $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsAuthzExtensions::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsAuthzExtensions');
@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "edgeCacheKeysets" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $edgeCacheKeysets = $networkservicesService->projects_locations_edgeCacheKeysets;
* </code>
*/
class ProjectsLocationsEdgeCacheKeysets extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (edgeCacheKeysets.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);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (edgeCacheKeysets.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.
* (edgeCacheKeysets.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(ProjectsLocationsEdgeCacheKeysets::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsEdgeCacheKeysets');
@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "edgeCacheOrigins" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $edgeCacheOrigins = $networkservicesService->projects_locations_edgeCacheOrigins;
* </code>
*/
class ProjectsLocationsEdgeCacheOrigins extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (edgeCacheOrigins.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);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (edgeCacheOrigins.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.
* (edgeCacheOrigins.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(ProjectsLocationsEdgeCacheOrigins::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsEdgeCacheOrigins');
@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "edgeCacheServices" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $edgeCacheServices = $networkservicesService->projects_locations_edgeCacheServices;
* </code>
*/
class ProjectsLocationsEdgeCacheServices extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (edgeCacheServices.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);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (edgeCacheServices.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.
* (edgeCacheServices.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(ProjectsLocationsEdgeCacheServices::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsEdgeCacheServices');
@@ -0,0 +1,134 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\EndpointPolicy;
use Google\Service\NetworkServices\ListEndpointPoliciesResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "endpointPolicies" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $endpointPolicies = $networkservicesService->projects_locations_endpointPolicies;
* </code>
*/
class ProjectsLocationsEndpointPolicies extends \Google\Service\Resource
{
/**
* Creates a new EndpointPolicy in a given project and location.
* (endpointPolicies.create)
*
* @param string $parent Required. The parent resource of the EndpointPolicy.
* Must be in the format `projects/locations/global`.
* @param EndpointPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string endpointPolicyId Required. Short name of the EndpointPolicy
* resource to be created. E.g. "CustomECS".
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, EndpointPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single EndpointPolicy. (endpointPolicies.delete)
*
* @param string $name Required. A name of the EndpointPolicy to delete. Must be
* in the format `projects/locations/global/endpointPolicies`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single EndpointPolicy. (endpointPolicies.get)
*
* @param string $name Required. A name of the EndpointPolicy to get. Must be in
* the format `projects/locations/global/endpointPolicies`.
* @param array $optParams Optional parameters.
* @return EndpointPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], EndpointPolicy::class);
}
/**
* Lists EndpointPolicies in a given project and location.
* (endpointPolicies.listProjectsLocationsEndpointPolicies)
*
* @param string $parent Required. The project and location from which the
* EndpointPolicies should be listed, specified in the format
* `projects/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of EndpointPolicies to return per
* call.
* @opt_param string pageToken The value returned by the last
* `ListEndpointPoliciesResponse` Indicates that this is a continuation of a
* prior `ListEndpointPolicies` call, and that the system should return the next
* page of data.
* @return ListEndpointPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsEndpointPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListEndpointPoliciesResponse::class);
}
/**
* Updates the parameters of a single EndpointPolicy. (endpointPolicies.patch)
*
* @param string $name Identifier. Name of the EndpointPolicy resource. It
* matches pattern
* `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
* @param EndpointPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the EndpointPolicy 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 Operation
* @throws \Google\Service\Exception
*/
public function patch($name, EndpointPolicy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsEndpointPolicies::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsEndpointPolicies');
@@ -0,0 +1,129 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\Gateway;
use Google\Service\NetworkServices\ListGatewaysResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "gateways" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $gateways = $networkservicesService->projects_locations_gateways;
* </code>
*/
class ProjectsLocationsGateways extends \Google\Service\Resource
{
/**
* Creates a new Gateway in a given project and location. (gateways.create)
*
* @param string $parent Required. The parent resource of the Gateway. Must be
* in the format `projects/locations`.
* @param Gateway $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string gatewayId Required. Short name of the Gateway resource to
* be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Gateway $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Gateway. (gateways.delete)
*
* @param string $name Required. A name of the Gateway to delete. Must be in the
* format `projects/locations/gateways`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single Gateway. (gateways.get)
*
* @param string $name Required. A name of the Gateway to get. Must be in the
* format `projects/locations/gateways`.
* @param array $optParams Optional parameters.
* @return Gateway
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Gateway::class);
}
/**
* Lists Gateways in a given project and location.
* (gateways.listProjectsLocationsGateways)
*
* @param string $parent Required. The project and location from which the
* Gateways should be listed, specified in the format `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of Gateways to return per call.
* @opt_param string pageToken The value returned by the last
* `ListGatewaysResponse` Indicates that this is a continuation of a prior
* `ListGateways` call, and that the system should return the next page of data.
* @return ListGatewaysResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsGateways($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGatewaysResponse::class);
}
/**
* Updates the parameters of a single Gateway. (gateways.patch)
*
* @param string $name Identifier. Name of the Gateway resource. It matches
* pattern `projects/locations/gateways/`.
* @param Gateway $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Gateway 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 Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Gateway $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsGateways::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsGateways');
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\GatewayRouteView;
use Google\Service\NetworkServices\ListGatewayRouteViewsResponse;
/**
* The "routeViews" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $routeViews = $networkservicesService->projects_locations_gateways_routeViews;
* </code>
*/
class ProjectsLocationsGatewaysRouteViews extends \Google\Service\Resource
{
/**
* Get a single RouteView of a Gateway. (routeViews.get)
*
* @param string $name Required. Name of the GatewayRouteView resource. Formats:
* projects/{project_number}/locations/{location}/gateways/{gateway_name}/routeV
* iews/{route_view_name}
* @param array $optParams Optional parameters.
* @return GatewayRouteView
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GatewayRouteView::class);
}
/**
* Lists RouteViews (routeViews.listProjectsLocationsGatewaysRouteViews)
*
* @param string $parent Required. The Gateway to which a Route is associated.
* Formats:
* projects/{project_number}/locations/{location}/gateways/{gateway_name}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of GatewayRouteViews to return per
* call.
* @opt_param string pageToken The value returned by the last
* `ListGatewayRouteViewsResponse` Indicates that this is a continuation of a
* prior `ListGatewayRouteViews` call, and that the system should return the
* next page of data.
* @return ListGatewayRouteViewsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsGatewaysRouteViews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGatewayRouteViewsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsGatewaysRouteViews::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsGatewaysRouteViews');
@@ -0,0 +1,131 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\GrpcRoute;
use Google\Service\NetworkServices\ListGrpcRoutesResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "grpcRoutes" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $grpcRoutes = $networkservicesService->projects_locations_grpcRoutes;
* </code>
*/
class ProjectsLocationsGrpcRoutes extends \Google\Service\Resource
{
/**
* Creates a new GrpcRoute in a given project and location. (grpcRoutes.create)
*
* @param string $parent Required. The parent resource of the GrpcRoute. Must be
* in the format `projects/locations/global`.
* @param GrpcRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string grpcRouteId Required. Short name of the GrpcRoute resource
* to be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, GrpcRoute $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single GrpcRoute. (grpcRoutes.delete)
*
* @param string $name Required. A name of the GrpcRoute to delete. Must be in
* the format `projects/locations/global/grpcRoutes`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single GrpcRoute. (grpcRoutes.get)
*
* @param string $name Required. A name of the GrpcRoute to get. Must be in the
* format `projects/locations/global/grpcRoutes`.
* @param array $optParams Optional parameters.
* @return GrpcRoute
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GrpcRoute::class);
}
/**
* Lists GrpcRoutes in a given project and location.
* (grpcRoutes.listProjectsLocationsGrpcRoutes)
*
* @param string $parent Required. The project and location from which the
* GrpcRoutes should be listed, specified in the format
* `projects/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of GrpcRoutes to return per call.
* @opt_param string pageToken The value returned by the last
* `ListGrpcRoutesResponse` Indicates that this is a continuation of a prior
* `ListGrpcRoutes` call, and that the system should return the next page of
* data.
* @return ListGrpcRoutesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsGrpcRoutes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGrpcRoutesResponse::class);
}
/**
* Updates the parameters of a single GrpcRoute. (grpcRoutes.patch)
*
* @param string $name Identifier. Name of the GrpcRoute resource. It matches
* pattern `projects/locations/global/grpcRoutes/`
* @param GrpcRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the GrpcRoute 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 Operation
* @throws \Google\Service\Exception
*/
public function patch($name, GrpcRoute $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsGrpcRoutes::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsGrpcRoutes');
@@ -0,0 +1,131 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\HttpRoute;
use Google\Service\NetworkServices\ListHttpRoutesResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "httpRoutes" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $httpRoutes = $networkservicesService->projects_locations_httpRoutes;
* </code>
*/
class ProjectsLocationsHttpRoutes extends \Google\Service\Resource
{
/**
* Creates a new HttpRoute in a given project and location. (httpRoutes.create)
*
* @param string $parent Required. The parent resource of the HttpRoute. Must be
* in the format `projects/locations/global`.
* @param HttpRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string httpRouteId Required. Short name of the HttpRoute resource
* to be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, HttpRoute $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single HttpRoute. (httpRoutes.delete)
*
* @param string $name Required. A name of the HttpRoute to delete. Must be in
* the format `projects/locations/global/httpRoutes`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single HttpRoute. (httpRoutes.get)
*
* @param string $name Required. A name of the HttpRoute to get. Must be in the
* format `projects/locations/global/httpRoutes`.
* @param array $optParams Optional parameters.
* @return HttpRoute
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], HttpRoute::class);
}
/**
* Lists HttpRoute in a given project and location.
* (httpRoutes.listProjectsLocationsHttpRoutes)
*
* @param string $parent Required. The project and location from which the
* HttpRoutes should be listed, specified in the format
* `projects/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of HttpRoutes to return per call.
* @opt_param string pageToken The value returned by the last
* `ListHttpRoutesResponse` Indicates that this is a continuation of a prior
* `ListHttpRoutes` call, and that the system should return the next page of
* data.
* @return ListHttpRoutesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsHttpRoutes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListHttpRoutesResponse::class);
}
/**
* Updates the parameters of a single HttpRoute. (httpRoutes.patch)
*
* @param string $name Identifier. Name of the HttpRoute resource. It matches
* pattern `projects/locations/global/httpRoutes/http_route_name>`.
* @param HttpRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the HttpRoute 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 Operation
* @throws \Google\Service\Exception
*/
public function patch($name, HttpRoute $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsHttpRoutes::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsHttpRoutes');
@@ -0,0 +1,173 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\LbRouteExtension;
use Google\Service\NetworkServices\ListLbRouteExtensionsResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "lbRouteExtensions" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $lbRouteExtensions = $networkservicesService->projects_locations_lbRouteExtensions;
* </code>
*/
class ProjectsLocationsLbRouteExtensions extends \Google\Service\Resource
{
/**
* Creates a new `LbRouteExtension` resource in a given project and location.
* (lbRouteExtensions.create)
*
* @param string $parent Required. The parent resource of the `LbRouteExtension`
* resource. Must be in the format `projects/{project}/locations/{location}`.
* @param LbRouteExtension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string lbRouteExtensionId Required. User-provided ID of the
* `LbRouteExtension` resource 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 can 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 Operation
* @throws \Google\Service\Exception
*/
public function create($parent, LbRouteExtension $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified `LbRouteExtension` resource. (lbRouteExtensions.delete)
*
* @param string $name Required. The name of the `LbRouteExtension` resource to
* delete. Must be in the format `projects/{project}/locations/{location}/lbRout
* eExtensions/{lb_route_extension}`.
* @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 can 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 Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of the specified `LbRouteExtension` resource.
* (lbRouteExtensions.get)
*
* @param string $name Required. A name of the `LbRouteExtension` resource to
* get. Must be in the format `projects/{project}/locations/{location}/lbRouteEx
* tensions/{lb_route_extension}`.
* @param array $optParams Optional parameters.
* @return LbRouteExtension
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LbRouteExtension::class);
}
/**
* Lists `LbRouteExtension` resources in a given project and location.
* (lbRouteExtensions.listProjectsLocationsLbRouteExtensions)
*
* @param string $parent Required. The project and location from which the
* `LbRouteExtension` resources are listed, specified in the following format:
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint for how to order the results.
* @opt_param int pageSize Optional. Requested page size. The server might
* return fewer items than requested. If unspecified, the server picks an
* appropriate default.
* @opt_param string pageToken Optional. A token identifying a page of results
* that the server returns.
* @return ListLbRouteExtensionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsLbRouteExtensions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLbRouteExtensionsResponse::class);
}
/**
* Updates the parameters of the specified `LbRouteExtension` resource.
* (lbRouteExtensions.patch)
*
* @param string $name Required. Identifier. Name of the `LbRouteExtension`
* resource in the following format: `projects/{project}/locations/{location}/lb
* RouteExtensions/{lb_route_extension}`.
* @param LbRouteExtension $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 can 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).
* @opt_param string updateMask Optional. Used to specify the fields to be
* overwritten in the `LbRouteExtension` resource by the update. 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
* specify a mask, then all fields are overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, LbRouteExtension $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsLbRouteExtensions::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsLbRouteExtensions');
@@ -0,0 +1,175 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\LbTrafficExtension;
use Google\Service\NetworkServices\ListLbTrafficExtensionsResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "lbTrafficExtensions" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $lbTrafficExtensions = $networkservicesService->projects_locations_lbTrafficExtensions;
* </code>
*/
class ProjectsLocationsLbTrafficExtensions extends \Google\Service\Resource
{
/**
* Creates a new `LbTrafficExtension` resource in a given project and location.
* (lbTrafficExtensions.create)
*
* @param string $parent Required. The parent resource of the
* `LbTrafficExtension` resource. Must be in the format
* `projects/{project}/locations/{location}`.
* @param LbTrafficExtension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string lbTrafficExtensionId Required. User-provided ID of the
* `LbTrafficExtension` resource 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 can 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 Operation
* @throws \Google\Service\Exception
*/
public function create($parent, LbTrafficExtension $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified `LbTrafficExtension` resource.
* (lbTrafficExtensions.delete)
*
* @param string $name Required. The name of the `LbTrafficExtension` resource
* to delete. Must be in the format `projects/{project}/locations/{location}/lbT
* rafficExtensions/{lb_traffic_extension}`.
* @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 can 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 Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of the specified `LbTrafficExtension` resource.
* (lbTrafficExtensions.get)
*
* @param string $name Required. A name of the `LbTrafficExtension` resource to
* get. Must be in the format `projects/{project}/locations/{location}/lbTraffic
* Extensions/{lb_traffic_extension}`.
* @param array $optParams Optional parameters.
* @return LbTrafficExtension
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LbTrafficExtension::class);
}
/**
* Lists `LbTrafficExtension` resources in a given project and location.
* (lbTrafficExtensions.listProjectsLocationsLbTrafficExtensions)
*
* @param string $parent Required. The project and location from which the
* `LbTrafficExtension` resources are listed, specified in the following format:
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint for how to order the results.
* @opt_param int pageSize Optional. Requested page size. The server might
* return fewer items than requested. If unspecified, the server picks an
* appropriate default.
* @opt_param string pageToken Optional. A token identifying a page of results
* that the server returns.
* @return ListLbTrafficExtensionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsLbTrafficExtensions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLbTrafficExtensionsResponse::class);
}
/**
* Updates the parameters of the specified `LbTrafficExtension` resource.
* (lbTrafficExtensions.patch)
*
* @param string $name Required. Identifier. Name of the `LbTrafficExtension`
* resource in the following format: `projects/{project}/locations/{location}/lb
* TrafficExtensions/{lb_traffic_extension}`.
* @param LbTrafficExtension $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 can 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).
* @opt_param string updateMask Optional. Used to specify the fields to be
* overwritten in the `LbTrafficExtension` resource by the update. 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
* specify a mask, then all fields are overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, LbTrafficExtension $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsLbTrafficExtensions::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsLbTrafficExtensions');
@@ -0,0 +1,129 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\ListMeshesResponse;
use Google\Service\NetworkServices\Mesh;
use Google\Service\NetworkServices\Operation;
/**
* The "meshes" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $meshes = $networkservicesService->projects_locations_meshes;
* </code>
*/
class ProjectsLocationsMeshes extends \Google\Service\Resource
{
/**
* Creates a new Mesh in a given project and location. (meshes.create)
*
* @param string $parent Required. The parent resource of the Mesh. Must be in
* the format `projects/locations/global`.
* @param Mesh $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string meshId Required. Short name of the Mesh resource to be
* created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Mesh $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Mesh. (meshes.delete)
*
* @param string $name Required. A name of the Mesh to delete. Must be in the
* format `projects/locations/global/meshes`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single Mesh. (meshes.get)
*
* @param string $name Required. A name of the Mesh to get. Must be in the
* format `projects/locations/global/meshes`.
* @param array $optParams Optional parameters.
* @return Mesh
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Mesh::class);
}
/**
* Lists Meshes in a given project and location.
* (meshes.listProjectsLocationsMeshes)
*
* @param string $parent Required. The project and location from which the
* Meshes should be listed, specified in the format `projects/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of Meshes to return per call.
* @opt_param string pageToken The value returned by the last
* `ListMeshesResponse` Indicates that this is a continuation of a prior
* `ListMeshes` call, and that the system should return the next page of data.
* @return ListMeshesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsMeshes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListMeshesResponse::class);
}
/**
* Updates the parameters of a single Mesh. (meshes.patch)
*
* @param string $name Identifier. Name of the Mesh resource. It matches pattern
* `projects/locations/global/meshes/`.
* @param Mesh $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Mesh 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 Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Mesh $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsMeshes::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMeshes');
@@ -0,0 +1,73 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\ListMeshRouteViewsResponse;
use Google\Service\NetworkServices\MeshRouteView;
/**
* The "routeViews" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $routeViews = $networkservicesService->projects_locations_meshes_routeViews;
* </code>
*/
class ProjectsLocationsMeshesRouteViews extends \Google\Service\Resource
{
/**
* Get a single RouteView of a Mesh. (routeViews.get)
*
* @param string $name Required. Name of the MeshRouteView resource. Format: pro
* jects/{project_number}/locations/{location}/meshes/{mesh_name}/routeViews/{ro
* ute_view_name}
* @param array $optParams Optional parameters.
* @return MeshRouteView
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], MeshRouteView::class);
}
/**
* Lists RouteViews (routeViews.listProjectsLocationsMeshesRouteViews)
*
* @param string $parent Required. The Mesh to which a Route is associated.
* Format: projects/{project_number}/locations/{location}/meshes/{mesh_name}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of MeshRouteViews to return per call.
* @opt_param string pageToken The value returned by the last
* `ListMeshRouteViewsResponse` Indicates that this is a continuation of a prior
* `ListMeshRouteViews` call, and that the system should return the next page of
* data.
* @return ListMeshRouteViewsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsMeshesRouteViews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListMeshRouteViewsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsMeshesRouteViews::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMeshesRouteViews');
@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "multicastConsumerAssociations" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $multicastConsumerAssociations = $networkservicesService->projects_locations_multicastConsumerAssociations;
* </code>
*/
class ProjectsLocationsMulticastConsumerAssociations extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (multicastConsumerAssociations.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
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (multicastConsumerAssociations.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
*/
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.
* (multicastConsumerAssociations.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
*/
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(ProjectsLocationsMulticastConsumerAssociations::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMulticastConsumerAssociations');
@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "multicastDomainActivations" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $multicastDomainActivations = $networkservicesService->projects_locations_multicastDomainActivations;
* </code>
*/
class ProjectsLocationsMulticastDomainActivations extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (multicastDomainActivations.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
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (multicastDomainActivations.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
*/
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.
* (multicastDomainActivations.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
*/
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(ProjectsLocationsMulticastDomainActivations::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMulticastDomainActivations');
@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "multicastDomains" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $multicastDomains = $networkservicesService->projects_locations_multicastDomains;
* </code>
*/
class ProjectsLocationsMulticastDomains extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (multicastDomains.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
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (multicastDomains.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
*/
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.
* (multicastDomains.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
*/
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(ProjectsLocationsMulticastDomains::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMulticastDomains');
@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "multicastGroupDefinitions" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $multicastGroupDefinitions = $networkservicesService->projects_locations_multicastGroupDefinitions;
* </code>
*/
class ProjectsLocationsMulticastGroupDefinitions extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (multicastGroupDefinitions.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
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (multicastGroupDefinitions.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
*/
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.
* (multicastGroupDefinitions.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
*/
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(ProjectsLocationsMulticastGroupDefinitions::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMulticastGroupDefinitions');
@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "multicastGroups" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $multicastGroups = $networkservicesService->projects_locations_multicastGroups;
* </code>
*/
class ProjectsLocationsMulticastGroups extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (multicastGroups.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
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (multicastGroups.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
*/
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.
* (multicastGroups.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
*/
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(ProjectsLocationsMulticastGroups::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMulticastGroups');
@@ -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\NetworkServices\Resource;
use Google\Service\NetworkServices\CancelOperationRequest;
use Google\Service\NetworkServices\ListOperationsResponse;
use Google\Service\NetworkServices\NetworkservicesEmpty;
use Google\Service\NetworkServices\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $operations = $networkservicesService->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 CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return NetworkservicesEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], NetworkservicesEmpty::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 NetworkservicesEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], NetworkservicesEmpty::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 Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::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 ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsOperations');
@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\ListServiceBindingsResponse;
use Google\Service\NetworkServices\Operation;
use Google\Service\NetworkServices\ServiceBinding;
/**
* The "serviceBindings" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $serviceBindings = $networkservicesService->projects_locations_serviceBindings;
* </code>
*/
class ProjectsLocationsServiceBindings extends \Google\Service\Resource
{
/**
* Creates a new ServiceBinding in a given project and location.
* (serviceBindings.create)
*
* @param string $parent Required. The parent resource of the ServiceBinding.
* Must be in the format `projects/locations/global`.
* @param ServiceBinding $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string serviceBindingId Required. Short name of the ServiceBinding
* resource to be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, ServiceBinding $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single ServiceBinding. (serviceBindings.delete)
*
* @param string $name Required. A name of the ServiceBinding to delete. Must be
* in the format `projects/locations/global/serviceBindings`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single ServiceBinding. (serviceBindings.get)
*
* @param string $name Required. A name of the ServiceBinding to get. Must be in
* the format `projects/locations/global/serviceBindings`.
* @param array $optParams Optional parameters.
* @return ServiceBinding
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServiceBinding::class);
}
/**
* Lists ServiceBinding in a given project and location.
* (serviceBindings.listProjectsLocationsServiceBindings)
*
* @param string $parent Required. The project and location from which the
* ServiceBindings should be listed, specified in the format
* `projects/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of ServiceBindings to return per call.
* @opt_param string pageToken The value returned by the last
* `ListServiceBindingsResponse` Indicates that this is a continuation of a
* prior `ListRouters` call, and that the system should return the next page of
* data.
* @return ListServiceBindingsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsServiceBindings($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServiceBindingsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsServiceBindings::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsServiceBindings');
@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\ListServiceLbPoliciesResponse;
use Google\Service\NetworkServices\Operation;
use Google\Service\NetworkServices\ServiceLbPolicy;
/**
* The "serviceLbPolicies" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $serviceLbPolicies = $networkservicesService->projects_locations_serviceLbPolicies;
* </code>
*/
class ProjectsLocationsServiceLbPolicies extends \Google\Service\Resource
{
/**
* Creates a new ServiceLbPolicy in a given project and location.
* (serviceLbPolicies.create)
*
* @param string $parent Required. The parent resource of the ServiceLbPolicy.
* Must be in the format `projects/{project}/locations/{location}`.
* @param ServiceLbPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string serviceLbPolicyId Required. Short name of the
* ServiceLbPolicy resource to be created. E.g. for resource name `projects/{pro
* ject}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`. the
* id is value of {service_lb_policy_name}
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, ServiceLbPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single ServiceLbPolicy. (serviceLbPolicies.delete)
*
* @param string $name Required. A name of the ServiceLbPolicy to delete. Must
* be in the format `projects/{project}/locations/{location}/serviceLbPolicies`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single ServiceLbPolicy. (serviceLbPolicies.get)
*
* @param string $name Required. A name of the ServiceLbPolicy to get. Must be
* in the format `projects/{project}/locations/{location}/serviceLbPolicies`.
* @param array $optParams Optional parameters.
* @return ServiceLbPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServiceLbPolicy::class);
}
/**
* Lists ServiceLbPolicies in a given project and location.
* (serviceLbPolicies.listProjectsLocationsServiceLbPolicies)
*
* @param string $parent Required. The project and location from which the
* ServiceLbPolicies should be listed, specified in the format
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of ServiceLbPolicies to return per
* call.
* @opt_param string pageToken The value returned by the last
* `ListServiceLbPoliciesResponse` Indicates that this is a continuation of a
* prior `ListRouters` call, and that the system should return the next page of
* data.
* @return ListServiceLbPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsServiceLbPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServiceLbPoliciesResponse::class);
}
/**
* Updates the parameters of a single ServiceLbPolicy. (serviceLbPolicies.patch)
*
* @param string $name Identifier. Name of the ServiceLbPolicy resource. It
* matches pattern `projects/{project}/locations/{location}/serviceLbPolicies/{s
* ervice_lb_policy_name}`.
* @param ServiceLbPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the ServiceLbPolicy 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 Operation
* @throws \Google\Service\Exception
*/
public function patch($name, ServiceLbPolicy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsServiceLbPolicies::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsServiceLbPolicies');
@@ -0,0 +1,131 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\ListTcpRoutesResponse;
use Google\Service\NetworkServices\Operation;
use Google\Service\NetworkServices\TcpRoute;
/**
* The "tcpRoutes" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $tcpRoutes = $networkservicesService->projects_locations_tcpRoutes;
* </code>
*/
class ProjectsLocationsTcpRoutes extends \Google\Service\Resource
{
/**
* Creates a new TcpRoute in a given project and location. (tcpRoutes.create)
*
* @param string $parent Required. The parent resource of the TcpRoute. Must be
* in the format `projects/locations/global`.
* @param TcpRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string tcpRouteId Required. Short name of the TcpRoute resource to
* be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, TcpRoute $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single TcpRoute. (tcpRoutes.delete)
*
* @param string $name Required. A name of the TcpRoute to delete. Must be in
* the format `projects/locations/global/tcpRoutes`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single TcpRoute. (tcpRoutes.get)
*
* @param string $name Required. A name of the TcpRoute to get. Must be in the
* format `projects/locations/global/tcpRoutes`.
* @param array $optParams Optional parameters.
* @return TcpRoute
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TcpRoute::class);
}
/**
* Lists TcpRoute in a given project and location.
* (tcpRoutes.listProjectsLocationsTcpRoutes)
*
* @param string $parent Required. The project and location from which the
* TcpRoutes should be listed, specified in the format
* `projects/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of TcpRoutes to return per call.
* @opt_param string pageToken The value returned by the last
* `ListTcpRoutesResponse` Indicates that this is a continuation of a prior
* `ListTcpRoutes` call, and that the system should return the next page of
* data.
* @return ListTcpRoutesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsTcpRoutes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTcpRoutesResponse::class);
}
/**
* Updates the parameters of a single TcpRoute. (tcpRoutes.patch)
*
* @param string $name Identifier. Name of the TcpRoute resource. It matches
* pattern `projects/locations/global/tcpRoutes/tcp_route_name>`.
* @param TcpRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the TcpRoute 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 Operation
* @throws \Google\Service\Exception
*/
public function patch($name, TcpRoute $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsTcpRoutes::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsTcpRoutes');
@@ -0,0 +1,131 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\ListTlsRoutesResponse;
use Google\Service\NetworkServices\Operation;
use Google\Service\NetworkServices\TlsRoute;
/**
* The "tlsRoutes" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $tlsRoutes = $networkservicesService->projects_locations_tlsRoutes;
* </code>
*/
class ProjectsLocationsTlsRoutes extends \Google\Service\Resource
{
/**
* Creates a new TlsRoute in a given project and location. (tlsRoutes.create)
*
* @param string $parent Required. The parent resource of the TlsRoute. Must be
* in the format `projects/locations/global`.
* @param TlsRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string tlsRouteId Required. Short name of the TlsRoute resource to
* be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, TlsRoute $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single TlsRoute. (tlsRoutes.delete)
*
* @param string $name Required. A name of the TlsRoute to delete. Must be in
* the format `projects/locations/global/tlsRoutes`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single TlsRoute. (tlsRoutes.get)
*
* @param string $name Required. A name of the TlsRoute to get. Must be in the
* format `projects/locations/global/tlsRoutes`.
* @param array $optParams Optional parameters.
* @return TlsRoute
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TlsRoute::class);
}
/**
* Lists TlsRoute in a given project and location.
* (tlsRoutes.listProjectsLocationsTlsRoutes)
*
* @param string $parent Required. The project and location from which the
* TlsRoutes should be listed, specified in the format
* `projects/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of TlsRoutes to return per call.
* @opt_param string pageToken The value returned by the last
* `ListTlsRoutesResponse` Indicates that this is a continuation of a prior
* `ListTlsRoutes` call, and that the system should return the next page of
* data.
* @return ListTlsRoutesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsTlsRoutes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTlsRoutesResponse::class);
}
/**
* Updates the parameters of a single TlsRoute. (tlsRoutes.patch)
*
* @param string $name Identifier. Name of the TlsRoute resource. It matches
* pattern `projects/locations/global/tlsRoutes/tls_route_name>`.
* @param TlsRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the TlsRoute 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 Operation
* @throws \Google\Service\Exception
*/
public function patch($name, TlsRoute $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsTlsRoutes::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsTlsRoutes');
@@ -0,0 +1,144 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\ListWasmPluginsResponse;
use Google\Service\NetworkServices\Operation;
use Google\Service\NetworkServices\WasmPlugin;
/**
* The "wasmPlugins" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $wasmPlugins = $networkservicesService->projects_locations_wasmPlugins;
* </code>
*/
class ProjectsLocationsWasmPlugins extends \Google\Service\Resource
{
/**
* Creates a new `WasmPlugin` resource in a given project and location.
* (wasmPlugins.create)
*
* @param string $parent Required. The parent resource of the `WasmPlugin`
* resource. Must be in the format `projects/{project}/locations/global`.
* @param WasmPlugin $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string wasmPluginId Required. User-provided ID of the `WasmPlugin`
* resource to be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, WasmPlugin $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified `WasmPlugin` resource. (wasmPlugins.delete)
*
* @param string $name Required. A name of the `WasmPlugin` resource to delete.
* Must be in the format
* `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of the specified `WasmPlugin` resource. (wasmPlugins.get)
*
* @param string $name Required. A name of the `WasmPlugin` resource to get.
* Must be in the format
* `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
* @param array $optParams Optional parameters.
*
* @opt_param string view Determines how much data must be returned in the
* response. See [AIP-157](https://google.aip.dev/157).
* @return WasmPlugin
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WasmPlugin::class);
}
/**
* Lists `WasmPlugin` resources in a given project and location.
* (wasmPlugins.listProjectsLocationsWasmPlugins)
*
* @param string $parent Required. The project and location from which the
* `WasmPlugin` resources are listed, specified in the following format:
* `projects/{project}/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of `WasmPlugin` resources to return
* per call. If not specified, at most 50 `WasmPlugin` resources are returned.
* The maximum value is 1000; values above 1000 are coerced to 1000.
* @opt_param string pageToken The value returned by the last
* `ListWasmPluginsResponse` call. Indicates that this is a continuation of a
* prior `ListWasmPlugins` call, and that the next page of data is to be
* returned.
* @return ListWasmPluginsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsWasmPlugins($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListWasmPluginsResponse::class);
}
/**
* Updates the parameters of the specified `WasmPlugin` resource.
* (wasmPlugins.patch)
*
* @param string $name Identifier. Name of the `WasmPlugin` resource in the
* following format:
* `projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}`.
* @param WasmPlugin $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Used to specify the fields to be
* overwritten in the `WasmPlugin` resource by the update. The fields specified
* in the `update_mask` field are relative to the resource, not the full
* request. An omitted `update_mask` field is treated as an implied
* `update_mask` field equivalent to all fields that are populated (that have a
* non-empty value). The `update_mask` field supports a special value `*`, which
* means that each field in the given `WasmPlugin` resource (including the empty
* ones) replaces the current value.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, WasmPlugin $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsWasmPlugins::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsWasmPlugins');

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