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
4 changes: 4 additions & 0 deletions src/Dataform.php
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
'location' => 'query',
'type' => 'string',
],
'view' => [
'location' => 'query',
'type' => 'string',
],
],
],'readFile' => [
'path' => 'v1/{+workspace}:readFile',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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
*/
Expand Down
18 changes: 18 additions & 0 deletions src/Dataform/DirectoryEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
72 changes: 72 additions & 0 deletions src/Dataform/FilesystemEntryMetadata.php
Original file line number Diff line number Diff line change
@@ -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\Dataform;

class FilesystemEntryMetadata extends \Google\Model
{
/**
* Output only. Provides the size of the entry in bytes. For directories, this
* will be 0.
*
* @var string
*/
public $sizeBytes;
/**
* Output only. Represents the time of the last modification of the entry.
*
* @var string
*/
public $updateTime;

/**
* Output only. Provides the size of the entry in bytes. For directories, this
* will be 0.
*
* @param string $sizeBytes
*/
public function setSizeBytes($sizeBytes)
{
$this->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');
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Loading