Skip to content

Commit f634962

Browse files
1 parent 9fa5764 commit f634962

5 files changed

Lines changed: 78 additions & 16 deletions

File tree

src/FirebaseAppHosting/ArchiveSource.php

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ class ArchiveSource extends \Google\Model
3535
*/
3636
public $externalSignedUri;
3737
/**
38-
* Optional. Relative path in the archive.
38+
* Optional. The directory relative to the root of the archive to use as the
39+
* root for the deployed web app. Defaults to use the root of the repository
40+
* if not provided. If deploying a
41+
* [monorepo](https://firebase.google.com/docs/app-hosting/monorepos), this
42+
* should be the directory that contains the `package.json` or
43+
* `apphosting.yaml` file.
3944
*
4045
* @var string
4146
*/
@@ -49,15 +54,18 @@ class ArchiveSource extends \Google\Model
4954
public $userStorageUri;
5055

5156
/**
52-
* Optional. The author contained in the metadata of a version control change.
57+
* Optional. Deprecated: Not used. The author contained in the metadata of a
58+
* version control change.
5359
*
60+
* @deprecated
5461
* @param SourceUserMetadata $author
5562
*/
5663
public function setAuthor(SourceUserMetadata $author)
5764
{
5865
$this->author = $author;
5966
}
6067
/**
68+
* @deprecated
6169
* @return SourceUserMetadata
6270
*/
6371
public function getAuthor()
@@ -98,7 +106,12 @@ public function getExternalSignedUri()
98106
return $this->externalSignedUri;
99107
}
100108
/**
101-
* Optional. Relative path in the archive.
109+
* Optional. The directory relative to the root of the archive to use as the
110+
* root for the deployed web app. Defaults to use the root of the repository
111+
* if not provided. If deploying a
112+
* [monorepo](https://firebase.google.com/docs/app-hosting/monorepos), this
113+
* should be the directory that contains the `package.json` or
114+
* `apphosting.yaml` file.
102115
*
103116
* @param string $rootDirectory
104117
*/

src/FirebaseAppHosting/Codebase.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ class Codebase extends \Google\Model
3333
public $repository;
3434
/**
3535
* Optional. If `repository` is provided, the directory relative to the root
36-
* of the repository to use as the root for the deployed web app.
36+
* of the repository to use as the root for the deployed web app. Defaults to
37+
* use the root of the repository if not provided. If deploying a
38+
* [monorepo](https://firebase.google.com/docs/app-hosting/monorepos), this
39+
* should be the directory that contains the `package.json` or
40+
* `apphosting.yaml` file.
3741
*
3842
* @var string
3943
*/
@@ -63,7 +67,11 @@ public function getRepository()
6367
}
6468
/**
6569
* Optional. If `repository` is provided, the directory relative to the root
66-
* of the repository to use as the root for the deployed web app.
70+
* of the repository to use as the root for the deployed web app. Defaults to
71+
* use the root of the repository if not provided. If deploying a
72+
* [monorepo](https://firebase.google.com/docs/app-hosting/monorepos), this
73+
* should be the directory that contains the `package.json` or
74+
* `apphosting.yaml` file.
6775
*
6876
* @param string $rootDirectory
6977
*/

