Skip to content

Commit

Permalink
Generate the property type for generated objects (#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
stof authored Jul 3, 2023
1 parent 16d59c7 commit 74a5da1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Result/GetAuthorizationTokenResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class GetAuthorizationTokenResponse extends Result
{
/**
* A list of authorization token data objects that correspond to the `registryIds` values in the request.
*
* @var AuthorizationData[]
*/
private $authorizationData;

Expand Down
6 changes: 6 additions & 0 deletions src/ValueObject/AuthorizationData.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,25 @@ final class AuthorizationData
/**
* A base64-encoded string that contains authorization data for the specified Amazon ECR registry. When the string is
* decoded, it is presented in the format `user:password` for private registry authentication using `docker login`.
*
* @var string|null
*/
private $authorizationToken;

/**
* The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are valid for 12
* hours.
*
* @var \DateTimeImmutable|null
*/
private $expiresAt;

/**
* The registry URL to use for this authorization token in a `docker login` command. The Amazon ECR registry URL format
* is `https://aws_account_id.dkr.ecr.region.amazonaws.com`. For example,
* `https://012345678910.dkr.ecr.us-east-1.amazonaws.com`..
*
* @var string|null
*/
private $proxyEndpoint;

Expand Down

0 comments on commit 74a5da1

Please sign in to comment.