[e3d4e0a] | 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\ArtifactRegistry;
|
---|
| 19 |
|
---|
| 20 | class RemoteRepositoryConfig extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | protected $aptRepositoryType = AptRepository::class;
|
---|
| 23 | protected $aptRepositoryDataType = '';
|
---|
| 24 | protected $commonRepositoryType = CommonRemoteRepository::class;
|
---|
| 25 | protected $commonRepositoryDataType = '';
|
---|
| 26 | /**
|
---|
| 27 | * @var string
|
---|
| 28 | */
|
---|
| 29 | public $description;
|
---|
| 30 | /**
|
---|
| 31 | * @var bool
|
---|
| 32 | */
|
---|
| 33 | public $disableUpstreamValidation;
|
---|
| 34 | protected $dockerRepositoryType = DockerRepository::class;
|
---|
| 35 | protected $dockerRepositoryDataType = '';
|
---|
| 36 | protected $mavenRepositoryType = MavenRepository::class;
|
---|
| 37 | protected $mavenRepositoryDataType = '';
|
---|
| 38 | protected $npmRepositoryType = NpmRepository::class;
|
---|
| 39 | protected $npmRepositoryDataType = '';
|
---|
| 40 | protected $pythonRepositoryType = PythonRepository::class;
|
---|
| 41 | protected $pythonRepositoryDataType = '';
|
---|
| 42 | protected $upstreamCredentialsType = UpstreamCredentials::class;
|
---|
| 43 | protected $upstreamCredentialsDataType = '';
|
---|
| 44 | protected $yumRepositoryType = YumRepository::class;
|
---|
| 45 | protected $yumRepositoryDataType = '';
|
---|
| 46 |
|
---|
| 47 | /**
|
---|
| 48 | * @param AptRepository
|
---|
| 49 | */
|
---|
| 50 | public function setAptRepository(AptRepository $aptRepository)
|
---|
| 51 | {
|
---|
| 52 | $this->aptRepository = $aptRepository;
|
---|
| 53 | }
|
---|
| 54 | /**
|
---|
| 55 | * @return AptRepository
|
---|
| 56 | */
|
---|
| 57 | public function getAptRepository()
|
---|
| 58 | {
|
---|
| 59 | return $this->aptRepository;
|
---|
| 60 | }
|
---|
| 61 | /**
|
---|
| 62 | * @param CommonRemoteRepository
|
---|
| 63 | */
|
---|
| 64 | public function setCommonRepository(CommonRemoteRepository $commonRepository)
|
---|
| 65 | {
|
---|
| 66 | $this->commonRepository = $commonRepository;
|
---|
| 67 | }
|
---|
| 68 | /**
|
---|
| 69 | * @return CommonRemoteRepository
|
---|
| 70 | */
|
---|
| 71 | public function getCommonRepository()
|
---|
| 72 | {
|
---|
| 73 | return $this->commonRepository;
|
---|
| 74 | }
|
---|
| 75 | /**
|
---|
| 76 | * @param string
|
---|
| 77 | */
|
---|
| 78 | public function setDescription($description)
|
---|
| 79 | {
|
---|
| 80 | $this->description = $description;
|
---|
| 81 | }
|
---|
| 82 | /**
|
---|
| 83 | * @return string
|
---|
| 84 | */
|
---|
| 85 | public function getDescription()
|
---|
| 86 | {
|
---|
| 87 | return $this->description;
|
---|
| 88 | }
|
---|
| 89 | /**
|
---|
| 90 | * @param bool
|
---|
| 91 | */
|
---|
| 92 | public function setDisableUpstreamValidation($disableUpstreamValidation)
|
---|
| 93 | {
|
---|
| 94 | $this->disableUpstreamValidation = $disableUpstreamValidation;
|
---|
| 95 | }
|
---|
| 96 | /**
|
---|
| 97 | * @return bool
|
---|
| 98 | */
|
---|
| 99 | public function getDisableUpstreamValidation()
|
---|
| 100 | {
|
---|
| 101 | return $this->disableUpstreamValidation;
|
---|
| 102 | }
|
---|
| 103 | /**
|
---|
| 104 | * @param DockerRepository
|
---|
| 105 | */
|
---|
| 106 | public function setDockerRepository(DockerRepository $dockerRepository)
|
---|
| 107 | {
|
---|
| 108 | $this->dockerRepository = $dockerRepository;
|
---|
| 109 | }
|
---|
| 110 | /**
|
---|
| 111 | * @return DockerRepository
|
---|
| 112 | */
|
---|
| 113 | public function getDockerRepository()
|
---|
| 114 | {
|
---|
| 115 | return $this->dockerRepository;
|
---|
| 116 | }
|
---|
| 117 | /**
|
---|
| 118 | * @param MavenRepository
|
---|
| 119 | */
|
---|
| 120 | public function setMavenRepository(MavenRepository $mavenRepository)
|
---|
| 121 | {
|
---|
| 122 | $this->mavenRepository = $mavenRepository;
|
---|
| 123 | }
|
---|
| 124 | /**
|
---|
| 125 | * @return MavenRepository
|
---|
| 126 | */
|
---|
| 127 | public function getMavenRepository()
|
---|
| 128 | {
|
---|
| 129 | return $this->mavenRepository;
|
---|
| 130 | }
|
---|
| 131 | /**
|
---|
| 132 | * @param NpmRepository
|
---|
| 133 | */
|
---|
| 134 | public function setNpmRepository(NpmRepository $npmRepository)
|
---|
| 135 | {
|
---|
| 136 | $this->npmRepository = $npmRepository;
|
---|
| 137 | }
|
---|
| 138 | /**
|
---|
| 139 | * @return NpmRepository
|
---|
| 140 | */
|
---|
| 141 | public function getNpmRepository()
|
---|
| 142 | {
|
---|
| 143 | return $this->npmRepository;
|
---|
| 144 | }
|
---|
| 145 | /**
|
---|
| 146 | * @param PythonRepository
|
---|
| 147 | */
|
---|
| 148 | public function setPythonRepository(PythonRepository $pythonRepository)
|
---|
| 149 | {
|
---|
| 150 | $this->pythonRepository = $pythonRepository;
|
---|
| 151 | }
|
---|
| 152 | /**
|
---|
| 153 | * @return PythonRepository
|
---|
| 154 | */
|
---|
| 155 | public function getPythonRepository()
|
---|
| 156 | {
|
---|
| 157 | return $this->pythonRepository;
|
---|
| 158 | }
|
---|
| 159 | /**
|
---|
| 160 | * @param UpstreamCredentials
|
---|
| 161 | */
|
---|
| 162 | public function setUpstreamCredentials(UpstreamCredentials $upstreamCredentials)
|
---|
| 163 | {
|
---|
| 164 | $this->upstreamCredentials = $upstreamCredentials;
|
---|
| 165 | }
|
---|
| 166 | /**
|
---|
| 167 | * @return UpstreamCredentials
|
---|
| 168 | */
|
---|
| 169 | public function getUpstreamCredentials()
|
---|
| 170 | {
|
---|
| 171 | return $this->upstreamCredentials;
|
---|
| 172 | }
|
---|
| 173 | /**
|
---|
| 174 | * @param YumRepository
|
---|
| 175 | */
|
---|
| 176 | public function setYumRepository(YumRepository $yumRepository)
|
---|
| 177 | {
|
---|
| 178 | $this->yumRepository = $yumRepository;
|
---|
| 179 | }
|
---|
| 180 | /**
|
---|
| 181 | * @return YumRepository
|
---|
| 182 | */
|
---|
| 183 | public function getYumRepository()
|
---|
| 184 | {
|
---|
| 185 | return $this->yumRepository;
|
---|
| 186 | }
|
---|
| 187 | }
|
---|
| 188 |
|
---|
| 189 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 190 | class_alias(RemoteRepositoryConfig::class, 'Google_Service_ArtifactRegistry_RemoteRepositoryConfig');
|
---|