Skip to content
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

SDK updates #48

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/Model/AppInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**auth_fallback_method_ttl** | **int** | Deprecated Property. Please refer to `auth_methods` to view settings for individual authentication methods. |
**auth_methods** | [**\OpenAPI\Client\Model\AuthMethods**](AuthMethods.md) | |
**auth_origin** | **string** | |
**auto_theme_enabled** | **bool** | |
**created_at** | **\DateTime** | |
**default_language** | **string** | |
**id** | **string** | |
Expand Down
1 change: 1 addition & 0 deletions docs/Model/ListPaginatedUsersItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**created_at** | **\DateTime** | |
**email** | **string** | |
**email_verified** | **bool** | |
**external_id** | **string** | The external ID of the user. Only set if the user was created in a Flex app. |
**id** | **string** | |
**last_login_at** | **\DateTime** | |
**login_count** | **int** | |
Expand Down
1 change: 1 addition & 0 deletions docs/Model/UserInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**created_at** | **\DateTime** | |
**email** | **string** | |
**email_verified** | **bool** | |
**external_id** | **string** | The external ID of the user. Only set if the user was created in a Flex app. |
**id** | **string** | |
**last_login_at** | **\DateTime** | |
**login_count** | **int** | |
Expand Down
37 changes: 37 additions & 0 deletions generated/lib/Model/AppInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class AppInfo implements ModelInterface, ArrayAccess, \JsonSerializable
'auth_fallback_method_ttl' => 'int',
'auth_methods' => '\OpenAPI\Client\Model\AuthMethods',
'auth_origin' => 'string',
'auto_theme_enabled' => 'bool',
'created_at' => '\DateTime',
'default_language' => 'string',
'id' => 'string',
Expand Down Expand Up @@ -116,6 +117,7 @@ class AppInfo implements ModelInterface, ArrayAccess, \JsonSerializable
'auth_fallback_method_ttl' => null,
'auth_methods' => null,
'auth_origin' => null,
'auto_theme_enabled' => null,
'created_at' => 'date-time',
'default_language' => null,
'id' => null,
Expand Down Expand Up @@ -163,6 +165,7 @@ class AppInfo implements ModelInterface, ArrayAccess, \JsonSerializable
'auth_fallback_method_ttl' => false,
'auth_methods' => false,
'auth_origin' => false,
'auto_theme_enabled' => false,
'created_at' => false,
'default_language' => false,
'id' => false,
Expand Down Expand Up @@ -290,6 +293,7 @@ public function isNullableSetToNull(string $property): bool
'auth_fallback_method_ttl' => 'auth_fallback_method_ttl',
'auth_methods' => 'auth_methods',
'auth_origin' => 'auth_origin',
'auto_theme_enabled' => 'auto_theme_enabled',
'created_at' => 'created_at',
'default_language' => 'default_language',
'id' => 'id',
Expand Down Expand Up @@ -337,6 +341,7 @@ public function isNullableSetToNull(string $property): bool
'auth_fallback_method_ttl' => 'setAuthFallbackMethodTtl',
'auth_methods' => 'setAuthMethods',
'auth_origin' => 'setAuthOrigin',
'auto_theme_enabled' => 'setAutoThemeEnabled',
'created_at' => 'setCreatedAt',
'default_language' => 'setDefaultLanguage',
'id' => 'setId',
Expand Down Expand Up @@ -384,6 +389,7 @@ public function isNullableSetToNull(string $property): bool
'auth_fallback_method_ttl' => 'getAuthFallbackMethodTtl',
'auth_methods' => 'getAuthMethods',
'auth_origin' => 'getAuthOrigin',
'auto_theme_enabled' => 'getAutoThemeEnabled',
'created_at' => 'getCreatedAt',
'default_language' => 'getDefaultLanguage',
'id' => 'getId',
Expand Down Expand Up @@ -497,6 +503,7 @@ public function __construct(array $data = null)
$this->setIfExists('auth_fallback_method_ttl', $data ?? [], null);
$this->setIfExists('auth_methods', $data ?? [], null);
$this->setIfExists('auth_origin', $data ?? [], null);
$this->setIfExists('auto_theme_enabled', $data ?? [], null);
$this->setIfExists('created_at', $data ?? [], null);
$this->setIfExists('default_language', $data ?? [], null);
$this->setIfExists('id', $data ?? [], null);
Expand Down Expand Up @@ -583,6 +590,9 @@ public function listInvalidProperties()
if ($this->container['auth_origin'] === null) {
$invalidProperties[] = "'auth_origin' can't be null";
}
if ($this->container['auto_theme_enabled'] === null) {
$invalidProperties[] = "'auto_theme_enabled' can't be null";
}
if ($this->container['created_at'] === null) {
$invalidProperties[] = "'created_at' can't be null";
}
Expand Down Expand Up @@ -932,6 +942,33 @@ public function setAuthOrigin($auth_origin)
return $this;
}

