Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts extends \Google\Colle
protected $npmPackagesDataType = 'array';
protected $objectsType = ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects::class;
protected $objectsDataType = '';
protected $ociType = ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsOci::class;
protected $ociDataType = 'array';
protected $pythonPackagesType = ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage::class;
protected $pythonPackagesDataType = 'array';

Expand Down Expand Up @@ -140,6 +142,26 @@ public function getObjects()
{
return $this->objects;
}
/**
* Optional. A list of OCI images to be uploaded to Artifact Registry upon
* successful completion of all build steps. OCI images in the specified paths
* will be uploaded to the specified Artifact Registry repository using the
* builder service account's credentials. If any images fail to be pushed, the
* build is marked FAILURE.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsOci[] $oci
*/
public function setOci($oci)
{
$this->oci = $oci;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsOci[]
*/
public function getOci()
{
return $this->oci;
}
/**
* A list of Python packages to be uploaded to Artifact Registry upon
* successful completion of all build steps. The build service account
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\ContainerAnalysis;

class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsOci extends \Google\Collection
{
protected $collection_key = 'tags';
/**
* Required. Path on the local file system where to find the container to
* upload. e.g. /workspace/my-image.tar
*
* @var string
*/
public $file;
/**
* Required. Registry path to upload the container to. e.g. us-
* east1-docker.pkg.dev/my-project/my-repo/my-image
*
* @var string
*/
public $registryPath;
/**
* Optional. Tags to apply to the uploaded image. e.g. latest, 1.0.0
*
* @var string[]
*/
public $tags;

/**
* Required. Path on the local file system where to find the container to
* upload. e.g. /workspace/my-image.tar
*
* @param string $file
*/
public function setFile($file)
{
$this->file = $file;
}
/**
* @return string
*/
public function getFile()
{
return $this->file;
}
/**
* Required. Registry path to upload the container to. e.g. us-
* east1-docker.pkg.dev/my-project/my-repo/my-image
*
* @param string $registryPath
*/
public function setRegistryPath($registryPath)
{
$this->registryPath = $registryPath;
}
/**
* @return string
*/
public function getRegistryPath()
{
return $this->registryPath;
}
/**
* Optional. Tags to apply to the uploaded image. e.g. latest, 1.0.0
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsOci::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsOci');
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@

class ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage extends \Google\Model
{
/**
* Default value.
*/
public const OCI_MEDIA_TYPE_OCI_MEDIA_TYPE_UNSPECIFIED = 'OCI_MEDIA_TYPE_UNSPECIFIED';
/**
* The artifact is an image manifest, which represents a single image with all
* its layers.
*/
public const OCI_MEDIA_TYPE_IMAGE_MANIFEST = 'IMAGE_MANIFEST';
/**
* The artifact is an image index, which can contain a list of image
* manifests.
*/
public const OCI_MEDIA_TYPE_IMAGE_INDEX = 'IMAGE_INDEX';
/**
* Output only. Path to the artifact in Artifact Registry.
*
Expand All @@ -38,6 +52,13 @@ class ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage extends \Google\Mode
* @var string
*/
public $name;
/**
* Output only. The OCI media type of the artifact. Non-OCI images, such as
* Docker images, will have an unspecified value.
*
* @var string
*/
public $ociMediaType;
protected $pushTimingType = ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::class;
protected $pushTimingDataType = '';

Expand Down Expand Up @@ -90,6 +111,25 @@ public function getName()
{
return $this->name;
}
/**
* Output only. The OCI media type of the artifact. Non-OCI images, such as
* Docker images, will have an unspecified value.
*
* Accepted values: OCI_MEDIA_TYPE_UNSPECIFIED, IMAGE_MANIFEST, IMAGE_INDEX
*
* @param self::OCI_MEDIA_TYPE_* $ociMediaType
*/
public function setOciMediaType($ociMediaType)
{
$this->ociMediaType = $ociMediaType;
}
/**
* @return self::OCI_MEDIA_TYPE_*
*/
public function getOciMediaType()
{
return $this->ociMediaType;
}
/**
* Output only. Stores timing information for pushing the specified image.
*
Expand Down
24 changes: 24 additions & 0 deletions src/ContainerAnalysis/GrafeasV1FileLocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ class GrafeasV1FileLocation extends \Google\Model
public $filePath;
protected $layerDetailsType = LayerDetails::class;
protected $layerDetailsDataType = '';
/**
* Line number in the file where the package was found. Optional field that
* only applies to source repository scanning.
*
* @var int
*/
public $lineNumber;

/**
* For jars that are contained inside .war files, this filepath can indicate
Expand Down Expand Up @@ -63,6 +70,23 @@ public function getLayerDetails()
{
return $this->layerDetails;
}
/**
* Line number in the file where the package was found. Optional field that
* only applies to source repository scanning.
*
* @param int $lineNumber
*/
public function setLineNumber($lineNumber)
{
$this->lineNumber = $lineNumber;
}
/**
* @return int
*/
public function getLineNumber()
{
return $this->lineNumber;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
Expand Down
Loading