Skip to content
Open
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
24 changes: 12 additions & 12 deletions src/Database/Filters/AccessKeysPerspectiveQueryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function tags($values)
* @var Builder
*/
protected $builder;

public function accessKey($value)
{
return $this->builder->where('access_key', 'ilike', '%' . $value . '%');
Expand All @@ -48,19 +48,19 @@ public function access_key($value)
{
return $this->accessKey($value);
}

public function role($value)
{
return $this->builder->where('role', 'ilike', '%' . $value . '%');
}


public function status($value)
{
return $this->builder->where('status', 'ilike', '%' . $value . '%');
}


public function revokedReason($value)
{
return $this->builder->where('revoked_reason', 'ilike', '%' . $value . '%');
Expand All @@ -71,7 +71,7 @@ public function revoked_reason($value)
{
return $this->revokedReason($value);
}

public function s3AccountSlug($value)
{
return $this->builder->where('s3_account_slug', 'ilike', '%' . $value . '%');
Expand All @@ -82,7 +82,7 @@ public function s3_account_slug($value)
{
return $this->s3AccountSlug($value);
}

public function expiresInDays($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -101,7 +101,7 @@ public function expires_in_days($value)
{
return $this->expiresInDays($value);
}

public function isExpired($value)
{
return $this->builder->where('is_expired', $value);
Expand All @@ -112,7 +112,7 @@ public function is_expired($value)
{
return $this->isExpired($value);
}

public function isExpiringSoon($value)
{
return $this->builder->where('is_expiring_soon', $value);
Expand All @@ -123,7 +123,7 @@ public function is_expiring_soon($value)
{
return $this->isExpiringSoon($value);
}

public function expiresAtStart($date)
{
return $this->builder->where('expires_at', '>=', $date);
Expand Down Expand Up @@ -270,7 +270,7 @@ public function s3_account_id($value)
{
return $this->s3Account($value);
}

public function iamAccountId($value)
{
$iamAccount = \NextDeveloper\IAM\Database\Models\Accounts::where('uuid', $value)->first();
Expand All @@ -280,7 +280,7 @@ public function iamAccountId($value)
}
}


public function iamUserId($value)
{
$iamUser = \NextDeveloper\IAM\Database\Models\Users::where('uuid', $value)->first();
Expand All @@ -290,6 +290,6 @@ public function iamUserId($value)
}
}


// EDIT AFTER HERE - WARNING: ABOVE THIS LINE MAY BE REGENERATED AND YOU MAY LOSE CODE
}
18 changes: 9 additions & 9 deletions src/Database/Filters/AccessKeysQueryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function tags($values)
* @var Builder
*/
protected $builder;

public function accessKey($value)
{
return $this->builder->where('access_key', 'ilike', '%' . $value . '%');
Expand All @@ -48,7 +48,7 @@ public function access_key($value)
{
return $this->accessKey($value);
}

public function secretKeyEnc($value)
{
return $this->builder->where('secret_key_enc', 'ilike', '%' . $value . '%');
Expand All @@ -59,19 +59,19 @@ public function secret_key_enc($value)
{
return $this->secretKeyEnc($value);
}

public function role($value)
{
return $this->builder->where('role', 'ilike', '%' . $value . '%');
}


public function status($value)
{
return $this->builder->where('status', 'ilike', '%' . $value . '%');
}


public function revokedReason($value)
{
return $this->builder->where('revoked_reason', 'ilike', '%' . $value . '%');
Expand All @@ -82,7 +82,7 @@ public function revoked_reason($value)
{
return $this->revokedReason($value);
}

public function expiresAtStart($date)
{
return $this->builder->where('expires_at', '>=', $date);
Expand Down Expand Up @@ -229,7 +229,7 @@ public function s3_account_id($value)
{
return $this->s3Account($value);
}

public function iamAccountId($value)
{
$iamAccount = \NextDeveloper\IAM\Database\Models\Accounts::where('uuid', $value)->first();
Expand All @@ -239,7 +239,7 @@ public function iamAccountId($value)
}
}


public function iamUserId($value)
{
$iamUser = \NextDeveloper\IAM\Database\Models\Users::where('uuid', $value)->first();
Expand All @@ -249,6 +249,6 @@ public function iamUserId($value)
}
}


// EDIT AFTER HERE - WARNING: ABOVE THIS LINE MAY BE REGENERATED AND YOU MAY LOSE CODE
}
38 changes: 19 additions & 19 deletions src/Database/Filters/AccountStatsQueryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ class AccountStatsQueryFilter extends AbstractQueryFilter
* @var Builder
*/
protected $builder;

public function slug($value)
{
return $this->builder->where('slug', 'ilike', '%' . $value . '%');
}


public function status($value)
{
return $this->builder->where('status', 'ilike', '%' . $value . '%');
}


public function blockedReason($value)
{
return $this->builder->where('blocked_reason', 'ilike', '%' . $value . '%');
Expand All @@ -40,7 +40,7 @@ public function blocked_reason($value)
{
return $this->blockedReason($value);
}

public function quotaStorageBytes($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -59,7 +59,7 @@ public function quota_storage_bytes($value)
{
return $this->quotaStorageBytes($value);
}

public function storageBytesUsed($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -78,7 +78,7 @@ public function storage_bytes_used($value)
{
return $this->storageBytesUsed($value);
}

public function quotaEgressBytesMo($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -97,7 +97,7 @@ public function quota_egress_bytes_mo($value)
{
return $this->quotaEgressBytesMo($value);
}

public function egressBytesMoUsed($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -116,7 +116,7 @@ public function egress_bytes_mo_used($value)
{
return $this->egressBytesMoUsed($value);
}

public function quotaMaxObjects($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -135,7 +135,7 @@ public function quota_max_objects($value)
{
return $this->quotaMaxObjects($value);
}

public function objectCount($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -154,7 +154,7 @@ public function object_count($value)
{
return $this->objectCount($value);
}

public function quotaMaxBuckets($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -173,7 +173,7 @@ public function quota_max_buckets($value)
{
return $this->quotaMaxBuckets($value);
}

public function bucketCount($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -192,7 +192,7 @@ public function bucket_count($value)
{
return $this->bucketCount($value);
}

public function activeKeyCount($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -211,7 +211,7 @@ public function active_key_count($value)
{
return $this->activeKeyCount($value);
}

public function inProgressUploadCount($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -230,7 +230,7 @@ public function in_progress_upload_count($value)
{
return $this->inProgressUploadCount($value);
}

public function pausedWebhookCount($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -249,7 +249,7 @@ public function paused_webhook_count($value)
{
return $this->pausedWebhookCount($value);
}

public function currentMonthEgressBytes($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -268,7 +268,7 @@ public function current_month_egress_bytes($value)
{
return $this->currentMonthEgressBytes($value);
}

public function currentMonthIngressBytes($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -287,7 +287,7 @@ public function current_month_ingress_bytes($value)
{
return $this->currentMonthIngressBytes($value);
}

public function blockedAtStart($date)
{
return $this->builder->where('blocked_at', '>=', $date);
Expand Down Expand Up @@ -346,7 +346,7 @@ public function s3_account_id($value)
{
return $this->s3Account($value);
}

public function iamAccountId($value)
{
$iamAccount = \NextDeveloper\IAM\Database\Models\Accounts::where('uuid', $value)->first();
Expand All @@ -356,6 +356,6 @@ public function iamAccountId($value)
}
}


// EDIT AFTER HERE - WARNING: ABOVE THIS LINE MAY BE REGENERATED AND YOU MAY LOSE CODE
}
Loading