|
| 1 | +<?php |
| 2 | +/* |
| 3 | + * Copyright 2014 Google Inc. |
| 4 | + * |
| 5 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 6 | + * use this file except in compliance with the License. You may obtain a copy of |
| 7 | + * the License at |
| 8 | + * |
| 9 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + * |
| 11 | + * Unless required by applicable law or agreed to in writing, software |
| 12 | + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 | + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 14 | + * License for the specific language governing permissions and limitations under |
| 15 | + * the License. |
| 16 | + */ |
| 17 | + |
| 18 | +namespace Google\Service\CloudFunctions; |
| 19 | + |
| 20 | +class DirectVpcNetworkInterface extends \Google\Collection |
| 21 | +{ |
| 22 | + protected $collection_key = 'tags'; |
| 23 | + /** |
| 24 | + * Optional. The name of the VPC network to which the function will be |
| 25 | + * connected. Specify either a VPC network or a subnet, or both. If you |
| 26 | + * specify only a network, the subnet uses the same name as the network. |
| 27 | + * |
| 28 | + * @var string |
| 29 | + */ |
| 30 | + public $network; |
| 31 | + /** |
| 32 | + * Optional. The name of the VPC subnetwork that the Cloud Function resource |
| 33 | + * will get IPs from. Specify either a VPC network or a subnet, or both. If |
| 34 | + * both network and subnetwork are specified, the given VPC subnetwork must |
| 35 | + * belong to the given VPC network. If subnetwork is not specified, the |
| 36 | + * subnetwork with the same name with the network will be used. |
| 37 | + * |
| 38 | + * @var string |
| 39 | + */ |
| 40 | + public $subnetwork; |
| 41 | + /** |
| 42 | + * Optional. Network tags applied to this Cloud Function resource. |
| 43 | + * |
| 44 | + * @var string[] |
| 45 | + */ |
| 46 | + public $tags; |
| 47 | + |
| 48 | + /** |
| 49 | + * Optional. The name of the VPC network to which the function will be |
| 50 | + * connected. Specify either a VPC network or a subnet, or both. If you |
| 51 | + * specify only a network, the subnet uses the same name as the network. |
| 52 | + * |
| 53 | + * @param string $network |
| 54 | + */ |
| 55 | + public function setNetwork($network) |
| 56 | + { |
| 57 | + $this->network = $network; |
| 58 | + } |
| 59 | + /** |
| 60 | + * @return string |
| 61 | + */ |
| 62 | + public function getNetwork() |
| 63 | + { |
| 64 | + return $this->network; |
| 65 | + } |
| 66 | + /** |
| 67 | + * Optional. The name of the VPC subnetwork that the Cloud Function resource |
| 68 | + * will get IPs from. Specify either a VPC network or a subnet, or both. If |
| 69 | + * both network and subnetwork are specified, the given VPC subnetwork must |
| 70 | + * belong to the given VPC network. If subnetwork is not specified, the |
| 71 | + * subnetwork with the same name with the network will be used. |
| 72 | + * |
| 73 | + * @param string $subnetwork |
| 74 | + */ |
| 75 | + public function setSubnetwork($subnetwork) |
| 76 | + { |
| 77 | + $this->subnetwork = $subnetwork; |
| 78 | + } |
| 79 | + /** |
| 80 | + * @return string |
| 81 | + */ |
| 82 | + public function getSubnetwork() |
| 83 | + { |
| 84 | + return $this->subnetwork; |
| 85 | + } |
| 86 | + /** |
| 87 | + * Optional. Network tags applied to this Cloud Function resource. |
| 88 | + * |
| 89 | + * @param string[] $tags |
| 90 | + */ |
| 91 | + public function setTags($tags) |
| 92 | + { |
| 93 | + $this->tags = $tags; |
| 94 | + } |
| 95 | + /** |
| 96 | + * @return string[] |
| 97 | + */ |
| 98 | + public function getTags() |
| 99 | + { |
| 100 | + return $this->tags; |
| 101 | + } |
| 102 | +} |
| 103 | + |
| 104 | +// Adding a class alias for backwards compatibility with the previous class name. |
| 105 | +class_alias(DirectVpcNetworkInterface::class, 'Google_Service_CloudFunctions_DirectVpcNetworkInterface'); |
0 commit comments