-
-
Notifications
You must be signed in to change notification settings - Fork 147
Update generated code #1991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Update generated code #1991
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <?php | ||
|
|
||
| namespace AsyncAws\BedrockRuntime\Enum; | ||
|
|
||
| final class ServiceTierType | ||
| { | ||
| public const DEFAULT = 'default'; | ||
| public const FLEX = 'flex'; | ||
| public const PRIORITY = 'priority'; | ||
|
|
||
| public static function exists(string $value): bool | ||
| { | ||
| return isset([ | ||
| self::DEFAULT => true, | ||
| self::FLEX => true, | ||
| self::PRIORITY => true, | ||
| ][$value]); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| <?php | ||
|
|
||
| namespace AsyncAws\CloudFormation\Enum; | ||
|
|
||
| final class OperationType | ||
| { | ||
| public const CONTINUE_ROLLBACK = 'CONTINUE_ROLLBACK'; | ||
| public const CREATE_CHANGESET = 'CREATE_CHANGESET'; | ||
| public const CREATE_STACK = 'CREATE_STACK'; | ||
| public const DELETE_STACK = 'DELETE_STACK'; | ||
| public const ROLLBACK = 'ROLLBACK'; | ||
| public const UPDATE_STACK = 'UPDATE_STACK'; | ||
|
|
||
| public static function exists(string $value): bool | ||
| { | ||
| return isset([ | ||
| self::CONTINUE_ROLLBACK => true, | ||
| self::CREATE_CHANGESET => true, | ||
| self::CREATE_STACK => true, | ||
| self::DELETE_STACK => true, | ||
| self::ROLLBACK => true, | ||
| self::UPDATE_STACK => true, | ||
| ][$value]); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
src/Service/CloudFormation/src/ValueObject/OperationEntry.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| <?php | ||
|
|
||
| namespace AsyncAws\CloudFormation\ValueObject; | ||
|
|
||
| use AsyncAws\CloudFormation\Enum\OperationType; | ||
|
|
||
| /** | ||
| * Contains information about a CloudFormation operation. | ||
| */ | ||
| final class OperationEntry | ||
| { | ||
| /** | ||
| * The type of operation. | ||
| * | ||
| * @var OperationType::*|null | ||
| */ | ||
| private $operationType; | ||
|
|
||
| /** | ||
| * The unique identifier for the operation. | ||
| * | ||
| * @var string|null | ||
| */ | ||
| private $operationId; | ||
|
|
||
| /** | ||
| * @param array{ | ||
| * OperationType?: OperationType::*|null, | ||
| * OperationId?: string|null, | ||
| * } $input | ||
| */ | ||
| public function __construct(array $input) | ||
| { | ||
| $this->operationType = $input['OperationType'] ?? null; | ||
| $this->operationId = $input['OperationId'] ?? null; | ||
| } | ||
|
|
||
| /** | ||
| * @param array{ | ||
| * OperationType?: OperationType::*|null, | ||
| * OperationId?: string|null, | ||
| * }|OperationEntry $input | ||
| */ | ||
| public static function create($input): self | ||
| { | ||
| return $input instanceof self ? $input : new self($input); | ||
| } | ||
|
|
||
| public function getOperationId(): ?string | ||
| { | ||
| return $this->operationId; | ||
| } | ||
|
|
||
| /** | ||
| * @return OperationType::*|null | ||
| */ | ||
| public function getOperationType(): ?string | ||
| { | ||
| return $this->operationType; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.