update Document to Page
This commit is contained in:
parent
56cf84fd01
commit
e4645407fc
@ -14,7 +14,7 @@ This documentation is intended to help consultants carry out daily operational t
|
|||||||
| --- | --- |
|
| --- | --- |
|
||||||
| FrappeCloud | Platform for hosting customer sites |
|
| FrappeCloud | Platform for hosting customer sites |
|
||||||
| Team | A team represents a group of people. Every account created on Jingrow Cloud belongs to a team. If a user signs up on Jingrow Cloud without an invite, they’ll belong to their own team. A Team document has a child table of user emails |
|
| Team | A team represents a group of people. Every account created on Jingrow Cloud belongs to a team. If a user signs up on Jingrow Cloud without an invite, they’ll belong to their own team. A Team document has a child table of user emails |
|
||||||
| Desk Page/Document/Pg | Any webpage that starts with *jcloud.jingrow.com/app* in the url, powered by Jingrow Framework, similar to the one you see on framework.jingrow.com. Customers of Jingrow Cloud cannot access these pages |
|
| Desk Page/Page/Pg | Any webpage that starts with *jcloud.jingrow.com/app* in the url, powered by Jingrow Framework, similar to the one you see on framework.jingrow.com. Customers of Jingrow Cloud cannot access these pages |
|
||||||
| Dashboard Page | Any webpage that starts with *jcloud.jingrow.com/dashboard* in the url, powered by Vue js, custom UI for users. Customers of Jingrow Cloud only see these pages. |
|
| Dashboard Page | Any webpage that starts with *jcloud.jingrow.com/dashboard* in the url, powered by Vue js, custom UI for users. Customers of Jingrow Cloud only see these pages. |
|
||||||
|
|
||||||
### Site Desk Page
|
### Site Desk Page
|
||||||
|
|||||||
@ -13,9 +13,9 @@ These are the key pagetypes that are related to subscription:
|
|||||||
1. [Plan](/app/plan): List of plans
|
1. [Plan](/app/plan): List of plans
|
||||||
2. [Subscription](/app/subscription): Record of active subscriptions
|
2. [Subscription](/app/subscription): Record of active subscriptions
|
||||||
3. [Usage Record](/app/usage-record): Record of usage on a date
|
3. [Usage Record](/app/usage-record): Record of usage on a date
|
||||||
4. [Invoice](/app/invoice): Document that collects all usage records and creates a Stripe
|
4. [Invoice](/app/invoice): Page that collects all usage records and creates a Stripe
|
||||||
invoice at the end of the month
|
invoice at the end of the month
|
||||||
5. [Balance Transaction](/app/balance-transaction): Document that keeps track of credits (Free Credits,
|
5. [Balance Transaction](/app/balance-transaction): Page that keeps track of credits (Free Credits,
|
||||||
Prepaid Credits, Transferred Credits)
|
Prepaid Credits, Transferred Credits)
|
||||||
6. [Site](/app/site): Site that is charged
|
6. [Site](/app/site): Site that is charged
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ Server runs benches as well as its own MariaDB database.
|
|||||||
|
|
||||||
#### Steps
|
#### Steps
|
||||||
|
|
||||||
1. Create a Server Document and Save
|
1. Create a Server Page and Save
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|||||||
@ -163,9 +163,9 @@ Here, we're actually faking the output of the function which usually calls a
|
|||||||
remote endpoint that's out of our control by adding the `new` argument to the
|
remote endpoint that's out of our control by adding the `new` argument to the
|
||||||
method.
|
method.
|
||||||
|
|
||||||
> Note: When you use asserts on Mock object, Document comparisons will mostly
|
> Note: When you use asserts on Mock object, Page comparisons will mostly
|
||||||
> work as expected as we're overriding \***\*eq\*\*** of Document class during
|
> work as expected as we're overriding \***\*eq\*\*** of Page class during
|
||||||
> tests (check before_test.py). This is because by default when 2 Document
|
> tests (check before_test.py). This is because by default when 2 Page
|
||||||
> objects are compared, only their `id()` is checked, which will return False
|
> objects are compared, only their `id()` is checked, which will return False
|
||||||
> as the objects will be different in memory.
|
> as the objects will be different in memory.
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import functools
|
import functools
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.utils import get_current_team
|
from jcloude.utils import get_current_team
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ def action_guard(action: str):
|
|||||||
"""
|
"""
|
||||||
Decorator to guard actions based on team permissions and access rules. This
|
Decorator to guard actions based on team permissions and access rules. This
|
||||||
decorator should only be used with instance methods of classes that inherit
|
decorator should only be used with instance methods of classes that inherit
|
||||||
from jingrow.Document. It validates permissions before allowing the
|
from jingrow.Page. It validates permissions before allowing the
|
||||||
decorated method to execute.
|
decorated method to execute.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ def action_guard(action: str):
|
|||||||
|
|
||||||
def decorator(fn):
|
def decorator(fn):
|
||||||
@functools.wraps(fn)
|
@functools.wraps(fn)
|
||||||
def wrapper(instance: Document, *args, **kwargs):
|
def wrapper(instance: Page, *args, **kwargs):
|
||||||
if jingrow.local.system_user():
|
if jingrow.local.system_user():
|
||||||
return fn(instance, *args, **kwargs)
|
return fn(instance, *args, **kwargs)
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class ReferralBonus(Document):
|
class ReferralBonus(Page):
|
||||||
@jingrow.whitelist()
|
@jingrow.whitelist()
|
||||||
def allocate_credits(self):
|
def allocate_credits(self):
|
||||||
# Credits have already been allocated
|
# Credits have already been allocated
|
||||||
|
|||||||
@ -6,7 +6,7 @@ from typing import Any, Literal
|
|||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow import TYPE_CHECKING, _
|
from jingrow import TYPE_CHECKING, _
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
from jingrow.query_builder.functions import Count
|
from jingrow.query_builder.functions import Count
|
||||||
from jingrow.query_builder.terms import QueryBuilder
|
from jingrow.query_builder.terms import QueryBuilder
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ def api(scope: Literal["billing", "partner"]):
|
|||||||
def action():
|
def action():
|
||||||
def wrapper(fn):
|
def wrapper(fn):
|
||||||
@functools.wraps(fn)
|
@functools.wraps(fn)
|
||||||
def inner(self: Document, *args, **kwargs):
|
def inner(self: Page, *args, **kwargs):
|
||||||
if (not roles_enabled()) or utils_user.is_system_manager():
|
if (not roles_enabled()) or utils_user.is_system_manager():
|
||||||
return fn(self, *args, **kwargs)
|
return fn(self, *args, **kwargs)
|
||||||
key = action_key(self)
|
key = action_key(self)
|
||||||
@ -122,8 +122,8 @@ def document(
|
|||||||
pass
|
pass
|
||||||
```
|
```
|
||||||
|
|
||||||
:param document_type: Document type extractor function
|
:param document_type: Page type extractor function
|
||||||
:param document_name: Document name extractor function
|
:param document_name: Page name extractor function
|
||||||
:param default_value: Return a default value if permission check fails
|
:param default_value: Return a default value if permission check fails
|
||||||
:param should_throw: Whether to throw an error if permission check fails
|
:param should_throw: Whether to throw an error if permission check fails
|
||||||
:param inject_values: Whether to inject the result into the decorated function's kwargs
|
:param inject_values: Whether to inject the result into the decorated function's kwargs
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
def action_key(document: Document) -> str:
|
def action_key(document: Page) -> str:
|
||||||
if document.pagetype == "Site" and document.is_new():
|
if document.pagetype == "Site" and document.is_new():
|
||||||
return "allow_site_creation"
|
return "allow_site_creation"
|
||||||
if document.pagetype == "Server" and document.is_new():
|
if document.pagetype == "Server" and document.is_new():
|
||||||
|
|||||||
@ -5,7 +5,7 @@ from collections.abc import Callable
|
|||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow import TYPE_CHECKING, _
|
from jingrow import TYPE_CHECKING, _
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.utils import user as utils_user
|
from jcloude.utils import user as utils_user
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ if TYPE_CHECKING:
|
|||||||
from jcloude.jcloude.pagetype.team.team import Team
|
from jcloude.jcloude.pagetype.team.team import Team
|
||||||
|
|
||||||
|
|
||||||
def only_owner(team: Callable[[Document, OrderedDict], str] = lambda document, _: str(document.team)):
|
def only_owner(team: Callable[[Page, OrderedDict], str] = lambda document, _: str(document.team)):
|
||||||
"""
|
"""
|
||||||
This guard can only be used for a class method. No other options are
|
This guard can only be used for a class method. No other options are
|
||||||
supported.
|
supported.
|
||||||
@ -39,8 +39,8 @@ def only_owner(team: Callable[[Document, OrderedDict], str] = lambda document, _
|
|||||||
|
|
||||||
|
|
||||||
def only_admin(
|
def only_admin(
|
||||||
team: Callable[[Document, OrderedDict], str] = lambda document, _: str(document.team),
|
team: Callable[[Page, OrderedDict], str] = lambda document, _: str(document.team),
|
||||||
skip: Callable[[Document, OrderedDict], bool] = lambda _, __: False,
|
skip: Callable[[Page, OrderedDict], bool] = lambda _, __: False,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
This guard can only be used for a class method. No other options are
|
This guard can only be used for a class method. No other options are
|
||||||
@ -69,8 +69,8 @@ def only_admin(
|
|||||||
|
|
||||||
|
|
||||||
def only_member(
|
def only_member(
|
||||||
team: Callable[[Document, OrderedDict], str] = lambda document, _: str(document.team),
|
team: Callable[[Page, OrderedDict], str] = lambda document, _: str(document.team),
|
||||||
user: Callable[[Document, OrderedDict], str] = lambda _, __: str(jingrow.session.user),
|
user: Callable[[Page, OrderedDict], str] = lambda _, __: str(jingrow.session.user),
|
||||||
error_message: str | None = None,
|
error_message: str | None = None,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -157,7 +157,7 @@ has_permission = {
|
|||||||
"Server Snapshot Recovery": "jcloude.overrides.has_permission",
|
"Server Snapshot Recovery": "jcloude.overrides.has_permission",
|
||||||
}
|
}
|
||||||
|
|
||||||
# Document Events
|
# Page Events
|
||||||
# ---------------
|
# ---------------
|
||||||
# Hook on document methods and events
|
# Hook on document methods and events
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class ActionStep(Document):
|
class ActionStep(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ from enum import Enum
|
|||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
import requests
|
import requests
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
from jingrow.utils.password import get_decrypted_password
|
from jingrow.utils.password import get_decrypted_password
|
||||||
from prometheus_api_client import MetricRangeDataFrame, PrometheusConnect
|
from prometheus_api_client import MetricRangeDataFrame, PrometheusConnect
|
||||||
from prometheus_api_client.utils import parse_datetime
|
from prometheus_api_client.utils import parse_datetime
|
||||||
@ -43,7 +43,7 @@ def get_prometheus_client() -> PrometheusConnect:
|
|||||||
return PrometheusConnect(f"https://{monitor_server}/prometheus", auth=("jingrow", password))
|
return PrometheusConnect(f"https://{monitor_server}/prometheus", auth=("jingrow", password))
|
||||||
|
|
||||||
|
|
||||||
class IncidentInvestigator(Document):
|
class IncidentInvestigator(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class InvestigationStep(Document):
|
class InvestigationStep(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import json
|
|||||||
import typing
|
import typing
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.agent import Agent
|
from jcloude.agent import Agent
|
||||||
from jcloude.jcloude.pagetype.deploy_candidate_build.deploy_candidate_build import Status
|
from jcloude.jcloude.pagetype.deploy_candidate_build.deploy_candidate_build import Status
|
||||||
@ -18,7 +18,7 @@ if typing.TYPE_CHECKING:
|
|||||||
from jcloude.jcloude.pagetype.server.server import Server
|
from jcloude.jcloude.pagetype.server.server import Server
|
||||||
|
|
||||||
|
|
||||||
class ARMBuildRecord(Document):
|
class ARMBuildRecord(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class ARMDockerImage(Document):
|
class ARMDockerImage(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ from ansible.parsing.dataloader import DataLoader
|
|||||||
from ansible.playbook.play import Play
|
from ansible.playbook.play import Play
|
||||||
from ansible.plugins.callback import CallbackBase
|
from ansible.plugins.callback import CallbackBase
|
||||||
from ansible.vars.manager import VariableManager
|
from ansible.vars.manager import VariableManager
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.utils import reconnect_on_failure
|
from jcloude.utils import reconnect_on_failure
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ SERVER_TYPES = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
class SSHAccessAudit(Document):
|
class SSHAccessAudit(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -4,10 +4,10 @@
|
|||||||
# import jingrow
|
# import jingrow
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class SSHAccessAuditHost(Document):
|
class SSHAccessAuditHost(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -56,7 +56,7 @@
|
|||||||
"fieldname": "key_document",
|
"fieldname": "key_document",
|
||||||
"fieldtype": "Dynamic Link",
|
"fieldtype": "Dynamic Link",
|
||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Key Document",
|
"label": "Key Page",
|
||||||
"options": "key_pagetype",
|
"options": "key_pagetype",
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
},
|
},
|
||||||
|
|||||||
@ -4,10 +4,10 @@
|
|||||||
# import jingrow
|
# import jingrow
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class SSHAccessAuditViolation(Document):
|
class SSHAccessAuditViolation(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@ from enum import Enum
|
|||||||
import botocore
|
import botocore
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.core.utils import find, find_all
|
from jingrow.core.utils import find, find_all
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.jcloude.pagetype.ansible_console.ansible_console import AnsibleAdHoc
|
from jcloude.jcloude.pagetype.ansible_console.ansible_console import AnsibleAdHoc
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ if typing.TYPE_CHECKING:
|
|||||||
SUPPORTED_FILESYSTEMS = ["ext4"]
|
SUPPORTED_FILESYSTEMS = ["ext4"]
|
||||||
|
|
||||||
|
|
||||||
class VirtualDiskResize(Document):
|
class VirtualDiskResize(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@ from typing import TYPE_CHECKING, Literal
|
|||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.core.utils import find
|
from jingrow.core.utils import find
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.jcloude.pagetype.ansible_console.ansible_console import AnsibleAdHoc
|
from jcloude.jcloude.pagetype.ansible_console.ansible_console import AnsibleAdHoc
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ if TYPE_CHECKING:
|
|||||||
StepStatus = Enum("StepStatus", ["Pending", "Running", "Success", "Failure"])
|
StepStatus = Enum("StepStatus", ["Pending", "Running", "Success", "Failure"])
|
||||||
|
|
||||||
|
|
||||||
class VirtualMachineMigration(Document):
|
class VirtualMachineMigration(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -4,10 +4,10 @@
|
|||||||
# import jingrow
|
# import jingrow
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class VirtualMachineMigrationBindMount(Document):
|
class VirtualMachineMigrationBindMount(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -4,10 +4,10 @@
|
|||||||
# import jingrow
|
# import jingrow
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class VirtualMachineMigrationMount(Document):
|
class VirtualMachineMigrationMount(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -4,10 +4,10 @@
|
|||||||
# import jingrow
|
# import jingrow
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class VirtualMachineMigrationStep(Document):
|
class VirtualMachineMigrationStep(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class VirtualMachineMigrationVolume(Document):
|
class VirtualMachineMigrationVolume(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ from enum import Enum
|
|||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from jcloude.infrastructure.pagetype.virtual_machine_migration_step.virtual_machine_migration_step import (
|
from jcloude.infrastructure.pagetype.virtual_machine_migration_step.virtual_machine_migration_step import (
|
||||||
@ -19,7 +19,7 @@ if TYPE_CHECKING:
|
|||||||
StepStatus = Enum("StepStatus", ["Pending", "Running", "Success", "Failure"])
|
StepStatus = Enum("StepStatus", ["Pending", "Running", "Success", "Failure"])
|
||||||
|
|
||||||
|
|
||||||
class VirtualMachineReplacement(Document):
|
class VirtualMachineReplacement(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AppPlanVersion(Document):
|
class AppPlanVersion(Page):
|
||||||
pass
|
pass
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AppReleaseApprovalCodeComments(Document):
|
class AppReleaseApprovalCodeComments(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AppUserReview(Document):
|
class AppUserReview(Page):
|
||||||
def after_insert(self):
|
def after_insert(self):
|
||||||
self.update_average_rating()
|
self.update_average_rating()
|
||||||
|
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AutoReleaseTeam(Document):
|
class AutoReleaseTeam(Page):
|
||||||
pass
|
pass
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class DeveloperReviewReply(Document):
|
class DeveloperReviewReply(Page):
|
||||||
pass
|
pass
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class FeaturedApp(Document):
|
class FeaturedApp(Page):
|
||||||
pass
|
pass
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class MarketplaceAddOn(Document):
|
class MarketplaceAddOn(Page):
|
||||||
pass
|
pass
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class MarketplaceAppFeedback(Document):
|
class MarketplaceAppFeedback(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class MarketplaceAppPayment(Document):
|
class MarketplaceAppPayment(Page):
|
||||||
def has_threshold_passed(self):
|
def has_threshold_passed(self):
|
||||||
exchange_rate = jingrow.db.get_single_value("Jcloude Settings", "usd_rate")
|
exchange_rate = jingrow.db.get_single_value("Jcloude Settings", "usd_rate")
|
||||||
total = self.total_usd + (self.total_inr / exchange_rate) if exchange_rate > 0 else 80
|
total = self.total_usd + (self.total_inr / exchange_rate) if exchange_rate > 0 else 80
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class MarketplaceAppPlans(Document):
|
class MarketplaceAppPlans(Page):
|
||||||
pass
|
pass
|
||||||
|
|||||||
@ -3,12 +3,12 @@
|
|||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
import requests
|
import requests
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.jcloude.pagetype.site.site import Site
|
from jcloude.jcloude.pagetype.site.site import Site
|
||||||
|
|
||||||
|
|
||||||
class MarketplaceAppSubscription(Document):
|
class MarketplaceAppSubscription(Page):
|
||||||
def validate(self):
|
def validate(self):
|
||||||
self.set_secret_key()
|
self.set_secret_key()
|
||||||
self.validate_marketplace_app_plan()
|
self.validate_marketplace_app_plan()
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class MarketplacePromotionalBanner(Document):
|
class MarketplacePromotionalBanner(Page):
|
||||||
pass
|
pass
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class MarketplacePublisherProfile(Document):
|
class MarketplacePublisherProfile(Page):
|
||||||
pass
|
pass
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class MarketplaceSettings(Document):
|
class MarketplaceSettings(Page):
|
||||||
pass
|
pass
|
||||||
|
|||||||
@ -2,11 +2,11 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
from jingrow.utils import get_url
|
from jingrow.utils import get_url
|
||||||
|
|
||||||
|
|
||||||
class CertificateLinkRequest(Document):
|
class CertificateLinkRequest(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,10 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class LeadFollowup(Document):
|
class LeadFollowup(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,13 +3,13 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
from jingrow.utils import get_url
|
from jingrow.utils import get_url
|
||||||
|
|
||||||
from jcloude.api.client import dashboard_whitelist
|
from jcloude.api.client import dashboard_whitelist
|
||||||
|
|
||||||
|
|
||||||
class PartnerApprovalRequest(Document):
|
class PartnerApprovalRequest(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,10 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class PartnerCertificate(Document):
|
class PartnerCertificate(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,10 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class PartnerCertificateRequest(Document):
|
class PartnerCertificateRequest(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class PartnerConsent(Document):
|
class PartnerConsent(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,10 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class PartnerLead(Document):
|
class PartnerLead(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,10 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class PartnerLeadOrigin(Document):
|
class PartnerLeadOrigin(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,10 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class PartnerLeadType(Document):
|
class PartnerLeadType(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,10 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class PartnerTier(Document):
|
class PartnerTier(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ from __future__ import annotations
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
from jingrow.utils import get_url, random_string
|
from jingrow.utils import get_url, random_string
|
||||||
|
|
||||||
from jcloude.guards import settings
|
from jcloude.guards import settings
|
||||||
@ -15,7 +15,7 @@ from jcloude.utils.otp import generate_otp
|
|||||||
from jcloude.utils.telemetry import capture
|
from jcloude.utils.telemetry import capture
|
||||||
|
|
||||||
|
|
||||||
class AccountRequest(Document):
|
class AccountRequest(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AccountRequestPressRole(Document):
|
class AccountRequestPressRole(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AddOnSettings(Document):
|
class AddOnSettings(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
import typing
|
import typing
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.jcloude.pagetype.communication_info.communication_info import get_communication_info
|
from jcloude.jcloude.pagetype.communication_info.communication_info import get_communication_info
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ if typing.TYPE_CHECKING:
|
|||||||
from jcloude.jcloude.pagetype.server.server import BaseServer
|
from jcloude.jcloude.pagetype.server.server import BaseServer
|
||||||
|
|
||||||
|
|
||||||
class AddOnStorageLog(Document):
|
class AddOnStorageLog(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ from typing import TYPE_CHECKING
|
|||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.core.utils import find
|
from jingrow.core.utils import find
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
from jingrow.monitor import add_data_to_monitor
|
from jingrow.monitor import add_data_to_monitor
|
||||||
from jingrow.utils import (
|
from jingrow.utils import (
|
||||||
add_days,
|
add_days,
|
||||||
@ -41,7 +41,7 @@ AGENT_JOB_TIMEOUT_HOURS = 4
|
|||||||
BYPASS_AGENT_JOB_HALT = ["Change Bench Directory", "Remove Redis Localhost Bind"]
|
BYPASS_AGENT_JOB_HALT = ["Change Bench Directory", "Remove Redis Localhost Bind"]
|
||||||
|
|
||||||
|
|
||||||
class AgentJob(Document):
|
class AgentJob(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AgentJobCallback(Document):
|
class AgentJobCallback(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AgentJobStep(Document):
|
class AgentJobStep(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,12 +3,12 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.utils import ttl_cache
|
from jcloude.utils import ttl_cache
|
||||||
|
|
||||||
|
|
||||||
class AgentJobType(Document):
|
class AgentJobType(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AgentJobTypeStep(Document):
|
class AgentJobTypeStep(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,13 +3,13 @@
|
|||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
import requests
|
import requests
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.agent import Agent
|
from jcloude.agent import Agent
|
||||||
from jcloude.utils import log_error
|
from jcloude.utils import log_error
|
||||||
|
|
||||||
|
|
||||||
class AgentRequestFailure(Document):
|
class AgentRequestFailure(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import math
|
|||||||
import jingrow
|
import jingrow
|
||||||
import jingrow.utils
|
import jingrow.utils
|
||||||
import requests
|
import requests
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.agent import Agent
|
from jcloude.agent import Agent
|
||||||
from jcloude.runner import Ansible
|
from jcloude.runner import Ansible
|
||||||
@ -20,7 +20,7 @@ def bool_to_str(b: bool) -> str:
|
|||||||
return "true" if b else "false"
|
return "true" if b else "false"
|
||||||
|
|
||||||
|
|
||||||
class AgentUpdate(Document):
|
class AgentUpdate(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,10 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AgentUpdateServer(Document):
|
class AgentUpdateServer(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ from typing import TYPE_CHECKING
|
|||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.core.utils import find
|
from jingrow.core.utils import find
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
from jingrow.utils import get_url_to_form
|
from jingrow.utils import get_url_to_form
|
||||||
from jingrow.utils.background_jobs import enqueue_pg
|
from jingrow.utils.background_jobs import enqueue_pg
|
||||||
from jingrow.utils.data import add_to_date
|
from jingrow.utils.data import add_to_date
|
||||||
@ -51,7 +51,7 @@ Labels:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class AlertmanagerWebhookLog(Document):
|
class AlertmanagerWebhookLog(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AlertmanagerWebhookLogReactionJob(Document):
|
class AlertmanagerWebhookLogReactionJob(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -14,13 +14,13 @@ from ansible.parsing.dataloader import DataLoader
|
|||||||
from ansible.playbook.play import Play
|
from ansible.playbook.play import Play
|
||||||
from ansible.plugins.callback import CallbackBase
|
from ansible.plugins.callback import CallbackBase
|
||||||
from ansible.vars.manager import VariableManager
|
from ansible.vars.manager import VariableManager
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
from jingrow.utils import get_timedelta
|
from jingrow.utils import get_timedelta
|
||||||
|
|
||||||
from jcloude.utils import reconnect_on_failure
|
from jcloude.utils import reconnect_on_failure
|
||||||
|
|
||||||
|
|
||||||
class AnsibleConsole(Document):
|
class AnsibleConsole(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AnsibleConsoleLog(Document):
|
class AnsibleConsoleLog(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AnsibleConsoleOutput(Document):
|
class AnsibleConsoleOutput(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -4,14 +4,14 @@
|
|||||||
|
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
from jingrow.utils import cstr
|
from jingrow.utils import cstr
|
||||||
|
|
||||||
from jcloude.api.client import is_owned_by_team
|
from jcloude.api.client import is_owned_by_team
|
||||||
from jcloude.utils import poly_get_pagetype
|
from jcloude.utils import poly_get_pagetype
|
||||||
|
|
||||||
|
|
||||||
class AnsiblePlay(Document):
|
class AnsiblePlay(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AnsibleTask(Document):
|
class AnsibleTask(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import typing
|
|||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
import rq
|
import rq
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.utils.jobs import has_job_timeout_exceeded
|
from jcloude.utils.jobs import has_job_timeout_exceeded
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ if typing.TYPE_CHECKING:
|
|||||||
from jcloude.jcloude.pagetype.app_source.app_source import AppSource
|
from jcloude.jcloude.pagetype.app_source.app_source import AppSource
|
||||||
|
|
||||||
|
|
||||||
class App(Document):
|
class App(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -4,10 +4,10 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AppGroup(Document):
|
class AppGroup(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ from typing import TypedDict
|
|||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
import requests
|
import requests
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.agent import Agent
|
from jcloude.agent import Agent
|
||||||
from jcloude.api.client import dashboard_whitelist
|
from jcloude.api.client import dashboard_whitelist
|
||||||
@ -36,7 +36,7 @@ if typing.TYPE_CHECKING:
|
|||||||
from jcloude.jcloude.pagetype.agent_job.agent_job import AgentJob
|
from jcloude.jcloude.pagetype.agent_job.agent_job import AgentJob
|
||||||
|
|
||||||
|
|
||||||
class AppPatch(Document):
|
class AppPatch(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ from datetime import datetime
|
|||||||
from typing import Optional, TypedDict
|
from typing import Optional, TypedDict
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.api.github import get_access_token
|
from jcloude.api.github import get_access_token
|
||||||
from jcloude.jcloude.pagetype.app_source.app_source import AppSource
|
from jcloude.jcloude.pagetype.app_source.app_source import AppSource
|
||||||
@ -37,7 +37,7 @@ class AppReleasePair(TypedDict):
|
|||||||
new: AppReleaseDict
|
new: AppReleaseDict
|
||||||
|
|
||||||
|
|
||||||
class AppRelease(Document):
|
class AppRelease(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import json
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
from jingrow.model.naming import make_autoname
|
from jingrow.model.naming import make_autoname
|
||||||
from pygments import highlight
|
from pygments import highlight
|
||||||
from pygments.formatters import HtmlFormatter as HF
|
from pygments.formatters import HtmlFormatter as HF
|
||||||
@ -15,7 +15,7 @@ from pygments.lexers import PythonLexer as PL
|
|||||||
from jcloude.jcloude.pagetype.app_release.app_release import AppRelease
|
from jcloude.jcloude.pagetype.app_release.app_release import AppRelease
|
||||||
|
|
||||||
|
|
||||||
class AppReleaseApprovalRequest(Document):
|
class AppReleaseApprovalRequest(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -7,13 +7,13 @@ import re
|
|||||||
import typing
|
import typing
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
from github import Github
|
from github import Github
|
||||||
|
|
||||||
from jcloude.api.github import get_access_token
|
from jcloude.api.github import get_access_token
|
||||||
|
|
||||||
|
|
||||||
class AppReleaseDifference(Document):
|
class AppReleaseDifference(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AppRename(Document):
|
class AppRename(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ from typing import TYPE_CHECKING
|
|||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
import requests
|
import requests
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
from jingrow.model.naming import make_autoname
|
from jingrow.model.naming import make_autoname
|
||||||
|
|
||||||
from jcloude.api.github import get_access_token, get_auth_headers
|
from jcloude.api.github import get_access_token, get_auth_headers
|
||||||
@ -22,7 +22,7 @@ if TYPE_CHECKING:
|
|||||||
from jcloude.jcloude.pagetype.app_release.app_release import AppRelease
|
from jcloude.jcloude.pagetype.app_release.app_release import AppRelease
|
||||||
|
|
||||||
|
|
||||||
class AppSource(Document):
|
class AppSource(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AppSourceVersion(Document):
|
class AppSourceVersion(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,10 @@
|
|||||||
|
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AppTag(Document):
|
class AppTag(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,12 +3,12 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.jcloude.pagetype.telegram_message.telegram_message import TelegramMessage
|
from jcloude.jcloude.pagetype.telegram_message.telegram_message import TelegramMessage
|
||||||
|
|
||||||
|
|
||||||
class AuditLog(Document):
|
class AuditLog(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import typing
|
|||||||
from typing import Literal, TypedDict
|
from typing import Literal, TypedDict
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
from requests.exceptions import ConnectionError, HTTPError, JSONDecodeError
|
from requests.exceptions import ConnectionError, HTTPError, JSONDecodeError
|
||||||
|
|
||||||
from jcloude.agent import Agent
|
from jcloude.agent import Agent
|
||||||
@ -47,7 +47,7 @@ class AutoScaleStepFailureHandler:
|
|||||||
jingrow.db.commit()
|
jingrow.db.commit()
|
||||||
|
|
||||||
|
|
||||||
class AutoScaleRecord(Document, AutoScaleStepFailureHandler, StepHandler):
|
class AutoScaleRecord(Page, AutoScaleStepFailureHandler, StepHandler):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class AutoScaleTrigger(Document):
|
class AutoScaleTrigger(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ from __future__ import annotations
|
|||||||
import boto3
|
import boto3
|
||||||
import jingrow
|
import jingrow
|
||||||
import jingrow.utils
|
import jingrow.utils
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
from jingrow.utils import cint, flt
|
from jingrow.utils import cint, flt
|
||||||
|
|
||||||
from jcloude.jcloude.pagetype.telegram_message.telegram_message import TelegramMessage
|
from jcloude.jcloude.pagetype.telegram_message.telegram_message import TelegramMessage
|
||||||
@ -14,7 +14,7 @@ from jcloude.utils import log_error
|
|||||||
AWS_HOURS_IN_A_MONTH = 730
|
AWS_HOURS_IN_A_MONTH = 730
|
||||||
|
|
||||||
|
|
||||||
class AWSSavingsPlanRecommendation(Document):
|
class AWSSavingsPlanRecommendation(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class BackupBucket(Document):
|
class BackupBucket(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,13 +2,13 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.api.site import _new
|
from jcloude.api.site import _new
|
||||||
from jcloude.jcloude.pagetype.site.site import prepare_site
|
from jcloude.jcloude.pagetype.site.site import prepare_site
|
||||||
|
|
||||||
|
|
||||||
class BackupRestorationTest(Document):
|
class BackupRestorationTest(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,12 +3,12 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.overrides import get_permission_query_conditions_for_pagetype
|
from jcloude.overrides import get_permission_query_conditions_for_pagetype
|
||||||
|
|
||||||
|
|
||||||
class BalanceTransaction(Document):
|
class BalanceTransaction(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class BalanceTransactionAllocation(Document):
|
class BalanceTransactionAllocation(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class BastionServer(Document):
|
class BastionServer(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ from typing import TYPE_CHECKING, Literal
|
|||||||
import jingrow
|
import jingrow
|
||||||
import pytz
|
import pytz
|
||||||
from jingrow.exceptions import DoesNotExistError
|
from jingrow.exceptions import DoesNotExistError
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
from jingrow.model.naming import append_number_if_name_exists, make_autoname
|
from jingrow.model.naming import append_number_if_name_exists, make_autoname
|
||||||
from jingrow.utils import get_system_timezone
|
from jingrow.utils import get_system_timezone
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ if TYPE_CHECKING:
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
class Bench(Document):
|
class Bench(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,10 @@
|
|||||||
|
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class BenchApp(Document):
|
class BenchApp(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class BenchDependency(Document):
|
class BenchDependency(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class BenchDependencyVersion(Document):
|
class BenchDependencyVersion(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -4,13 +4,13 @@
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.jcloude.pagetype.deploy_candidate.cache_utils import run_command_in_docker_cache
|
from jcloude.jcloude.pagetype.deploy_candidate.cache_utils import run_command_in_docker_cache
|
||||||
from jcloude.utils import ttl_cache
|
from jcloude.utils import ttl_cache
|
||||||
|
|
||||||
|
|
||||||
class BenchGetAppCache(Document):
|
class BenchGetAppCache(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ class BenchGetAppCache(Document):
|
|||||||
|
|
||||||
def load_from_db(self):
|
def load_from_db(self):
|
||||||
db = {v.name: v for v in BenchGetAppCache.get_data()}
|
db = {v.name: v for v in BenchGetAppCache.get_data()}
|
||||||
return super(Document, self).__init__(db[self.name])
|
return super(Page, self).__init__(db[self.name])
|
||||||
|
|
||||||
def delete(self):
|
def delete(self):
|
||||||
run_command_in_docker_cache(f"rm bench/apps/{self.file_name}")
|
run_command_in_docker_cache(f"rm bench/apps/{self.file_name}")
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class BenchMount(Document):
|
class BenchMount(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -5,13 +5,13 @@ import json
|
|||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from jcloude.jcloude.pagetype.bench.bench import Bench
|
from jcloude.jcloude.pagetype.bench.bench import Bench
|
||||||
|
|
||||||
|
|
||||||
class BenchShell(Document):
|
class BenchShell(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ from datetime import datetime
|
|||||||
from typing import Optional, TypedDict
|
from typing import Optional, TypedDict
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
ExecuteResult = TypedDict(
|
ExecuteResult = TypedDict(
|
||||||
"ExecuteResult",
|
"ExecuteResult",
|
||||||
@ -23,7 +23,7 @@ ExecuteResult = TypedDict(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class BenchShellLog(Document):
|
class BenchShellLog(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class BenchSiteUpdate(Document):
|
class BenchSiteUpdate(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ from __future__ import annotations
|
|||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
from jcloude.utils import get_current_team
|
from jcloude.utils import get_current_team
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ if TYPE_CHECKING:
|
|||||||
from jcloude.jcloude.pagetype.release_group.release_group import ReleaseGroup
|
from jcloude.jcloude.pagetype.release_group.release_group import ReleaseGroup
|
||||||
|
|
||||||
|
|
||||||
class BenchUpdate(Document):
|
class BenchUpdate(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class BenchUpdateApp(Document):
|
class BenchUpdateApp(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.document import Page
|
||||||
|
|
||||||
|
|
||||||
class BenchVariable(Document):
|
class BenchVariable(Page):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user