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

View File

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

View File

@@ -0,0 +1,207 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class AddressGroup extends \Google\Collection
{
protected $collection_key = 'purpose';
/**
* @var int
*/
public $capacity;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string[]
*/
public $items;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string[]
*/
public $purpose;
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $updateTime;
/**
* @param int
*/
public function setCapacity($capacity)
{
$this->capacity = $capacity;
}
/**
* @return int
*/
public function getCapacity()
{
return $this->capacity;
}
/**
* @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 setItems($items)
{
$this->items = $items;
}
/**
* @return string[]
*/
public function getItems()
{
return $this->items;
}
/**
* @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 setPurpose($purpose)
{
$this->purpose = $purpose;
}
/**
* @return string[]
*/
public function getPurpose()
{
return $this->purpose;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @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(AddressGroup::class, 'Google_Service_NetworkSecurity_AddressGroup');

View File

@@ -0,0 +1,151 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class AuthorizationPolicy extends \Google\Collection
{
protected $collection_key = 'rules';
/**
* @var string
*/
public $action;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
protected $rulesType = Rule::class;
protected $rulesDataType = 'array';
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param Rule[]
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return Rule[]
*/
public function getRules()
{
return $this->rules;
}
/**
* @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(AuthorizationPolicy::class, 'Google_Service_NetworkSecurity_AuthorizationPolicy');

View File

@@ -0,0 +1,183 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class AuthzPolicy extends \Google\Collection
{
protected $collection_key = 'httpRules';
/**
* @var string
*/
public $action;
/**
* @var string
*/
public $createTime;
protected $customProviderType = AuthzPolicyCustomProvider::class;
protected $customProviderDataType = '';
/**
* @var string
*/
public $description;
protected $httpRulesType = AuthzPolicyAuthzRule::class;
protected $httpRulesDataType = 'array';
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
protected $targetType = AuthzPolicyTarget::class;
protected $targetDataType = '';
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param AuthzPolicyCustomProvider
*/
public function setCustomProvider(AuthzPolicyCustomProvider $customProvider)
{
$this->customProvider = $customProvider;
}
/**
* @return AuthzPolicyCustomProvider
*/
public function getCustomProvider()
{
return $this->customProvider;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param AuthzPolicyAuthzRule[]
*/
public function setHttpRules($httpRules)
{
$this->httpRules = $httpRules;
}
/**
* @return AuthzPolicyAuthzRule[]
*/
public function getHttpRules()
{
return $this->httpRules;
}
/**
* @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 AuthzPolicyTarget
*/
public function setTarget(AuthzPolicyTarget $target)
{
$this->target = $target;
}
/**
* @return AuthzPolicyTarget
*/
public function getTarget()
{
return $this->target;
}
/**
* @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(AuthzPolicy::class, 'Google_Service_NetworkSecurity_AuthzPolicy');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class AuthzPolicyAuthzRule extends \Google\Model
{
protected $fromType = AuthzPolicyAuthzRuleFrom::class;
protected $fromDataType = '';
protected $toType = AuthzPolicyAuthzRuleTo::class;
protected $toDataType = '';
/**
* @var string
*/
public $when;
/**
* @param AuthzPolicyAuthzRuleFrom
*/
public function setFrom(AuthzPolicyAuthzRuleFrom $from)
{
$this->from = $from;
}
/**
* @return AuthzPolicyAuthzRuleFrom
*/
public function getFrom()
{
return $this->from;
}
/**
* @param AuthzPolicyAuthzRuleTo
*/
public function setTo(AuthzPolicyAuthzRuleTo $to)
{
$this->to = $to;
}
/**
* @return AuthzPolicyAuthzRuleTo
*/
public function getTo()
{
return $this->to;
}
/**
* @param string
*/
public function setWhen($when)
{
$this->when = $when;
}
/**
* @return string
*/
public function getWhen()
{
return $this->when;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthzPolicyAuthzRule::class, 'Google_Service_NetworkSecurity_AuthzPolicyAuthzRule');

View File

@@ -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\NetworkSecurity;
class AuthzPolicyAuthzRuleFrom extends \Google\Collection
{
protected $collection_key = 'sources';
protected $notSourcesType = AuthzPolicyAuthzRuleFromRequestSource::class;
protected $notSourcesDataType = 'array';
protected $sourcesType = AuthzPolicyAuthzRuleFromRequestSource::class;
protected $sourcesDataType = 'array';
/**
* @param AuthzPolicyAuthzRuleFromRequestSource[]
*/
public function setNotSources($notSources)
{
$this->notSources = $notSources;
}
/**
* @return AuthzPolicyAuthzRuleFromRequestSource[]
*/
public function getNotSources()
{
return $this->notSources;
}
/**
* @param AuthzPolicyAuthzRuleFromRequestSource[]
*/
public function setSources($sources)
{
$this->sources = $sources;
}
/**
* @return AuthzPolicyAuthzRuleFromRequestSource[]
*/
public function getSources()
{
return $this->sources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthzPolicyAuthzRuleFrom::class, 'Google_Service_NetworkSecurity_AuthzPolicyAuthzRuleFrom');

View File

@@ -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\NetworkSecurity;
class AuthzPolicyAuthzRuleFromRequestSource extends \Google\Collection
{
protected $collection_key = 'resources';
protected $principalsType = AuthzPolicyAuthzRuleStringMatch::class;
protected $principalsDataType = 'array';
protected $resourcesType = AuthzPolicyAuthzRuleRequestResource::class;
protected $resourcesDataType = 'array';
/**
* @param AuthzPolicyAuthzRuleStringMatch[]
*/
public function setPrincipals($principals)
{
$this->principals = $principals;
}
/**
* @return AuthzPolicyAuthzRuleStringMatch[]
*/
public function getPrincipals()
{
return $this->principals;
}
/**
* @param AuthzPolicyAuthzRuleRequestResource[]
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return AuthzPolicyAuthzRuleRequestResource[]
*/
public function getResources()
{
return $this->resources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthzPolicyAuthzRuleFromRequestSource::class, 'Google_Service_NetworkSecurity_AuthzPolicyAuthzRuleFromRequestSource');

View File

@@ -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\NetworkSecurity;
class AuthzPolicyAuthzRuleHeaderMatch extends \Google\Model
{
/**
* @var string
*/
public $name;
protected $valueType = AuthzPolicyAuthzRuleStringMatch::class;
protected $valueDataType = '';
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param AuthzPolicyAuthzRuleStringMatch
*/
public function setValue(AuthzPolicyAuthzRuleStringMatch $value)
{
$this->value = $value;
}
/**
* @return AuthzPolicyAuthzRuleStringMatch
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthzPolicyAuthzRuleHeaderMatch::class, 'Google_Service_NetworkSecurity_AuthzPolicyAuthzRuleHeaderMatch');

View File

@@ -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\NetworkSecurity;
class AuthzPolicyAuthzRuleRequestResource extends \Google\Model
{
protected $iamServiceAccountType = AuthzPolicyAuthzRuleStringMatch::class;
protected $iamServiceAccountDataType = '';
protected $tagValueIdSetType = AuthzPolicyAuthzRuleRequestResourceTagValueIdSet::class;
protected $tagValueIdSetDataType = '';
/**
* @param AuthzPolicyAuthzRuleStringMatch
*/
public function setIamServiceAccount(AuthzPolicyAuthzRuleStringMatch $iamServiceAccount)
{
$this->iamServiceAccount = $iamServiceAccount;
}
/**
* @return AuthzPolicyAuthzRuleStringMatch
*/
public function getIamServiceAccount()
{
return $this->iamServiceAccount;
}
/**
* @param AuthzPolicyAuthzRuleRequestResourceTagValueIdSet
*/
public function setTagValueIdSet(AuthzPolicyAuthzRuleRequestResourceTagValueIdSet $tagValueIdSet)
{
$this->tagValueIdSet = $tagValueIdSet;
}
/**
* @return AuthzPolicyAuthzRuleRequestResourceTagValueIdSet
*/
public function getTagValueIdSet()
{
return $this->tagValueIdSet;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthzPolicyAuthzRuleRequestResource::class, 'Google_Service_NetworkSecurity_AuthzPolicyAuthzRuleRequestResource');

View File

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

View File

@@ -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\NetworkSecurity;
class AuthzPolicyAuthzRuleStringMatch extends \Google\Model
{
/**
* @var string
*/
public $contains;
/**
* @var string
*/
public $exact;
/**
* @var bool
*/
public $ignoreCase;
/**
* @var string
*/
public $prefix;
/**
* @var string
*/
public $suffix;
/**
* @param string
*/
public function setContains($contains)
{
$this->contains = $contains;
}
/**
* @return string
*/
public function getContains()
{
return $this->contains;
}
/**
* @param string
*/
public function setExact($exact)
{
$this->exact = $exact;
}
/**
* @return string
*/
public function getExact()
{
return $this->exact;
}
/**
* @param bool
*/
public function setIgnoreCase($ignoreCase)
{
$this->ignoreCase = $ignoreCase;
}
/**
* @return bool
*/
public function getIgnoreCase()
{
return $this->ignoreCase;
}
/**
* @param string
*/
public function setPrefix($prefix)
{
$this->prefix = $prefix;
}
/**
* @return string
*/
public function getPrefix()
{
return $this->prefix;
}
/**
* @param string
*/
public function setSuffix($suffix)
{
$this->suffix = $suffix;
}
/**
* @return string
*/
public function getSuffix()
{
return $this->suffix;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthzPolicyAuthzRuleStringMatch::class, 'Google_Service_NetworkSecurity_AuthzPolicyAuthzRuleStringMatch');

View File

@@ -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\NetworkSecurity;
class AuthzPolicyAuthzRuleTo extends \Google\Collection
{
protected $collection_key = 'operations';
protected $notOperationsType = AuthzPolicyAuthzRuleToRequestOperation::class;
protected $notOperationsDataType = 'array';
protected $operationsType = AuthzPolicyAuthzRuleToRequestOperation::class;
protected $operationsDataType = 'array';
/**
* @param AuthzPolicyAuthzRuleToRequestOperation[]
*/
public function setNotOperations($notOperations)
{
$this->notOperations = $notOperations;
}
/**
* @return AuthzPolicyAuthzRuleToRequestOperation[]
*/
public function getNotOperations()
{
return $this->notOperations;
}
/**
* @param AuthzPolicyAuthzRuleToRequestOperation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return AuthzPolicyAuthzRuleToRequestOperation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthzPolicyAuthzRuleTo::class, 'Google_Service_NetworkSecurity_AuthzPolicyAuthzRuleTo');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class AuthzPolicyAuthzRuleToRequestOperation extends \Google\Collection
{
protected $collection_key = 'paths';
protected $headerSetType = AuthzPolicyAuthzRuleToRequestOperationHeaderSet::class;
protected $headerSetDataType = '';
protected $hostsType = AuthzPolicyAuthzRuleStringMatch::class;
protected $hostsDataType = 'array';
/**
* @var string[]
*/
public $methods;
protected $pathsType = AuthzPolicyAuthzRuleStringMatch::class;
protected $pathsDataType = 'array';
/**
* @param AuthzPolicyAuthzRuleToRequestOperationHeaderSet
*/
public function setHeaderSet(AuthzPolicyAuthzRuleToRequestOperationHeaderSet $headerSet)
{
$this->headerSet = $headerSet;
}
/**
* @return AuthzPolicyAuthzRuleToRequestOperationHeaderSet
*/
public function getHeaderSet()
{
return $this->headerSet;
}
/**
* @param AuthzPolicyAuthzRuleStringMatch[]
*/
public function setHosts($hosts)
{
$this->hosts = $hosts;
}
/**
* @return AuthzPolicyAuthzRuleStringMatch[]
*/
public function getHosts()
{
return $this->hosts;
}
/**
* @param string[]
*/
public function setMethods($methods)
{
$this->methods = $methods;
}
/**
* @return string[]
*/
public function getMethods()
{
return $this->methods;
}
/**
* @param AuthzPolicyAuthzRuleStringMatch[]
*/
public function setPaths($paths)
{
$this->paths = $paths;
}
/**
* @return AuthzPolicyAuthzRuleStringMatch[]
*/
public function getPaths()
{
return $this->paths;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthzPolicyAuthzRuleToRequestOperation::class, 'Google_Service_NetworkSecurity_AuthzPolicyAuthzRuleToRequestOperation');

View File

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

View File

@@ -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\NetworkSecurity;
class AuthzPolicyCustomProvider extends \Google\Model
{
protected $authzExtensionType = AuthzPolicyCustomProviderAuthzExtension::class;
protected $authzExtensionDataType = '';
protected $cloudIapType = AuthzPolicyCustomProviderCloudIap::class;
protected $cloudIapDataType = '';
/**
* @param AuthzPolicyCustomProviderAuthzExtension
*/
public function setAuthzExtension(AuthzPolicyCustomProviderAuthzExtension $authzExtension)
{
$this->authzExtension = $authzExtension;
}
/**
* @return AuthzPolicyCustomProviderAuthzExtension
*/
public function getAuthzExtension()
{
return $this->authzExtension;
}
/**
* @param AuthzPolicyCustomProviderCloudIap
*/
public function setCloudIap(AuthzPolicyCustomProviderCloudIap $cloudIap)
{
$this->cloudIap = $cloudIap;
}
/**
* @return AuthzPolicyCustomProviderCloudIap
*/
public function getCloudIap()
{
return $this->cloudIap;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthzPolicyCustomProvider::class, 'Google_Service_NetworkSecurity_AuthzPolicyCustomProvider');

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,167 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class ClientTlsPolicy extends \Google\Collection
{
protected $collection_key = 'serverValidationCa';
protected $clientCertificateType = GoogleCloudNetworksecurityV1CertificateProvider::class;
protected $clientCertificateDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
protected $serverValidationCaType = ValidationCA::class;
protected $serverValidationCaDataType = 'array';
/**
* @var string
*/
public $sni;
/**
* @var string
*/
public $updateTime;
/**
* @param GoogleCloudNetworksecurityV1CertificateProvider
*/
public function setClientCertificate(GoogleCloudNetworksecurityV1CertificateProvider $clientCertificate)
{
$this->clientCertificate = $clientCertificate;
}
/**
* @return GoogleCloudNetworksecurityV1CertificateProvider
*/
public function getClientCertificate()
{
return $this->clientCertificate;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param ValidationCA[]
*/
public function setServerValidationCa($serverValidationCa)
{
$this->serverValidationCa = $serverValidationCa;
}
/**
* @return ValidationCA[]
*/
public function getServerValidationCa()
{
return $this->serverValidationCa;
}
/**
* @param string
*/
public function setSni($sni)
{
$this->sni = $sni;
}
/**
* @return string
*/
public function getSni()
{
return $this->sni;
}
/**
* @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(ClientTlsPolicy::class, 'Google_Service_NetworkSecurity_ClientTlsPolicy');

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class Destination extends \Google\Collection
{
protected $collection_key = 'ports';
/**
* @var string[]
*/
public $hosts;
protected $httpHeaderMatchType = HttpHeaderMatch::class;
protected $httpHeaderMatchDataType = '';
/**
* @var string[]
*/
public $methods;
/**
* @var string[]
*/
public $ports;
/**
* @param string[]
*/
public function setHosts($hosts)
{
$this->hosts = $hosts;
}
/**
* @return string[]
*/
public function getHosts()
{
return $this->hosts;
}
/**
* @param HttpHeaderMatch
*/
public function setHttpHeaderMatch(HttpHeaderMatch $httpHeaderMatch)
{
$this->httpHeaderMatch = $httpHeaderMatch;
}
/**
* @return HttpHeaderMatch
*/
public function getHttpHeaderMatch()
{
return $this->httpHeaderMatch;
}
/**
* @param string[]
*/
public function setMethods($methods)
{
$this->methods = $methods;
}
/**
* @return string[]
*/
public function getMethods()
{
return $this->methods;
}
/**
* @param string[]
*/
public function setPorts($ports)
{
$this->ports = $ports;
}
/**
* @return string[]
*/
public function getPorts()
{
return $this->ports;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Destination::class, 'Google_Service_NetworkSecurity_Destination');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
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_NetworkSecurity_Expr');

View File

@@ -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\NetworkSecurity;
class FirewallEndpoint extends \Google\Collection
{
protected $collection_key = 'associations';
/**
* @var string[]
*/
public $associatedNetworks;
protected $associationsType = FirewallEndpointAssociationReference::class;
protected $associationsDataType = 'array';
/**
* @var string
*/
public $billingProjectId;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $reconciling;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $updateTime;
/**
* @param string[]
*/
public function setAssociatedNetworks($associatedNetworks)
{
$this->associatedNetworks = $associatedNetworks;
}
/**
* @return string[]
*/
public function getAssociatedNetworks()
{
return $this->associatedNetworks;
}
/**
* @param FirewallEndpointAssociationReference[]
*/
public function setAssociations($associations)
{
$this->associations = $associations;
}
/**
* @return FirewallEndpointAssociationReference[]
*/
public function getAssociations()
{
return $this->associations;
}
/**
* @param string
*/
public function setBillingProjectId($billingProjectId)
{
$this->billingProjectId = $billingProjectId;
}
/**
* @return string
*/
public function getBillingProjectId()
{
return $this->billingProjectId;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @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(FirewallEndpoint::class, 'Google_Service_NetworkSecurity_FirewallEndpoint');

View File

@@ -0,0 +1,206 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class FirewallEndpointAssociation extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var bool
*/
public $disabled;
/**
* @var string
*/
public $firewallEndpoint;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $network;
/**
* @var bool
*/
public $reconciling;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $tlsInspectionPolicy;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param bool
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* @param string
*/
public function setFirewallEndpoint($firewallEndpoint)
{
$this->firewallEndpoint = $firewallEndpoint;
}
/**
* @return string
*/
public function getFirewallEndpoint()
{
return $this->firewallEndpoint;
}
/**
* @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 bool
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setTlsInspectionPolicy($tlsInspectionPolicy)
{
$this->tlsInspectionPolicy = $tlsInspectionPolicy;
}
/**
* @return string
*/
public function getTlsInspectionPolicy()
{
return $this->tlsInspectionPolicy;
}
/**
* @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(FirewallEndpointAssociation::class, 'Google_Service_NetworkSecurity_FirewallEndpointAssociation');

View File

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

View File

@@ -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\NetworkSecurity;
class GatewaySecurityPolicy extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $tlsInspectionPolicy;
/**
* @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 setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setTlsInspectionPolicy($tlsInspectionPolicy)
{
$this->tlsInspectionPolicy = $tlsInspectionPolicy;
}
/**
* @return string
*/
public function getTlsInspectionPolicy()
{
return $this->tlsInspectionPolicy;
}
/**
* @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(GatewaySecurityPolicy::class, 'Google_Service_NetworkSecurity_GatewaySecurityPolicy');

View File

@@ -0,0 +1,206 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class GatewaySecurityPolicyRule extends \Google\Model
{
/**
* @var string
*/
public $applicationMatcher;
/**
* @var string
*/
public $basicProfile;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var bool
*/
public $enabled;
/**
* @var string
*/
public $name;
/**
* @var int
*/
public $priority;
/**
* @var string
*/
public $sessionMatcher;
/**
* @var bool
*/
public $tlsInspectionEnabled;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setApplicationMatcher($applicationMatcher)
{
$this->applicationMatcher = $applicationMatcher;
}
/**
* @return string
*/
public function getApplicationMatcher()
{
return $this->applicationMatcher;
}
/**
* @param string
*/
public function setBasicProfile($basicProfile)
{
$this->basicProfile = $basicProfile;
}
/**
* @return string
*/
public function getBasicProfile()
{
return $this->basicProfile;
}
/**
* @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 setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param int
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return int
*/
public function getPriority()
{
return $this->priority;
}
/**
* @param string
*/
public function setSessionMatcher($sessionMatcher)
{
$this->sessionMatcher = $sessionMatcher;
}
/**
* @return string
*/
public function getSessionMatcher()
{
return $this->sessionMatcher;
}
/**
* @param bool
*/
public function setTlsInspectionEnabled($tlsInspectionEnabled)
{
$this->tlsInspectionEnabled = $tlsInspectionEnabled;
}
/**
* @return bool
*/
public function getTlsInspectionEnabled()
{
return $this->tlsInspectionEnabled;
}
/**
* @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(GatewaySecurityPolicyRule::class, 'Google_Service_NetworkSecurity_GatewaySecurityPolicyRule');

View File

@@ -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\NetworkSecurity;
class GoogleCloudNetworksecurityV1CertificateProvider extends \Google\Model
{
protected $certificateProviderInstanceType = CertificateProviderInstance::class;
protected $certificateProviderInstanceDataType = '';
protected $grpcEndpointType = GoogleCloudNetworksecurityV1GrpcEndpoint::class;
protected $grpcEndpointDataType = '';
/**
* @param CertificateProviderInstance
*/
public function setCertificateProviderInstance(CertificateProviderInstance $certificateProviderInstance)
{
$this->certificateProviderInstance = $certificateProviderInstance;
}
/**
* @return CertificateProviderInstance
*/
public function getCertificateProviderInstance()
{
return $this->certificateProviderInstance;
}
/**
* @param GoogleCloudNetworksecurityV1GrpcEndpoint
*/
public function setGrpcEndpoint(GoogleCloudNetworksecurityV1GrpcEndpoint $grpcEndpoint)
{
$this->grpcEndpoint = $grpcEndpoint;
}
/**
* @return GoogleCloudNetworksecurityV1GrpcEndpoint
*/
public function getGrpcEndpoint()
{
return $this->grpcEndpoint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudNetworksecurityV1CertificateProvider::class, 'Google_Service_NetworkSecurity_GoogleCloudNetworksecurityV1CertificateProvider');

View File

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

View File

@@ -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\NetworkSecurity;
class GoogleCloudNetworksecurityV1beta1CertificateProvider extends \Google\Model
{
protected $certificateProviderInstanceType = CertificateProviderInstance::class;
protected $certificateProviderInstanceDataType = '';
protected $grpcEndpointType = GoogleCloudNetworksecurityV1beta1GrpcEndpoint::class;
protected $grpcEndpointDataType = '';
/**
* @param CertificateProviderInstance
*/
public function setCertificateProviderInstance(CertificateProviderInstance $certificateProviderInstance)
{
$this->certificateProviderInstance = $certificateProviderInstance;
}
/**
* @return CertificateProviderInstance
*/
public function getCertificateProviderInstance()
{
return $this->certificateProviderInstance;
}
/**
* @param GoogleCloudNetworksecurityV1beta1GrpcEndpoint
*/
public function setGrpcEndpoint(GoogleCloudNetworksecurityV1beta1GrpcEndpoint $grpcEndpoint)
{
$this->grpcEndpoint = $grpcEndpoint;
}
/**
* @return GoogleCloudNetworksecurityV1beta1GrpcEndpoint
*/
public function getGrpcEndpoint()
{
return $this->grpcEndpoint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudNetworksecurityV1beta1CertificateProvider::class, 'Google_Service_NetworkSecurity_GoogleCloudNetworksecurityV1beta1CertificateProvider');

View File

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

View File

@@ -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\NetworkSecurity;
class GoogleIamV1AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = GoogleIamV1AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* @var string
*/
public $service;
/**
* @param GoogleIamV1AuditLogConfig[]
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return GoogleIamV1AuditLogConfig[]
*/
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(GoogleIamV1AuditConfig::class, 'Google_Service_NetworkSecurity_GoogleIamV1AuditConfig');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class GoogleIamV1AuditLogConfig 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(GoogleIamV1AuditLogConfig::class, 'Google_Service_NetworkSecurity_GoogleIamV1AuditLogConfig');

View File

@@ -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\NetworkSecurity;
class GoogleIamV1Binding 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(GoogleIamV1Binding::class, 'Google_Service_NetworkSecurity_GoogleIamV1Binding');

View File

@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class GoogleIamV1Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = GoogleIamV1AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = GoogleIamV1Binding::class;
protected $bindingsDataType = 'array';
/**
* @var string
*/
public $etag;
/**
* @var int
*/
public $version;
/**
* @param GoogleIamV1AuditConfig[]
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return GoogleIamV1AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* @param GoogleIamV1Binding[]
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return GoogleIamV1Binding[]
*/
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(GoogleIamV1Policy::class, 'Google_Service_NetworkSecurity_GoogleIamV1Policy');

View File

@@ -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\NetworkSecurity;
class GoogleIamV1SetIamPolicyRequest extends \Google\Model
{
protected $policyType = GoogleIamV1Policy::class;
protected $policyDataType = '';
/**
* @var string
*/
public $updateMask;
/**
* @param GoogleIamV1Policy
*/
public function setPolicy(GoogleIamV1Policy $policy)
{
$this->policy = $policy;
}
/**
* @return GoogleIamV1Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV1SetIamPolicyRequest::class, 'Google_Service_NetworkSecurity_GoogleIamV1SetIamPolicyRequest');

View File

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

View File

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

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class HttpHeaderMatch extends \Google\Model
{
/**
* @var string
*/
public $headerName;
/**
* @var string
*/
public $regexMatch;
/**
* @param string
*/
public function setHeaderName($headerName)
{
$this->headerName = $headerName;
}
/**
* @return string
*/
public function getHeaderName()
{
return $this->headerName;
}
/**
* @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(HttpHeaderMatch::class, 'Google_Service_NetworkSecurity_HttpHeaderMatch');

View File

@@ -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\NetworkSecurity;
class ListAddressGroupReferencesResponse extends \Google\Collection
{
protected $collection_key = 'addressGroupReferences';
protected $addressGroupReferencesType = ListAddressGroupReferencesResponseAddressGroupReference::class;
protected $addressGroupReferencesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param ListAddressGroupReferencesResponseAddressGroupReference[]
*/
public function setAddressGroupReferences($addressGroupReferences)
{
$this->addressGroupReferences = $addressGroupReferences;
}
/**
* @return ListAddressGroupReferencesResponseAddressGroupReference[]
*/
public function getAddressGroupReferences()
{
return $this->addressGroupReferences;
}
/**
* @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(ListAddressGroupReferencesResponse::class, 'Google_Service_NetworkSecurity_ListAddressGroupReferencesResponse');

View File

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

View File

@@ -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\NetworkSecurity;
class ListAddressGroupsResponse extends \Google\Collection
{
protected $collection_key = 'addressGroups';
protected $addressGroupsType = AddressGroup::class;
protected $addressGroupsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param AddressGroup[]
*/
public function setAddressGroups($addressGroups)
{
$this->addressGroups = $addressGroups;
}
/**
* @return AddressGroup[]
*/
public function getAddressGroups()
{
return $this->addressGroups;
}
/**
* @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(ListAddressGroupsResponse::class, 'Google_Service_NetworkSecurity_ListAddressGroupsResponse');

View File

@@ -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\NetworkSecurity;
class ListAuthorizationPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'authorizationPolicies';
protected $authorizationPoliciesType = AuthorizationPolicy::class;
protected $authorizationPoliciesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param AuthorizationPolicy[]
*/
public function setAuthorizationPolicies($authorizationPolicies)
{
$this->authorizationPolicies = $authorizationPolicies;
}
/**
* @return AuthorizationPolicy[]
*/
public function getAuthorizationPolicies()
{
return $this->authorizationPolicies;
}
/**
* @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(ListAuthorizationPoliciesResponse::class, 'Google_Service_NetworkSecurity_ListAuthorizationPoliciesResponse');

View File

@@ -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\NetworkSecurity;
class ListAuthzPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $authzPoliciesType = AuthzPolicy::class;
protected $authzPoliciesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param AuthzPolicy[]
*/
public function setAuthzPolicies($authzPolicies)
{
$this->authzPolicies = $authzPolicies;
}
/**
* @return AuthzPolicy[]
*/
public function getAuthzPolicies()
{
return $this->authzPolicies;
}
/**
* @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(ListAuthzPoliciesResponse::class, 'Google_Service_NetworkSecurity_ListAuthzPoliciesResponse');

View File

@@ -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\NetworkSecurity;
class ListClientTlsPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'clientTlsPolicies';
protected $clientTlsPoliciesType = ClientTlsPolicy::class;
protected $clientTlsPoliciesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param ClientTlsPolicy[]
*/
public function setClientTlsPolicies($clientTlsPolicies)
{
$this->clientTlsPolicies = $clientTlsPolicies;
}
/**
* @return ClientTlsPolicy[]
*/
public function getClientTlsPolicies()
{
return $this->clientTlsPolicies;
}
/**
* @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(ListClientTlsPoliciesResponse::class, 'Google_Service_NetworkSecurity_ListClientTlsPoliciesResponse');

View File

@@ -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\NetworkSecurity;
class ListFirewallEndpointAssociationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $firewallEndpointAssociationsType = FirewallEndpointAssociation::class;
protected $firewallEndpointAssociationsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param FirewallEndpointAssociation[]
*/
public function setFirewallEndpointAssociations($firewallEndpointAssociations)
{
$this->firewallEndpointAssociations = $firewallEndpointAssociations;
}
/**
* @return FirewallEndpointAssociation[]
*/
public function getFirewallEndpointAssociations()
{
return $this->firewallEndpointAssociations;
}
/**
* @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(ListFirewallEndpointAssociationsResponse::class, 'Google_Service_NetworkSecurity_ListFirewallEndpointAssociationsResponse');

View File

@@ -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\NetworkSecurity;
class ListFirewallEndpointsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $firewallEndpointsType = FirewallEndpoint::class;
protected $firewallEndpointsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param FirewallEndpoint[]
*/
public function setFirewallEndpoints($firewallEndpoints)
{
$this->firewallEndpoints = $firewallEndpoints;
}
/**
* @return FirewallEndpoint[]
*/
public function getFirewallEndpoints()
{
return $this->firewallEndpoints;
}
/**
* @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(ListFirewallEndpointsResponse::class, 'Google_Service_NetworkSecurity_ListFirewallEndpointsResponse');

View File

@@ -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\NetworkSecurity;
class ListGatewaySecurityPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $gatewaySecurityPoliciesType = GatewaySecurityPolicy::class;
protected $gatewaySecurityPoliciesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param GatewaySecurityPolicy[]
*/
public function setGatewaySecurityPolicies($gatewaySecurityPolicies)
{
$this->gatewaySecurityPolicies = $gatewaySecurityPolicies;
}
/**
* @return GatewaySecurityPolicy[]
*/
public function getGatewaySecurityPolicies()
{
return $this->gatewaySecurityPolicies;
}
/**
* @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(ListGatewaySecurityPoliciesResponse::class, 'Google_Service_NetworkSecurity_ListGatewaySecurityPoliciesResponse');

View File

@@ -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\NetworkSecurity;
class ListGatewaySecurityPolicyRulesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $gatewaySecurityPolicyRulesType = GatewaySecurityPolicyRule::class;
protected $gatewaySecurityPolicyRulesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param GatewaySecurityPolicyRule[]
*/
public function setGatewaySecurityPolicyRules($gatewaySecurityPolicyRules)
{
$this->gatewaySecurityPolicyRules = $gatewaySecurityPolicyRules;
}
/**
* @return GatewaySecurityPolicyRule[]
*/
public function getGatewaySecurityPolicyRules()
{
return $this->gatewaySecurityPolicyRules;
}
/**
* @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(ListGatewaySecurityPolicyRulesResponse::class, 'Google_Service_NetworkSecurity_ListGatewaySecurityPolicyRulesResponse');

View File

@@ -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\NetworkSecurity;
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_NetworkSecurity_ListLocationsResponse');

View File

@@ -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\NetworkSecurity;
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_NetworkSecurity_ListOperationsResponse');

View File

@@ -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\NetworkSecurity;
class ListSecurityProfileGroupsResponse extends \Google\Collection
{
protected $collection_key = 'securityProfileGroups';
/**
* @var string
*/
public $nextPageToken;
protected $securityProfileGroupsType = SecurityProfileGroup::class;
protected $securityProfileGroupsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param SecurityProfileGroup[]
*/
public function setSecurityProfileGroups($securityProfileGroups)
{
$this->securityProfileGroups = $securityProfileGroups;
}
/**
* @return SecurityProfileGroup[]
*/
public function getSecurityProfileGroups()
{
return $this->securityProfileGroups;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSecurityProfileGroupsResponse::class, 'Google_Service_NetworkSecurity_ListSecurityProfileGroupsResponse');

View File

@@ -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\NetworkSecurity;
class ListSecurityProfilesResponse extends \Google\Collection
{
protected $collection_key = 'securityProfiles';
/**
* @var string
*/
public $nextPageToken;
protected $securityProfilesType = SecurityProfile::class;
protected $securityProfilesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param SecurityProfile[]
*/
public function setSecurityProfiles($securityProfiles)
{
$this->securityProfiles = $securityProfiles;
}
/**
* @return SecurityProfile[]
*/
public function getSecurityProfiles()
{
return $this->securityProfiles;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSecurityProfilesResponse::class, 'Google_Service_NetworkSecurity_ListSecurityProfilesResponse');

View File

@@ -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\NetworkSecurity;
class ListServerTlsPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'serverTlsPolicies';
/**
* @var string
*/
public $nextPageToken;
protected $serverTlsPoliciesType = ServerTlsPolicy::class;
protected $serverTlsPoliciesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param ServerTlsPolicy[]
*/
public function setServerTlsPolicies($serverTlsPolicies)
{
$this->serverTlsPolicies = $serverTlsPolicies;
}
/**
* @return ServerTlsPolicy[]
*/
public function getServerTlsPolicies()
{
return $this->serverTlsPolicies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListServerTlsPoliciesResponse::class, 'Google_Service_NetworkSecurity_ListServerTlsPoliciesResponse');

View File

@@ -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\NetworkSecurity;
class ListTlsInspectionPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $tlsInspectionPoliciesType = TlsInspectionPolicy::class;
protected $tlsInspectionPoliciesDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param TlsInspectionPolicy[]
*/
public function setTlsInspectionPolicies($tlsInspectionPolicies)
{
$this->tlsInspectionPolicies = $tlsInspectionPolicies;
}
/**
* @return TlsInspectionPolicy[]
*/
public function getTlsInspectionPolicies()
{
return $this->tlsInspectionPolicies;
}
/**
* @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(ListTlsInspectionPoliciesResponse::class, 'Google_Service_NetworkSecurity_ListTlsInspectionPoliciesResponse');

View File

@@ -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\NetworkSecurity;
class ListUrlListsResponse extends \Google\Collection
{
protected $collection_key = 'urlLists';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
protected $urlListsType = UrlList::class;
protected $urlListsDataType = 'array';
/**
* @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;
}
/**
* @param UrlList[]
*/
public function setUrlLists($urlLists)
{
$this->urlLists = $urlLists;
}
/**
* @return UrlList[]
*/
public function getUrlLists()
{
return $this->urlLists;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListUrlListsResponse::class, 'Google_Service_NetworkSecurity_ListUrlListsResponse');

View File

@@ -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\NetworkSecurity;
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_NetworkSecurity_Location');

View File

@@ -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\NetworkSecurity;
class MTLSPolicy extends \Google\Collection
{
protected $collection_key = 'clientValidationCa';
protected $clientValidationCaType = ValidationCA::class;
protected $clientValidationCaDataType = 'array';
/**
* @var string
*/
public $clientValidationMode;
/**
* @var string
*/
public $clientValidationTrustConfig;
/**
* @param ValidationCA[]
*/
public function setClientValidationCa($clientValidationCa)
{
$this->clientValidationCa = $clientValidationCa;
}
/**
* @return ValidationCA[]
*/
public function getClientValidationCa()
{
return $this->clientValidationCa;
}
/**
* @param string
*/
public function setClientValidationMode($clientValidationMode)
{
$this->clientValidationMode = $clientValidationMode;
}
/**
* @return string
*/
public function getClientValidationMode()
{
return $this->clientValidationMode;
}
/**
* @param string
*/
public function setClientValidationTrustConfig($clientValidationTrustConfig)
{
$this->clientValidationTrustConfig = $clientValidationTrustConfig;
}
/**
* @return string
*/
public function getClientValidationTrustConfig()
{
return $this->clientValidationTrustConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MTLSPolicy::class, 'Google_Service_NetworkSecurity_MTLSPolicy');

View File

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

View File

@@ -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\NetworkSecurity;
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_NetworkSecurity_Operation');

View File

@@ -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\NetworkSecurity;
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_NetworkSecurity_OperationMetadata');

View File

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

View File

@@ -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\NetworkSecurity\Resource;
/**
* The "organizations" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $organizations = $networksecurityService->organizations;
* </code>
*/
class Organizations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Organizations::class, 'Google_Service_NetworkSecurity_Resource_Organizations');

View File

@@ -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\NetworkSecurity\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $locations = $networksecurityService->organizations_locations;
* </code>
*/
class OrganizationsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocations::class, 'Google_Service_NetworkSecurity_Resource_OrganizationsLocations');

View File

@@ -0,0 +1,246 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\AddAddressGroupItemsRequest;
use Google\Service\NetworkSecurity\AddressGroup;
use Google\Service\NetworkSecurity\CloneAddressGroupItemsRequest;
use Google\Service\NetworkSecurity\ListAddressGroupReferencesResponse;
use Google\Service\NetworkSecurity\ListAddressGroupsResponse;
use Google\Service\NetworkSecurity\Operation;
use Google\Service\NetworkSecurity\RemoveAddressGroupItemsRequest;
/**
* The "addressGroups" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $addressGroups = $networksecurityService->organizations_locations_addressGroups;
* </code>
*/
class OrganizationsLocationsAddressGroups extends \Google\Service\Resource
{
/**
* Adds items to an address group. (addressGroups.addItems)
*
* @param string $addressGroup Required. A name of the AddressGroup to add items
* to. Must be in the format
* `projects|organization/locations/{location}/addressGroups`.
* @param AddAddressGroupItemsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function addItems($addressGroup, AddAddressGroupItemsRequest $postBody, $optParams = [])
{
$params = ['addressGroup' => $addressGroup, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('addItems', [$params], Operation::class);
}
/**
* Clones items from one address group to another. (addressGroups.cloneItems)
*
* @param string $addressGroup Required. A name of the AddressGroup to clone
* items to. Must be in the format
* `projects|organization/locations/{location}/addressGroups`.
* @param CloneAddressGroupItemsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function cloneItems($addressGroup, CloneAddressGroupItemsRequest $postBody, $optParams = [])
{
$params = ['addressGroup' => $addressGroup, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cloneItems', [$params], Operation::class);
}
/**
* Creates a new address group in a given project and location.
* (addressGroups.create)
*
* @param string $parent Required. The parent resource of the AddressGroup. Must
* be in the format `projects/locations/{location}`.
* @param AddressGroup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string addressGroupId Required. Short name of the AddressGroup
* resource to be created. This value should be 1-63 characters long, containing
* only letters, numbers, hyphens, and underscores, and should not start with a
* number. E.g. "authz_policy".
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, AddressGroup $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes an address group. (addressGroups.delete)
*
* @param string $name Required. A name of the AddressGroup to delete. Must be
* in the format `projects/locations/{location}/addressGroups`.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @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 address group. (addressGroups.get)
*
* @param string $name Required. A name of the AddressGroup to get. Must be in
* the format `projects/locations/{location}/addressGroups`.
* @param array $optParams Optional parameters.
* @return AddressGroup
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AddressGroup::class);
}
/**
* Lists address groups in a given project and location.
* (addressGroups.listOrganizationsLocationsAddressGroups)
*
* @param string $parent Required. The project and location from which the
* AddressGroups should be listed, specified in the format
* `projects/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of AddressGroups to return per call.
* @opt_param string pageToken The value returned by the last
* `ListAddressGroupsResponse` Indicates that this is a continuation of a prior
* `ListAddressGroups` call, and that the system should return the next page of
* data.
* @return ListAddressGroupsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsAddressGroups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAddressGroupsResponse::class);
}
/**
* Lists references of an address group. (addressGroups.listReferences)
*
* @param string $addressGroup Required. A name of the AddressGroup to clone
* items to. Must be in the format
* `projects|organization/locations/{location}/addressGroups`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of references to return. If
* unspecified, server will pick an appropriate default. Server may return fewer
* items than requested. A caller should only rely on response's next_page_token
* to determine if there are more AddressGroupUsers left to be queried.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return ListAddressGroupReferencesResponse
* @throws \Google\Service\Exception
*/
public function listReferences($addressGroup, $optParams = [])
{
$params = ['addressGroup' => $addressGroup];
$params = array_merge($params, $optParams);
return $this->call('listReferences', [$params], ListAddressGroupReferencesResponse::class);
}
/**
* Updates parameters of an address group. (addressGroups.patch)
*
* @param string $name Required. Name of the AddressGroup resource. It matches
* pattern `projects/locations/{location}/addressGroups/`.
* @param AddressGroup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the AddressGroup 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, AddressGroup $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Removes items from an address group. (addressGroups.removeItems)
*
* @param string $addressGroup Required. A name of the AddressGroup to remove
* items from. Must be in the format
* `projects|organization/locations/{location}/addressGroups`.
* @param RemoveAddressGroupItemsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function removeItems($addressGroup, RemoveAddressGroupItemsRequest $postBody, $optParams = [])
{
$params = ['addressGroup' => $addressGroup, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('removeItems', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsAddressGroups::class, 'Google_Service_NetworkSecurity_Resource_OrganizationsLocationsAddressGroups');

View File

@@ -0,0 +1,163 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\FirewallEndpoint;
use Google\Service\NetworkSecurity\ListFirewallEndpointsResponse;
use Google\Service\NetworkSecurity\Operation;
/**
* The "firewallEndpoints" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $firewallEndpoints = $networksecurityService->organizations_locations_firewallEndpoints;
* </code>
*/
class OrganizationsLocationsFirewallEndpoints extends \Google\Service\Resource
{
/**
* Creates a new FirewallEndpoint in a given project and location.
* (firewallEndpoints.create)
*
* @param string $parent Required. Value for parent.
* @param FirewallEndpoint $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string firewallEndpointId Required. Id of the requesting object.
* If auto-generating Id server-side, remove this field and firewall_endpoint_id
* from the method_signature of Create RPC.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, FirewallEndpoint $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Endpoint. (firewallEndpoints.delete)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return 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 Endpoint. (firewallEndpoints.get)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
* @return FirewallEndpoint
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], FirewallEndpoint::class);
}
/**
* Lists FirewallEndpoints in a given project and location.
* (firewallEndpoints.listOrganizationsLocationsFirewallEndpoints)
*
* @param string $parent Required. Parent value for ListEndpointsRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @return ListFirewallEndpointsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsFirewallEndpoints($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListFirewallEndpointsResponse::class);
}
/**
* Update a single Endpoint. (firewallEndpoints.patch)
*
* @param string $name Immutable. Identifier. name of resource
* @param FirewallEndpoint $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the Endpoint 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, FirewallEndpoint $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(OrganizationsLocationsFirewallEndpoints::class, 'Google_Service_NetworkSecurity_Resource_OrganizationsLocationsFirewallEndpoints');

View File

@@ -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\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\CancelOperationRequest;
use Google\Service\NetworkSecurity\ListOperationsResponse;
use Google\Service\NetworkSecurity\NetworksecurityEmpty;
use Google\Service\NetworkSecurity\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $operations = $networksecurityService->organizations_locations_operations;
* </code>
*/
class OrganizationsLocationsOperations 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 NetworksecurityEmpty
* @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], NetworksecurityEmpty::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 NetworksecurityEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], NetworksecurityEmpty::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.listOrganizationsLocationsOperations)
*
* @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 listOrganizationsLocationsOperations($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(OrganizationsLocationsOperations::class, 'Google_Service_NetworkSecurity_Resource_OrganizationsLocationsOperations');

View File

@@ -0,0 +1,142 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\ListSecurityProfileGroupsResponse;
use Google\Service\NetworkSecurity\Operation;
use Google\Service\NetworkSecurity\SecurityProfileGroup;
/**
* The "securityProfileGroups" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $securityProfileGroups = $networksecurityService->organizations_locations_securityProfileGroups;
* </code>
*/
class OrganizationsLocationsSecurityProfileGroups extends \Google\Service\Resource
{
/**
* Creates a new SecurityProfileGroup in a given organization and location.
* (securityProfileGroups.create)
*
* @param string $parent Required. The parent resource of the
* SecurityProfileGroup. Must be in the format
* `projects|organizations/locations/{location}`.
* @param SecurityProfileGroup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string securityProfileGroupId Required. Short name of the
* SecurityProfileGroup resource to be created. This value should be 1-63
* characters long, containing only letters, numbers, hyphens, and underscores,
* and should not start with a number. E.g. "security_profile_group1".
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, SecurityProfileGroup $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single SecurityProfileGroup. (securityProfileGroups.delete)
*
* @param string $name Required. A name of the SecurityProfileGroup to delete.
* Must be in the format `projects|organizations/locations/{location}/securityPr
* ofileGroups/{security_profile_group}`.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. If client provided etag is out of date,
* delete will return FAILED_PRECONDITION error.
* @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 SecurityProfileGroup. (securityProfileGroups.get)
*
* @param string $name Required. A name of the SecurityProfileGroup to get. Must
* be in the format `projects|organizations/locations/{location}/securityProfile
* Groups/{security_profile_group}`.
* @param array $optParams Optional parameters.
* @return SecurityProfileGroup
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], SecurityProfileGroup::class);
}
/**
* Lists SecurityProfileGroups in a given organization and location.
* (securityProfileGroups.listOrganizationsLocationsSecurityProfileGroups)
*
* @param string $parent Required. The project or organization and location from
* which the SecurityProfileGroups should be listed, specified in the format
* `projects|organizations/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of SecurityProfileGroups to return per
* call.
* @opt_param string pageToken The value returned by the last
* `ListSecurityProfileGroupsResponse` Indicates that this is a continuation of
* a prior `ListSecurityProfileGroups` call, and that the system should return
* the next page of data.
* @return ListSecurityProfileGroupsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsSecurityProfileGroups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSecurityProfileGroupsResponse::class);
}
/**
* Updates the parameters of a single SecurityProfileGroup.
* (securityProfileGroups.patch)
*
* @param string $name Immutable. Identifier. Name of the SecurityProfileGroup
* resource. It matches pattern `projects|organizations/locations/{location}/sec
* urityProfileGroups/{security_profile_group}`.
* @param SecurityProfileGroup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the SecurityProfileGroup 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.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, SecurityProfileGroup $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(OrganizationsLocationsSecurityProfileGroups::class, 'Google_Service_NetworkSecurity_Resource_OrganizationsLocationsSecurityProfileGroups');

View File

@@ -0,0 +1,140 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\ListSecurityProfilesResponse;
use Google\Service\NetworkSecurity\Operation;
use Google\Service\NetworkSecurity\SecurityProfile;
/**
* The "securityProfiles" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $securityProfiles = $networksecurityService->organizations_locations_securityProfiles;
* </code>
*/
class OrganizationsLocationsSecurityProfiles extends \Google\Service\Resource
{
/**
* Creates a new SecurityProfile in a given organization and location.
* (securityProfiles.create)
*
* @param string $parent Required. The parent resource of the SecurityProfile.
* Must be in the format `projects|organizations/locations/{location}`.
* @param SecurityProfile $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string securityProfileId Required. Short name of the
* SecurityProfile resource to be created. This value should be 1-63 characters
* long, containing only letters, numbers, hyphens, and underscores, and should
* not start with a number. E.g. "security_profile1".
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, SecurityProfile $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single SecurityProfile. (securityProfiles.delete)
*
* @param string $name Required. A name of the SecurityProfile to delete. Must
* be in the format `projects|organizations/locations/{location}/securityProfile
* s/{security_profile_id}`.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. If client provided etag is out of date,
* delete will return FAILED_PRECONDITION error.
* @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 SecurityProfile. (securityProfiles.get)
*
* @param string $name Required. A name of the SecurityProfile to get. Must be
* in the format `projects|organizations/locations/{location}/securityProfiles/{
* security_profile_id}`.
* @param array $optParams Optional parameters.
* @return SecurityProfile
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], SecurityProfile::class);
}
/**
* Lists SecurityProfiles in a given organization and location.
* (securityProfiles.listOrganizationsLocationsSecurityProfiles)
*
* @param string $parent Required. The project or organization and location from
* which the SecurityProfiles should be listed, specified in the format
* `projects|organizations/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of SecurityProfiles to return per
* call.
* @opt_param string pageToken The value returned by the last
* `ListSecurityProfilesResponse` Indicates that this is a continuation of a
* prior `ListSecurityProfiles` call, and that the system should return the next
* page of data.
* @return ListSecurityProfilesResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsSecurityProfiles($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSecurityProfilesResponse::class);
}
/**
* Updates the parameters of a single SecurityProfile. (securityProfiles.patch)
*
* @param string $name Immutable. Identifier. Name of the SecurityProfile
* resource. It matches pattern `projects|organizations/locations/{location}/sec
* urityProfiles/{security_profile}`.
* @param SecurityProfile $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the SecurityProfile 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.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, SecurityProfile $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(OrganizationsLocationsSecurityProfiles::class, 'Google_Service_NetworkSecurity_Resource_OrganizationsLocationsSecurityProfiles');

View File

@@ -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\NetworkSecurity\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $projects = $networksecurityService->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_NetworkSecurity_Resource_Projects');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\ListLocationsResponse;
use Google\Service\NetworkSecurity\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $locations = $networksecurityService->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_NetworkSecurity_Resource_ProjectsLocations');

View File

@@ -0,0 +1,324 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\AddAddressGroupItemsRequest;
use Google\Service\NetworkSecurity\AddressGroup;
use Google\Service\NetworkSecurity\CloneAddressGroupItemsRequest;
use Google\Service\NetworkSecurity\GoogleIamV1Policy;
use Google\Service\NetworkSecurity\GoogleIamV1SetIamPolicyRequest;
use Google\Service\NetworkSecurity\GoogleIamV1TestIamPermissionsRequest;
use Google\Service\NetworkSecurity\GoogleIamV1TestIamPermissionsResponse;
use Google\Service\NetworkSecurity\ListAddressGroupReferencesResponse;
use Google\Service\NetworkSecurity\ListAddressGroupsResponse;
use Google\Service\NetworkSecurity\Operation;
use Google\Service\NetworkSecurity\RemoveAddressGroupItemsRequest;
/**
* The "addressGroups" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $addressGroups = $networksecurityService->projects_locations_addressGroups;
* </code>
*/
class ProjectsLocationsAddressGroups extends \Google\Service\Resource
{
/**
* Adds items to an address group. (addressGroups.addItems)
*
* @param string $addressGroup Required. A name of the AddressGroup to add items
* to. Must be in the format
* `projects|organization/locations/{location}/addressGroups`.
* @param AddAddressGroupItemsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function addItems($addressGroup, AddAddressGroupItemsRequest $postBody, $optParams = [])
{
$params = ['addressGroup' => $addressGroup, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('addItems', [$params], Operation::class);
}
/**
* Clones items from one address group to another. (addressGroups.cloneItems)
*
* @param string $addressGroup Required. A name of the AddressGroup to clone
* items to. Must be in the format
* `projects|organization/locations/{location}/addressGroups`.
* @param CloneAddressGroupItemsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function cloneItems($addressGroup, CloneAddressGroupItemsRequest $postBody, $optParams = [])
{
$params = ['addressGroup' => $addressGroup, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cloneItems', [$params], Operation::class);
}
/**
* Creates a new address group in a given project and location.
* (addressGroups.create)
*
* @param string $parent Required. The parent resource of the AddressGroup. Must
* be in the format `projects/locations/{location}`.
* @param AddressGroup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string addressGroupId Required. Short name of the AddressGroup
* resource to be created. This value should be 1-63 characters long, containing
* only letters, numbers, hyphens, and underscores, and should not start with a
* number. E.g. "authz_policy".
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, AddressGroup $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single address group. (addressGroups.delete)
*
* @param string $name Required. A name of the AddressGroup to delete. Must be
* in the format `projects/locations/{location}/addressGroups`.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @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 address group. (addressGroups.get)
*
* @param string $name Required. A name of the AddressGroup to get. Must be in
* the format `projects/locations/{location}/addressGroups`.
* @param array $optParams Optional parameters.
* @return AddressGroup
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AddressGroup::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (addressGroups.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 GoogleIamV1Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
}
/**
* Lists address groups in a given project and location.
* (addressGroups.listProjectsLocationsAddressGroups)
*
* @param string $parent Required. The project and location from which the
* AddressGroups should be listed, specified in the format
* `projects/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of AddressGroups to return per call.
* @opt_param string pageToken The value returned by the last
* `ListAddressGroupsResponse` Indicates that this is a continuation of a prior
* `ListAddressGroups` call, and that the system should return the next page of
* data.
* @return ListAddressGroupsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsAddressGroups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAddressGroupsResponse::class);
}
/**
* Lists references of an address group. (addressGroups.listReferences)
*
* @param string $addressGroup Required. A name of the AddressGroup to clone
* items to. Must be in the format
* `projects|organization/locations/{location}/addressGroups`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of references to return. If
* unspecified, server will pick an appropriate default. Server may return fewer
* items than requested. A caller should only rely on response's next_page_token
* to determine if there are more AddressGroupUsers left to be queried.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return ListAddressGroupReferencesResponse
* @throws \Google\Service\Exception
*/
public function listReferences($addressGroup, $optParams = [])
{
$params = ['addressGroup' => $addressGroup];
$params = array_merge($params, $optParams);
return $this->call('listReferences', [$params], ListAddressGroupReferencesResponse::class);
}
/**
* Updates the parameters of a single address group. (addressGroups.patch)
*
* @param string $name Required. Name of the AddressGroup resource. It matches
* pattern `projects/locations/{location}/addressGroups/`.
* @param AddressGroup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the AddressGroup 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, AddressGroup $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Removes items from an address group. (addressGroups.removeItems)
*
* @param string $addressGroup Required. A name of the AddressGroup to remove
* items from. Must be in the format
* `projects|organization/locations/{location}/addressGroups`.
* @param RemoveAddressGroupItemsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function removeItems($addressGroup, RemoveAddressGroupItemsRequest $postBody, $optParams = [])
{
$params = ['addressGroup' => $addressGroup, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('removeItems', [$params], Operation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (addressGroups.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 GoogleIamV1SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::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.
* (addressGroups.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 GoogleIamV1TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsAddressGroups::class, 'Google_Service_NetworkSecurity_Resource_ProjectsLocationsAddressGroups');

View File

@@ -0,0 +1,219 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\AuthorizationPolicy;
use Google\Service\NetworkSecurity\GoogleIamV1Policy;
use Google\Service\NetworkSecurity\GoogleIamV1SetIamPolicyRequest;
use Google\Service\NetworkSecurity\GoogleIamV1TestIamPermissionsRequest;
use Google\Service\NetworkSecurity\GoogleIamV1TestIamPermissionsResponse;
use Google\Service\NetworkSecurity\ListAuthorizationPoliciesResponse;
use Google\Service\NetworkSecurity\Operation;
/**
* The "authorizationPolicies" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $authorizationPolicies = $networksecurityService->projects_locations_authorizationPolicies;
* </code>
*/
class ProjectsLocationsAuthorizationPolicies extends \Google\Service\Resource
{
/**
* Creates a new AuthorizationPolicy in a given project and location.
* (authorizationPolicies.create)
*
* @param string $parent Required. The parent resource of the
* AuthorizationPolicy. Must be in the format
* `projects/{project}/locations/{location}`.
* @param AuthorizationPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string authorizationPolicyId Required. Short name of the
* AuthorizationPolicy resource to be created. This value should be 1-63
* characters long, containing only letters, numbers, hyphens, and underscores,
* and should not start with a number. E.g. "authz_policy".
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, AuthorizationPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single AuthorizationPolicy. (authorizationPolicies.delete)
*
* @param string $name Required. A name of the AuthorizationPolicy to delete.
* Must be in the format
* `projects/{project}/locations/{location}/authorizationPolicies`.
* @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 AuthorizationPolicy. (authorizationPolicies.get)
*
* @param string $name Required. A name of the AuthorizationPolicy to get. Must
* be in the format
* `projects/{project}/locations/{location}/authorizationPolicies`.
* @param array $optParams Optional parameters.
* @return AuthorizationPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AuthorizationPolicy::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (authorizationPolicies.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 GoogleIamV1Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
}
/**
* Lists AuthorizationPolicies in a given project and location.
* (authorizationPolicies.listProjectsLocationsAuthorizationPolicies)
*
* @param string $parent Required. The project and location from which the
* AuthorizationPolicies should be listed, specified in the format
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of AuthorizationPolicies to return per
* call.
* @opt_param string pageToken The value returned by the last
* `ListAuthorizationPoliciesResponse` Indicates that this is a continuation of
* a prior `ListAuthorizationPolicies` call, and that the system should return
* the next page of data.
* @return ListAuthorizationPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsAuthorizationPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAuthorizationPoliciesResponse::class);
}
/**
* Updates the parameters of a single AuthorizationPolicy.
* (authorizationPolicies.patch)
*
* @param string $name Required. Name of the AuthorizationPolicy resource. It
* matches pattern
* `projects/{project}/locations/{location}/authorizationPolicies/`.
* @param AuthorizationPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the AuthorizationPolicy 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, AuthorizationPolicy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (authorizationPolicies.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 GoogleIamV1SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::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.
* (authorizationPolicies.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 GoogleIamV1TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsAuthorizationPolicies::class, 'Google_Service_NetworkSecurity_Resource_ProjectsLocationsAuthorizationPolicies');

View File

@@ -0,0 +1,249 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\AuthzPolicy;
use Google\Service\NetworkSecurity\GoogleIamV1Policy;
use Google\Service\NetworkSecurity\GoogleIamV1SetIamPolicyRequest;
use Google\Service\NetworkSecurity\GoogleIamV1TestIamPermissionsRequest;
use Google\Service\NetworkSecurity\GoogleIamV1TestIamPermissionsResponse;
use Google\Service\NetworkSecurity\ListAuthzPoliciesResponse;
use Google\Service\NetworkSecurity\Operation;
/**
* The "authzPolicies" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $authzPolicies = $networksecurityService->projects_locations_authzPolicies;
* </code>
*/
class ProjectsLocationsAuthzPolicies extends \Google\Service\Resource
{
/**
* Creates a new AuthzPolicy in a given project and location.
* (authzPolicies.create)
*
* @param string $parent Required. The parent resource of the `AuthzPolicy`
* resource. Must be in the format `projects/{project}/locations/{location}`.
* @param AuthzPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string authzPolicyId Required. User-provided ID of the
* `AuthzPolicy` 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, AuthzPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single AuthzPolicy. (authzPolicies.delete)
*
* @param string $name Required. The name of the `AuthzPolicy` resource to
* delete. Must be in the format
* `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
* @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 a single AuthzPolicy. (authzPolicies.get)
*
* @param string $name Required. A name of the `AuthzPolicy` resource to get.
* Must be in the format
* `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
* @param array $optParams Optional parameters.
* @return AuthzPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AuthzPolicy::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (authzPolicies.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 GoogleIamV1Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
}
/**
* Lists AuthzPolicies in a given project and location.
* (authzPolicies.listProjectsLocationsAuthzPolicies)
*
* @param string $parent Required. The project and location from which the
* `AuthzPolicy` 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 ListAuthzPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsAuthzPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAuthzPoliciesResponse::class);
}
/**
* Updates the parameters of a single AuthzPolicy. (authzPolicies.patch)
*
* @param string $name Required. Identifier. Name of the `AuthzPolicy` resource
* in the following format:
* `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
* @param AuthzPolicy $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 `AuthzPolicy` 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, AuthzPolicy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (authzPolicies.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 GoogleIamV1SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::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.
* (authzPolicies.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 GoogleIamV1TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsAuthzPolicies::class, 'Google_Service_NetworkSecurity_Resource_ProjectsLocationsAuthzPolicies');

View File

@@ -0,0 +1,215 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\ClientTlsPolicy;
use Google\Service\NetworkSecurity\GoogleIamV1Policy;
use Google\Service\NetworkSecurity\GoogleIamV1SetIamPolicyRequest;
use Google\Service\NetworkSecurity\GoogleIamV1TestIamPermissionsRequest;
use Google\Service\NetworkSecurity\GoogleIamV1TestIamPermissionsResponse;
use Google\Service\NetworkSecurity\ListClientTlsPoliciesResponse;
use Google\Service\NetworkSecurity\Operation;
/**
* The "clientTlsPolicies" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $clientTlsPolicies = $networksecurityService->projects_locations_clientTlsPolicies;
* </code>
*/
class ProjectsLocationsClientTlsPolicies extends \Google\Service\Resource
{
/**
* Creates a new ClientTlsPolicy in a given project and location.
* (clientTlsPolicies.create)
*
* @param string $parent Required. The parent resource of the ClientTlsPolicy.
* Must be in the format `projects/locations/{location}`.
* @param ClientTlsPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientTlsPolicyId Required. Short name of the
* ClientTlsPolicy resource to be created. This value should be 1-63 characters
* long, containing only letters, numbers, hyphens, and underscores, and should
* not start with a number. E.g. "client_mtls_policy".
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, ClientTlsPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single ClientTlsPolicy. (clientTlsPolicies.delete)
*
* @param string $name Required. A name of the ClientTlsPolicy to delete. Must
* be in the format `projects/locations/{location}/clientTlsPolicies`.
* @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 ClientTlsPolicy. (clientTlsPolicies.get)
*
* @param string $name Required. A name of the ClientTlsPolicy to get. Must be
* in the format `projects/locations/{location}/clientTlsPolicies`.
* @param array $optParams Optional parameters.
* @return ClientTlsPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ClientTlsPolicy::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (clientTlsPolicies.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 GoogleIamV1Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
}
/**
* Lists ClientTlsPolicies in a given project and location.
* (clientTlsPolicies.listProjectsLocationsClientTlsPolicies)
*
* @param string $parent Required. The project and location from which the
* ClientTlsPolicies should be listed, specified in the format
* `projects/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of ClientTlsPolicies to return per
* call.
* @opt_param string pageToken The value returned by the last
* `ListClientTlsPoliciesResponse` Indicates that this is a continuation of a
* prior `ListClientTlsPolicies` call, and that the system should return the
* next page of data.
* @return ListClientTlsPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsClientTlsPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListClientTlsPoliciesResponse::class);
}
/**
* Updates the parameters of a single ClientTlsPolicy. (clientTlsPolicies.patch)
*
* @param string $name Required. Name of the ClientTlsPolicy resource. It
* matches the pattern
* `projects/locations/{location}/clientTlsPolicies/{client_tls_policy}`
* @param ClientTlsPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the ClientTlsPolicy 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, ClientTlsPolicy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (clientTlsPolicies.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 GoogleIamV1SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::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.
* (clientTlsPolicies.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 GoogleIamV1TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsClientTlsPolicies::class, 'Google_Service_NetworkSecurity_Resource_ProjectsLocationsClientTlsPolicies');

View File

@@ -0,0 +1,166 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\FirewallEndpointAssociation;
use Google\Service\NetworkSecurity\ListFirewallEndpointAssociationsResponse;
use Google\Service\NetworkSecurity\Operation;
/**
* The "firewallEndpointAssociations" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $firewallEndpointAssociations = $networksecurityService->projects_locations_firewallEndpointAssociations;
* </code>
*/
class ProjectsLocationsFirewallEndpointAssociations extends \Google\Service\Resource
{
/**
* Creates a new FirewallEndpointAssociation in a given project and location.
* (firewallEndpointAssociations.create)
*
* @param string $parent Required. Value for parent.
* @param FirewallEndpointAssociation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string firewallEndpointAssociationId Optional. Id of the
* requesting object. If auto-generating Id server-side, remove this field and
* firewall_endpoint_association_id from the method_signature of Create RPC.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, FirewallEndpointAssociation $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single FirewallEndpointAssociation.
* (firewallEndpointAssociations.delete)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return 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 FirewallEndpointAssociation.
* (firewallEndpointAssociations.get)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
* @return FirewallEndpointAssociation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], FirewallEndpointAssociation::class);
}
/**
* Lists Associations in a given project and location. (firewallEndpointAssociat
* ions.listProjectsLocationsFirewallEndpointAssociations)
*
* @param string $parent Required. Parent value for ListAssociationsRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @return ListFirewallEndpointAssociationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsFirewallEndpointAssociations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListFirewallEndpointAssociationsResponse::class);
}
/**
* Update a single FirewallEndpointAssociation.
* (firewallEndpointAssociations.patch)
*
* @param string $name Immutable. Identifier. name of resource
* @param FirewallEndpointAssociation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the Association 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, FirewallEndpointAssociation $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(ProjectsLocationsFirewallEndpointAssociations::class, 'Google_Service_NetworkSecurity_Resource_ProjectsLocationsFirewallEndpointAssociations');

View File

@@ -0,0 +1,141 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\GatewaySecurityPolicy;
use Google\Service\NetworkSecurity\ListGatewaySecurityPoliciesResponse;
use Google\Service\NetworkSecurity\Operation;
/**
* The "gatewaySecurityPolicies" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $gatewaySecurityPolicies = $networksecurityService->projects_locations_gatewaySecurityPolicies;
* </code>
*/
class ProjectsLocationsGatewaySecurityPolicies extends \Google\Service\Resource
{
/**
* Creates a new GatewaySecurityPolicy in a given project and location.
* (gatewaySecurityPolicies.create)
*
* @param string $parent Required. The parent resource of the
* GatewaySecurityPolicy. Must be in the format
* `projects/{project}/locations/{location}`.
* @param GatewaySecurityPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string gatewaySecurityPolicyId Required. Short name of the
* GatewaySecurityPolicy resource to be created. This value should be 1-63
* characters long, containing only letters, numbers, hyphens, and underscores,
* and should not start with a number. E.g. "gateway_security_policy1".
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, GatewaySecurityPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single GatewaySecurityPolicy. (gatewaySecurityPolicies.delete)
*
* @param string $name Required. A name of the GatewaySecurityPolicy to delete.
* Must be in the format
* `projects/{project}/locations/{location}/gatewaySecurityPolicies`.
* @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 GatewaySecurityPolicy. (gatewaySecurityPolicies.get)
*
* @param string $name Required. A name of the GatewaySecurityPolicy to get.
* Must be in the format
* `projects/{project}/locations/{location}/gatewaySecurityPolicies`.
* @param array $optParams Optional parameters.
* @return GatewaySecurityPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GatewaySecurityPolicy::class);
}
/**
* Lists GatewaySecurityPolicies in a given project and location.
* (gatewaySecurityPolicies.listProjectsLocationsGatewaySecurityPolicies)
*
* @param string $parent Required. The project and location from which the
* GatewaySecurityPolicies should be listed, specified in the format
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of GatewaySecurityPolicies to return
* per call.
* @opt_param string pageToken The value returned by the last
* 'ListGatewaySecurityPoliciesResponse' Indicates that this is a continuation
* of a prior 'ListGatewaySecurityPolicies' call, and that the system should
* return the next page of data.
* @return ListGatewaySecurityPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsGatewaySecurityPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGatewaySecurityPoliciesResponse::class);
}
/**
* Updates the parameters of a single GatewaySecurityPolicy.
* (gatewaySecurityPolicies.patch)
*
* @param string $name Required. Name of the resource. Name is of the form proje
* cts/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_
* policy} gateway_security_policy should match the
* pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
* @param GatewaySecurityPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the GatewaySecurityPolicy 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, GatewaySecurityPolicy $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(ProjectsLocationsGatewaySecurityPolicies::class, 'Google_Service_NetworkSecurity_Resource_ProjectsLocationsGatewaySecurityPolicies');

View File

@@ -0,0 +1,139 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\GatewaySecurityPolicyRule;
use Google\Service\NetworkSecurity\ListGatewaySecurityPolicyRulesResponse;
use Google\Service\NetworkSecurity\Operation;
/**
* The "rules" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $rules = $networksecurityService->projects_locations_gatewaySecurityPolicies_rules;
* </code>
*/
class ProjectsLocationsGatewaySecurityPoliciesRules extends \Google\Service\Resource
{
/**
* Creates a new GatewaySecurityPolicy in a given project and location.
* (rules.create)
*
* @param string $parent Required. The parent where this rule will be created.
* Format : projects/{project}/location/{location}/gatewaySecurityPolicies
* @param GatewaySecurityPolicyRule $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string gatewaySecurityPolicyRuleId The ID to use for the rule,
* which will become the final component of the rule's resource name. This value
* should be 4-63 characters, and valid characters are /a-z-/.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, GatewaySecurityPolicyRule $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single GatewaySecurityPolicyRule. (rules.delete)
*
* @param string $name Required. A name of the GatewaySecurityPolicyRule to
* delete. Must be in the format `projects/{project}/locations/{location}/gatewa
* ySecurityPolicies/{gatewaySecurityPolicy}/rules`.
* @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 GatewaySecurityPolicyRule. (rules.get)
*
* @param string $name Required. The name of the GatewaySecurityPolicyRule to
* retrieve. Format:
* projects/{project}/location/{location}/gatewaySecurityPolicies/rules
* @param array $optParams Optional parameters.
* @return GatewaySecurityPolicyRule
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GatewaySecurityPolicyRule::class);
}
/**
* Lists GatewaySecurityPolicyRules in a given project and location.
* (rules.listProjectsLocationsGatewaySecurityPoliciesRules)
*
* @param string $parent Required. The project, location and
* GatewaySecurityPolicy from which the GatewaySecurityPolicyRules should be
* listed, specified in the format `projects/{project}/locations/{location}/gate
* waySecurityPolicies/{gatewaySecurityPolicy}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of GatewaySecurityPolicyRules to
* return per call.
* @opt_param string pageToken The value returned by the last
* 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a
* continuation of a prior 'ListGatewaySecurityPolicyRules' call, and that the
* system should return the next page of data.
* @return ListGatewaySecurityPolicyRulesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsGatewaySecurityPoliciesRules($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGatewaySecurityPolicyRulesResponse::class);
}
/**
* Updates the parameters of a single GatewaySecurityPolicyRule. (rules.patch)
*
* @param string $name Required. Immutable. Name of the resource. ame is the
* full resource name so projects/{project}/locations/{location}/gatewaySecurity
* Policies/{gateway_security_policy}/rules/{rule} rule should match the
* pattern: (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
* @param GatewaySecurityPolicyRule $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the GatewaySecurityPolicy 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, GatewaySecurityPolicyRule $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(ProjectsLocationsGatewaySecurityPoliciesRules::class, 'Google_Service_NetworkSecurity_Resource_ProjectsLocationsGatewaySecurityPoliciesRules');

View File

@@ -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\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\CancelOperationRequest;
use Google\Service\NetworkSecurity\ListOperationsResponse;
use Google\Service\NetworkSecurity\NetworksecurityEmpty;
use Google\Service\NetworkSecurity\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $operations = $networksecurityService->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 NetworksecurityEmpty
* @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], NetworksecurityEmpty::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 NetworksecurityEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], NetworksecurityEmpty::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_NetworkSecurity_Resource_ProjectsLocationsOperations');

View File

@@ -0,0 +1,215 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\GoogleIamV1Policy;
use Google\Service\NetworkSecurity\GoogleIamV1SetIamPolicyRequest;
use Google\Service\NetworkSecurity\GoogleIamV1TestIamPermissionsRequest;
use Google\Service\NetworkSecurity\GoogleIamV1TestIamPermissionsResponse;
use Google\Service\NetworkSecurity\ListServerTlsPoliciesResponse;
use Google\Service\NetworkSecurity\Operation;
use Google\Service\NetworkSecurity\ServerTlsPolicy;
/**
* The "serverTlsPolicies" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $serverTlsPolicies = $networksecurityService->projects_locations_serverTlsPolicies;
* </code>
*/
class ProjectsLocationsServerTlsPolicies extends \Google\Service\Resource
{
/**
* Creates a new ServerTlsPolicy in a given project and location.
* (serverTlsPolicies.create)
*
* @param string $parent Required. The parent resource of the ServerTlsPolicy.
* Must be in the format `projects/locations/{location}`.
* @param ServerTlsPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string serverTlsPolicyId Required. Short name of the
* ServerTlsPolicy resource to be created. This value should be 1-63 characters
* long, containing only letters, numbers, hyphens, and underscores, and should
* not start with a number. E.g. "server_mtls_policy".
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, ServerTlsPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single ServerTlsPolicy. (serverTlsPolicies.delete)
*
* @param string $name Required. A name of the ServerTlsPolicy to delete. Must
* be in the format `projects/locations/{location}/serverTlsPolicies`.
* @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 ServerTlsPolicy. (serverTlsPolicies.get)
*
* @param string $name Required. A name of the ServerTlsPolicy to get. Must be
* in the format `projects/locations/{location}/serverTlsPolicies`.
* @param array $optParams Optional parameters.
* @return ServerTlsPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServerTlsPolicy::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (serverTlsPolicies.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 GoogleIamV1Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
}
/**
* Lists ServerTlsPolicies in a given project and location.
* (serverTlsPolicies.listProjectsLocationsServerTlsPolicies)
*
* @param string $parent Required. The project and location from which the
* ServerTlsPolicies should be listed, specified in the format
* `projects/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of ServerTlsPolicies to return per
* call.
* @opt_param string pageToken The value returned by the last
* `ListServerTlsPoliciesResponse` Indicates that this is a continuation of a
* prior `ListServerTlsPolicies` call, and that the system should return the
* next page of data.
* @return ListServerTlsPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsServerTlsPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServerTlsPoliciesResponse::class);
}
/**
* Updates the parameters of a single ServerTlsPolicy. (serverTlsPolicies.patch)
*
* @param string $name Required. Name of the ServerTlsPolicy resource. It
* matches the pattern
* `projects/locations/{location}/serverTlsPolicies/{server_tls_policy}`
* @param ServerTlsPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the ServerTlsPolicy 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, ServerTlsPolicy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (serverTlsPolicies.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 GoogleIamV1SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::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.
* (serverTlsPolicies.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 GoogleIamV1TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsServerTlsPolicies::class, 'Google_Service_NetworkSecurity_Resource_ProjectsLocationsServerTlsPolicies');

View File

@@ -0,0 +1,145 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\ListTlsInspectionPoliciesResponse;
use Google\Service\NetworkSecurity\Operation;
use Google\Service\NetworkSecurity\TlsInspectionPolicy;
/**
* The "tlsInspectionPolicies" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $tlsInspectionPolicies = $networksecurityService->projects_locations_tlsInspectionPolicies;
* </code>
*/
class ProjectsLocationsTlsInspectionPolicies extends \Google\Service\Resource
{
/**
* Creates a new TlsInspectionPolicy in a given project and location.
* (tlsInspectionPolicies.create)
*
* @param string $parent Required. The parent resource of the
* TlsInspectionPolicy. Must be in the format
* `projects/{project}/locations/{location}`.
* @param TlsInspectionPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string tlsInspectionPolicyId Required. Short name of the
* TlsInspectionPolicy resource to be created. This value should be 1-63
* characters long, containing only letters, numbers, hyphens, and underscores,
* and should not start with a number. E.g. "tls_inspection_policy1".
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, TlsInspectionPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single TlsInspectionPolicy. (tlsInspectionPolicies.delete)
*
* @param string $name Required. A name of the TlsInspectionPolicy to delete.
* Must be in the format `projects/{project}/locations/{location}/tlsInspectionP
* olicies/{tls_inspection_policy}`.
* @param array $optParams Optional parameters.
*
* @opt_param bool force If set to true, any rules for this TlsInspectionPolicy
* will also be deleted. (Otherwise, the request will only work if the
* TlsInspectionPolicy has no rules.)
* @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 TlsInspectionPolicy. (tlsInspectionPolicies.get)
*
* @param string $name Required. A name of the TlsInspectionPolicy to get. Must
* be in the format `projects/{project}/locations/{location}/tlsInspectionPolici
* es/{tls_inspection_policy}`.
* @param array $optParams Optional parameters.
* @return TlsInspectionPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TlsInspectionPolicy::class);
}
/**
* Lists TlsInspectionPolicies in a given project and location.
* (tlsInspectionPolicies.listProjectsLocationsTlsInspectionPolicies)
*
* @param string $parent Required. The project and location from which the
* TlsInspectionPolicies should be listed, specified in the format
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of TlsInspectionPolicies to return per
* call.
* @opt_param string pageToken The value returned by the last
* 'ListTlsInspectionPoliciesResponse' Indicates that this is a continuation of
* a prior 'ListTlsInspectionPolicies' call, and that the system should return
* the next page of data.
* @return ListTlsInspectionPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsTlsInspectionPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTlsInspectionPoliciesResponse::class);
}
/**
* Updates the parameters of a single TlsInspectionPolicy.
* (tlsInspectionPolicies.patch)
*
* @param string $name Required. Name of the resource. Name is of the form proje
* cts/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_poli
* cy} tls_inspection_policy should match the
* pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
* @param TlsInspectionPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the TlsInspectionPolicy 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, TlsInspectionPolicy $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(ProjectsLocationsTlsInspectionPolicies::class, 'Google_Service_NetworkSecurity_Resource_ProjectsLocationsTlsInspectionPolicies');

View File

@@ -0,0 +1,133 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity\Resource;
use Google\Service\NetworkSecurity\ListUrlListsResponse;
use Google\Service\NetworkSecurity\Operation;
use Google\Service\NetworkSecurity\UrlList;
/**
* The "urlLists" collection of methods.
* Typical usage is:
* <code>
* $networksecurityService = new Google\Service\NetworkSecurity(...);
* $urlLists = $networksecurityService->projects_locations_urlLists;
* </code>
*/
class ProjectsLocationsUrlLists extends \Google\Service\Resource
{
/**
* Creates a new UrlList in a given project and location. (urlLists.create)
*
* @param string $parent Required. The parent resource of the UrlList. Must be
* in the format `projects/locations/{location}`.
* @param UrlList $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string urlListId Required. Short name of the UrlList resource to
* be created. This value should be 1-63 characters long, containing only
* letters, numbers, hyphens, and underscores, and should not start with a
* number. E.g. "url_list".
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, UrlList $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single UrlList. (urlLists.delete)
*
* @param string $name Required. A name of the UrlList to delete. Must be in the
* format `projects/locations/{location}/urlLists`.
* @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 UrlList. (urlLists.get)
*
* @param string $name Required. A name of the UrlList to get. Must be in the
* format `projects/locations/{location}/urlLists`.
* @param array $optParams Optional parameters.
* @return UrlList
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], UrlList::class);
}
/**
* Lists UrlLists in a given project and location.
* (urlLists.listProjectsLocationsUrlLists)
*
* @param string $parent Required. The project and location from which the
* UrlLists should be listed, specified in the format
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of UrlLists to return per call.
* @opt_param string pageToken The value returned by the last
* `ListUrlListsResponse` Indicates that this is a continuation of a prior
* `ListUrlLists` call, and that the system should return the next page of data.
* @return ListUrlListsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsUrlLists($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUrlListsResponse::class);
}
/**
* Updates the parameters of a single UrlList. (urlLists.patch)
*
* @param string $name Required. Name of the resource provided by the user. Name
* is of the form projects/{project}/locations/{location}/urlLists/{url_list}
* url_list should match the pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
* @param UrlList $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the UrlList 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, UrlList $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(ProjectsLocationsUrlLists::class, 'Google_Service_NetworkSecurity_Resource_ProjectsLocationsUrlLists');

View File

@@ -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\NetworkSecurity;
class Rule extends \Google\Collection
{
protected $collection_key = 'sources';
protected $destinationsType = Destination::class;
protected $destinationsDataType = 'array';
protected $sourcesType = Source::class;
protected $sourcesDataType = 'array';
/**
* @param Destination[]
*/
public function setDestinations($destinations)
{
$this->destinations = $destinations;
}
/**
* @return Destination[]
*/
public function getDestinations()
{
return $this->destinations;
}
/**
* @param Source[]
*/
public function setSources($sources)
{
$this->sources = $sources;
}
/**
* @return Source[]
*/
public function getSources()
{
return $this->sources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Rule::class, 'Google_Service_NetworkSecurity_Rule');

View File

@@ -0,0 +1,200 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class SecurityProfile extends \Google\Model
{
/**
* @var string
*/
public $createTime;
protected $customInterceptProfileType = CustomInterceptProfile::class;
protected $customInterceptProfileDataType = '';
protected $customMirroringProfileType = CustomMirroringProfile::class;
protected $customMirroringProfileDataType = '';
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $etag;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
protected $threatPreventionProfileType = ThreatPreventionProfile::class;
protected $threatPreventionProfileDataType = '';
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param CustomInterceptProfile
*/
public function setCustomInterceptProfile(CustomInterceptProfile $customInterceptProfile)
{
$this->customInterceptProfile = $customInterceptProfile;
}
/**
* @return CustomInterceptProfile
*/
public function getCustomInterceptProfile()
{
return $this->customInterceptProfile;
}
/**
* @param CustomMirroringProfile
*/
public function setCustomMirroringProfile(CustomMirroringProfile $customMirroringProfile)
{
$this->customMirroringProfile = $customMirroringProfile;
}
/**
* @return CustomMirroringProfile
*/
public function getCustomMirroringProfile()
{
return $this->customMirroringProfile;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param ThreatPreventionProfile
*/
public function setThreatPreventionProfile(ThreatPreventionProfile $threatPreventionProfile)
{
$this->threatPreventionProfile = $threatPreventionProfile;
}
/**
* @return ThreatPreventionProfile
*/
public function getThreatPreventionProfile()
{
return $this->threatPreventionProfile;
}
/**
* @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(SecurityProfile::class, 'Google_Service_NetworkSecurity_SecurityProfile');

View File

@@ -0,0 +1,188 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class SecurityProfileGroup extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $customInterceptProfile;
/**
* @var string
*/
public $customMirroringProfile;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $etag;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $threatPreventionProfile;
/**
* @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 setCustomInterceptProfile($customInterceptProfile)
{
$this->customInterceptProfile = $customInterceptProfile;
}
/**
* @return string
*/
public function getCustomInterceptProfile()
{
return $this->customInterceptProfile;
}
/**
* @param string
*/
public function setCustomMirroringProfile($customMirroringProfile)
{
$this->customMirroringProfile = $customMirroringProfile;
}
/**
* @return string
*/
public function getCustomMirroringProfile()
{
return $this->customMirroringProfile;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setThreatPreventionProfile($threatPreventionProfile)
{
$this->threatPreventionProfile = $threatPreventionProfile;
}
/**
* @return string
*/
public function getThreatPreventionProfile()
{
return $this->threatPreventionProfile;
}
/**
* @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(SecurityProfileGroup::class, 'Google_Service_NetworkSecurity_SecurityProfileGroup');

View File

@@ -0,0 +1,166 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class ServerTlsPolicy extends \Google\Model
{
/**
* @var bool
*/
public $allowOpen;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string[]
*/
public $labels;
protected $mtlsPolicyType = MTLSPolicy::class;
protected $mtlsPolicyDataType = '';
/**
* @var string
*/
public $name;
protected $serverCertificateType = GoogleCloudNetworksecurityV1CertificateProvider::class;
protected $serverCertificateDataType = '';
/**
* @var string
*/
public $updateTime;
/**
* @param bool
*/
public function setAllowOpen($allowOpen)
{
$this->allowOpen = $allowOpen;
}
/**
* @return bool
*/
public function getAllowOpen()
{
return $this->allowOpen;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param MTLSPolicy
*/
public function setMtlsPolicy(MTLSPolicy $mtlsPolicy)
{
$this->mtlsPolicy = $mtlsPolicy;
}
/**
* @return MTLSPolicy
*/
public function getMtlsPolicy()
{
return $this->mtlsPolicy;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param GoogleCloudNetworksecurityV1CertificateProvider
*/
public function setServerCertificate(GoogleCloudNetworksecurityV1CertificateProvider $serverCertificate)
{
$this->serverCertificate = $serverCertificate;
}
/**
* @return GoogleCloudNetworksecurityV1CertificateProvider
*/
public function getServerCertificate()
{
return $this->serverCertificate;
}
/**
* @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(ServerTlsPolicy::class, 'Google_Service_NetworkSecurity_ServerTlsPolicy');

View File

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

View File

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

View File

@@ -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\NetworkSecurity;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_NetworkSecurity_Status');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class ThreatOverride extends \Google\Model
{
/**
* @var string
*/
public $action;
/**
* @var string
*/
public $threatId;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* @param string
*/
public function setThreatId($threatId)
{
$this->threatId = $threatId;
}
/**
* @return string
*/
public function getThreatId()
{
return $this->threatId;
}
/**
* @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(ThreatOverride::class, 'Google_Service_NetworkSecurity_ThreatOverride');

View File

@@ -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\NetworkSecurity;
class ThreatPreventionProfile extends \Google\Collection
{
protected $collection_key = 'threatOverrides';
protected $severityOverridesType = SeverityOverride::class;
protected $severityOverridesDataType = 'array';
protected $threatOverridesType = ThreatOverride::class;
protected $threatOverridesDataType = 'array';
/**
* @param SeverityOverride[]
*/
public function setSeverityOverrides($severityOverrides)
{
$this->severityOverrides = $severityOverrides;
}
/**
* @return SeverityOverride[]
*/
public function getSeverityOverrides()
{
return $this->severityOverrides;
}
/**
* @param ThreatOverride[]
*/
public function setThreatOverrides($threatOverrides)
{
$this->threatOverrides = $threatOverrides;
}
/**
* @return ThreatOverride[]
*/
public function getThreatOverrides()
{
return $this->threatOverrides;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ThreatPreventionProfile::class, 'Google_Service_NetworkSecurity_ThreatPreventionProfile');

View File

@@ -0,0 +1,207 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class TlsInspectionPolicy extends \Google\Collection
{
protected $collection_key = 'customTlsFeatures';
/**
* @var string
*/
public $caPool;
/**
* @var string
*/
public $createTime;
/**
* @var string[]
*/
public $customTlsFeatures;
/**
* @var string
*/
public $description;
/**
* @var bool
*/
public $excludePublicCaSet;
/**
* @var string
*/
public $minTlsVersion;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $tlsFeatureProfile;
/**
* @var string
*/
public $trustConfig;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCaPool($caPool)
{
$this->caPool = $caPool;
}
/**
* @return string
*/
public function getCaPool()
{
return $this->caPool;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string[]
*/
public function setCustomTlsFeatures($customTlsFeatures)
{
$this->customTlsFeatures = $customTlsFeatures;
}
/**
* @return string[]
*/
public function getCustomTlsFeatures()
{
return $this->customTlsFeatures;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param bool
*/
public function setExcludePublicCaSet($excludePublicCaSet)
{
$this->excludePublicCaSet = $excludePublicCaSet;
}
/**
* @return bool
*/
public function getExcludePublicCaSet()
{
return $this->excludePublicCaSet;
}
/**
* @param string
*/
public function setMinTlsVersion($minTlsVersion)
{
$this->minTlsVersion = $minTlsVersion;
}
/**
* @return string
*/
public function getMinTlsVersion()
{
return $this->minTlsVersion;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setTlsFeatureProfile($tlsFeatureProfile)
{
$this->tlsFeatureProfile = $tlsFeatureProfile;
}
/**
* @return string
*/
public function getTlsFeatureProfile()
{
return $this->tlsFeatureProfile;
}
/**
* @param string
*/
public function setTrustConfig($trustConfig)
{
$this->trustConfig = $trustConfig;
}
/**
* @return string
*/
public function getTrustConfig()
{
return $this->trustConfig;
}
/**
* @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(TlsInspectionPolicy::class, 'Google_Service_NetworkSecurity_TlsInspectionPolicy');

View File

@@ -0,0 +1,117 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkSecurity;
class UrlList extends \Google\Collection
{
protected $collection_key = 'values';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $updateTime;
/**
* @var string[]
*/
public $values;
/**
* @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 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;
}
/**
* @param string[]
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return string[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UrlList::class, 'Google_Service_NetworkSecurity_UrlList');

View File

@@ -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\NetworkSecurity;
class ValidationCA extends \Google\Model
{
protected $certificateProviderInstanceType = CertificateProviderInstance::class;
protected $certificateProviderInstanceDataType = '';
protected $grpcEndpointType = GoogleCloudNetworksecurityV1GrpcEndpoint::class;
protected $grpcEndpointDataType = '';
/**
* @param CertificateProviderInstance
*/
public function setCertificateProviderInstance(CertificateProviderInstance $certificateProviderInstance)
{
$this->certificateProviderInstance = $certificateProviderInstance;
}
/**
* @return CertificateProviderInstance
*/
public function getCertificateProviderInstance()
{
return $this->certificateProviderInstance;
}
/**
* @param GoogleCloudNetworksecurityV1GrpcEndpoint
*/
public function setGrpcEndpoint(GoogleCloudNetworksecurityV1GrpcEndpoint $grpcEndpoint)
{
$this->grpcEndpoint = $grpcEndpoint;
}
/**
* @return GoogleCloudNetworksecurityV1GrpcEndpoint
*/
public function getGrpcEndpoint()
{
return $this->grpcEndpoint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ValidationCA::class, 'Google_Service_NetworkSecurity_ValidationCA');