Skip to content

Commit

Permalink
fix change in Acronis API (#17)
Browse files Browse the repository at this point in the history
* fix change in Acronis API
  • Loading branch information
glenn1001 authored Jan 23, 2023
1 parent 379f30a commit bfcc000
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Entity/AccessPolicyCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class AccessPolicyCollection
{
/**
* @var AccessPolicy[]
*
* @Serializer\Type("array<SandwaveIo\Acronis\Entity\AccessPolicy>")
* @Serializer\SerializedName("items")
* @Serializer\Groups({"update_data"})
Expand Down
1 change: 1 addition & 0 deletions src/Entity/ApplicationUuidCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class ApplicationUuidCollection
{
/**
* @var string[]
*
* @Serializer\Type("array<string>")
* @Serializer\SerializedName("items")
*/
Expand Down
1 change: 1 addition & 0 deletions src/Entity/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Contact

/**
* @var string[]
*
* @Serializer\SerializedName("types")
* @Serializer\Type("array<string>")
* @Serializer\Groups({"create_data","update_data"})
Expand Down
1 change: 1 addition & 0 deletions src/Entity/InfraUuidCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class InfraUuidCollection
{
/**
* @var string[]
*
* @Serializer\Type("array<string>")
* @Serializer\SerializedName("infras")
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Entity/OfferingCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ class OfferingCollection

/**
* @var Offering[]
*
* @Serializer\Type("array<SandwaveIo\Acronis\Entity\Offering>")
* @Serializer\SerializedName("items")
*/
private array $offeringItems;

/**
* @var Offering[]
*
* @Serializer\Type("array<SandwaveIo\Acronis\Entity\Offering>")
* @Serializer\SerializedName("offering_items")
* @Serializer\Groups({"update_data"})
Expand Down
1 change: 1 addition & 0 deletions src/Entity/SearchResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class SearchResult

/**
* @var string[]
*
* @Serializer\SerializedName("path")
* @Serializer\Type("array<string>")
*/
Expand Down
1 change: 1 addition & 0 deletions src/Entity/SearchResultCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class SearchResultCollection
{
/**
* @var SearchResult[]
*
* @Serializer\Type("array<SandwaveIo\Acronis\Entity\SearchResult>")
* @Serializer\SerializedName("items")
*/
Expand Down
1 change: 1 addition & 0 deletions src/Entity/TenantCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class TenantCollection

/**
* @var Tenant[]
*
* @Serializer\Type("array<SandwaveIo\Acronis\Entity\Tenant>")
* @Serializer\SerializedName("items")
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/TenantPricing.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TenantPricing

/**
* @Serializer\SerializedName("production_start_date")
* @Serializer\Type("DateTimeImmutable<'Y-m-d H:i:s', '', ['Y-m-d\TH:i:s']>")
* @Serializer\Type("DateTimeImmutable<'Y-m-d H:i:s', '', ['Y-m-d\TH:i:s\Z', 'Y-m-d\TH:i:s']>")
*/
private ?DateTimeImmutable $productionStartDate;

Expand Down
1 change: 1 addition & 0 deletions src/Entity/UsageCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class UsageCollection
{
/**
* @var Usage[]
*
* @Serializer\Type("array<SandwaveIo\Acronis\Entity\Usage>")
* @Serializer\SerializedName("items")
*/
Expand Down
1 change: 1 addition & 0 deletions src/Entity/UserCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class UserCollection

/**
* @var User[]
*
* @Serializer\Type("array<SandwaveIo\Acronis\Entity\User>")
* @Serializer\SerializedName("items")
*/
Expand Down
1 change: 1 addition & 0 deletions src/Entity/UserUuidCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class UserUuidCollection
{
/**
* @var string[]
*
* @Serializer\Type("array<string>")
* @Serializer\SerializedName("items")
*/
Expand Down

0 comments on commit bfcc000

Please sign in to comment.