/**
* Gets auto_theme_enabled
*
* @return bool
*/
public function getAutoThemeEnabled()
{
return $this->container['auto_theme_enabled'];
}

/**
* Sets auto_theme_enabled
*
* @param bool $auto_theme_enabled auto_theme_enabled
*
* @return self
*/
public function setAutoThemeEnabled($auto_theme_enabled)
{
if (is_null($auto_theme_enabled)) {
throw new \InvalidArgumentException('non-nullable auto_theme_enabled cannot be null');
}
$this->container['auto_theme_enabled'] = $auto_theme_enabled;

return $this;
}

/**
* Gets created_at
*
Expand Down
37 changes: 37 additions & 0 deletions generated/lib/Model/ListPaginatedUsersItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class ListPaginatedUsersItem implements ModelInterface, ArrayAccess, \JsonSerial
'created_at' => '\DateTime',
'email' => 'string',
'email_verified' => 'bool',
'external_id' => 'string',
'id' => 'string',
'last_login_at' => '\DateTime',
'login_count' => 'int',
Expand All @@ -82,6 +83,7 @@ class ListPaginatedUsersItem implements ModelInterface, ArrayAccess, \JsonSerial
'created_at' => 'date-time',
'email' => null,
'email_verified' => null,
'external_id' => null,
'id' => null,
'last_login_at' => 'date-time',
'login_count' => null,
Expand All @@ -101,6 +103,7 @@ class ListPaginatedUsersItem implements ModelInterface, ArrayAccess, \JsonSerial
'created_at' => false,
'email' => false,
'email_verified' => false,
'external_id' => false,
'id' => false,
'last_login_at' => false,
'login_count' => false,
Expand Down Expand Up @@ -200,6 +203,7 @@ public function isNullableSetToNull(string $property): bool
'created_at' => 'created_at',
'email' => 'email',
'email_verified' => 'email_verified',
'external_id' => 'external_id',
'id' => 'id',
'last_login_at' => 'last_login_at',
'login_count' => 'login_count',
Expand All @@ -219,6 +223,7 @@ public function isNullableSetToNull(string $property): bool
'created_at' => 'setCreatedAt',
'email' => 'setEmail',
'email_verified' => 'setEmailVerified',
'external_id' => 'setExternalId',
'id' => 'setId',
'last_login_at' => 'setLastLoginAt',
'login_count' => 'setLoginCount',
Expand All @@ -238,6 +243,7 @@ public function isNullableSetToNull(string $property): bool
'created_at' => 'getCreatedAt',
'email' => 'getEmail',
'email_verified' => 'getEmailVerified',
'external_id' => 'getExternalId',
'id' => 'getId',
'last_login_at' => 'getLastLoginAt',
'login_count' => 'getLoginCount',
Expand Down Expand Up @@ -308,6 +314,7 @@ public function __construct(array $data = null)
$this->setIfExists('created_at', $data ?? [], null);
$this->setIfExists('email', $data ?? [], null);
$this->setIfExists('email_verified', $data ?? [], null);
$this->setIfExists('external_id', $data ?? [], null);
$this->setIfExists('id', $data ?? [], null);
$this->setIfExists('last_login_at', $data ?? [], null);
$this->setIfExists('login_count', $data ?? [], null);
Expand Down Expand Up @@ -354,6 +361,9 @@ public function listInvalidProperties()
if ($this->container['email_verified'] === null) {
$invalidProperties[] = "'email_verified' can't be null";
}
if ($this->container['external_id'] === null) {
$invalidProperties[] = "'external_id' can't be null";
}
if ($this->container['id'] === null) {
$invalidProperties[] = "'id' can't be null";
}
Expand Down Expand Up @@ -474,6 +484,33 @@ public function setEmailVerified($email_verified)
return $this;
}

/**
* Gets external_id
*
* @return string
*/
public function getExternalId()
{
return $this->container['external_id'];
}

/**
* Sets external_id
*
* @param string $external_id The external ID of the user. Only set if the user was created in a Flex app.
*
* @return self
*/
public function setExternalId($external_id)
{
if (is_null($external_id)) {
throw new \InvalidArgumentException('non-nullable external_id cannot be null');
}
$this->container['external_id'] = $external_id;

return $this;
}

