Skip to content
Open
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
34 changes: 34 additions & 0 deletions src/Client/Model/ModelsSubscriptionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class ModelsSubscriptionResponse implements ModelInterface, ArrayAccess, \JsonSe
'endpoint_metadata' => '\Convoy\Client\Model\DatastoreEndpoint',
'filter_config' => '\Convoy\Client\Model\DatastoreFilterConfiguration',
'function' => 'string',
'has_event_type_filters' => 'bool',
'name' => 'string',
'project_id' => 'string',
'rate_limit_config' => '\Convoy\Client\Model\DatastoreRateLimitConfiguration',
Expand All @@ -92,6 +93,7 @@ class ModelsSubscriptionResponse implements ModelInterface, ArrayAccess, \JsonSe
'endpoint_metadata' => null,
'filter_config' => null,
'function' => null,
'has_event_type_filters' => null,
'name' => null,
'project_id' => null,
'rate_limit_config' => null,
Expand All @@ -116,6 +118,7 @@ class ModelsSubscriptionResponse implements ModelInterface, ArrayAccess, \JsonSe
'endpoint_metadata' => true,
'filter_config' => true,
'function' => true,
'has_event_type_filters' => false,
'name' => false,
'project_id' => false,
'rate_limit_config' => true,
Expand Down Expand Up @@ -220,6 +223,7 @@ public function isNullableSetToNull(string $property): bool
'endpoint_metadata' => 'endpoint_metadata',
'filter_config' => 'filter_config',
'function' => 'function',
'has_event_type_filters' => 'has_event_type_filters',
'name' => 'name',
'project_id' => 'project_id',
'rate_limit_config' => 'rate_limit_config',
Expand All @@ -244,6 +248,7 @@ public function isNullableSetToNull(string $property): bool
'endpoint_metadata' => 'setEndpointMetadata',
'filter_config' => 'setFilterConfig',
'function' => 'setFunction',
'has_event_type_filters' => 'setHasEventTypeFilters',
'name' => 'setName',
'project_id' => 'setProjectId',
'rate_limit_config' => 'setRateLimitConfig',
Expand All @@ -268,6 +273,7 @@ public function isNullableSetToNull(string $property): bool
'endpoint_metadata' => 'getEndpointMetadata',
'filter_config' => 'getFilterConfig',
'function' => 'getFunction',
'has_event_type_filters' => 'getHasEventTypeFilters',
'name' => 'getName',
'project_id' => 'getProjectId',
'rate_limit_config' => 'getRateLimitConfig',
Expand Down Expand Up @@ -343,6 +349,7 @@ public function __construct(?array $data = null)
$this->setIfExists('endpoint_metadata', $data ?? [], null);
$this->setIfExists('filter_config', $data ?? [], null);
$this->setIfExists('function', $data ?? [], null);
$this->setIfExists('has_event_type_filters', $data ?? [], null);
$this->setIfExists('name', $data ?? [], null);
$this->setIfExists('project_id', $data ?? [], null);
$this->setIfExists('rate_limit_config', $data ?? [], null);
Expand Down Expand Up @@ -653,6 +660,33 @@ public function setFunction($function)
return $this;
}

/**
* Gets has_event_type_filters
*
* @return bool|null
*/
public function getHasEventTypeFilters()
{
return $this->container['has_event_type_filters'];
}

/**
* Sets has_event_type_filters
*
* @param bool|null $has_event_type_filters HasEventTypeFilters indicates whether the subscription list found a configured per-event-type rule.
*
* @return self
*/
public function setHasEventTypeFilters($has_event_type_filters)
{
if (is_null($has_event_type_filters)) {
throw new \InvalidArgumentException('non-nullable has_event_type_filters cannot be null');
}
$this->container['has_event_type_filters'] = $has_event_type_filters;

return $this;
}

/**
* Gets name
*
Expand Down