Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ArtifactRegistry;
class AptArtifact extends \Google\Model
{
/**
* @var string
*/
public $architecture;
/**
* @var string
*/
public $component;
/**
* @var string
*/
public $controlFile;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $packageName;
/**
* @var string
*/
public $packageType;
/**
* @param string
*/
public function setArchitecture($architecture)
{
$this->architecture = $architecture;
}
/**
* @return string
*/
public function getArchitecture()
{
return $this->architecture;
}
/**
* @param string
*/
public function setComponent($component)
{
$this->component = $component;
}
/**
* @return string
*/
public function getComponent()
{
return $this->component;
}
/**
* @param string
*/
public function setControlFile($controlFile)
{
$this->controlFile = $controlFile;
}
/**
* @return string
*/
public function getControlFile()
{
return $this->controlFile;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPackageName($packageName)
{
$this->packageName = $packageName;
}
/**
* @return string
*/
public function getPackageName()
{
return $this->packageName;
}
/**
* @param string
*/
public function setPackageType($packageType)
{
$this->packageType = $packageType;
}
/**
* @return string
*/
public function getPackageType()
{
return $this->packageType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AptArtifact::class, 'Google_Service_ArtifactRegistry_AptArtifact');
@@ -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\ArtifactRegistry;
class AptRepository extends \Google\Model
{
protected $customRepositoryType = GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository::class;
protected $customRepositoryDataType = '';
protected $publicRepositoryType = GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository::class;
protected $publicRepositoryDataType = '';
/**
* @param GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository
*/
public function setCustomRepository(GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository $customRepository)
{
$this->customRepository = $customRepository;
}
/**
* @return GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository
*/
public function getCustomRepository()
{
return $this->customRepository;
}
/**
* @param GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository
*/
public function setPublicRepository(GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository $publicRepository)
{
$this->publicRepository = $publicRepository;
}
/**
* @return GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository
*/
public function getPublicRepository()
{
return $this->publicRepository;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AptRepository::class, 'Google_Service_ArtifactRegistry_AptRepository');
@@ -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\ArtifactRegistry;
class ArtifactregistryEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArtifactregistryEmpty::class, 'Google_Service_ArtifactRegistry_ArtifactregistryEmpty');
@@ -0,0 +1,189 @@
<?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\ArtifactRegistry;
class Attachment extends \Google\Collection
{
protected $collection_key = 'files';
/**
* @var string[]
*/
public $annotations;
/**
* @var string
*/
public $attachmentNamespace;
/**
* @var string
*/
public $createTime;
/**
* @var string[]
*/
public $files;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $ociVersionName;
/**
* @var string
*/
public $target;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $updateTime;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string
*/
public function setAttachmentNamespace($attachmentNamespace)
{
$this->attachmentNamespace = $attachmentNamespace;
}
/**
* @return string
*/
public function getAttachmentNamespace()
{
return $this->attachmentNamespace;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string[]
*/
public function setFiles($files)
{
$this->files = $files;
}
/**
* @return string[]
*/
public function getFiles()
{
return $this->files;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOciVersionName($ociVersionName)
{
$this->ociVersionName = $ociVersionName;
}
/**
* @return string
*/
public function getOciVersionName()
{
return $this->ociVersionName;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* @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(Attachment::class, 'Google_Service_ArtifactRegistry_Attachment');
@@ -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\ArtifactRegistry;
class BatchDeleteVersionsMetadata extends \Google\Collection
{
protected $collection_key = 'failedVersions';
/**
* @var string[]
*/
public $failedVersions;
/**
* @param string[]
*/
public function setFailedVersions($failedVersions)
{
$this->failedVersions = $failedVersions;
}
/**
* @return string[]
*/
public function getFailedVersions()
{
return $this->failedVersions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchDeleteVersionsMetadata::class, 'Google_Service_ArtifactRegistry_BatchDeleteVersionsMetadata');
@@ -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\ArtifactRegistry;
class BatchDeleteVersionsRequest extends \Google\Collection
{
protected $collection_key = 'names';
/**
* @var string[]
*/
public $names;
/**
* @var bool
*/
public $validateOnly;
/**
* @param string[]
*/
public function setNames($names)
{
$this->names = $names;
}
/**
* @return string[]
*/
public function getNames()
{
return $this->names;
}
/**
* @param bool
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchDeleteVersionsRequest::class, 'Google_Service_ArtifactRegistry_BatchDeleteVersionsRequest');
@@ -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\ArtifactRegistry;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_ArtifactRegistry_Binding');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ArtifactRegistry;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_ArtifactRegistry_CancelOperationRequest');
@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ArtifactRegistry;
class CleanupPolicy extends \Google\Model
{
/**
* @var string
*/
public $action;
protected $conditionType = CleanupPolicyCondition::class;
protected $conditionDataType = '';
/**
* @var string
*/
public $id;
protected $mostRecentVersionsType = CleanupPolicyMostRecentVersions::class;
protected $mostRecentVersionsDataType = '';
/**
* @param string
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* @param CleanupPolicyCondition
*/
public function setCondition(CleanupPolicyCondition $condition)
{
$this->condition = $condition;
}
/**
* @return CleanupPolicyCondition
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param CleanupPolicyMostRecentVersions
*/
public function setMostRecentVersions(CleanupPolicyMostRecentVersions $mostRecentVersions)
{
$this->mostRecentVersions = $mostRecentVersions;
}
/**
* @return CleanupPolicyMostRecentVersions
*/
public function getMostRecentVersions()
{
return $this->mostRecentVersions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CleanupPolicy::class, 'Google_Service_ArtifactRegistry_CleanupPolicy');
@@ -0,0 +1,135 @@
<?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\ArtifactRegistry;
class CleanupPolicyCondition extends \Google\Collection
{
protected $collection_key = 'versionNamePrefixes';
/**
* @var string
*/
public $newerThan;
/**
* @var string
*/
public $olderThan;
/**
* @var string[]
*/
public $packageNamePrefixes;
/**
* @var string[]
*/
public $tagPrefixes;
/**
* @var string
*/
public $tagState;
/**
* @var string[]
*/
public $versionNamePrefixes;
/**
* @param string
*/
public function setNewerThan($newerThan)
{
$this->newerThan = $newerThan;
}
/**
* @return string
*/
public function getNewerThan()
{
return $this->newerThan;
}
/**
* @param string
*/
public function setOlderThan($olderThan)
{
$this->olderThan = $olderThan;
}
/**
* @return string
*/
public function getOlderThan()
{
return $this->olderThan;
}
/**
* @param string[]
*/
public function setPackageNamePrefixes($packageNamePrefixes)
{
$this->packageNamePrefixes = $packageNamePrefixes;
}
/**
* @return string[]
*/
public function getPackageNamePrefixes()
{
return $this->packageNamePrefixes;
}
/**
* @param string[]
*/
public function setTagPrefixes($tagPrefixes)
{
$this->tagPrefixes = $tagPrefixes;
}
/**
* @return string[]
*/
public function getTagPrefixes()
{
return $this->tagPrefixes;
}
/**
* @param string
*/
public function setTagState($tagState)
{
$this->tagState = $tagState;
}
/**
* @return string
*/
public function getTagState()
{
return $this->tagState;
}
/**
* @param string[]
*/
public function setVersionNamePrefixes($versionNamePrefixes)
{
$this->versionNamePrefixes = $versionNamePrefixes;
}
/**
* @return string[]
*/
public function getVersionNamePrefixes()
{
return $this->versionNamePrefixes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CleanupPolicyCondition::class, 'Google_Service_ArtifactRegistry_CleanupPolicyCondition');
@@ -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\ArtifactRegistry;
class CleanupPolicyMostRecentVersions extends \Google\Collection
{
protected $collection_key = 'packageNamePrefixes';
/**
* @var int
*/
public $keepCount;
/**
* @var string[]
*/
public $packageNamePrefixes;
/**
* @param int
*/
public function setKeepCount($keepCount)
{
$this->keepCount = $keepCount;
}
/**
* @return int
*/
public function getKeepCount()
{
return $this->keepCount;
}
/**
* @param string[]
*/
public function setPackageNamePrefixes($packageNamePrefixes)
{
$this->packageNamePrefixes = $packageNamePrefixes;
}
/**
* @return string[]
*/
public function getPackageNamePrefixes()
{
return $this->packageNamePrefixes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CleanupPolicyMostRecentVersions::class, 'Google_Service_ArtifactRegistry_CleanupPolicyMostRecentVersions');
@@ -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\ArtifactRegistry;
class CommonRemoteRepository extends \Google\Model
{
/**
* @var string
*/
public $uri;
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommonRemoteRepository::class, 'Google_Service_ArtifactRegistry_CommonRemoteRepository');
@@ -0,0 +1,171 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ArtifactRegistry;
class DockerImage extends \Google\Collection
{
protected $collection_key = 'tags';
/**
* @var string
*/
public $buildTime;
/**
* @var string
*/
public $imageSizeBytes;
/**
* @var string
*/
public $mediaType;
/**
* @var string
*/
public $name;
/**
* @var string[]
*/
public $tags;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $uploadTime;
/**
* @var string
*/
public $uri;
/**
* @param string
*/
public function setBuildTime($buildTime)
{
$this->buildTime = $buildTime;
}
/**
* @return string
*/
public function getBuildTime()
{
return $this->buildTime;
}
/**
* @param string
*/
public function setImageSizeBytes($imageSizeBytes)
{
$this->imageSizeBytes = $imageSizeBytes;
}
/**
* @return string
*/
public function getImageSizeBytes()
{
return $this->imageSizeBytes;
}
/**
* @param string
*/
public function setMediaType($mediaType)
{
$this->mediaType = $mediaType;
}
/**
* @return string
*/
public function getMediaType()
{
return $this->mediaType;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string[]
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setUploadTime($uploadTime)
{
$this->uploadTime = $uploadTime;
}
/**
* @return string
*/
public function getUploadTime()
{
return $this->uploadTime;
}
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DockerImage::class, 'Google_Service_ArtifactRegistry_DockerImage');
@@ -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\ArtifactRegistry;
class DockerRepository extends \Google\Model
{
protected $customRepositoryType = GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository::class;
protected $customRepositoryDataType = '';
/**
* @var string
*/
public $publicRepository;
/**
* @param GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository
*/
public function setCustomRepository(GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository $customRepository)
{
$this->customRepository = $customRepository;
}
/**
* @return GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository
*/
public function getCustomRepository()
{
return $this->customRepository;
}
/**
* @param string
*/
public function setPublicRepository($publicRepository)
{
$this->publicRepository = $publicRepository;
}
/**
* @return string
*/
public function getPublicRepository()
{
return $this->publicRepository;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DockerRepository::class, 'Google_Service_ArtifactRegistry_DockerRepository');
@@ -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\ArtifactRegistry;
class DockerRepositoryConfig extends \Google\Model
{
/**
* @var bool
*/
public $immutableTags;
/**
* @param bool
*/
public function setImmutableTags($immutableTags)
{
$this->immutableTags = $immutableTags;
}
/**
* @return bool
*/
public function getImmutableTags()
{
return $this->immutableTags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DockerRepositoryConfig::class, 'Google_Service_ArtifactRegistry_DockerRepositoryConfig');
@@ -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\ArtifactRegistry;
class DownloadFileResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DownloadFileResponse::class, 'Google_Service_ArtifactRegistry_DownloadFileResponse');
@@ -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\ArtifactRegistry;
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_ArtifactRegistry_Expr');
@@ -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\ArtifactRegistry;
class GenericArtifact extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @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 setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenericArtifact::class, 'Google_Service_ArtifactRegistry_GenericArtifact');
@@ -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\ArtifactRegistry;
class GoModule extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @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 setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoModule::class, 'Google_Service_ArtifactRegistry_GoModule');
@@ -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\ArtifactRegistry;
class GoogetArtifact extends \Google\Model
{
/**
* @var string
*/
public $architecture;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $packageName;
/**
* @param string
*/
public function setArchitecture($architecture)
{
$this->architecture = $architecture;
}
/**
* @return string
*/
public function getArchitecture()
{
return $this->architecture;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPackageName($packageName)
{
$this->packageName = $packageName;
}
/**
* @return string
*/
public function getPackageName()
{
return $this->packageName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogetArtifact::class, 'Google_Service_ArtifactRegistry_GoogetArtifact');
@@ -0,0 +1,169 @@
<?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\ArtifactRegistry;
class GoogleDevtoolsArtifactregistryV1File extends \Google\Collection
{
protected $collection_key = 'hashes';
/**
* @var string[]
*/
public $annotations;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $fetchTime;
protected $hashesType = Hash::class;
protected $hashesDataType = 'array';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $owner;
/**
* @var string
*/
public $sizeBytes;
/**
* @var string
*/
public $updateTime;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setFetchTime($fetchTime)
{
$this->fetchTime = $fetchTime;
}
/**
* @return string
*/
public function getFetchTime()
{
return $this->fetchTime;
}
/**
* @param Hash[]
*/
public function setHashes($hashes)
{
$this->hashes = $hashes;
}
/**
* @return Hash[]
*/
public function getHashes()
{
return $this->hashes;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOwner($owner)
{
$this->owner = $owner;
}
/**
* @return string
*/
public function getOwner()
{
return $this->owner;
}
/**
* @param string
*/
public function setSizeBytes($sizeBytes)
{
$this->sizeBytes = $sizeBytes;
}
/**
* @return string
*/
public function getSizeBytes()
{
return $this->sizeBytes;
}
/**
* @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(GoogleDevtoolsArtifactregistryV1File::class, 'Google_Service_ArtifactRegistry_GoogleDevtoolsArtifactregistryV1File');
@@ -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\ArtifactRegistry;
class GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository extends \Google\Model
{
/**
* @var string
*/
public $uri;
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository::class, 'Google_Service_ArtifactRegistry_GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository');
@@ -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\ArtifactRegistry;
class GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository extends \Google\Model
{
/**
* @var string
*/
public $repositoryBase;
/**
* @var string
*/
public $repositoryPath;
/**
* @param string
*/
public function setRepositoryBase($repositoryBase)
{
$this->repositoryBase = $repositoryBase;
}
/**
* @return string
*/
public function getRepositoryBase()
{
return $this->repositoryBase;
}
/**
* @param string
*/
public function setRepositoryPath($repositoryPath)
{
$this->repositoryPath = $repositoryPath;
}
/**
* @return string
*/
public function getRepositoryPath()
{
return $this->repositoryPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository::class, 'Google_Service_ArtifactRegistry_GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository');
@@ -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\ArtifactRegistry;
class GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository extends \Google\Model
{
/**
* @var string
*/
public $uri;
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository::class, 'Google_Service_ArtifactRegistry_GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository');
@@ -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\ArtifactRegistry;
class GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository extends \Google\Model
{
/**
* @var string
*/
public $uri;
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository::class, 'Google_Service_ArtifactRegistry_GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository');
@@ -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\ArtifactRegistry;
class GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository extends \Google\Model
{
/**
* @var string
*/
public $uri;
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository::class, 'Google_Service_ArtifactRegistry_GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository');
@@ -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\ArtifactRegistry;
class GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository extends \Google\Model
{
/**
* @var string
*/
public $uri;
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository::class, 'Google_Service_ArtifactRegistry_GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository');
@@ -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\ArtifactRegistry;
class GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository extends \Google\Model
{
/**
* @var string
*/
public $uri;
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository::class, 'Google_Service_ArtifactRegistry_GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository');
@@ -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\ArtifactRegistry;
class GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository extends \Google\Model
{
/**
* @var string
*/
public $repositoryBase;
/**
* @var string
*/
public $repositoryPath;
/**
* @param string
*/
public function setRepositoryBase($repositoryBase)
{
$this->repositoryBase = $repositoryBase;
}
/**
* @return string
*/
public function getRepositoryBase()
{
return $this->repositoryBase;
}
/**
* @param string
*/
public function setRepositoryPath($repositoryPath)
{
$this->repositoryPath = $repositoryPath;
}
/**
* @return string
*/
public function getRepositoryPath()
{
return $this->repositoryPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository::class, 'Google_Service_ArtifactRegistry_GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository');
@@ -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\ArtifactRegistry;
class GoogleDevtoolsArtifactregistryV1Rule extends \Google\Model
{
/**
* @var string
*/
public $action;
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $operation;
/**
* @var string
*/
public $packageId;
/**
* @param string
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOperation($operation)
{
$this->operation = $operation;
}
/**
* @return string
*/
public function getOperation()
{
return $this->operation;
}
/**
* @param string
*/
public function setPackageId($packageId)
{
$this->packageId = $packageId;
}
/**
* @return string
*/
public function getPackageId()
{
return $this->packageId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDevtoolsArtifactregistryV1Rule::class, 'Google_Service_ArtifactRegistry_GoogleDevtoolsArtifactregistryV1Rule');
@@ -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\ArtifactRegistry;
class Hash extends \Google\Model
{
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Hash::class, 'Google_Service_ArtifactRegistry_Hash');
@@ -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\ArtifactRegistry;
class ImportAptArtifactsErrorInfo extends \Google\Model
{
protected $errorType = Status::class;
protected $errorDataType = '';
protected $gcsSourceType = ImportAptArtifactsGcsSource::class;
protected $gcsSourceDataType = '';
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param ImportAptArtifactsGcsSource
*/
public function setGcsSource(ImportAptArtifactsGcsSource $gcsSource)
{
$this->gcsSource = $gcsSource;
}
/**
* @return ImportAptArtifactsGcsSource
*/
public function getGcsSource()
{
return $this->gcsSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportAptArtifactsErrorInfo::class, 'Google_Service_ArtifactRegistry_ImportAptArtifactsErrorInfo');
@@ -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\ArtifactRegistry;
class ImportAptArtifactsGcsSource extends \Google\Collection
{
protected $collection_key = 'uris';
/**
* @var string[]
*/
public $uris;
/**
* @var bool
*/
public $useWildcards;
/**
* @param string[]
*/
public function setUris($uris)
{
$this->uris = $uris;
}
/**
* @return string[]
*/
public function getUris()
{
return $this->uris;
}
/**
* @param bool
*/
public function setUseWildcards($useWildcards)
{
$this->useWildcards = $useWildcards;
}
/**
* @return bool
*/
public function getUseWildcards()
{
return $this->useWildcards;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportAptArtifactsGcsSource::class, 'Google_Service_ArtifactRegistry_ImportAptArtifactsGcsSource');
@@ -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\ArtifactRegistry;
class ImportAptArtifactsMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportAptArtifactsMetadata::class, 'Google_Service_ArtifactRegistry_ImportAptArtifactsMetadata');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ArtifactRegistry;
class ImportAptArtifactsRequest extends \Google\Model
{
protected $gcsSourceType = ImportAptArtifactsGcsSource::class;
protected $gcsSourceDataType = '';
/**
* @param ImportAptArtifactsGcsSource
*/
public function setGcsSource(ImportAptArtifactsGcsSource $gcsSource)
{
$this->gcsSource = $gcsSource;
}
/**
* @return ImportAptArtifactsGcsSource
*/
public function getGcsSource()
{
return $this->gcsSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportAptArtifactsRequest::class, 'Google_Service_ArtifactRegistry_ImportAptArtifactsRequest');
@@ -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\ArtifactRegistry;
class ImportAptArtifactsResponse extends \Google\Collection
{
protected $collection_key = 'errors';
protected $aptArtifactsType = AptArtifact::class;
protected $aptArtifactsDataType = 'array';
protected $errorsType = ImportAptArtifactsErrorInfo::class;
protected $errorsDataType = 'array';
/**
* @param AptArtifact[]
*/
public function setAptArtifacts($aptArtifacts)
{
$this->aptArtifacts = $aptArtifacts;
}
/**
* @return AptArtifact[]
*/
public function getAptArtifacts()
{
return $this->aptArtifacts;
}
/**
* @param ImportAptArtifactsErrorInfo[]
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return ImportAptArtifactsErrorInfo[]
*/
public function getErrors()
{
return $this->errors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportAptArtifactsResponse::class, 'Google_Service_ArtifactRegistry_ImportAptArtifactsResponse');
@@ -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\ArtifactRegistry;
class ImportGoogetArtifactsErrorInfo extends \Google\Model
{
protected $errorType = Status::class;
protected $errorDataType = '';
protected $gcsSourceType = ImportGoogetArtifactsGcsSource::class;
protected $gcsSourceDataType = '';
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param ImportGoogetArtifactsGcsSource
*/
public function setGcsSource(ImportGoogetArtifactsGcsSource $gcsSource)
{
$this->gcsSource = $gcsSource;
}
/**
* @return ImportGoogetArtifactsGcsSource
*/
public function getGcsSource()
{
return $this->gcsSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportGoogetArtifactsErrorInfo::class, 'Google_Service_ArtifactRegistry_ImportGoogetArtifactsErrorInfo');
@@ -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\ArtifactRegistry;
class ImportGoogetArtifactsGcsSource extends \Google\Collection
{
protected $collection_key = 'uris';
/**
* @var string[]
*/
public $uris;
/**
* @var bool
*/
public $useWildcards;
/**
* @param string[]
*/
public function setUris($uris)
{
$this->uris = $uris;
}
/**
* @return string[]
*/
public function getUris()
{
return $this->uris;
}
/**
* @param bool
*/
public function setUseWildcards($useWildcards)
{
$this->useWildcards = $useWildcards;
}
/**
* @return bool
*/
public function getUseWildcards()
{
return $this->useWildcards;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportGoogetArtifactsGcsSource::class, 'Google_Service_ArtifactRegistry_ImportGoogetArtifactsGcsSource');
@@ -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\ArtifactRegistry;
class ImportGoogetArtifactsMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportGoogetArtifactsMetadata::class, 'Google_Service_ArtifactRegistry_ImportGoogetArtifactsMetadata');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ArtifactRegistry;
class ImportGoogetArtifactsRequest extends \Google\Model
{
protected $gcsSourceType = ImportGoogetArtifactsGcsSource::class;
protected $gcsSourceDataType = '';
/**
* @param ImportGoogetArtifactsGcsSource
*/
public function setGcsSource(ImportGoogetArtifactsGcsSource $gcsSource)
{
$this->gcsSource = $gcsSource;
}
/**
* @return ImportGoogetArtifactsGcsSource
*/
public function getGcsSource()
{
return $this->gcsSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportGoogetArtifactsRequest::class, 'Google_Service_ArtifactRegistry_ImportGoogetArtifactsRequest');
@@ -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\ArtifactRegistry;
class ImportGoogetArtifactsResponse extends \Google\Collection
{
protected $collection_key = 'googetArtifacts';
protected $errorsType = ImportGoogetArtifactsErrorInfo::class;
protected $errorsDataType = 'array';
protected $googetArtifactsType = GoogetArtifact::class;
protected $googetArtifactsDataType = 'array';
/**
* @param ImportGoogetArtifactsErrorInfo[]
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return ImportGoogetArtifactsErrorInfo[]
*/
public function getErrors()
{
return $this->errors;
}
/**
* @param GoogetArtifact[]
*/
public function setGoogetArtifacts($googetArtifacts)
{
$this->googetArtifacts = $googetArtifacts;
}
/**
* @return GoogetArtifact[]
*/
public function getGoogetArtifacts()
{
return $this->googetArtifacts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportGoogetArtifactsResponse::class, 'Google_Service_ArtifactRegistry_ImportGoogetArtifactsResponse');
@@ -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\ArtifactRegistry;
class ImportYumArtifactsErrorInfo extends \Google\Model
{
protected $errorType = Status::class;
protected $errorDataType = '';
protected $gcsSourceType = ImportYumArtifactsGcsSource::class;
protected $gcsSourceDataType = '';
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param ImportYumArtifactsGcsSource
*/
public function setGcsSource(ImportYumArtifactsGcsSource $gcsSource)
{
$this->gcsSource = $gcsSource;
}
/**
* @return ImportYumArtifactsGcsSource
*/
public function getGcsSource()
{
return $this->gcsSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportYumArtifactsErrorInfo::class, 'Google_Service_ArtifactRegistry_ImportYumArtifactsErrorInfo');
@@ -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\ArtifactRegistry;
class ImportYumArtifactsGcsSource extends \Google\Collection
{
protected $collection_key = 'uris';
/**
* @var string[]
*/
public $uris;
/**
* @var bool
*/
public $useWildcards;
/**
* @param string[]
*/
public function setUris($uris)
{
$this->uris = $uris;
}
/**
* @return string[]
*/
public function getUris()
{
return $this->uris;
}
/**
* @param bool
*/
public function setUseWildcards($useWildcards)
{
$this->useWildcards = $useWildcards;
}
/**
* @return bool
*/
public function getUseWildcards()
{
return $this->useWildcards;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportYumArtifactsGcsSource::class, 'Google_Service_ArtifactRegistry_ImportYumArtifactsGcsSource');
@@ -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\ArtifactRegistry;
class ImportYumArtifactsMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportYumArtifactsMetadata::class, 'Google_Service_ArtifactRegistry_ImportYumArtifactsMetadata');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ArtifactRegistry;
class ImportYumArtifactsRequest extends \Google\Model
{
protected $gcsSourceType = ImportYumArtifactsGcsSource::class;
protected $gcsSourceDataType = '';
/**
* @param ImportYumArtifactsGcsSource
*/
public function setGcsSource(ImportYumArtifactsGcsSource $gcsSource)
{
$this->gcsSource = $gcsSource;
}
/**
* @return ImportYumArtifactsGcsSource
*/
public function getGcsSource()
{
return $this->gcsSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportYumArtifactsRequest::class, 'Google_Service_ArtifactRegistry_ImportYumArtifactsRequest');
@@ -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\ArtifactRegistry;
class ImportYumArtifactsResponse extends \Google\Collection
{
protected $collection_key = 'yumArtifacts';
protected $errorsType = ImportYumArtifactsErrorInfo::class;
protected $errorsDataType = 'array';
protected $yumArtifactsType = YumArtifact::class;
protected $yumArtifactsDataType = 'array';
/**
* @param ImportYumArtifactsErrorInfo[]
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return ImportYumArtifactsErrorInfo[]
*/
public function getErrors()
{
return $this->errors;
}
/**
* @param YumArtifact[]
*/
public function setYumArtifacts($yumArtifacts)
{
$this->yumArtifacts = $yumArtifacts;
}
/**
* @return YumArtifact[]
*/
public function getYumArtifacts()
{
return $this->yumArtifacts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportYumArtifactsResponse::class, 'Google_Service_ArtifactRegistry_ImportYumArtifactsResponse');
@@ -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\ArtifactRegistry;
class KfpArtifact extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(KfpArtifact::class, 'Google_Service_ArtifactRegistry_KfpArtifact');
@@ -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\ArtifactRegistry;
class ListAttachmentsResponse extends \Google\Collection
{
protected $collection_key = 'attachments';
protected $attachmentsType = Attachment::class;
protected $attachmentsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Attachment[]
*/
public function setAttachments($attachments)
{
$this->attachments = $attachments;
}
/**
* @return Attachment[]
*/
public function getAttachments()
{
return $this->attachments;
}
/**
* @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(ListAttachmentsResponse::class, 'Google_Service_ArtifactRegistry_ListAttachmentsResponse');
@@ -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\ArtifactRegistry;
class ListDockerImagesResponse extends \Google\Collection
{
protected $collection_key = 'dockerImages';
protected $dockerImagesType = DockerImage::class;
protected $dockerImagesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param DockerImage[]
*/
public function setDockerImages($dockerImages)
{
$this->dockerImages = $dockerImages;
}
/**
* @return DockerImage[]
*/
public function getDockerImages()
{
return $this->dockerImages;
}
/**
* @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(ListDockerImagesResponse::class, 'Google_Service_ArtifactRegistry_ListDockerImagesResponse');
@@ -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\ArtifactRegistry;
class ListFilesResponse extends \Google\Collection
{
protected $collection_key = 'files';
protected $filesType = GoogleDevtoolsArtifactregistryV1File::class;
protected $filesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param GoogleDevtoolsArtifactregistryV1File[]
*/
public function setFiles($files)
{
$this->files = $files;
}
/**
* @return GoogleDevtoolsArtifactregistryV1File[]
*/
public function getFiles()
{
return $this->files;
}
/**
* @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(ListFilesResponse::class, 'Google_Service_ArtifactRegistry_ListFilesResponse');
@@ -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\ArtifactRegistry;
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_ArtifactRegistry_ListLocationsResponse');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ArtifactRegistry;
class ListMavenArtifactsResponse extends \Google\Collection
{
protected $collection_key = 'mavenArtifacts';
protected $mavenArtifactsType = MavenArtifact::class;
protected $mavenArtifactsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param MavenArtifact[]
*/
public function setMavenArtifacts($mavenArtifacts)
{
$this->mavenArtifacts = $mavenArtifacts;
}
/**
* @return MavenArtifact[]
*/
public function getMavenArtifacts()
{
return $this->mavenArtifacts;
}
/**
* @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(ListMavenArtifactsResponse::class, 'Google_Service_ArtifactRegistry_ListMavenArtifactsResponse');
@@ -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\ArtifactRegistry;
class ListNpmPackagesResponse extends \Google\Collection
{
protected $collection_key = 'npmPackages';
/**
* @var string
*/
public $nextPageToken;
protected $npmPackagesType = NpmPackage::class;
protected $npmPackagesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param NpmPackage[]
*/
public function setNpmPackages($npmPackages)
{
$this->npmPackages = $npmPackages;
}
/**
* @return NpmPackage[]
*/
public function getNpmPackages()
{
return $this->npmPackages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListNpmPackagesResponse::class, 'Google_Service_ArtifactRegistry_ListNpmPackagesResponse');
@@ -0,0 +1,52 @@
<?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\ArtifactRegistry;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
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_ArtifactRegistry_ListOperationsResponse');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ArtifactRegistry;
class ListPackagesResponse extends \Google\Collection
{
protected $collection_key = 'packages';
/**
* @var string
*/
public $nextPageToken;
protected $packagesType = Package::class;
protected $packagesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Package[]
*/
public function setPackages($packages)
{
$this->packages = $packages;
}
/**
* @return Package[]
*/
public function getPackages()
{
return $this->packages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPackagesResponse::class, 'Google_Service_ArtifactRegistry_ListPackagesResponse');
@@ -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\ArtifactRegistry;
class ListPythonPackagesResponse extends \Google\Collection
{
protected $collection_key = 'pythonPackages';
/**
* @var string
*/
public $nextPageToken;
protected $pythonPackagesType = PythonPackage::class;
protected $pythonPackagesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param PythonPackage[]
*/
public function setPythonPackages($pythonPackages)
{
$this->pythonPackages = $pythonPackages;
}
/**
* @return PythonPackage[]
*/
public function getPythonPackages()
{
return $this->pythonPackages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPythonPackagesResponse::class, 'Google_Service_ArtifactRegistry_ListPythonPackagesResponse');
@@ -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\ArtifactRegistry;
class ListRepositoriesResponse extends \Google\Collection
{
protected $collection_key = 'repositories';
/**
* @var string
*/
public $nextPageToken;
protected $repositoriesType = Repository::class;
protected $repositoriesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Repository[]
*/
public function setRepositories($repositories)
{
$this->repositories = $repositories;
}
/**
* @return Repository[]
*/
public function getRepositories()
{
return $this->repositories;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListRepositoriesResponse::class, 'Google_Service_ArtifactRegistry_ListRepositoriesResponse');
@@ -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\ArtifactRegistry;
class ListRulesResponse extends \Google\Collection
{
protected $collection_key = 'rules';
/**
* @var string
*/
public $nextPageToken;
protected $rulesType = GoogleDevtoolsArtifactregistryV1Rule::class;
protected $rulesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleDevtoolsArtifactregistryV1Rule[]
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return GoogleDevtoolsArtifactregistryV1Rule[]
*/
public function getRules()
{
return $this->rules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListRulesResponse::class, 'Google_Service_ArtifactRegistry_ListRulesResponse');
@@ -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\ArtifactRegistry;
class ListTagsResponse extends \Google\Collection
{
protected $collection_key = 'tags';
/**
* @var string
*/
public $nextPageToken;
protected $tagsType = Tag::class;
protected $tagsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Tag[]
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return Tag[]
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTagsResponse::class, 'Google_Service_ArtifactRegistry_ListTagsResponse');
@@ -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\ArtifactRegistry;
class ListVersionsResponse extends \Google\Collection
{
protected $collection_key = 'versions';
/**
* @var string
*/
public $nextPageToken;
protected $versionsType = Version::class;
protected $versionsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Version[]
*/
public function setVersions($versions)
{
$this->versions = $versions;
}
/**
* @return Version[]
*/
public function getVersions()
{
return $this->versions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListVersionsResponse::class, 'Google_Service_ArtifactRegistry_ListVersionsResponse');
@@ -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\ArtifactRegistry;
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_ArtifactRegistry_Location');
@@ -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\ArtifactRegistry;
class MavenArtifact extends \Google\Model
{
/**
* @var string
*/
public $artifactId;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $groupId;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $pomUri;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setArtifactId($artifactId)
{
$this->artifactId = $artifactId;
}
/**
* @return string
*/
public function getArtifactId()
{
return $this->artifactId;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setGroupId($groupId)
{
$this->groupId = $groupId;
}
/**
* @return string
*/
public function getGroupId()
{
return $this->groupId;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPomUri($pomUri)
{
$this->pomUri = $pomUri;
}
/**
* @return string
*/
public function getPomUri()
{
return $this->pomUri;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MavenArtifact::class, 'Google_Service_ArtifactRegistry_MavenArtifact');
@@ -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\ArtifactRegistry;
class MavenRepository extends \Google\Model
{
protected $customRepositoryType = GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository::class;
protected $customRepositoryDataType = '';
/**
* @var string
*/
public $publicRepository;
/**
* @param GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository
*/
public function setCustomRepository(GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository $customRepository)
{
$this->customRepository = $customRepository;
}
/**
* @return GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository
*/
public function getCustomRepository()
{
return $this->customRepository;
}
/**
* @param string
*/
public function setPublicRepository($publicRepository)
{
$this->publicRepository = $publicRepository;
}
/**
* @return string
*/
public function getPublicRepository()
{
return $this->publicRepository;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MavenRepository::class, 'Google_Service_ArtifactRegistry_MavenRepository');
@@ -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\ArtifactRegistry;
class MavenRepositoryConfig extends \Google\Model
{
/**
* @var bool
*/
public $allowSnapshotOverwrites;
/**
* @var string
*/
public $versionPolicy;
/**
* @param bool
*/
public function setAllowSnapshotOverwrites($allowSnapshotOverwrites)
{
$this->allowSnapshotOverwrites = $allowSnapshotOverwrites;
}
/**
* @return bool
*/
public function getAllowSnapshotOverwrites()
{
return $this->allowSnapshotOverwrites;
}
/**
* @param string
*/
public function setVersionPolicy($versionPolicy)
{
$this->versionPolicy = $versionPolicy;
}
/**
* @return string
*/
public function getVersionPolicy()
{
return $this->versionPolicy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MavenRepositoryConfig::class, 'Google_Service_ArtifactRegistry_MavenRepositoryConfig');
@@ -0,0 +1,135 @@
<?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\ArtifactRegistry;
class NpmPackage extends \Google\Collection
{
protected $collection_key = 'tags';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $packageName;
/**
* @var string[]
*/
public $tags;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPackageName($packageName)
{
$this->packageName = $packageName;
}
/**
* @return string
*/
public function getPackageName()
{
return $this->packageName;
}
/**
* @param string[]
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NpmPackage::class, 'Google_Service_ArtifactRegistry_NpmPackage');
@@ -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\ArtifactRegistry;
class NpmRepository extends \Google\Model
{
protected $customRepositoryType = GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository::class;
protected $customRepositoryDataType = '';
/**
* @var string
*/
public $publicRepository;
/**
* @param GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository
*/
public function setCustomRepository(GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository $customRepository)
{
$this->customRepository = $customRepository;
}
/**
* @return GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository
*/
public function getCustomRepository()
{
return $this->customRepository;
}
/**
* @param string
*/
public function setPublicRepository($publicRepository)
{
$this->publicRepository = $publicRepository;
}
/**
* @return string
*/
public function getPublicRepository()
{
return $this->publicRepository;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NpmRepository::class, 'Google_Service_ArtifactRegistry_NpmRepository');
@@ -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\ArtifactRegistry;
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_ArtifactRegistry_Operation');
@@ -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\ArtifactRegistry;
class OperationMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_ArtifactRegistry_OperationMetadata');
@@ -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\ArtifactRegistry;
class Package extends \Google\Model
{
/**
* @var string[]
*/
public $annotations;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $updateTime;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Package::class, 'Google_Service_ArtifactRegistry_Package');
@@ -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\ArtifactRegistry;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* @var string
*/
public $etag;
/**
* @var int
*/
public $version;
/**
* @param Binding[]
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param int
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_ArtifactRegistry_Policy');
@@ -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\ArtifactRegistry;
class ProjectSettings extends \Google\Model
{
/**
* @var string
*/
public $legacyRedirectionState;
/**
* @var string
*/
public $name;
/**
* @var int
*/
public $pullPercent;
/**
* @param string
*/
public function setLegacyRedirectionState($legacyRedirectionState)
{
$this->legacyRedirectionState = $legacyRedirectionState;
}
/**
* @return string
*/
public function getLegacyRedirectionState()
{
return $this->legacyRedirectionState;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param int
*/
public function setPullPercent($pullPercent)
{
$this->pullPercent = $pullPercent;
}
/**
* @return int
*/
public function getPullPercent()
{
return $this->pullPercent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectSettings::class, 'Google_Service_ArtifactRegistry_ProjectSettings');
@@ -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\ArtifactRegistry;
class PromoteArtifactMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PromoteArtifactMetadata::class, 'Google_Service_ArtifactRegistry_PromoteArtifactMetadata');
@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ArtifactRegistry;
class PythonPackage extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $packageName;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $uri;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPackageName($packageName)
{
$this->packageName = $packageName;
}
/**
* @return string
*/
public function getPackageName()
{
return $this->packageName;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PythonPackage::class, 'Google_Service_ArtifactRegistry_PythonPackage');
@@ -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\ArtifactRegistry;
class PythonRepository extends \Google\Model
{
protected $customRepositoryType = GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository::class;
protected $customRepositoryDataType = '';
/**
* @var string
*/
public $publicRepository;
/**
* @param GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository
*/
public function setCustomRepository(GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository $customRepository)
{
$this->customRepository = $customRepository;
}
/**
* @return GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository
*/
public function getCustomRepository()
{
return $this->customRepository;
}
/**
* @param string
*/
public function setPublicRepository($publicRepository)
{
$this->publicRepository = $publicRepository;
}
/**
* @return string
*/
public function getPublicRepository()
{
return $this->publicRepository;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PythonRepository::class, 'Google_Service_ArtifactRegistry_PythonRepository');
@@ -0,0 +1,190 @@
<?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\ArtifactRegistry;
class RemoteRepositoryConfig extends \Google\Model
{
protected $aptRepositoryType = AptRepository::class;
protected $aptRepositoryDataType = '';
protected $commonRepositoryType = CommonRemoteRepository::class;
protected $commonRepositoryDataType = '';
/**
* @var string
*/
public $description;
/**
* @var bool
*/
public $disableUpstreamValidation;
protected $dockerRepositoryType = DockerRepository::class;
protected $dockerRepositoryDataType = '';
protected $mavenRepositoryType = MavenRepository::class;
protected $mavenRepositoryDataType = '';
protected $npmRepositoryType = NpmRepository::class;
protected $npmRepositoryDataType = '';
protected $pythonRepositoryType = PythonRepository::class;
protected $pythonRepositoryDataType = '';
protected $upstreamCredentialsType = UpstreamCredentials::class;
protected $upstreamCredentialsDataType = '';
protected $yumRepositoryType = YumRepository::class;
protected $yumRepositoryDataType = '';
/**
* @param AptRepository
*/
public function setAptRepository(AptRepository $aptRepository)
{
$this->aptRepository = $aptRepository;
}
/**
* @return AptRepository
*/
public function getAptRepository()
{
return $this->aptRepository;
}
/**
* @param CommonRemoteRepository
*/
public function setCommonRepository(CommonRemoteRepository $commonRepository)
{
$this->commonRepository = $commonRepository;
}
/**
* @return CommonRemoteRepository
*/
public function getCommonRepository()
{
return $this->commonRepository;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param bool
*/
public function setDisableUpstreamValidation($disableUpstreamValidation)
{
$this->disableUpstreamValidation = $disableUpstreamValidation;
}
/**
* @return bool
*/
public function getDisableUpstreamValidation()
{
return $this->disableUpstreamValidation;
}
/**
* @param DockerRepository
*/
public function setDockerRepository(DockerRepository $dockerRepository)
{
$this->dockerRepository = $dockerRepository;
}
/**
* @return DockerRepository
*/
public function getDockerRepository()
{
return $this->dockerRepository;
}
/**
* @param MavenRepository
*/
public function setMavenRepository(MavenRepository $mavenRepository)
{
$this->mavenRepository = $mavenRepository;
}
/**
* @return MavenRepository
*/
public function getMavenRepository()
{
return $this->mavenRepository;
}
/**
* @param NpmRepository
*/
public function setNpmRepository(NpmRepository $npmRepository)
{
$this->npmRepository = $npmRepository;
}
/**
* @return NpmRepository
*/
public function getNpmRepository()
{
return $this->npmRepository;
}
/**
* @param PythonRepository
*/
public function setPythonRepository(PythonRepository $pythonRepository)
{
$this->pythonRepository = $pythonRepository;
}
/**
* @return PythonRepository
*/
public function getPythonRepository()
{
return $this->pythonRepository;
}
/**
* @param UpstreamCredentials
*/
public function setUpstreamCredentials(UpstreamCredentials $upstreamCredentials)
{
$this->upstreamCredentials = $upstreamCredentials;
}
/**
* @return UpstreamCredentials
*/
public function getUpstreamCredentials()
{
return $this->upstreamCredentials;
}
/**
* @param YumRepository
*/
public function setYumRepository(YumRepository $yumRepository)
{
$this->yumRepository = $yumRepository;
}
/**
* @return YumRepository
*/
public function getYumRepository()
{
return $this->yumRepository;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RemoteRepositoryConfig::class, 'Google_Service_ArtifactRegistry_RemoteRepositoryConfig');
@@ -0,0 +1,374 @@
<?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\ArtifactRegistry;
class Repository extends \Google\Model
{
protected $cleanupPoliciesType = CleanupPolicy::class;
protected $cleanupPoliciesDataType = 'map';
/**
* @var bool
*/
public $cleanupPolicyDryRun;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var bool
*/
public $disallowUnspecifiedMode;
protected $dockerConfigType = DockerRepositoryConfig::class;
protected $dockerConfigDataType = '';
/**
* @var string
*/
public $format;
/**
* @var string
*/
public $kmsKeyName;
/**
* @var string[]
*/
public $labels;
protected $mavenConfigType = MavenRepositoryConfig::class;
protected $mavenConfigDataType = '';
/**
* @var string
*/
public $mode;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $registryUri;
protected $remoteRepositoryConfigType = RemoteRepositoryConfig::class;
protected $remoteRepositoryConfigDataType = '';
/**
* @var bool
*/
public $satisfiesPzi;
/**
* @var bool
*/
public $satisfiesPzs;
/**
* @var string
*/
public $sizeBytes;
/**
* @var string
*/
public $updateTime;
protected $virtualRepositoryConfigType = VirtualRepositoryConfig::class;
protected $virtualRepositoryConfigDataType = '';
protected $vulnerabilityScanningConfigType = VulnerabilityScanningConfig::class;
protected $vulnerabilityScanningConfigDataType = '';
/**
* @param CleanupPolicy[]
*/
public function setCleanupPolicies($cleanupPolicies)
{
$this->cleanupPolicies = $cleanupPolicies;
}
/**
* @return CleanupPolicy[]
*/
public function getCleanupPolicies()
{
return $this->cleanupPolicies;
}
/**
* @param bool
*/
public function setCleanupPolicyDryRun($cleanupPolicyDryRun)
{
$this->cleanupPolicyDryRun = $cleanupPolicyDryRun;
}
/**
* @return bool
*/
public function getCleanupPolicyDryRun()
{
return $this->cleanupPolicyDryRun;
}
/**
* @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 setDisallowUnspecifiedMode($disallowUnspecifiedMode)
{
$this->disallowUnspecifiedMode = $disallowUnspecifiedMode;
}
/**
* @return bool
*/
public function getDisallowUnspecifiedMode()
{
return $this->disallowUnspecifiedMode;
}
/**
* @param DockerRepositoryConfig
*/
public function setDockerConfig(DockerRepositoryConfig $dockerConfig)
{
$this->dockerConfig = $dockerConfig;
}
/**
* @return DockerRepositoryConfig
*/
public function getDockerConfig()
{
return $this->dockerConfig;
}
/**
* @param string
*/
public function setFormat($format)
{
$this->format = $format;
}
/**
* @return string
*/
public function getFormat()
{
return $this->format;
}
/**
* @param string
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param MavenRepositoryConfig
*/
public function setMavenConfig(MavenRepositoryConfig $mavenConfig)
{
$this->mavenConfig = $mavenConfig;
}
/**
* @return MavenRepositoryConfig
*/
public function getMavenConfig()
{
return $this->mavenConfig;
}
/**
* @param string
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return string
*/
public function getMode()
{
return $this->mode;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setRegistryUri($registryUri)
{
$this->registryUri = $registryUri;
}
/**
* @return string
*/
public function getRegistryUri()
{
return $this->registryUri;
}
/**
* @param RemoteRepositoryConfig
*/
public function setRemoteRepositoryConfig(RemoteRepositoryConfig $remoteRepositoryConfig)
{
$this->remoteRepositoryConfig = $remoteRepositoryConfig;
}
/**
* @return RemoteRepositoryConfig
*/
public function getRemoteRepositoryConfig()
{
return $this->remoteRepositoryConfig;
}
/**
* @param bool
*/
public function setSatisfiesPzi($satisfiesPzi)
{
$this->satisfiesPzi = $satisfiesPzi;
}
/**
* @return bool
*/
public function getSatisfiesPzi()
{
return $this->satisfiesPzi;
}
/**
* @param bool
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* @param string
*/
public function setSizeBytes($sizeBytes)
{
$this->sizeBytes = $sizeBytes;
}
/**
* @return string
*/
public function getSizeBytes()
{
return $this->sizeBytes;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param VirtualRepositoryConfig
*/
public function setVirtualRepositoryConfig(VirtualRepositoryConfig $virtualRepositoryConfig)
{
$this->virtualRepositoryConfig = $virtualRepositoryConfig;
}
/**
* @return VirtualRepositoryConfig
*/
public function getVirtualRepositoryConfig()
{
return $this->virtualRepositoryConfig;
}
/**
* @param VulnerabilityScanningConfig
*/
public function setVulnerabilityScanningConfig(VulnerabilityScanningConfig $vulnerabilityScanningConfig)
{
$this->vulnerabilityScanningConfig = $vulnerabilityScanningConfig;
}
/**
* @return VulnerabilityScanningConfig
*/
public function getVulnerabilityScanningConfig()
{
return $this->vulnerabilityScanningConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Repository::class, 'Google_Service_ArtifactRegistry_Repository');
@@ -0,0 +1,49 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\DownloadFileResponse;
/**
* The "media" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $media = $artifactregistryService->media;
* </code>
*/
class Media extends \Google\Service\Resource
{
/**
* Download a file. (media.download)
*
* @param string $name Required. The name of the file to download.
* @param array $optParams Optional parameters.
* @return DownloadFileResponse
* @throws \Google\Service\Exception
*/
public function download($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('download', [$params], DownloadFileResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Media::class, 'Google_Service_ArtifactRegistry_Resource_Media');
@@ -0,0 +1,50 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $operations = $artifactregistryService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* 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
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_ArtifactRegistry_Resource_Operations');
@@ -0,0 +1,68 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\ProjectSettings;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $projects = $artifactregistryService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* Retrieves the Settings for the Project. (projects.getProjectSettings)
*
* @param string $name Required. The name of the projectSettings resource.
* @param array $optParams Optional parameters.
* @return ProjectSettings
* @throws \Google\Service\Exception
*/
public function getProjectSettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getProjectSettings', [$params], ProjectSettings::class);
}
/**
* Updates the Settings for the Project. (projects.updateProjectSettings)
*
* @param string $name The name of the project's settings. Always of the form:
* projects/{project-id}/projectSettings In update request: never set In
* response: always set
* @param ProjectSettings $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Field mask to support partial updates.
* @return ProjectSettings
* @throws \Google\Service\Exception
*/
public function updateProjectSettings($name, ProjectSettings $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateProjectSettings', [$params], ProjectSettings::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_ArtifactRegistry_Resource_Projects');
@@ -0,0 +1,108 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\ListLocationsResponse;
use Google\Service\ArtifactRegistry\Location;
use Google\Service\ArtifactRegistry\VPCSCConfig;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $locations = $artifactregistryService->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);
}
/**
* Retrieves the VPCSC Config for the Project. (locations.getVpcscConfig)
*
* @param string $name Required. The name of the VPCSCConfig resource.
* @param array $optParams Optional parameters.
* @return VPCSCConfig
* @throws \Google\Service\Exception
*/
public function getVpcscConfig($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getVpcscConfig', [$params], VPCSCConfig::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);
}
/**
* Updates the VPCSC Config for the Project. (locations.updateVpcscConfig)
*
* @param string $name The name of the project's VPC SC Config. Always of the
* form: projects/{projectID}/locations/{location}/vpcscConfig In update
* request: never set In response: always set
* @param VPCSCConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Field mask to support partial updates.
* @return VPCSCConfig
* @throws \Google\Service\Exception
*/
public function updateVpcscConfig($name, VPCSCConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateVpcscConfig', [$params], VPCSCConfig::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocations');
@@ -0,0 +1,51 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $operations = $artifactregistryService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* 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);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsOperations');
@@ -0,0 +1,213 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\ListRepositoriesResponse;
use Google\Service\ArtifactRegistry\Operation;
use Google\Service\ArtifactRegistry\Policy;
use Google\Service\ArtifactRegistry\Repository;
use Google\Service\ArtifactRegistry\SetIamPolicyRequest;
use Google\Service\ArtifactRegistry\TestIamPermissionsRequest;
use Google\Service\ArtifactRegistry\TestIamPermissionsResponse;
/**
* The "repositories" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $repositories = $artifactregistryService->projects_locations_repositories;
* </code>
*/
class ProjectsLocationsRepositories extends \Google\Service\Resource
{
/**
* Creates a repository. The returned Operation will finish once the repository
* has been created. Its response will be the created Repository.
* (repositories.create)
*
* @param string $parent Required. The name of the parent resource where the
* repository will be created.
* @param Repository $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string repositoryId Required. The repository id to use for this
* repository.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Repository $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a repository and all of its contents. The returned Operation will
* finish once the repository has been deleted. It will not have any Operation
* metadata and will return a google.protobuf.Empty response.
* (repositories.delete)
*
* @param string $name Required. The name of the repository to delete.
* @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 a repository. (repositories.get)
*
* @param string $name Required. The name of the repository to retrieve.
* @param array $optParams Optional parameters.
* @return Repository
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Repository::class);
}
/**
* Gets the IAM policy for a given resource. (repositories.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists repositories. (repositories.listProjectsLocationsRepositories)
*
* @param string $parent Required. The name of the parent resource whose
* repositories will be listed.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. An expression for filtering the results of
* the request. Filter rules are case insensitive. The fields eligible for
* filtering are: * `name` Examples of using a filter: To filter the results of
* your request to repositories with the name `my-repo` in project `my-project`
* in the `us-central` region, append the following filter expression to your
* request: * `name="projects/my-project/locations/us-central1/repositories/my-
* repo"` You can also use wildcards to match any number of characters before or
* after the value: * `name="projects/my-project/locations/us-
* central1/repositories/my-*"` * `name="projects/my-project/locations/us-
* central1/repositoriesrepo"` * `name="projects/my-project/locations/us-
* central1/repositoriesrepo*"`
* @opt_param string orderBy Optional. The field to order the results by.
* @opt_param int pageSize The maximum number of repositories to return. Maximum
* page size is 1,000.
* @opt_param string pageToken The next_page_token value returned from a
* previous list request, if any.
* @return ListRepositoriesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositories($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRepositoriesResponse::class);
}
/**
* Updates a repository. (repositories.patch)
*
* @param string $name The name of the repository, for example:
* `projects/p1/locations/us-central1/repositories/repo1`. For each location in
* a project, repository names must be unique.
* @param Repository $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The update mask applies to the resource. For the
* `FieldMask` definition, see https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask
* @return Repository
* @throws \Google\Service\Exception
*/
public function patch($name, Repository $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Repository::class);
}
/**
* Updates the IAM policy for a given resource. (repositories.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Tests if the caller has a list of permissions on a resource.
* (repositories.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositories::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositories');
@@ -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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\ImportAptArtifactsRequest;
use Google\Service\ArtifactRegistry\Operation;
use Google\Service\ArtifactRegistry\UploadAptArtifactMediaResponse;
use Google\Service\ArtifactRegistry\UploadAptArtifactRequest;
/**
* The "aptArtifacts" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $aptArtifacts = $artifactregistryService->projects_locations_repositories_aptArtifacts;
* </code>
*/
class ProjectsLocationsRepositoriesAptArtifacts extends \Google\Service\Resource
{
/**
* Imports Apt artifacts. The returned Operation will complete once the
* resources are imported. Package, Version, and File resources are created
* based on the imported artifacts. Imported artifacts that conflict with
* existing resources are ignored. (aptArtifacts.import)
*
* @param string $parent The name of the parent resource where the artifacts
* will be imported.
* @param ImportAptArtifactsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function import($parent, ImportAptArtifactsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('import', [$params], Operation::class);
}
/**
* Directly uploads an Apt artifact. The returned Operation will complete once
* the resources are uploaded. Package, Version, and File resources are created
* based on the imported artifact. Imported artifacts that conflict with
* existing resources are ignored. (aptArtifacts.upload)
*
* @param string $parent The name of the parent resource where the artifacts
* will be uploaded.
* @param UploadAptArtifactRequest $postBody
* @param array $optParams Optional parameters.
* @return UploadAptArtifactMediaResponse
* @throws \Google\Service\Exception
*/
public function upload($parent, UploadAptArtifactRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], UploadAptArtifactMediaResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesAptArtifacts::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesAptArtifacts');
@@ -0,0 +1,111 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\Attachment;
use Google\Service\ArtifactRegistry\ListAttachmentsResponse;
use Google\Service\ArtifactRegistry\Operation;
/**
* The "attachments" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $attachments = $artifactregistryService->projects_locations_repositories_attachments;
* </code>
*/
class ProjectsLocationsRepositoriesAttachments extends \Google\Service\Resource
{
/**
* Creates an attachment. The returned Operation will finish once the attachment
* has been created. Its response will be the created attachment.
* (attachments.create)
*
* @param string $parent Required. The name of the parent resource where the
* attachment will be created.
* @param Attachment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string attachmentId Required. The attachment id to use for this
* attachment.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Attachment $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes an attachment. The returned Operation will finish once the
* attachments has been deleted. It will not have any Operation metadata and
* will return a `google.protobuf.Empty` response. (attachments.delete)
*
* @param string $name Required. The name of the attachment to delete.
* @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 an attachment. (attachments.get)
*
* @param string $name Required. The name of the attachment to retrieve.
* @param array $optParams Optional parameters.
* @return Attachment
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Attachment::class);
}
/**
* Lists attachments. (attachments.listProjectsLocationsRepositoriesAttachments)
*
* @param string $parent Required. The name of the parent resource whose
* attachments will be listed.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. An expression for filtering the results of
* the request. Filter rules are case insensitive. The fields eligible for
* filtering are: * `target` * `type` * `attachment_namespace`
* @opt_param int pageSize The maximum number of attachments to return. Maximum
* page size is 1,000.
* @opt_param string pageToken The next_page_token value returned from a
* previous list request, if any.
* @return ListAttachmentsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesAttachments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAttachmentsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesAttachments::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesAttachments');
@@ -0,0 +1,72 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\DockerImage;
use Google\Service\ArtifactRegistry\ListDockerImagesResponse;
/**
* The "dockerImages" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $dockerImages = $artifactregistryService->projects_locations_repositories_dockerImages;
* </code>
*/
class ProjectsLocationsRepositoriesDockerImages extends \Google\Service\Resource
{
/**
* Gets a docker image. (dockerImages.get)
*
* @param string $name Required. The name of the docker images.
* @param array $optParams Optional parameters.
* @return DockerImage
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DockerImage::class);
}
/**
* Lists docker images.
* (dockerImages.listProjectsLocationsRepositoriesDockerImages)
*
* @param string $parent Required. The name of the parent resource whose docker
* images will be listed.
* @param array $optParams Optional parameters.
*
* @opt_param string orderBy The field to order the results by.
* @opt_param int pageSize The maximum number of artifacts to return. Maximum
* page size is 1,000.
* @opt_param string pageToken The next_page_token value returned from a
* previous list request, if any.
* @return ListDockerImagesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesDockerImages($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDockerImagesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesDockerImages::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesDockerImages');
@@ -0,0 +1,173 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\DownloadFileResponse;
use Google\Service\ArtifactRegistry\GoogleDevtoolsArtifactregistryV1File;
use Google\Service\ArtifactRegistry\ListFilesResponse;
use Google\Service\ArtifactRegistry\Operation;
use Google\Service\ArtifactRegistry\UploadFileMediaResponse;
use Google\Service\ArtifactRegistry\UploadFileRequest;
/**
* The "files" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $files = $artifactregistryService->projects_locations_repositories_files;
* </code>
*/
class ProjectsLocationsRepositoriesFiles extends \Google\Service\Resource
{
/**
* Deletes a file and all of its content. It is only allowed on generic
* repositories. The returned operation will complete once the file has been
* deleted. (files.delete)
*
* @param string $name Required. The name of the file to delete.
* @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);
}
/**
* Download a file. (files.download)
*
* @param string $name Required. The name of the file to download.
* @param array $optParams Optional parameters.
* @return DownloadFileResponse
* @throws \Google\Service\Exception
*/
public function download($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('download', [$params], DownloadFileResponse::class);
}
/**
* Gets a file. (files.get)
*
* @param string $name Required. The name of the file to retrieve.
* @param array $optParams Optional parameters.
* @return GoogleDevtoolsArtifactregistryV1File
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleDevtoolsArtifactregistryV1File::class);
}
/**
* Lists files. (files.listProjectsLocationsRepositoriesFiles)
*
* @param string $parent Required. The name of the repository whose files will
* be listed. For example: "projects/p1/locations/us-central1/repositories/repo1
* @param array $optParams Optional parameters.
*
* @opt_param string filter An expression for filtering the results of the
* request. Filter rules are case insensitive. The fields eligible for filtering
* are: * `name` * `owner` * `annotations` Examples of using a filter: To filter
* the results of your request to files with the name `my_file.txt` in project
* `my-project` in the `us-central` region, in repository `my-repo`, append the
* following filter expression to your request: * `name="projects/my-
* project/locations/us-central1/repositories/my-repo/files/my-file.txt"` You
* can also use wildcards to match any number of characters before or after the
* value: * `name="projects/my-project/locations/us-central1/repositories/my-
* repo/files/my-*"` * `name="projects/my-project/locations/us-
* central1/repositories/my-repo/filesfile.txt"` * `name="projects/my-
* project/locations/us-central1/repositories/my-repo/filesfile*"` To filter the
* results of your request to files owned by the version `1.0` in package
* `pkg1`, append the following filter expression to your request: *
* `owner="projects/my-project/locations/us-central1/repositories/my-
* repo/packages/my-package/versions/1.0"` To filter the results of your request
* to files with the annotation key-value pair [`external_link`:
* `external_link_value`], append the following filter expression to your
* request: * `"annotations.external_link:external_link_value"` To filter just
* for a specific annotation key `external_link`, append the following filter
* expression to your request: * `"annotations.external_link"` If the annotation
* key or value contains special characters, you can escape them by surrounding
* the value with backticks. For example, to filter the results of your request
* to files with the annotation key-value pair
* [`external.link`:`https://example.com/my-file`], append the following filter
* expression to your request: * ``
* "annotations.`external.link`:`https://example.com/my-file`" `` You can also
* filter with annotations with a wildcard to match any number of characters
* before or after the value: * `` "annotations.*_link:`*example.com*`" ``
* @opt_param string orderBy The field to order the results by.
* @opt_param int pageSize The maximum number of files to return. Maximum page
* size is 1,000.
* @opt_param string pageToken The next_page_token value returned from a
* previous list request, if any.
* @return ListFilesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesFiles($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListFilesResponse::class);
}
/**
* Updates a file. (files.patch)
*
* @param string $name The name of the file, for example:
* `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`.
* If the file ID part contains slashes, they are escaped.
* @param GoogleDevtoolsArtifactregistryV1File $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The update mask applies to the
* resource. For the `FieldMask` definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask
* @return GoogleDevtoolsArtifactregistryV1File
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleDevtoolsArtifactregistryV1File $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleDevtoolsArtifactregistryV1File::class);
}
/**
* Directly uploads a file to a repository. The returned Operation will complete
* once the resources are uploaded. (files.upload)
*
* @param string $parent Required. The resource name of the repository where the
* file will be uploaded.
* @param UploadFileRequest $postBody
* @param array $optParams Optional parameters.
* @return UploadFileMediaResponse
* @throws \Google\Service\Exception
*/
public function upload($parent, UploadFileRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], UploadFileMediaResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesFiles::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesFiles');
@@ -0,0 +1,56 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\UploadGenericArtifactMediaResponse;
use Google\Service\ArtifactRegistry\UploadGenericArtifactRequest;
/**
* The "genericArtifacts" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $genericArtifacts = $artifactregistryService->projects_locations_repositories_genericArtifacts;
* </code>
*/
class ProjectsLocationsRepositoriesGenericArtifacts extends \Google\Service\Resource
{
/**
* Directly uploads a Generic artifact. The returned operation will complete
* once the resources are uploaded. Package, version, and file resources are
* created based on the uploaded artifact. Uploaded artifacts that conflict with
* existing resources will raise an `ALREADY_EXISTS` error.
* (genericArtifacts.upload)
*
* @param string $parent The resource name of the repository where the generic
* artifact will be uploaded.
* @param UploadGenericArtifactRequest $postBody
* @param array $optParams Optional parameters.
* @return UploadGenericArtifactMediaResponse
* @throws \Google\Service\Exception
*/
public function upload($parent, UploadGenericArtifactRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], UploadGenericArtifactMediaResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesGenericArtifacts::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesGenericArtifacts');
@@ -0,0 +1,54 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\UploadGoModuleMediaResponse;
use Google\Service\ArtifactRegistry\UploadGoModuleRequest;
/**
* The "goModules" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $goModules = $artifactregistryService->projects_locations_repositories_goModules;
* </code>
*/
class ProjectsLocationsRepositoriesGoModules extends \Google\Service\Resource
{
/**
* Directly uploads a Go module. The returned Operation will complete once the
* Go module is uploaded. Package, Version, and File resources are created based
* on the uploaded Go module. (goModules.upload)
*
* @param string $parent The resource name of the repository where the Go module
* will be uploaded.
* @param UploadGoModuleRequest $postBody
* @param array $optParams Optional parameters.
* @return UploadGoModuleMediaResponse
* @throws \Google\Service\Exception
*/
public function upload($parent, UploadGoModuleRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], UploadGoModuleMediaResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesGoModules::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesGoModules');
@@ -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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\ImportGoogetArtifactsRequest;
use Google\Service\ArtifactRegistry\Operation;
use Google\Service\ArtifactRegistry\UploadGoogetArtifactMediaResponse;
use Google\Service\ArtifactRegistry\UploadGoogetArtifactRequest;
/**
* The "googetArtifacts" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $googetArtifacts = $artifactregistryService->projects_locations_repositories_googetArtifacts;
* </code>
*/
class ProjectsLocationsRepositoriesGoogetArtifacts extends \Google\Service\Resource
{
/**
* Imports GooGet artifacts. The returned Operation will complete once the
* resources are imported. Package, Version, and File resources are created
* based on the imported artifacts. Imported artifacts that conflict with
* existing resources are ignored. (googetArtifacts.import)
*
* @param string $parent The name of the parent resource where the artifacts
* will be imported.
* @param ImportGoogetArtifactsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function import($parent, ImportGoogetArtifactsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('import', [$params], Operation::class);
}
/**
* Directly uploads a GooGet artifact. The returned Operation will complete once
* the resources are uploaded. Package, Version, and File resources are created
* based on the imported artifact. Imported artifacts that conflict with
* existing resources are ignored. (googetArtifacts.upload)
*
* @param string $parent The name of the parent resource where the artifacts
* will be uploaded.
* @param UploadGoogetArtifactRequest $postBody
* @param array $optParams Optional parameters.
* @return UploadGoogetArtifactMediaResponse
* @throws \Google\Service\Exception
*/
public function upload($parent, UploadGoogetArtifactRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], UploadGoogetArtifactMediaResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesGoogetArtifacts::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesGoogetArtifacts');
@@ -0,0 +1,55 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\UploadKfpArtifactMediaResponse;
use Google\Service\ArtifactRegistry\UploadKfpArtifactRequest;
/**
* The "kfpArtifacts" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $kfpArtifacts = $artifactregistryService->projects_locations_repositories_kfpArtifacts;
* </code>
*/
class ProjectsLocationsRepositoriesKfpArtifacts extends \Google\Service\Resource
{
/**
* Directly uploads a KFP artifact. The returned Operation will complete once
* the resource is uploaded. Package, Version, and File resources will be
* created based on the uploaded artifact. Uploaded artifacts that conflict with
* existing resources will be overwritten. (kfpArtifacts.upload)
*
* @param string $parent The resource name of the repository where the KFP
* artifact will be uploaded.
* @param UploadKfpArtifactRequest $postBody
* @param array $optParams Optional parameters.
* @return UploadKfpArtifactMediaResponse
* @throws \Google\Service\Exception
*/
public function upload($parent, UploadKfpArtifactRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], UploadKfpArtifactMediaResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesKfpArtifacts::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesKfpArtifacts');
@@ -0,0 +1,71 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\ListMavenArtifactsResponse;
use Google\Service\ArtifactRegistry\MavenArtifact;
/**
* The "mavenArtifacts" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $mavenArtifacts = $artifactregistryService->projects_locations_repositories_mavenArtifacts;
* </code>
*/
class ProjectsLocationsRepositoriesMavenArtifacts extends \Google\Service\Resource
{
/**
* Gets a maven artifact. (mavenArtifacts.get)
*
* @param string $name Required. The name of the maven artifact.
* @param array $optParams Optional parameters.
* @return MavenArtifact
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], MavenArtifact::class);
}
/**
* Lists maven artifacts.
* (mavenArtifacts.listProjectsLocationsRepositoriesMavenArtifacts)
*
* @param string $parent Required. The name of the parent resource whose maven
* artifacts will be listed.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of artifacts to return. Maximum
* page size is 1,000.
* @opt_param string pageToken The next_page_token value returned from a
* previous list request, if any.
* @return ListMavenArtifactsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesMavenArtifacts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListMavenArtifactsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesMavenArtifacts::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesMavenArtifacts');
@@ -0,0 +1,71 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\ListNpmPackagesResponse;
use Google\Service\ArtifactRegistry\NpmPackage;
/**
* The "npmPackages" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $npmPackages = $artifactregistryService->projects_locations_repositories_npmPackages;
* </code>
*/
class ProjectsLocationsRepositoriesNpmPackages extends \Google\Service\Resource
{
/**
* Gets a npm package. (npmPackages.get)
*
* @param string $name Required. The name of the npm package.
* @param array $optParams Optional parameters.
* @return NpmPackage
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], NpmPackage::class);
}
/**
* Lists npm packages.
* (npmPackages.listProjectsLocationsRepositoriesNpmPackages)
*
* @param string $parent Required. The name of the parent resource whose npm
* packages will be listed.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of artifacts to return. Maximum
* page size is 1,000.
* @opt_param string pageToken The next_page_token value returned from a
* previous list request, if any.
* @return ListNpmPackagesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesNpmPackages($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListNpmPackagesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesNpmPackages::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesNpmPackages');
@@ -0,0 +1,135 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\ListPackagesResponse;
use Google\Service\ArtifactRegistry\Operation;
use Google\Service\ArtifactRegistry\Package;
/**
* The "packages" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $packages = $artifactregistryService->projects_locations_repositories_packages;
* </code>
*/
class ProjectsLocationsRepositoriesPackages extends \Google\Service\Resource
{
/**
* Deletes a package and all of its versions and tags. The returned operation
* will complete once the package has been deleted. (packages.delete)
*
* @param string $name Required. The name of the package to delete.
* @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 a package. (packages.get)
*
* @param string $name Required. The name of the package to retrieve.
* @param array $optParams Optional parameters.
* @return Package
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Package::class);
}
/**
* Lists packages. (packages.listProjectsLocationsRepositoriesPackages)
*
* @param string $parent Required. The name of the parent resource whose
* packages will be listed.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. An expression for filtering the results of
* the request. Filter rules are case insensitive. The fields eligible for
* filtering are: * `name` * `annotations` Examples of using a filter: To filter
* the results of your request to packages with the name `my-package` in project
* `my-project` in the `us-central` region, in repository `my-repo`, append the
* following filter expression to your request: * `name="projects/my-
* project/locations/us-central1/repositories/my-repo/packages/my-package"` You
* can also use wildcards to match any number of characters before or after the
* value: * `name="projects/my-project/locations/us-central1/repositories/my-
* repo/packages/my-*"` * `name="projects/my-project/locations/us-
* central1/repositories/my-repo/packagespackage"` * `name="projects/my-
* project/locations/us-central1/repositories/my-repo/packagespack*"` To filter
* the results of your request to packages with the annotation key-value pair
* [`external_link`: `external_link_value`], append the following filter
* expression to your request": *
* `"annotations.external_link:external_link_value"` To filter the results just
* for a specific annotation key `external_link`, append the following filter
* expression to your request: * `"annotations.external_link"` If the annotation
* key or value contains special characters, you can escape them by surrounding
* the value with backticks. For example, to filter the results of your request
* to packages with the annotation key-value pair
* [`external.link`:`https://example.com/my-package`], append the following
* filter expression to your request: * ``
* "annotations.`external.link`:`https://example.com/my-package`" `` You can
* also filter with annotations with a wildcard to match any number of
* characters before or after the value: * ``
* "annotations.*_link:`*example.com*`" ``
* @opt_param string orderBy Optional. The field to order the results by.
* @opt_param int pageSize The maximum number of packages to return. Maximum
* page size is 1,000.
* @opt_param string pageToken The next_page_token value returned from a
* previous list request, if any.
* @return ListPackagesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesPackages($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPackagesResponse::class);
}
/**
* Updates a package. (packages.patch)
*
* @param string $name The name of the package, for example:
* `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the
* package ID part contains slashes, the slashes are escaped.
* @param Package $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The update mask applies to the resource. For the
* `FieldMask` definition, see https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask
* @return Package
* @throws \Google\Service\Exception
*/
public function patch($name, Package $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Package::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesPackages::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesPackages');
@@ -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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\ArtifactregistryEmpty;
use Google\Service\ArtifactRegistry\ListTagsResponse;
use Google\Service\ArtifactRegistry\Tag;
/**
* The "tags" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $tags = $artifactregistryService->projects_locations_repositories_packages_tags;
* </code>
*/
class ProjectsLocationsRepositoriesPackagesTags extends \Google\Service\Resource
{
/**
* Creates a tag. (tags.create)
*
* @param string $parent The name of the parent resource where the tag will be
* created.
* @param Tag $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string tagId The tag id to use for this repository.
* @return Tag
* @throws \Google\Service\Exception
*/
public function create($parent, Tag $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Tag::class);
}
/**
* Deletes a tag. (tags.delete)
*
* @param string $name The name of the tag to delete.
* @param array $optParams Optional parameters.
* @return ArtifactregistryEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ArtifactregistryEmpty::class);
}
/**
* Gets a tag. (tags.get)
*
* @param string $name The name of the tag to retrieve.
* @param array $optParams Optional parameters.
* @return Tag
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Tag::class);
}
/**
* Lists tags. (tags.listProjectsLocationsRepositoriesPackagesTags)
*
* @param string $parent The name of the parent package whose tags will be
* listed. For example: `projects/p1/locations/us-
* central1/repositories/repo1/packages/pkg1`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter An expression for filtering the results of the
* request. Filter rules are case insensitive. The fields eligible for filtering
* are: * `name` * `version` Examples of using a filter: To filter the results
* of your request to tags with the name `my-tag` in package `my-package` in
* repository `my-repo` in project "`y-project` in the us-central region, append
* the following filter expression to your request: * `name="projects/my-
* project/locations/us-central1/repositories/my-repo/packages/my-
* package/tags/my-tag"` You can also use wildcards to match any number of
* characters before or after the value: * `name="projects/my-
* project/locations/us-central1/repositories/my-repo/packages/my-
* package/tags/my*"` * `name="projects/my-project/locations/us-
* central1/repositories/my-repo/packages/my-package/tagstag"` *
* `name="projects/my-project/locations/us-central1/repositories/my-
* repo/packages/my-package/tagstag*"` To filter the results of your request to
* tags applied to the version `1.0` in package `my-package`, append the
* following filter expression to your request: * `version="projects/my-
* project/locations/us-central1/repositories/my-repo/packages/my-
* package/versions/1.0"`
* @opt_param int pageSize The maximum number of tags to return. Maximum page
* size is 1,000.
* @opt_param string pageToken The next_page_token value returned from a
* previous list request, if any.
* @return ListTagsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesPackagesTags($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTagsResponse::class);
}
/**
* Updates a tag. (tags.patch)
*
* @param string $name The name of the tag, for example:
* "projects/p1/locations/us-
* central1/repositories/repo1/packages/pkg1/tags/tag1". If the package part
* contains slashes, the slashes are escaped. The tag part can only have
* characters in [a-zA-Z0-9\-._~:@], anything else must be URL encoded.
* @param Tag $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The update mask applies to the resource. For the
* `FieldMask` definition, see https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask
* @return Tag
* @throws \Google\Service\Exception
*/
public function patch($name, Tag $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Tag::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesPackagesTags::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesPackagesTags');
@@ -0,0 +1,162 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\BatchDeleteVersionsRequest;
use Google\Service\ArtifactRegistry\ListVersionsResponse;
use Google\Service\ArtifactRegistry\Operation;
use Google\Service\ArtifactRegistry\Version;
/**
* The "versions" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $versions = $artifactregistryService->projects_locations_repositories_packages_versions;
* </code>
*/
class ProjectsLocationsRepositoriesPackagesVersions extends \Google\Service\Resource
{
/**
* Deletes multiple versions across a repository. The returned operation will
* complete once the versions have been deleted. (versions.batchDelete)
*
* @param string $parent The name of the repository holding all requested
* versions.
* @param BatchDeleteVersionsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function batchDelete($parent, BatchDeleteVersionsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchDelete', [$params], Operation::class);
}
/**
* Deletes a version and all of its content. The returned operation will
* complete once the version has been deleted. (versions.delete)
*
* @param string $name The name of the version to delete.
* @param array $optParams Optional parameters.
*
* @opt_param bool force By default, a version that is tagged may not be
* deleted. If force=true, the version and any tags pointing to the version are
* deleted.
* @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 a version (versions.get)
*
* @param string $name The name of the version to retrieve.
* @param array $optParams Optional parameters.
*
* @opt_param string view The view that should be returned in the response.
* @return Version
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Version::class);
}
/**
* Lists versions. (versions.listProjectsLocationsRepositoriesPackagesVersions)
*
* @param string $parent The name of the parent resource whose versions will be
* listed.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. An expression for filtering the results of
* the request. Filter rules are case insensitive. The fields eligible for
* filtering are: * `name` * `annotations` Examples of using a filter: To filter
* the results of your request to versions with the name `my-version` in project
* `my-project` in the `us-central` region, in repository `my-repo`, append the
* following filter expression to your request: * `name="projects/my-
* project/locations/us-central1/repositories/my-repo/packages/my-
* package/versions/my-version"` You can also use wildcards to match any number
* of characters before or after the value: * `name="projects/my-
* project/locations/us-central1/repositories/my-repo/packages/my-
* package/versionsversion"` * `name="projects/my-project/locations/us-
* central1/repositories/my-repo/packages/my-package/versions/my*"` *
* `name="projects/my-project/locations/us-central1/repositories/my-
* repo/packages/my-package/versionsversion*"` To filter the results of your
* request to versions with the annotation key-value pair [`external_link`:
* `external_link_value`], append the following filter expression to your
* request: * `"annotations.external_link:external_link_value"` To filter just
* for a specific annotation key `external_link`, append the following filter
* expression to your request: * `"annotations.external_link"` If the annotation
* key or value contains special characters, you can escape them by surrounding
* the value with backticks. For example, to filter the results of your request
* to versions with the annotation key-value pair
* [`external.link`:`https://example.com/my-version`], append the following
* filter expression to your request: * ``
* "annotations.`external.link`:`https://example.com/my-version`" `` You can
* also filter with annotations with a wildcard to match any number of
* characters before or after the value: * ``
* "annotations.*_link:`*example.com*`" ``
* @opt_param string orderBy Optional. The field to order the results by.
* @opt_param int pageSize The maximum number of versions to return. Maximum
* page size is 1,000.
* @opt_param string pageToken The next_page_token value returned from a
* previous list request, if any.
* @opt_param string view The view that should be returned in the response.
* @return ListVersionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesPackagesVersions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListVersionsResponse::class);
}
/**
* Updates a version. (versions.patch)
*
* @param string $name The name of the version, for example:
* `projects/p1/locations/us-
* central1/repositories/repo1/packages/pkg1/versions/art1`. If the package or
* version ID parts contain slashes, the slashes are escaped.
* @param Version $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The update mask applies to the resource. For the
* `FieldMask` definition, see https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask
* @return Version
* @throws \Google\Service\Exception
*/
public function patch($name, Version $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Version::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesPackagesVersions::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesPackagesVersions');
@@ -0,0 +1,71 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\ListPythonPackagesResponse;
use Google\Service\ArtifactRegistry\PythonPackage;
/**
* The "pythonPackages" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $pythonPackages = $artifactregistryService->projects_locations_repositories_pythonPackages;
* </code>
*/
class ProjectsLocationsRepositoriesPythonPackages extends \Google\Service\Resource
{
/**
* Gets a python package. (pythonPackages.get)
*
* @param string $name Required. The name of the python package.
* @param array $optParams Optional parameters.
* @return PythonPackage
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PythonPackage::class);
}
/**
* Lists python packages.
* (pythonPackages.listProjectsLocationsRepositoriesPythonPackages)
*
* @param string $parent Required. The name of the parent resource whose python
* packages will be listed.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of artifacts to return. Maximum
* page size is 1,000.
* @opt_param string pageToken The next_page_token value returned from a
* previous list request, if any.
* @return ListPythonPackagesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesPythonPackages($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPythonPackagesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesPythonPackages::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesPythonPackages');
@@ -0,0 +1,124 @@
<?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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\ArtifactregistryEmpty;
use Google\Service\ArtifactRegistry\GoogleDevtoolsArtifactregistryV1Rule;
use Google\Service\ArtifactRegistry\ListRulesResponse;
/**
* The "rules" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $rules = $artifactregistryService->projects_locations_repositories_rules;
* </code>
*/
class ProjectsLocationsRepositoriesRules extends \Google\Service\Resource
{
/**
* Creates a rule. (rules.create)
*
* @param string $parent Required. The name of the parent resource where the
* rule will be created.
* @param GoogleDevtoolsArtifactregistryV1Rule $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string ruleId The rule id to use for this repository.
* @return GoogleDevtoolsArtifactregistryV1Rule
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleDevtoolsArtifactregistryV1Rule $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleDevtoolsArtifactregistryV1Rule::class);
}
/**
* Deletes a rule. (rules.delete)
*
* @param string $name Required. The name of the rule to delete.
* @param array $optParams Optional parameters.
* @return ArtifactregistryEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ArtifactregistryEmpty::class);
}
/**
* Gets a rule. (rules.get)
*
* @param string $name Required. The name of the rule to retrieve.
* @param array $optParams Optional parameters.
* @return GoogleDevtoolsArtifactregistryV1Rule
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleDevtoolsArtifactregistryV1Rule::class);
}
/**
* Lists rules. (rules.listProjectsLocationsRepositoriesRules)
*
* @param string $parent Required. The name of the parent repository whose rules
* will be listed. For example: `projects/p1/locations/us-
* central1/repositories/repo1`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of rules to return. Maximum page
* size is 1,000.
* @opt_param string pageToken The next_page_token value returned from a
* previous list request, if any.
* @return ListRulesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesRules($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRulesResponse::class);
}
/**
* Updates a rule. (rules.patch)
*
* @param string $name The name of the rule, for example:
* `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
* @param GoogleDevtoolsArtifactregistryV1Rule $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The update mask applies to the resource. For the
* `FieldMask` definition, see https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask
* @return GoogleDevtoolsArtifactregistryV1Rule
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleDevtoolsArtifactregistryV1Rule $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleDevtoolsArtifactregistryV1Rule::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesRules::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesRules');
@@ -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\ArtifactRegistry\Resource;
use Google\Service\ArtifactRegistry\ImportYumArtifactsRequest;
use Google\Service\ArtifactRegistry\Operation;
use Google\Service\ArtifactRegistry\UploadYumArtifactMediaResponse;
use Google\Service\ArtifactRegistry\UploadYumArtifactRequest;
/**
* The "yumArtifacts" collection of methods.
* Typical usage is:
* <code>
* $artifactregistryService = new Google\Service\ArtifactRegistry(...);
* $yumArtifacts = $artifactregistryService->projects_locations_repositories_yumArtifacts;
* </code>
*/
class ProjectsLocationsRepositoriesYumArtifacts extends \Google\Service\Resource
{
/**
* Imports Yum (RPM) artifacts. The returned Operation will complete once the
* resources are imported. Package, Version, and File resources are created
* based on the imported artifacts. Imported artifacts that conflict with
* existing resources are ignored. (yumArtifacts.import)
*
* @param string $parent The name of the parent resource where the artifacts
* will be imported.
* @param ImportYumArtifactsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function import($parent, ImportYumArtifactsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('import', [$params], Operation::class);
}
/**
* Directly uploads a Yum artifact. The returned Operation will complete once
* the resources are uploaded. Package, Version, and File resources are created
* based on the imported artifact. Imported artifacts that conflict with
* existing resources are ignored. (yumArtifacts.upload)
*
* @param string $parent The name of the parent resource where the artifacts
* will be uploaded.
* @param UploadYumArtifactRequest $postBody
* @param array $optParams Optional parameters.
* @return UploadYumArtifactMediaResponse
* @throws \Google\Service\Exception
*/
public function upload($parent, UploadYumArtifactRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], UploadYumArtifactMediaResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesYumArtifacts::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesYumArtifacts');
@@ -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\ArtifactRegistry;
class SbomConfig extends \Google\Model
{
/**
* @var string
*/
public $enablementConfig;
/**
* @var string
*/
public $lastEnableTime;
/**
* @param string
*/
public function setEnablementConfig($enablementConfig)
{
$this->enablementConfig = $enablementConfig;
}
/**
* @return string
*/
public function getEnablementConfig()
{
return $this->enablementConfig;
}
/**
* @param string
*/
public function setLastEnableTime($lastEnableTime)
{
$this->lastEnableTime = $lastEnableTime;
}
/**
* @return string
*/
public function getLastEnableTime()
{
return $this->lastEnableTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SbomConfig::class, 'Google_Service_ArtifactRegistry_SbomConfig');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ArtifactRegistry;
class SetIamPolicyRequest extends \Google\Model
{
protected $policyType = Policy::class;
protected $policyDataType = '';
/**
* @param Policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetIamPolicyRequest::class, 'Google_Service_ArtifactRegistry_SetIamPolicyRequest');

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