/**
* Gets id
*
Expand Down
37 changes: 37 additions & 0 deletions generated/lib/Model/UserInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class UserInfo implements ModelInterface, ArrayAccess, \JsonSerializable
'created_at' => '\DateTime',
'email' => 'string',
'email_verified' => 'bool',
'external_id' => 'string',
'id' => 'string',
'last_login_at' => '\DateTime',
'login_count' => 'int',
Expand All @@ -87,6 +88,7 @@ class UserInfo implements ModelInterface, ArrayAccess, \JsonSerializable
'created_at' => 'date-time',
'email' => null,
'email_verified' => null,
'external_id' => null,
'id' => null,
'last_login_at' => 'date-time',
'login_count' => null,
Expand All @@ -111,6 +113,7 @@ class UserInfo implements ModelInterface, ArrayAccess, \JsonSerializable
'created_at' => false,
'email' => false,
'email_verified' => false,
'external_id' => false,
'id' => false,
'last_login_at' => false,
'login_count' => false,
Expand Down Expand Up @@ -215,6 +218,7 @@ public function isNullableSetToNull(string $property): bool
'created_at' => 'created_at',
'email' => 'email',
'email_verified' => 'email_verified',
'external_id' => 'external_id',
'id' => 'id',
'last_login_at' => 'last_login_at',
'login_count' => 'login_count',
Expand All @@ -239,6 +243,7 @@ public function isNullableSetToNull(string $property): bool
'created_at' => 'setCreatedAt',
'email' => 'setEmail',
'email_verified' => 'setEmailVerified',
'external_id' => 'setExternalId',
'id' => 'setId',
'last_login_at' => 'setLastLoginAt',
'login_count' => 'setLoginCount',
Expand All @@ -263,6 +268,7 @@ public function isNullableSetToNull(string $property): bool
'created_at' => 'getCreatedAt',
'email' => 'getEmail',
'email_verified' => 'getEmailVerified',
'external_id' => 'getExternalId',
'id' => 'getId',
'last_login_at' => 'getLastLoginAt',
'login_count' => 'getLoginCount',
Expand Down Expand Up @@ -338,6 +344,7 @@ public function __construct(array $data = null)
$this->setIfExists('created_at', $data ?? [], null);
$this->setIfExists('email', $data ?? [], null);
$this->setIfExists('email_verified', $data ?? [], null);
$this->setIfExists('external_id', $data ?? [], null);
$this->setIfExists('id', $data ?? [], null);
$this->setIfExists('last_login_at', $data ?? [], null);
$this->setIfExists('login_count', $data ?? [], null);
Expand Down Expand Up @@ -389,6 +396,9 @@ public function listInvalidProperties()
if ($this->container['email_verified'] === null) {
$invalidProperties[] = "'email_verified' can't be null";
}
if ($this->container['external_id'] === null) {
$invalidProperties[] = "'external_id' can't be null";
}
if ($this->container['id'] === null) {
$invalidProperties[] = "'id' can't be null";
}
Expand Down Expand Up @@ -524,6 +534,33 @@ public function setEmailVerified($email_verified)
return $this;
}

/**
* Gets external_id
*
* @return string
*/
public function getExternalId()
{
return $this->container['external_id'];
}

/**
* Sets external_id
*
* @param string $external_id The external ID of the user. Only set if the user was created in a Flex app.
*
* @return self
*/
public function setExternalId($external_id)
{
if (is_null($external_id)) {
throw new \InvalidArgumentException('non-nullable external_id cannot be null');
}
$this->container['external_id'] = $external_id;

return $this;
}

/**
* Gets id
*
Expand Down
9 changes: 9 additions & 0 deletions generated/test/Model/AppInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ public function testPropertyAuthOrigin()
$this->markTestIncomplete('Not implemented');
}

/**
* Test attribute "auto_theme_enabled"
*/
public function testPropertyAutoThemeEnabled()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
}

/**
* Test attribute "created_at"
*/
Expand Down
9 changes: 9 additions & 0 deletions generated/test/Model/ListPaginatedUsersItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ public function testPropertyEmailVerified()
$this->markTestIncomplete('Not implemented');
}

/**
* Test attribute "external_id"
*/
public function testPropertyExternalId()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
}

/**
* Test attribute "id"
*/
Expand Down
9 changes: 9 additions & 0 deletions generated/test/Model/UserInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ public function testPropertyEmailVerified()
$this->markTestIncomplete('Not implemented');
}

/**
* Test attribute "external_id"
*/
public function testPropertyExternalId()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
}

/**
* Test attribute "id"
*/
Expand Down
Loading