Skip to content

Commit c9e17d6

Browse files
Update generated code (#1692)
update generated code
1 parent 7046f5f commit c9e17d6

File tree

7 files changed

+28
-10
lines changed

7 files changed

+28
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: Supporting GitLab and GitLab Self Managed as source types in AWS CodeBuild.
8+
59
### Changed
610

711
- AWS enhancement: Documentation updates.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"extra": {
3030
"branch-alias": {
31-
"dev-master": "2.3-dev"
31+
"dev-master": "2.4-dev"
3232
}
3333
}
3434
}

src/Enum/SourceAuthType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
final class SourceAuthType
66
{
7+
public const CODECONNECTIONS = 'CODECONNECTIONS';
78
public const OAUTH = 'OAUTH';
89

910
public static function exists(string $value): bool
1011
{
1112
return isset([
13+
self::CODECONNECTIONS => true,
1214
self::OAUTH => true,
1315
][$value]);
1416
}

src/Enum/SourceType.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ final class SourceType
99
public const CODEPIPELINE = 'CODEPIPELINE';
1010
public const GITHUB = 'GITHUB';
1111
public const GITHUB_ENTERPRISE = 'GITHUB_ENTERPRISE';
12+
public const GITLAB = 'GITLAB';
13+
public const GITLAB_SELF_MANAGED = 'GITLAB_SELF_MANAGED';
1214
public const NO_SOURCE = 'NO_SOURCE';
1315
public const S3 = 'S3';
1416

@@ -20,6 +22,8 @@ public static function exists(string $value): bool
2022
self::CODEPIPELINE => true,
2123
self::GITHUB => true,
2224
self::GITHUB_ENTERPRISE => true,
25+
self::GITLAB => true,
26+
self::GITLAB_SELF_MANAGED => true,
2327
self::NO_SOURCE => true,
2428
self::S3 => true,
2529
][$value]);

src/ValueObject/ProjectSource.php

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ final class ProjectSource
1616
* - `BITBUCKET`: The source code is in a Bitbucket repository.
1717
* - `CODECOMMIT`: The source code is in an CodeCommit repository.
1818
* - `CODEPIPELINE`: The source code settings are specified in the source action of a pipeline in CodePipeline.
19-
* - `GITHUB`: The source code is in a GitHub or GitHub Enterprise Cloud repository.
19+
* - `GITHUB`: The source code is in a GitHub repository.
2020
* - `GITHUB_ENTERPRISE`: The source code is in a GitHub Enterprise Server repository.
21+
* - `GITLAB`: The source code is in a GitLab repository.
22+
* - `GITLAB_SELF_MANAGED`: The source code is in a self-managed GitLab repository.
2123
* - `NO_SOURCE`: The project does not have input source code.
2224
* - `S3`: The source code is in an Amazon S3 bucket.
2325
*
@@ -48,6 +50,14 @@ final class ProjectSource
4850
* want to allow CodeBuild to have access to, and then choose **Authorize application**. (After you have connected to
4951
* your GitHub account, you do not need to finish creating the build project. You can leave the CodeBuild console.) To
5052
* instruct CodeBuild to use this connection, in the `source` object, set the `auth` object's `type` value to `OAUTH`.
53+
* - For source code in an GitLab or self-managed GitLab repository, the HTTPS clone URL to the repository that contains
54+
* the source and the buildspec file. You must connect your Amazon Web Services account to your GitLab account. Use
55+
* the CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with
56+
* GitLab, on the Connections **Authorize application** page, choose **Authorize**. Then on the CodeStar Connections
57+
* **Create GitLab connection** page, choose **Connect to GitLab**. (After you have connected to your GitLab account,
58+
* you do not need to finish creating the build project. You can leave the CodeBuild console.) To instruct CodeBuild
59+
* to override the default connection and use this connection instead, set the `auth` object's `type` value to
60+
* `CODECONNECTIONS` in the `source` object.
5161
* - For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the
5262
* buildspec file. You must connect your Amazon Web Services account to your Bitbucket account. Use the CodeBuild
5363
* console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on
@@ -103,8 +113,8 @@ final class ProjectSource
103113

104114
/**
105115
* Set to true to report the status of a build's start and finish to your source provider. This option is valid only
106-
* when your source provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set and you use a different source
107-
* provider, an `invalidInputException` is thrown.
116+
* when your source provider is GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket. If this is set and
117+
* you use a different source provider, an `invalidInputException` is thrown.
108118
*
109119
* To be able to report the build status to the source provider, the user associated with the source provider must have
110120
* write access to the repo. If the user does not have write access, the build status cannot be updated. For more

src/ValueObject/ProjectSourceVersion.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ final class ProjectSourceVersion
2121
* The source version for the corresponding source identifier. If specified, must be one of:
2222
*
2323
* - For CodeCommit: the commit ID, branch, or Git tag to use.
24-
* - For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source
25-
* code you want to build. If a pull request ID is specified, it must use the format `pr/pull-request-ID` (for
26-
* example, `pr/25`). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the
24+
* - For GitHub or GitLab: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of
25+
* the source code you want to build. If a pull request ID is specified, it must use the format `pr/pull-request-ID`
26+
* (for example, `pr/25`). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the
2727
* default branch's HEAD commit ID is used.
2828
* - For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want
2929
* to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default

src/ValueObject/SourceAuth.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
final class SourceAuth
1414
{
1515
/**
16-
* > This data type is deprecated and is no longer accurate or used.
17-
*
18-
* The authorization type to use. The only valid value is `OAUTH`, which represents the OAuth authorization type.
16+
* The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.
1917
*
2018
* @var SourceAuthType::*
2119
*/

0 commit comments

Comments
 (0)