src/FirebaseAppHosting/CodebaseSource.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ class CodebaseSource extends \Google\Model
5959
* @var string
6060
*/
6161
public $hash;
62+
/**
63+
* Output only. The resource name for the Developer Connect
64+
* [`gitRepositoryLink`](https://cloud.google.com/developer-connect/docs/api/r
65+
* eference/rest/v1/projects.locations.connections.gitRepositoryLinks) used
66+
* for this build, in the format: `projects/{project}/locations/{location}/con
67+
* nections/{connection}/gitRepositoryLinks/{repositoryLink}`
68+
*
69+
* @var string
70+
*/
71+
public $repository;
6272
/**
6373
* Output only. A URI linking to the codebase on an hosting provider's
6474
* website. May not be valid if the commit has been rebased or force-pushed
@@ -183,6 +193,26 @@ public function getHash()
183193
{
184194
return $this->hash;
185195
}
196+
/**
197+
* Output only. The resource name for the Developer Connect
198+
* [`gitRepositoryLink`](https://cloud.google.com/developer-connect/docs/api/r
199+
* eference/rest/v1/projects.locations.connections.gitRepositoryLinks) used
200+
* for this build, in the format: `projects/{project}/locations/{location}/con
201+
* nections/{connection}/gitRepositoryLinks/{repositoryLink}`
202+
*
203+
* @param string $repository
204+
*/
205+
public function setRepository($repository)
206+
{
207+
$this->repository = $repository;
208+
}
209+
/**
210+
* @return string
211+
*/
212+
public function getRepository()
213+
{
214+
return $this->repository;
215+
}
186216
/**
187217
* Output only. A URI linking to the codebase on an hosting provider's
188218
* website. May not be valid if the commit has been rebased or force-pushed

src/FirebaseAppHosting/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getEffectiveEnv()
5151
* Optional. Supplied environment variables for a specific build. Provided at
5252
* Build creation time and immutable afterwards. This field is only applicable
5353
* for Builds using a build image - (e.g., ContainerSource or ArchiveSource
54-
* with locally_build_source) Attempts to set this for other build types will
54+
* with locally_built_source) Attempts to set this for other build types will
5555
* result in an error
5656
*
5757
* @param EnvironmentVariable[] $env

src/FirebaseAppHosting/SourceUserMetadata.php

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,70 +20,81 @@
2020
class SourceUserMetadata extends \Google\Model
2121
{
2222
/**
23-
* Output only. The user-chosen displayname. May be empty.
23+
* Output only. Deprecated: Not used. The user-chosen displayname. May be
24+
* empty.
2425
*
26+
* @deprecated
2527
* @var string
2628
*/
2729
public $displayName;
2830
/**
29-
* Output only. The account email linked to the EUC that created the build.
30-
* May be a service account or other robot account.
31+
* Output only. Deprecated: Not used. The account email linked to the EUC that
32+
* created the build. May be a service account or other robot account.
3133
*
34+
* @deprecated
3235
* @var string
3336
*/
3437
public $email;
3538
/**
36-
* Output only. The URI of a profile photo associated with the user who
37-
* created the build.
39+
* Output only. Deprecated: Not used. The URI of a profile photo associated
40+
* with the user who created the build.
3841
*
42+
* @deprecated
3943
* @var string
4044
*/
4145
public $imageUri;
4246

4347
/**
44-
* Output only. The user-chosen displayname. May be empty.
48+
* Output only. Deprecated: Not used. The user-chosen displayname. May be
49+
* empty.
4550
*
51+
* @deprecated
4652
* @param string $displayName
4753
*/
4854
public function setDisplayName($displayName)
4955
{
5056
$this->displayName = $displayName;
5157
}
5258
/**
59+
* @deprecated
5360
* @return string
5461
*/
5562
public function getDisplayName()
5663
{
5764
return $this->displayName;
5865
}
5966
/**
60-
* Output only. The account email linked to the EUC that created the build.
61-
* May be a service account or other robot account.
67+
* Output only. Deprecated: Not used. The account email linked to the EUC that
68+
* created the build. May be a service account or other robot account.
6269
*
70+
* @deprecated
6371
* @param string $email
6472
*/
6573
public function setEmail($email)
6674
{
6775
$this->email = $email;
6876
}
6977
/**
78+
* @deprecated
7079
* @return string
7180
*/
7281
public function getEmail()
7382
{
7483
return $this->email;
7584
}
7685
/**
77-
* Output only. The URI of a profile photo associated with the user who
78-
* created the build.
86+
* Output only. Deprecated: Not used. The URI of a profile photo associated
87+
* with the user who created the build.
7988
*
89+
* @deprecated
8090
* @param string $imageUri
8191
*/
8292
public function setImageUri($imageUri)
8393
{
8494
$this->imageUri = $imageUri;
8595
}
8696
/**
97+
* @deprecated
8798
* @return string
8899
*/
89100
public function getImageUri()

0 commit comments

Comments
 (0)