[f9c482b] | 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\CloudRun;
|
---|
| 19 |
|
---|
| 20 | class GoogleCloudRunV2Volume extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | protected $cloudSqlInstanceType = GoogleCloudRunV2CloudSqlInstance::class;
|
---|
| 23 | protected $cloudSqlInstanceDataType = '';
|
---|
| 24 | protected $emptyDirType = GoogleCloudRunV2EmptyDirVolumeSource::class;
|
---|
| 25 | protected $emptyDirDataType = '';
|
---|
| 26 | protected $gcsType = GoogleCloudRunV2GCSVolumeSource::class;
|
---|
| 27 | protected $gcsDataType = '';
|
---|
| 28 | /**
|
---|
| 29 | * @var string
|
---|
| 30 | */
|
---|
| 31 | public $name;
|
---|
| 32 | protected $nfsType = GoogleCloudRunV2NFSVolumeSource::class;
|
---|
| 33 | protected $nfsDataType = '';
|
---|
| 34 | protected $secretType = GoogleCloudRunV2SecretVolumeSource::class;
|
---|
| 35 | protected $secretDataType = '';
|
---|
| 36 |
|
---|
| 37 | /**
|
---|
| 38 | * @param GoogleCloudRunV2CloudSqlInstance
|
---|
| 39 | */
|
---|
| 40 | public function setCloudSqlInstance(GoogleCloudRunV2CloudSqlInstance $cloudSqlInstance)
|
---|
| 41 | {
|
---|
| 42 | $this->cloudSqlInstance = $cloudSqlInstance;
|
---|
| 43 | }
|
---|
| 44 | /**
|
---|
| 45 | * @return GoogleCloudRunV2CloudSqlInstance
|
---|
| 46 | */
|
---|
| 47 | public function getCloudSqlInstance()
|
---|
| 48 | {
|
---|
| 49 | return $this->cloudSqlInstance;
|
---|
| 50 | }
|
---|
| 51 | /**
|
---|
| 52 | * @param GoogleCloudRunV2EmptyDirVolumeSource
|
---|
| 53 | */
|
---|
| 54 | public function setEmptyDir(GoogleCloudRunV2EmptyDirVolumeSource $emptyDir)
|
---|
| 55 | {
|
---|
| 56 | $this->emptyDir = $emptyDir;
|
---|
| 57 | }
|
---|
| 58 | /**
|
---|
| 59 | * @return GoogleCloudRunV2EmptyDirVolumeSource
|
---|
| 60 | */
|
---|
| 61 | public function getEmptyDir()
|
---|
| 62 | {
|
---|
| 63 | return $this->emptyDir;
|
---|
| 64 | }
|
---|
| 65 | /**
|
---|
| 66 | * @param GoogleCloudRunV2GCSVolumeSource
|
---|
| 67 | */
|
---|
| 68 | public function setGcs(GoogleCloudRunV2GCSVolumeSource $gcs)
|
---|
| 69 | {
|
---|
| 70 | $this->gcs = $gcs;
|
---|
| 71 | }
|
---|
| 72 | /**
|
---|
| 73 | * @return GoogleCloudRunV2GCSVolumeSource
|
---|
| 74 | */
|
---|
| 75 | public function getGcs()
|
---|
| 76 | {
|
---|
| 77 | return $this->gcs;
|
---|
| 78 | }
|
---|
| 79 | /**
|
---|
| 80 | * @param string
|
---|
| 81 | */
|
---|
| 82 | public function setName($name)
|
---|
| 83 | {
|
---|
| 84 | $this->name = $name;
|
---|
| 85 | }
|
---|
| 86 | /**
|
---|
| 87 | * @return string
|
---|
| 88 | */
|
---|
| 89 | public function getName()
|
---|
| 90 | {
|
---|
| 91 | return $this->name;
|
---|
| 92 | }
|
---|
| 93 | /**
|
---|
| 94 | * @param GoogleCloudRunV2NFSVolumeSource
|
---|
| 95 | */
|
---|
| 96 | public function setNfs(GoogleCloudRunV2NFSVolumeSource $nfs)
|
---|
| 97 | {
|
---|
| 98 | $this->nfs = $nfs;
|
---|
| 99 | }
|
---|
| 100 | /**
|
---|
| 101 | * @return GoogleCloudRunV2NFSVolumeSource
|
---|
| 102 | */
|
---|
| 103 | public function getNfs()
|
---|
| 104 | {
|
---|
| 105 | return $this->nfs;
|
---|
| 106 | }
|
---|
| 107 | /**
|
---|
| 108 | * @param GoogleCloudRunV2SecretVolumeSource
|
---|
| 109 | */
|
---|
| 110 | public function setSecret(GoogleCloudRunV2SecretVolumeSource $secret)
|
---|
| 111 | {
|
---|
| 112 | $this->secret = $secret;
|
---|
| 113 | }
|
---|
| 114 | /**
|
---|
| 115 | * @return GoogleCloudRunV2SecretVolumeSource
|
---|
| 116 | */
|
---|
| 117 | public function getSecret()
|
---|
| 118 | {
|
---|
| 119 | return $this->secret;
|
---|
| 120 | }
|
---|
| 121 | }
|
---|
| 122 |
|
---|
| 123 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 124 | class_alias(GoogleCloudRunV2Volume::class, 'Google_Service_CloudRun_GoogleCloudRunV2Volume');
|
---|