diff --git a/src/Dataform.php b/src/Dataform.php index f4ffed264c8..c0db92f301a 100644 --- a/src/Dataform.php +++ b/src/Dataform.php @@ -999,6 +999,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'location' => 'query', 'type' => 'string', ], + 'view' => [ + 'location' => 'query', + 'type' => 'string', + ], ], ],'readFile' => [ 'path' => 'v1/{+workspace}:readFile', diff --git a/src/Dataform/ComputeRepositoryAccessTokenStatusResponse.php b/src/Dataform/ComputeRepositoryAccessTokenStatusResponse.php index 22c7bf5ffb6..13f7b59e2dc 100644 --- a/src/Dataform/ComputeRepositoryAccessTokenStatusResponse.php +++ b/src/Dataform/ComputeRepositoryAccessTokenStatusResponse.php @@ -36,6 +36,10 @@ class ComputeRepositoryAccessTokenStatusResponse extends \Google\Model * The token was used successfully to authenticate against the Git remote. */ public const TOKEN_STATUS_VALID = 'VALID'; + /** + * The token is not accessible due to permission issues. + */ + public const TOKEN_STATUS_PERMISSION_DENIED = 'PERMISSION_DENIED'; /** * Indicates the status of the Git access token. * @@ -46,7 +50,8 @@ class ComputeRepositoryAccessTokenStatusResponse extends \Google\Model /** * Indicates the status of the Git access token. * - * Accepted values: TOKEN_STATUS_UNSPECIFIED, NOT_FOUND, INVALID, VALID + * Accepted values: TOKEN_STATUS_UNSPECIFIED, NOT_FOUND, INVALID, VALID, + * PERMISSION_DENIED * * @param self::TOKEN_STATUS_* $tokenStatus */ diff --git a/src/Dataform/DirectoryEntry.php b/src/Dataform/DirectoryEntry.php index de68159003e..12ef97bca50 100644 --- a/src/Dataform/DirectoryEntry.php +++ b/src/Dataform/DirectoryEntry.php @@ -31,6 +31,8 @@ class DirectoryEntry extends \Google\Model * @var string */ public $file; + protected $metadataType = FilesystemEntryMetadata::class; + protected $metadataDataType = ''; /** * A child directory in the directory. @@ -64,6 +66,22 @@ public function getFile() { return $this->file; } + /** + * Entry with metadata. + * + * @param FilesystemEntryMetadata $metadata + */ + public function setMetadata(FilesystemEntryMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return FilesystemEntryMetadata + */ + public function getMetadata() + { + return $this->metadata; + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/Dataform/FilesystemEntryMetadata.php b/src/Dataform/FilesystemEntryMetadata.php new file mode 100644 index 00000000000..328d4b60a12 --- /dev/null +++ b/src/Dataform/FilesystemEntryMetadata.php @@ -0,0 +1,72 @@ +sizeBytes = $sizeBytes; + } + /** + * @return string + */ + public function getSizeBytes() + { + return $this->sizeBytes; + } + /** + * Output only. Represents the time of the last modification of the entry. + * + * @param string $updateTime + */ + 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(FilesystemEntryMetadata::class, 'Google_Service_Dataform_FilesystemEntryMetadata'); diff --git a/src/Dataform/Resource/ProjectsLocationsRepositoriesWorkspaces.php b/src/Dataform/Resource/ProjectsLocationsRepositoriesWorkspaces.php index c293c9bc5fd..8671ce92355 100644 --- a/src/Dataform/Resource/ProjectsLocationsRepositoriesWorkspaces.php +++ b/src/Dataform/Resource/ProjectsLocationsRepositoriesWorkspaces.php @@ -349,6 +349,11 @@ public function push($name, PushGitCommitsRequest $postBody, $optParams = []) * @opt_param string path Optional. The directory's full path including * directory name, relative to the workspace root. If left unset, the workspace * root is used. + * @opt_param string view Optional. Specifies the metadata to return for each + * directory entry. If unspecified, the default is + * `DIRECTORY_CONTENTS_VIEW_BASIC`. Currently the + * `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by CMEK-protected + * workspaces. * @return QueryDirectoryContentsResponse * @throws \Google\Service\Exception */