inttegro.app
Models, requests, and enums for the Inttegro app resource.
The primary returned object is inttegro.app.App. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK.
1"""Models, requests, and enums for the Inttegro app resource. 2 3The primary returned object is ``inttegro.app.App``. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK.""" 4 5from importlib import import_module 6from typing import TYPE_CHECKING, Any 7 8if TYPE_CHECKING: 9 from .app import App as App 10 from .capabilities import Capabilities as Capabilities 11 from .capabilities import Capability as Capability 12 from .capabilities import CapabilityRequirement as CapabilityRequirement 13 from .capabilities import CapabilityRequirements as CapabilityRequirements 14 from .capabilities import CapabilityProjection as CapabilityProjection 15 from .create_request import CreateRequest as CreateRequest 16 from .create_request_relationship_policy import CreateRequestRelationshipPolicy as CreateRequestRelationshipPolicy 17 from .create_response import CreateResponse as CreateResponse 18 from .credential_owner import CredentialOwner as CredentialOwner 19 from .lookup_response import LookupResponse as LookupResponse 20 from .lookup_response_app import LookupResponseApp as LookupResponseApp 21 from .management_role import ManagementRole as ManagementRole 22 from .relationship import Relationship as Relationship 23 from .relationship_kind import RelationshipKind as RelationshipKind 24 from .relationship_policy import RelationshipPolicy as RelationshipPolicy 25 from .relationship_status import RelationshipStatus as RelationshipStatus 26 from .secret_key import SecretKey as SecretKey 27 from .update_request import UpdateRequest as UpdateRequest 28 from .update_response import UpdateResponse as UpdateResponse 29 from .update_response_app import UpdateResponseApp as UpdateResponseApp 30 31 32_EXPORTS: dict[str, tuple[str, str]] = { 33 "App": ("inttegro.app.app", "App"), 34 "Capabilities": ("inttegro.app.capabilities", "Capabilities"), 35 "Capability": ("inttegro.app.capabilities", "Capability"), 36 "CapabilityRequirement": ("inttegro.app.capabilities", "CapabilityRequirement"), 37 "CapabilityRequirements": ("inttegro.app.capabilities", "CapabilityRequirements"), 38 "CapabilityProjection": ("inttegro.app.capabilities", "CapabilityProjection"), 39 "CreateRequest": ("inttegro.app.create_request", "CreateRequest"), 40 "CreateRequestRelationshipPolicy": ("inttegro.app.create_request_relationship_policy", "CreateRequestRelationshipPolicy"), 41 "CreateResponse": ("inttegro.app.create_response", "CreateResponse"), 42 "CredentialOwner": ("inttegro.app.credential_owner", "CredentialOwner"), 43 "LookupResponse": ("inttegro.app.lookup_response", "LookupResponse"), 44 "LookupResponseApp": ("inttegro.app.lookup_response_app", "LookupResponseApp"), 45 "ManagementRole": ("inttegro.app.management_role", "ManagementRole"), 46 "Relationship": ("inttegro.app.relationship", "Relationship"), 47 "RelationshipKind": ("inttegro.app.relationship_kind", "RelationshipKind"), 48 "RelationshipPolicy": ("inttegro.app.relationship_policy", "RelationshipPolicy"), 49 "RelationshipStatus": ("inttegro.app.relationship_status", "RelationshipStatus"), 50 "SecretKey": ("inttegro.app.secret_key", "SecretKey"), 51 "UpdateRequest": ("inttegro.app.update_request", "UpdateRequest"), 52 "UpdateResponse": ("inttegro.app.update_response", "UpdateResponse"), 53 "UpdateResponseApp": ("inttegro.app.update_response_app", "UpdateResponseApp"), 54} 55 56__all__ = [ 57 "App", 58 "Capabilities", 59 "Capability", 60 "CapabilityRequirement", 61 "CapabilityRequirements", 62 "CapabilityProjection", 63 "CreateRequest", 64 "CreateRequestRelationshipPolicy", 65 "CreateResponse", 66 "CredentialOwner", 67 "LookupResponse", 68 "LookupResponseApp", 69 "ManagementRole", 70 "Relationship", 71 "RelationshipKind", 72 "RelationshipPolicy", 73 "RelationshipStatus", 74 "SecretKey", 75 "UpdateRequest", 76 "UpdateResponse", 77 "UpdateResponseApp", 78] 79 80 81def __getattr__(name: str) -> Any: 82 """Load a public resource type on first access.""" 83 try: 84 module_name, attribute_name = _EXPORTS[name] 85 except KeyError: 86 raise AttributeError(f"module {__name__!r} has no attribute {name!r}") from None 87 value = getattr(import_module(module_name), attribute_name) 88 globals()[name] = value 89 return value
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class App(ApiModel): 15 """Typed app data in the app resource namespace. 16 17 Instances are immutable API responses. ``from_dict()`` decodes nested 18 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 19 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 20 Fields not returned by the API remain absent and can still be queried 21 through mapping-style access. 22 23 API contract schema: ``Application``. 24 """ 25 id: str = field(init=False) 26 """Unique product identifier with prod_ prefix. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 27 name: str = field(init=False) 28 """Product name. Required. Python type: ``str``; wire name: ``name``; JSON type: string""" 29 alias: str | None = field(init=False) 30 """The alias associated with this app. Optional; nullable. Python type: ``str | None``; wire name: ``alias``; JSON type: string""" 31 description: str | None = field(init=False) 32 """Short description. Optional; nullable. Python type: ``str | None``; wire name: ``description``; JSON type: string""" 33 created_at: datetime = field(init=False) 34 """Product creation timestamp. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)""" 35 updated_at: datetime | None = field(init=False) 36 """Last update timestamp. Optional; nullable. Python type: ``datetime | None``; wire name: ``updated_at``; JSON type: string (date-time)""" 37 archived_at: datetime | None = field(init=False) 38 """Archive timestamp (if archived). Optional; nullable. Python type: ``datetime | None``; wire name: ``archived_at``; JSON type: string (date-time)""" 39 capabilities: CapabilityProjection = field(init=False) 40 """Known public capabilities currently available to this app. Required. Python type: ``CapabilityProjection``; wire name: ``capabilities``; JSON type: object""" 41 children_policy: ChildrenPolicy | None = field(init=False) 42 """Active children policy assigned to this app. Optional; nullable. Python type: ``ChildrenPolicy | None``; wire name: ``children_policy``; JSON type: object""" 43 secret_key: ApplicationSecretKey | None = field(init=False) 44 """The secret key associated with this app. Optional; nullable. Python type: ``ApplicationSecretKey | None``; wire name: ``secret_key``; JSON type: object""" 45 relationship: ApplicationRelationship | None = field(init=False) 46 """The relationship associated with this app. Optional; nullable. Python type: ``ApplicationRelationship | None``; wire name: ``relationship``; JSON type: object""" 47 operating_policy: ApplicationOperatingPolicy | None = field(init=False) 48 """Gated immutable operating-policy snapshot. Optional; nullable. Python type: ``ApplicationOperatingPolicy | None``; wire name: ``operating_policy``; JSON type: object"""
Typed app data in the app resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: Application.
Unique product identifier with prod_ prefix. Required. Python type: str; wire name: id; JSON type: string
The alias associated with this app. Optional; nullable. Python type: str | None; wire name: alias; JSON type: string
Short description. Optional; nullable. Python type: str | None; wire name: description; JSON type: string
Product creation timestamp. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
Last update timestamp. Optional; nullable. Python type: datetime | None; wire name: updated_at; JSON type: string (date-time)
Archive timestamp (if archived). Optional; nullable. Python type: datetime | None; wire name: archived_at; JSON type: string (date-time)
Known public capabilities currently available to this app. Required. Python type: CapabilityProjection; wire name: capabilities; JSON type: object
Active children policy assigned to this app. Optional; nullable. Python type: ChildrenPolicy | None; wire name: children_policy; JSON type: object
The secret key associated with this app. Optional; nullable. Python type: ApplicationSecretKey | None; wire name: secret_key; JSON type: object
The relationship associated with this app. Optional; nullable. Python type: ApplicationRelationship | None; wire name: relationship; JSON type: object
Gated immutable operating-policy snapshot. Optional; nullable. Python type: ApplicationOperatingPolicy | None; wire name: operating_policy; JSON type: object
44@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 45class Capabilities(ApiModel): 46 """Payment and payout capabilities available to the authenticated app.""" 47 48 payments: Capability = field(init=False) 49 payouts: Capability = field(init=False)
Payment and payout capabilities available to the authenticated app.
29@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 30class Capability(ApiModel): 31 """The current availability of one commerce capability.""" 32 33 status: Literal["enabled", "restricted", "pending_review"] = field(init=False) 34 status_changed_at: datetime = field(init=False) 35 status_reason: Literal[ 36 "setup_incomplete", 37 "account_under_review", 38 "account_restricted", 39 "account_inactive", 40 ] | None = field(init=False) 41 requirements: CapabilityRequirements | None = field(init=False)
The current availability of one commerce capability.
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class CapabilityRequirement(ApiModel): 15 """A setup item that must be completed before a capability can be enabled.""" 16 17 code: str = field(init=False) 18 description: str = field(init=False) 19 due_at: datetime | None = field(init=False)
A setup item that must be completed before a capability can be enabled.
22@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 23class CapabilityRequirements(ApiModel): 24 """Requirements that currently prevent a capability from being enabled.""" 25 26 currently_due: list[CapabilityRequirement] = field(init=False)
Requirements that currently prevent a capability from being enabled.
52@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 53class CapabilityProjection(ApiModel): 54 """Known capability states currently exposed on an app resource.""" 55 56 payments: Capability | None = field(init=False) 57 payouts: Capability | None = field(init=False)
Known capability states currently exposed on an app resource.
13@dataclass(frozen=True, slots=True, kw_only=True) 14class CreateRequest(ApiRequest): 15 """Parameters accepted by the create request operation. 16 17 This is an immutable, keyword-only request object. ``to_dict()`` uses 18 the documented wire names, omits fields left as ``UNSET``, serializes 19 string-backed enums by value, and requires timezone-aware datetimes. 20 21 API contract schema: ``CreateApplicationRequest``. 22 """ 23 alias: str | UnsetType = field(default=UNSET) 24 """The alias associated with this create request. Optional. Python type: ``str``; wire name: ``alias``; JSON type: string""" 25 description: str | UnsetType = field(default=UNSET) 26 """Human-readable description of the create request. Optional. Python type: ``str``; wire name: ``description``; JSON type: string""" 27 legal_entity_type: str | UnsetType = field(default=UNSET) 28 """The legal entity type associated with this create request. Optional. Python type: ``str``; wire name: ``legal_entity_type``; JSON type: string""" 29 placement_parent_application_id: str | UnsetType = field(default=UNSET) 30 """Identifier of the related placement parent application. Optional. Python type: ``str``; wire name: ``placement_parent_application_id``; JSON type: string""" 31 relationship_policy: CreateApplicationRequestRelationshipPolicy | UnsetType = field(default=UNSET) 32 """The relationship policy associated with this create request. Optional. Python type: ``CreateApplicationRequestRelationshipPolicy``; wire name: ``relationship_policy``; JSON type: object""" 33 name: str 34 """Human-readable name of the create request. Required. Python type: ``str``; wire name: ``name``; JSON type: string""" 35 operating_policy: OperatingPolicySelection | UnsetType = field(default=UNSET) 36 """Named or inline operating policy. Optional. Python type: ``OperatingPolicySelection``; wire name: ``operating_policy``; JSON type: object"""
Parameters accepted by the create request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: CreateApplicationRequest.
The alias associated with this create request. Optional. Python type: str; wire name: alias; JSON type: string
Human-readable description of the create request. Optional. Python type: str; wire name: description; JSON type: string
The legal entity type associated with this create request. Optional. Python type: str; wire name: legal_entity_type; JSON type: string
Identifier of the related placement parent application. Optional. Python type: str; wire name: placement_parent_application_id; JSON type: string
The relationship policy associated with this create request. Optional. Python type: CreateApplicationRequestRelationshipPolicy; wire name: relationship_policy; JSON type: object
Human-readable name of the create request. Required. Python type: str; wire name: name; JSON type: string
Named or inline operating policy. Optional. Python type: OperatingPolicySelection; wire name: operating_policy; JSON type: object
13@dataclass(frozen=True, slots=True, kw_only=True) 14class CreateRequestRelationshipPolicy(ApiRequest): 15 """Parameters accepted by the create request relationship policy operation. 16 17 This is an immutable, keyword-only request object. ``to_dict()`` uses 18 the documented wire names, omits fields left as ``UNSET``, serializes 19 string-backed enums by value, and requires timezone-aware datetimes. 20 21 API contract schema: ``CreateApplicationRequestRelationshipPolicy``. 22 """ 23 child_standing: str | UnsetType = field(default=UNSET) 24 """The child standing associated with this create request relationship policy. Optional. Python type: ``str``; wire name: ``child_standing``; JSON type: string""" 25 management: Literal['parent', 'child', AppManagementRole.PARENT, AppManagementRole.CHILD] | UnsetType = field(default=UNSET) 26 """The management associated with this create request relationship policy. Optional. Python type: ``Literal['parent', 'child', AppManagementRole.PARENT, AppManagementRole.CHILD]``; wire name: ``management``; JSON type: string""" 27 credentials: Literal['child', 'parent', AppCredentialOwner.CHILD, AppCredentialOwner.PARENT] | UnsetType = field(default=UNSET) 28 """The credentials associated with this create request relationship policy. Optional. Python type: ``Literal['child', 'parent', AppCredentialOwner.CHILD, AppCredentialOwner.PARENT]``; wire name: ``credentials``; JSON type: string"""
Parameters accepted by the create request relationship policy operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: CreateApplicationRequestRelationshipPolicy.
The child standing associated with this create request relationship policy. Optional. Python type: str; wire name: child_standing; JSON type: string
The management associated with this create request relationship policy. Optional. Python type: Literal['parent', 'child', AppManagementRole.PARENT, AppManagementRole.CHILD]; wire name: management; JSON type: string
The credentials associated with this create request relationship policy. Optional. Python type: Literal['child', 'parent', AppCredentialOwner.CHILD, AppCredentialOwner.PARENT]; wire name: credentials; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class CreateResponse(ApiModel): 14 """Typed response returned by the create operation. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``CreateApplicationResponse``. 23 """ 24 app: Application = field(init=False) 25 """The app associated with this create response. Required. Python type: ``Application``; wire name: ``app``; JSON type: object"""
Typed response returned by the create operation.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: CreateApplicationResponse.
11class CredentialOwner(WireEnum): 12 """Typed credential owner data in the app resource namespace. 13 14 Members are strings as well as enum values, so they compare naturally 15 with API payloads and serialize to the lowercase wire value shown below. 16 17 API contract schema: ``AppCredentialOwner``. 18 """ 19 CHILD = "child" 20 """Wire value ``child`` (child)""" 21 PARENT = "parent" 22 """Wire value ``parent`` (parent)"""
Typed credential owner data in the app resource namespace.
Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.
API contract schema: AppCredentialOwner.
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class LookupResponse(ApiModel): 14 """Typed response returned by the lookup operation. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``LookupApplicationResponse``. 23 """ 24 app: LookupApplicationResponseApp = field(init=False) 25 """The app associated with this lookup response. Required. Python type: ``LookupApplicationResponseApp``; wire name: ``app``; JSON type: object"""
Typed response returned by the lookup operation.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: LookupApplicationResponse.
The app associated with this lookup response. Required. Python type: LookupApplicationResponseApp; wire name: app; JSON type: object
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class LookupResponseApp(ApiModel): 15 """Typed lookup response app data in the app resource namespace. 16 17 Instances are immutable API responses. ``from_dict()`` decodes nested 18 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 19 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 20 Fields not returned by the API remain absent and can still be queried 21 through mapping-style access. 22 23 API contract schema: ``LookupApplicationResponseApp``. 24 """ 25 id: str = field(init=False) 26 """Unique product identifier with prod_ prefix. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 27 name: str = field(init=False) 28 """Product name. Required. Python type: ``str``; wire name: ``name``; JSON type: string""" 29 alias: str | None = field(init=False) 30 """The alias associated with this lookup response app. Optional; nullable. Python type: ``str | None``; wire name: ``alias``; JSON type: string""" 31 description: str | None = field(init=False) 32 """Short description. Optional; nullable. Python type: ``str | None``; wire name: ``description``; JSON type: string""" 33 created_at: datetime = field(init=False) 34 """Product creation timestamp. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)""" 35 updated_at: datetime | None = field(init=False) 36 """Last update timestamp. Optional; nullable. Python type: ``datetime | None``; wire name: ``updated_at``; JSON type: string (date-time)""" 37 archived_at: datetime | None = field(init=False) 38 """Archive timestamp (if archived). Optional; nullable. Python type: ``datetime | None``; wire name: ``archived_at``; JSON type: string (date-time)""" 39 capabilities: CapabilityProjection = field(init=False) 40 """Known public capabilities currently available to this app. Required. Python type: ``CapabilityProjection``; wire name: ``capabilities``; JSON type: object""" 41 relationship: ApplicationRelationship | None = field(init=False) 42 """Direct placement relationship for this app. Optional; nullable. Python type: ``ApplicationRelationship | None``; wire name: ``relationship``; JSON type: object""" 43 operating_policy: ApplicationOperatingPolicy | None = field(init=False) 44 """Gated immutable operating-policy snapshot. Optional; nullable. Python type: ``ApplicationOperatingPolicy | None``; wire name: ``operating_policy``; JSON type: object"""
Typed lookup response app data in the app resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: LookupApplicationResponseApp.
Unique product identifier with prod_ prefix. Required. Python type: str; wire name: id; JSON type: string
The alias associated with this lookup response app. Optional; nullable. Python type: str | None; wire name: alias; JSON type: string
Short description. Optional; nullable. Python type: str | None; wire name: description; JSON type: string
Product creation timestamp. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
Last update timestamp. Optional; nullable. Python type: datetime | None; wire name: updated_at; JSON type: string (date-time)
Archive timestamp (if archived). Optional; nullable. Python type: datetime | None; wire name: archived_at; JSON type: string (date-time)
Known public capabilities currently available to this app. Required. Python type: CapabilityProjection; wire name: capabilities; JSON type: object
Direct placement relationship for this app. Optional; nullable. Python type: ApplicationRelationship | None; wire name: relationship; JSON type: object
Gated immutable operating-policy snapshot. Optional; nullable. Python type: ApplicationOperatingPolicy | None; wire name: operating_policy; JSON type: object
11class ManagementRole(WireEnum): 12 """Typed management role data in the app resource namespace. 13 14 Members are strings as well as enum values, so they compare naturally 15 with API payloads and serialize to the lowercase wire value shown below. 16 17 API contract schema: ``AppManagementRole``. 18 """ 19 PARENT = "parent" 20 """Wire value ``parent`` (parent)""" 21 CHILD = "child" 22 """Wire value ``child`` (child)"""
Typed management role data in the app resource namespace.
Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.
API contract schema: AppManagementRole.
14@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 15class Relationship(ApiModel): 16 """Typed relationship data in the app resource namespace. 17 18 Instances are immutable API responses. ``from_dict()`` decodes nested 19 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 20 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 21 Fields not returned by the API remain absent and can still be queried 22 through mapping-style access. 23 24 API contract schema: ``ApplicationRelationship``. 25 """ 26 id: str = field(init=False) 27 """Order that consumed the Buy link. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 28 kind: Literal['placement'] = field(init=False) 29 """The kind associated with this relationship. Optional. Python type: ``Literal['placement']``; wire name: ``kind``; JSON type: string""" 30 parent: RelationshipParent = field(init=False) 31 """Application that directly contains the app. Required. Python type: ``RelationshipParent``; wire name: ``parent``; JSON type: object""" 32 status: Literal['active', 'inactive', 'suspended', 'revoked'] = field(init=False) 33 """Current lifecycle status of the relationship. Optional. Python type: ``Literal['active', 'inactive', 'suspended', 'revoked']``; wire name: ``status``; JSON type: string""" 34 created_at: datetime = field(init=False) 35 """When order creation consumed the single-use Buy link. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)"""
Typed relationship data in the app resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ApplicationRelationship.
Order that consumed the Buy link. Required. Python type: str; wire name: id; JSON type: string
The kind associated with this relationship. Optional. Python type: Literal['placement']; wire name: kind; JSON type: string
Application that directly contains the app. Required. Python type: RelationshipParent; wire name: parent; JSON type: object
Current lifecycle status of the relationship. Optional. Python type: Literal['active', 'inactive', 'suspended', 'revoked']; wire name: status; JSON type: string
When order creation consumed the single-use Buy link. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
11class RelationshipKind(WireEnum): 12 """Typed relationship kind data in the app resource namespace. 13 14 Members are strings as well as enum values, so they compare naturally 15 with API payloads and serialize to the lowercase wire value shown below. 16 17 API contract schema: ``AppRelationshipKind``. 18 """ 19 PLACEMENT = "placement" 20 """Wire value ``placement`` (placement)"""
Typed relationship kind data in the app resource namespace.
Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.
API contract schema: AppRelationshipKind.
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class RelationshipPolicy(ApiModel): 15 """Typed relationship policy data in the app resource namespace. 16 17 Instances are immutable API responses. ``from_dict()`` decodes nested 18 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 19 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 20 Fields not returned by the API remain absent and can still be queried 21 through mapping-style access. 22 23 API contract schema: ``ApplicationRelationshipPolicy``. 24 """ 25 child_standing: str = field(init=False) 26 """The child standing associated with this relationship policy. Required. Python type: ``str``; wire name: ``child_standing``; JSON type: string""" 27 management: Literal['parent', 'child'] = field(init=False) 28 """The management associated with this relationship policy. Required. Python type: ``Literal['parent', 'child']``; wire name: ``management``; JSON type: string""" 29 credentials: Literal['child', 'parent'] = field(init=False) 30 """The credentials associated with this relationship policy. Required. Python type: ``Literal['child', 'parent']``; wire name: ``credentials``; JSON type: string"""
Typed relationship policy data in the app resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ApplicationRelationshipPolicy.
The child standing associated with this relationship policy. Required. Python type: str; wire name: child_standing; JSON type: string
The management associated with this relationship policy. Required. Python type: Literal['parent', 'child']; wire name: management; JSON type: string
The credentials associated with this relationship policy. Required. Python type: Literal['child', 'parent']; wire name: credentials; JSON type: string
11class RelationshipStatus(WireEnum): 12 """Typed relationship status data in the app resource namespace. 13 14 Members are strings as well as enum values, so they compare naturally 15 with API payloads and serialize to the lowercase wire value shown below. 16 17 API contract schema: ``AppRelationshipStatus``. 18 """ 19 ACTIVE = "active" 20 """Wire value ``active`` (active)""" 21 INACTIVE = "inactive" 22 """Wire value ``inactive`` (inactive)""" 23 SUSPENDED = "suspended" 24 """Wire value ``suspended`` (suspended)""" 25 REVOKED = "revoked" 26 """Wire value ``revoked`` (revoked)"""
Typed relationship status data in the app resource namespace.
Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.
API contract schema: AppRelationshipStatus.
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class SecretKey(ApiModel): 15 """Newly generated secret key. The token is returned once and cannot be retrieved later. 16 17 Instances are immutable API responses. ``from_dict()`` decodes nested 18 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 19 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 20 Fields not returned by the API remain absent and can still be queried 21 through mapping-style access. 22 23 API contract schema: ``ApplicationSecretKey``. 24 """ 25 id: str | None = field(init=False) 26 """Secret key identifier. Required; nullable. Python type: ``str | None``; wire name: ``id``; JSON type: string""" 27 token_type: str | None = field(init=False) 28 """The token type associated with this secret key. Required; nullable. Python type: ``str | None``; wire name: ``token_type``; JSON type: string. Constraints: allowed values ``bearer``""" 29 issued_at: datetime | None = field(init=False) 30 """Timestamp for issued at. Required; nullable. Python type: ``datetime | None``; wire name: ``issued_at``; JSON type: string (date-time)""" 31 token: str | None = field(init=False) 32 """One-time bearer token for the generated key. Required; nullable. Python type: ``str | None``; wire name: ``token``; JSON type: string"""
Newly generated secret key. The token is returned once and cannot be retrieved later.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ApplicationSecretKey.
Secret key identifier. Required; nullable. Python type: str | None; wire name: id; JSON type: string
The token type associated with this secret key. Required; nullable. Python type: str | None; wire name: token_type; JSON type: string. Constraints: allowed values bearer
Timestamp for issued at. Required; nullable. Python type: datetime | None; wire name: issued_at; JSON type: string (date-time)
One-time bearer token for the generated key. Required; nullable. Python type: str | None; wire name: token; JSON type: string
13@dataclass(frozen=True, slots=True, kw_only=True) 14class UpdateRequest(ApiRequest): 15 """Parameters accepted by the update request operation. 16 17 This is an immutable, keyword-only request object. ``to_dict()`` uses 18 the documented wire names, omits fields left as ``UNSET``, serializes 19 string-backed enums by value, and requires timezone-aware datetimes. 20 21 API contract schema: ``UpdateApplicationRequest``. 22 """ 23 name: str | UnsetType = field(default=UNSET) 24 """Human-readable name of the update request. Optional. Python type: ``str``; wire name: ``name``; JSON type: string""" 25 alias: str | UnsetType = field(default=UNSET) 26 """The alias associated with this update request. Optional. Python type: ``str``; wire name: ``alias``; JSON type: string""" 27 description: str | UnsetType = field(default=UNSET) 28 """Human-readable description of the update request. Optional. Python type: ``str``; wire name: ``description``; JSON type: string""" 29 legal_entity_type: str | UnsetType = field(default=UNSET) 30 """The legal entity type associated with this update request. Optional. Python type: ``str``; wire name: ``legal_entity_type``; JSON type: string""" 31 operating_policy: OperatingPolicySelection | UnsetType = field(default=UNSET) 32 """Named or inline operating policy. Optional. Python type: ``OperatingPolicySelection``; wire name: ``operating_policy``; JSON type: object"""
Parameters accepted by the update request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: UpdateApplicationRequest.
Human-readable name of the update request. Optional. Python type: str; wire name: name; JSON type: string
The alias associated with this update request. Optional. Python type: str; wire name: alias; JSON type: string
Human-readable description of the update request. Optional. Python type: str; wire name: description; JSON type: string
The legal entity type associated with this update request. Optional. Python type: str; wire name: legal_entity_type; JSON type: string
Named or inline operating policy. Optional. Python type: OperatingPolicySelection; wire name: operating_policy; JSON type: object
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class UpdateResponse(ApiModel): 14 """Typed response returned by the update operation. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``UpdateApplicationResponse``. 23 """ 24 app: UpdateApplicationResponseApp = field(init=False) 25 """The app associated with this update response. Required. Python type: ``UpdateApplicationResponseApp``; wire name: ``app``; JSON type: object"""
Typed response returned by the update operation.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: UpdateApplicationResponse.
The app associated with this update response. Required. Python type: UpdateApplicationResponseApp; wire name: app; JSON type: object
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class UpdateResponseApp(ApiModel): 15 """Typed update response app data in the app resource namespace. 16 17 Instances are immutable API responses. ``from_dict()`` decodes nested 18 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 19 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 20 Fields not returned by the API remain absent and can still be queried 21 through mapping-style access. 22 23 API contract schema: ``UpdateApplicationResponseApp``. 24 """ 25 id: str = field(init=False) 26 """Product identifier returned by the update operation. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 27 name: str = field(init=False) 28 """Human-readable name of the update response app. Required. Python type: ``str``; wire name: ``name``; JSON type: string""" 29 alias: str | None = field(init=False) 30 """The alias associated with this update response app. Optional; nullable. Python type: ``str | None``; wire name: ``alias``; JSON type: string""" 31 description: str | None = field(init=False) 32 """Human-readable description of the update response app. Optional; nullable. Python type: ``str | None``; wire name: ``description``; JSON type: string""" 33 created_at: datetime = field(init=False) 34 """When the update response app was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)""" 35 updated_at: datetime | None = field(init=False) 36 """When the update response app was last updated. Optional; nullable. Python type: ``datetime | None``; wire name: ``updated_at``; JSON type: string (date-time)""" 37 capabilities: CapabilityProjection = field(init=False) 38 """Known public capabilities currently available to this app. Required. Python type: ``CapabilityProjection``; wire name: ``capabilities``; JSON type: object""" 39 operating_policy: ApplicationOperatingPolicy | None = field(init=False) 40 """Gated immutable operating-policy snapshot. Optional; nullable. Python type: ``ApplicationOperatingPolicy | None``; wire name: ``operating_policy``; JSON type: object"""
Typed update response app data in the app resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: UpdateApplicationResponseApp.
Product identifier returned by the update operation. Required. Python type: str; wire name: id; JSON type: string
Human-readable name of the update response app. Required. Python type: str; wire name: name; JSON type: string
The alias associated with this update response app. Optional; nullable. Python type: str | None; wire name: alias; JSON type: string
Human-readable description of the update response app. Optional; nullable. Python type: str | None; wire name: description; JSON type: string
When the update response app was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
When the update response app was last updated. Optional; nullable. Python type: datetime | None; wire name: updated_at; JSON type: string (date-time)
Known public capabilities currently available to this app. Required. Python type: CapabilityProjection; wire name: capabilities; JSON type: object
Gated immutable operating-policy snapshot. Optional; nullable. Python type: ApplicationOperatingPolicy | None; wire name: operating_policy; JSON type: object