Skip to content

Commit ecd620c

Browse files
1 parent c64afeb commit ecd620c

5 files changed

Lines changed: 105 additions & 1 deletion

File tree

src/Dataform.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
999999
'location' => 'query',
10001000
'type' => 'string',
10011001
],
1002+
'view' => [
1003+
'location' => 'query',
1004+
'type' => 'string',
1005+
],
10021006
],
10031007
],'readFile' => [
10041008
'path' => 'v1/{+workspace}:readFile',

src/Dataform/ComputeRepositoryAccessTokenStatusResponse.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ class ComputeRepositoryAccessTokenStatusResponse extends \Google\Model
3636
* The token was used successfully to authenticate against the Git remote.
3737
*/
3838
public const TOKEN_STATUS_VALID = 'VALID';
39+
/**
40+
* The token is not accessible due to permission issues.
41+
*/
42+
public const TOKEN_STATUS_PERMISSION_DENIED = 'PERMISSION_DENIED';
3943
/**
4044
* Indicates the status of the Git access token.
4145
*
@@ -46,7 +50,8 @@ class ComputeRepositoryAccessTokenStatusResponse extends \Google\Model
4650
/**
4751
* Indicates the status of the Git access token.
4852
*
49-
* Accepted values: TOKEN_STATUS_UNSPECIFIED, NOT_FOUND, INVALID, VALID
53+
* Accepted values: TOKEN_STATUS_UNSPECIFIED, NOT_FOUND, INVALID, VALID,
54+
* PERMISSION_DENIED
5055
*
5156
* @param self::TOKEN_STATUS_* $tokenStatus
5257
*/

src/Dataform/DirectoryEntry.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class DirectoryEntry extends \Google\Model
3131
* @var string
3232
*/
3333
public $file;
34+
protected $metadataType = FilesystemEntryMetadata::class;
35+
protected $metadataDataType = '';
3436

3537
/**
3638
* A child directory in the directory.
@@ -64,6 +66,22 @@ public function getFile()
6466
{
6567
return $this->file;
6668
}
69+
/**
70+
* Entry with metadata.
71+
*
72+
* @param FilesystemEntryMetadata $metadata
73+
*/
74+
public function setMetadata(FilesystemEntryMetadata $metadata)
75+
{
76+
$this->metadata = $metadata;
77+
}
78+
/**
79+
* @return FilesystemEntryMetadata
80+
*/
81+
public function getMetadata()
82+
{
83+
return $this->metadata;
84+
}
6785
}
6886

6987
// Adding a class alias for backwards compatibility with the previous class name.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Dataform;
19+
20+
class FilesystemEntryMetadata extends \Google\Model
21+
{
22+
/**
23+
* Output only. Provides the size of the entry in bytes. For directories, this
24+
* will be 0.
25+
*
26+
* @var string
27+
*/
28+
public $sizeBytes;
29+
/**
30+
* Output only. Represents the time of the last modification of the entry.
31+
*
32+
* @var string
33+
*/
34+
public $updateTime;
35+
36+
/**
37+
* Output only. Provides the size of the entry in bytes. For directories, this
38+
* will be 0.
39+
*
40+
* @param string $sizeBytes
41+
*/
42+
public function setSizeBytes($sizeBytes)
43+
{
44+
$this->sizeBytes = $sizeBytes;
45+
}
46+
/**
47+
* @return string
48+
*/
49+
public function getSizeBytes()
50+
{
51+
return $this->sizeBytes;
52+
}
53+
/**
54+
* Output only. Represents the time of the last modification of the entry.
55+
*
56+
* @param string $updateTime
57+
*/
58+
public function setUpdateTime($updateTime)
59+
{
60+
$this->updateTime = $updateTime;
61+
}
62+
/**
63+
* @return string
64+
*/
65+
public function getUpdateTime()
66+
{
67+
return $this->updateTime;
68+
}
69+
}
70+
71+
// Adding a class alias for backwards compatibility with the previous class name.
72+
class_alias(FilesystemEntryMetadata::class, 'Google_Service_Dataform_FilesystemEntryMetadata');

src/Dataform/Resource/ProjectsLocationsRepositoriesWorkspaces.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,11 @@ public function push($name, PushGitCommitsRequest $postBody, $optParams = [])
349349
* @opt_param string path Optional. The directory's full path including
350350
* directory name, relative to the workspace root. If left unset, the workspace
351351
* root is used.
352+
* @opt_param string view Optional. Specifies the metadata to return for each
353+
* directory entry. If unspecified, the default is
354+
* `DIRECTORY_CONTENTS_VIEW_BASIC`. Currently the
355+
* `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by CMEK-protected
356+
* workspaces.
352357
* @return QueryDirectoryContentsResponse
353358
* @throws \Google\Service\Exception
354359
*/

0 commit comments

Comments
 (0)