diff --git a/README.md b/README.md index f63eca990..7327e75b0 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ To install the API client with composer, add the following to your composer.json { "require": { - "bitmovin/bitmovin-api-sdk-php": "1.181.0" + "bitmovin/bitmovin-api-sdk-php": "1.182.0" } } ``` @@ -49,7 +49,7 @@ Then run `php composer.phar install` OR -run the following command: `php composer.phar require bitmovin/bitmovin-api-sdk-php:1.181.0` +run the following command: `php composer.phar require bitmovin/bitmovin-api-sdk-php:1.182.0` ## Initialization diff --git a/composer.json b/composer.json index 3d820fd20..0bacf0bc0 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "bitmovin/bitmovin-api-sdk-php", "description": "This is the Bitmovin API SDK for PHP", - "version": "1.181.0", + "version": "1.182.0", "authors": [ { "name": "Bitmovin Inc", diff --git a/docs/classes.html b/docs/classes.html index 9b175d2c3..5d4422d70 100644 --- a/docs/classes.html +++ b/docs/classes.html @@ -357,6 +357,40 @@

\BitmovinApiSd +
+

\BitmovinApiSdk\Apis\Account\Organizations\Invitations

+ + + + + + + + + + + + + + + + + + + +
NameDescription +
+ InvitationsApi + + No description available + EMPTY +
+ OrganizationPendingInvitationPaginationResponse + + No description available + EMPTY +
+

\BitmovinApiSdk\Apis\Account\Organizations\SubOrganizations

@@ -22674,6 +22708,16 @@

\BitmovinApiSdk\Models

+ + + + + + + + + + + @@ -4121,7 +4129,7 @@

Namespaces

diff --git a/src/Apis/Account/Organizations/Invitations/InvitationsApi.php b/src/Apis/Account/Organizations/Invitations/InvitationsApi.php new file mode 100644 index 000000000..2c920277c --- /dev/null +++ b/src/Apis/Account/Organizations/Invitations/InvitationsApi.php @@ -0,0 +1,45 @@ +httpWrapper = $httpWrapper ?? new HttpWrapper($config); + + } + + /** + * List all pending invitations of an org id + * + * @param string $organizationId + * @return OrganizationPendingInvitationPaginationResponse + * @throws BitmovinApiException + */ + public function list(string $organizationId) : OrganizationPendingInvitationPaginationResponse + { + $pathParams = [ + 'organization_id' => $organizationId, + ]; + + $response = $this->httpWrapper->request('GET', '/account/organizations/{organization_id}/invitations', $pathParams, null, null, true); + + return ObjectMapper::map($response, OrganizationPendingInvitationPaginationResponse::class); + } +} diff --git a/src/Apis/Account/Organizations/Invitations/OrganizationPendingInvitationPaginationResponse.php b/src/Apis/Account/Organizations/Invitations/OrganizationPendingInvitationPaginationResponse.php new file mode 100644 index 000000000..960989f7c --- /dev/null +++ b/src/Apis/Account/Organizations/Invitations/OrganizationPendingInvitationPaginationResponse.php @@ -0,0 +1,19 @@ +items = ObjectMapper::map($this->items, OrganizationPendingInvitation::class); + } +} diff --git a/src/Apis/Account/Organizations/OrganizationsApi.php b/src/Apis/Account/Organizations/OrganizationsApi.php index 223dfd22b..fdf5d99bd 100644 --- a/src/Apis/Account/Organizations/OrganizationsApi.php +++ b/src/Apis/Account/Organizations/OrganizationsApi.php @@ -10,6 +10,7 @@ use BitmovinApiSdk\Apis\Account\Organizations\SubOrganizations\SubOrganizationsApi; use BitmovinApiSdk\Apis\Account\Organizations\Tenants\TenantsApi; +use BitmovinApiSdk\Apis\Account\Organizations\Invitations\InvitationsApi; use BitmovinApiSdk\Apis\Account\Organizations\Groups\GroupsApi; class OrganizationsApi @@ -23,6 +24,9 @@ class OrganizationsApi /** @var TenantsApi */ public $tenants; + /** @var InvitationsApi */ + public $invitations; + /** @var GroupsApi */ public $groups; @@ -38,6 +42,7 @@ public function __construct(Configuration $config = null, HttpWrapper $httpWrapp $this->subOrganizations = new SubOrganizationsApi(null, $this->httpWrapper); $this->tenants = new TenantsApi(null, $this->httpWrapper); + $this->invitations = new InvitationsApi(null, $this->httpWrapper); $this->groups = new GroupsApi(null, $this->httpWrapper); } diff --git a/src/Apis/Encoding/Configurations/CodecConfigurationListQueryParams.php b/src/Apis/Encoding/Configurations/CodecConfigurationListQueryParams.php index 0af2d45d0..32be0cc25 100644 --- a/src/Apis/Encoding/Configurations/CodecConfigurationListQueryParams.php +++ b/src/Apis/Encoding/Configurations/CodecConfigurationListQueryParams.php @@ -16,6 +16,9 @@ class CodecConfigurationListQueryParams implements QueryParams /** @var string */ private $name; + /** @var string */ + private $sort; + /** * @return CodecConfigurationListQueryParams */ @@ -57,6 +60,17 @@ public function name(string $name): CodecConfigurationListQueryParams return $this; } + /** + * @param string $sort + * @return CodecConfigurationListQueryParams + */ + public function sort(string $sort): CodecConfigurationListQueryParams + { + $this->sort = $sort; + + return $this; + } + public function toArray(): array { return array_map(function ($value) { diff --git a/src/Common/Middleware/CustomApiHeaders.php b/src/Common/Middleware/CustomApiHeaders.php index 4fc5998bb..b26e4aa86 100644 --- a/src/Common/Middleware/CustomApiHeaders.php +++ b/src/Common/Middleware/CustomApiHeaders.php @@ -17,7 +17,7 @@ public function __construct(string $apiKey, ?string $tenantOrgId) 'Content-Type' => 'application/json', 'X-Api-Key' => $apiKey, 'X-Api-Client' => 'bitmovin-api-sdk-php', - 'X-Api-Client-Version' => '1.181.0', + 'X-Api-Client-Version' => '1.182.0', ]; if ($tenantOrgId !== null) { diff --git a/src/Models/OrganizationPendingInvitation.php b/src/Models/OrganizationPendingInvitation.php new file mode 100644 index 000000000..61fd36987 --- /dev/null +++ b/src/Models/OrganizationPendingInvitation.php @@ -0,0 +1,79 @@ +id = $id; + + return $this; + } + + /** + * Email of Tenant (required) + * + * @param string $email + * @return $this + */ + public function email(string $email) + { + $this->email = $email; + + return $this; + } + + /** + * Id of group (required) + * + * @param string $groupId + * @return $this + */ + public function groupId(string $groupId) + { + $this->groupId = $groupId; + + return $this; + } + + /** + * Name of group (required) + * + * @param string $groupName + * @return $this + */ + public function groupName(string $groupName) + { + $this->groupName = $groupName; + + return $this; + } +} +
EMPTY
+ OrganizationPendingInvitation + + No description available + EMPTY +
OrganizationType diff --git a/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_Invitations_InvitationsApi.html b/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_Invitations_InvitationsApi.html new file mode 100644 index 000000000..609f30d0c --- /dev/null +++ b/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_Invitations_InvitationsApi.html @@ -0,0 +1,84 @@ + + + + + phpDox - BitmovinApiSdk\Apis\Account\Organizations\Invitations\InvitationsApi + + + + + +
+ + +
+

BitmovinApiSdk\Apis\Account\Organizations\Invitations\InvitationsApi

+

+

+

Synopsis

+
class InvitationsApi + {
  • // methods
  • public void __construct() +
  • public OrganizationPendingInvitationPaginationResponse list() +
+ + }
+

Methods

+
+

public

+
    +
  • __construct() + — InvitationsApi constructor.
  • +
  • list() + — List all pending invitations of an org id
  • +
+
+
+
+
+ Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2024 by Arne Blankerts and Contributors +
+ + diff --git a/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_Invitations_InvitationsApi/__construct.html b/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_Invitations_InvitationsApi/__construct.html new file mode 100644 index 000000000..12a9bdfe5 --- /dev/null +++ b/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_Invitations_InvitationsApi/__construct.html @@ -0,0 +1,90 @@ + + + + + phpDox - BitmovinApiSdk\Apis\Account\Organizations\Invitations\InvitationsApi::__construct + + + + + +
+ + +
+

BitmovinApiSdk\Apis\Account\Organizations\Invitations\InvitationsApi::__construct

+

InvitationsApi constructor.

+

+

+
+
+ Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2024 by Arne Blankerts and Contributors +
+ + diff --git a/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_Invitations_InvitationsApi/list.html b/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_Invitations_InvitationsApi/list.html new file mode 100644 index 000000000..206a141c5 --- /dev/null +++ b/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_Invitations_InvitationsApi/list.html @@ -0,0 +1,105 @@ + + + + + phpDox - BitmovinApiSdk\Apis\Account\Organizations\Invitations\InvitationsApi::list + + + + + +
+ + +
+

BitmovinApiSdk\Apis\Account\Organizations\Invitations\InvitationsApi::list

+

List all pending invitations of an org id

+

+

    +

    Signature

    +
    + public function list(string + $organizationId ) + +
    +

    Parameters

    +
    +
    $organizationId + — + string
    +
    +
    +

    Returns

    +
    +
    OrganizationPendingInvitationPaginationResponse
    +

    +
    +
    +

    Errors/Exceptions

    +
    +
    + + BitmovinApiException + +
    +
    +
    +
+
+
+ Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2024 by Arne Blankerts and Contributors +
+ + diff --git a/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_Invitations_OrganizationPendingInvitationPaginationResponse.html b/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_Invitations_OrganizationPendingInvitationPaginationResponse.html new file mode 100644 index 000000000..ee15fbbab --- /dev/null +++ b/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_Invitations_OrganizationPendingInvitationPaginationResponse.html @@ -0,0 +1,155 @@ + + + + + phpDox - BitmovinApiSdk\Apis\Account\Organizations\Invitations\OrganizationPendingInvitationPaginationResponse + + + + + +
+
+ +
+ +
+

BitmovinApiSdk\Apis\Account\Organizations\Invitations\OrganizationPendingInvitationPaginationResponse

+

+

+

Synopsis

+
class OrganizationPendingInvitationPaginationResponse + extends BasePaginationResponse + {
  • // members
  • public array $items; +
  • // Inherited methods from ApiResource
  • public void __construct() +
  • public static $this create() +
  • public void toArray() +
+ + }
+

Hierarchy

+ +

Members

+
+

public

+ +
+

Methods

+
+

Inherited from BitmovinApiSdk\Common\BasePaginationResponse

+

public

+ +

Inherited from BitmovinApiSdk\Common\ApiResource

+

public

+
    +
  • + create() +
  • +
  • toArray() + — Create array with values, skip null and empty arrays
  • +
+
+
+
+
+ Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2024 by Arne Blankerts and Contributors +
+ + diff --git a/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_Invitations_OrganizationPendingInvitationPaginationResponse/__construct.html b/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_Invitations_OrganizationPendingInvitationPaginationResponse/__construct.html new file mode 100644 index 000000000..8cb88061c --- /dev/null +++ b/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_Invitations_OrganizationPendingInvitationPaginationResponse/__construct.html @@ -0,0 +1,83 @@ + + + + + phpDox - BitmovinApiSdk\Apis\Account\Organizations\Invitations\OrganizationPendingInvitationPaginationResponse::__construct + + + + + +
+ + +
+

BitmovinApiSdk\Apis\Account\Organizations\Invitations\OrganizationPendingInvitationPaginationResponse::__construct

+

+

+

Signature

+
+ public function __construct([ + $attributes = NULL] ) + +
+

Parameters

+
+
$attributes + — +
+
+
+
+
+
+ Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2024 by Arne Blankerts and Contributors +
+ + diff --git a/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_OrganizationsApi.html b/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_OrganizationsApi.html index d515c0cb8..9011abbb7 100644 --- a/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_OrganizationsApi.html +++ b/docs/classes/BitmovinApiSdk_Apis_Account_Organizations_OrganizationsApi.html @@ -65,6 +65,7 @@

Synopsis

class OrganizationsApi {
@@ -98,6 +99,9 @@

public

  • offset()
  • +
  • + sort() +
  • toArray()
  • diff --git a/docs/classes/BitmovinApiSdk_Apis_Encoding_Configurations_CodecConfigurationListQueryParams/sort.html b/docs/classes/BitmovinApiSdk_Apis_Encoding_Configurations_CodecConfigurationListQueryParams/sort.html new file mode 100644 index 000000000..ccc84bda6 --- /dev/null +++ b/docs/classes/BitmovinApiSdk_Apis_Encoding_Configurations_CodecConfigurationListQueryParams/sort.html @@ -0,0 +1,93 @@ + + + + + phpDox - BitmovinApiSdk\Apis\Encoding\Configurations\CodecConfigurationListQueryParams::sort + + + + + +
    + + +
    +

    BitmovinApiSdk\Apis\Encoding\Configurations\CodecConfigurationListQueryParams::sort

    +

    +

    +

      +

      Signature

      +
      + public function sort(string + $sort ) + +
      +

      Parameters

      +
      +
      $sort + — + string
      +
      +
      +

      Returns

      +
      +
      CodecConfigurationListQueryParams
      +

      +
      +
      +

    +
    +
    + Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2024 by Arne Blankerts and Contributors +
    + + diff --git a/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation.html b/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation.html new file mode 100644 index 000000000..970c45337 --- /dev/null +++ b/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation.html @@ -0,0 +1,144 @@ + + + + + phpDox - BitmovinApiSdk\Models\OrganizationPendingInvitation + + + + + +
    +
    + +
    + +
    +

    BitmovinApiSdk\Models\OrganizationPendingInvitation

    +

    +

    +

    Synopsis

    +
    class OrganizationPendingInvitation + extends ApiResource + {
    • // Inherited methods from ApiResource
    • public void __construct() +
    • public static $this create() +
    • public void toArray() +
    + + }
    +

    Hierarchy

    +
    +

    Extends

    + +
    +

    Members

    +
    +

    public

    +
      +
    • $email + — + string
    • +
    • $groupId + — + string
    • +
    • $groupName + — + string
    • +
    • $id + — + string
    • +
    +
    +

    Methods

    +
    +

    public

    + +

    Inherited from BitmovinApiSdk\Common\ApiResource

    +

    public

    +
      +
    • + create() +
    • +
    • toArray() + — Create array with values, skip null and empty arrays
    • +
    +
    +
    +
    +
    + Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2024 by Arne Blankerts and Contributors +
    + + diff --git a/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation/__construct.html b/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation/__construct.html new file mode 100644 index 000000000..11ad58a80 --- /dev/null +++ b/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation/__construct.html @@ -0,0 +1,83 @@ + + + + + phpDox - BitmovinApiSdk\Models\OrganizationPendingInvitation::__construct + + + + + +
    +
    + +
    + +
    +

    BitmovinApiSdk\Models\OrganizationPendingInvitation::__construct

    +

    +

    +

    Signature

    +
    + public function __construct([ + $attributes = NULL] ) + +
    +

    Parameters

    +
    +
    $attributes + — +
    +
    +
    +
    +
    +
    + Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2024 by Arne Blankerts and Contributors +
    + + diff --git a/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation/email.html b/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation/email.html new file mode 100644 index 000000000..fd8041d4d --- /dev/null +++ b/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation/email.html @@ -0,0 +1,94 @@ + + + + + phpDox - BitmovinApiSdk\Models\OrganizationPendingInvitation::email + + + + + +
    + + +
    +

    BitmovinApiSdk\Models\OrganizationPendingInvitation::email

    +

    Email of Tenant (required)

    +

    +

      +
        +

        Signature

        +
        + public function email(string + $email ) + +
        +

        Parameters

        +
        +
        $email + — + string
        +
        +
        +

        Returns

        +
        +
        $this
        +

        +
        +
        +
    +
    +
    + Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2024 by Arne Blankerts and Contributors +
    + + diff --git a/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation/groupId.html b/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation/groupId.html new file mode 100644 index 000000000..cf8431287 --- /dev/null +++ b/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation/groupId.html @@ -0,0 +1,94 @@ + + + + + phpDox - BitmovinApiSdk\Models\OrganizationPendingInvitation::groupId + + + + + +
    +
    + +
    + +
    +

    BitmovinApiSdk\Models\OrganizationPendingInvitation::groupId

    +

    Id of group (required)

    +

    +

      +
        +

        Signature

        +
        + public function groupId(string + $groupId ) + +
        +

        Parameters

        +
        +
        $groupId + — + string
        +
        +
        +

        Returns

        +
        +
        $this
        +

        +
        +
        +
    +
    +
    + Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2024 by Arne Blankerts and Contributors +
    + + diff --git a/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation/groupName.html b/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation/groupName.html new file mode 100644 index 000000000..47ed3a40e --- /dev/null +++ b/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation/groupName.html @@ -0,0 +1,94 @@ + + + + + phpDox - BitmovinApiSdk\Models\OrganizationPendingInvitation::groupName + + + + + +
    +
    + +
    + +
    +

    BitmovinApiSdk\Models\OrganizationPendingInvitation::groupName

    +

    Name of group (required)

    +

    +

      +
        +

        Signature

        +
        + public function groupName(string + $groupName ) + +
        +

        Parameters

        +
        +
        $groupName + — + string
        +
        +
        +

        Returns

        +
        +
        $this
        +

        +
        +
        +
    +
    +
    + Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2024 by Arne Blankerts and Contributors +
    + + diff --git a/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation/id.html b/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation/id.html new file mode 100644 index 000000000..87256940b --- /dev/null +++ b/docs/classes/BitmovinApiSdk_Models_OrganizationPendingInvitation/id.html @@ -0,0 +1,94 @@ + + + + + phpDox - BitmovinApiSdk\Models\OrganizationPendingInvitation::id + + + + + +
    + + +
    +

    BitmovinApiSdk\Models\OrganizationPendingInvitation::id

    +

    Id of Tenant (required)

    +

    +

      +
        +

        Signature

        +
        + public function id(string + $id ) + +
        +

        Parameters

        +
        +
        $id + — + string
        +
        +
        +

        Returns

        +
        +
        $this
        +

        +
        +
        +
    +
    +
    + Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2024 by Arne Blankerts and Contributors +
    + + diff --git a/docs/index.html b/docs/index.html index cc36cb53e..45cb9a960 100644 --- a/docs/index.html +++ b/docs/index.html @@ -34,7 +34,7 @@

    Software Documentation

    Build

    -

    Tue, 09 Jan 2024 10:45:14 +0000

    +

    Fri, 12 Jan 2024 06:17:03 +0000

    VCS Info

    tag:
    diff --git a/docs/namespaces.html b/docs/namespaces.html index 8f7a8c517..474576259 100644 --- a/docs/namespaces.html +++ b/docs/namespaces.html @@ -121,6 +121,14 @@

    Namespaces

    0
    \BitmovinApiSdk\Apis\Account\Organizations\Invitations0 + 2 + 0
    \BitmovinApiSdk\Apis\Account\Organizations\SubOrganizations 0 \BitmovinApiSdk\Models 0 - 813 + 814 0